---
title: "Muhammad Imran (@muhammadimran) | Hashnode"
description: "Muhammad Imran (@muhammadimran) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@muhammadimran"
---

@muhammadimran

# Muhammad Imran

@muhammadimran · Joined October 2026

### [Your Time Math Is Wrong: Why Hours and Minutes Break Your Code](https://handynest.hashnode.dev/your-time-math-is-wrong-why-hours-and-minutes-break-your-code?utm_source=hashnode&utm_medium=feed)

Subtracting two times looks like the easiest code you will write all week. A shift starts at 9:30 and ends at 17:45, so the answer is 8 hours and 15 minutes. Any developer can do that in their head, w

6 min read · [handynest.hashnode.dev](https://handynest.hashnode.dev/your-time-math-is-wrong-why-hours-and-minutes-break-your-code?utm_source=hashnode&utm_medium=feed)

[3d ago](https://hashnode.com/posts/your-time-math-is-wrong-why-hours-and-minutes-break-your-code/6afa9c8df3fb5ef3cc189665)

### [Your Random Numbers Are Biased: How Math.random() Fails and What to Use Instead](https://handynest.hashnode.dev/your-random-numbers-are-biased-how-math-random-fails-and-what-to-use-instead?utm_source=hashnode&utm_medium=feed)

Your Random Numbers Are Biased: How Math.random() Fails and What to Use Instead Almost every JavaScript developer has written this line: const roll = Math.floor(Math.random() \* 6) + 1; It looks right

4 min read · [handynest.hashnode.dev](https://handynest.hashnode.dev/your-random-numbers-are-biased-how-math-random-fails-and-what-to-use-instead?utm_source=hashnode&utm_medium=feed)

[5d ago](https://hashnode.com/posts/your-random-numbers-are-biased-how-math-random-fails-and-what-to-use-instead/6af7f9608e205b332b670b1f)

### [Lorem Ipsum Is Not Filler: How Placeholder Text Catches Real Layout Bugs Before Your Users Do](https://handynest.hashnode.dev/lorem-ipsum-is-not-filler-how-placeholder-text-catches-real-layout-bugs-before-your-users-do?utm_source=hashnode&utm_medium=feed)

Every developer has pasted lorem ipsum into a page at some point, and almost everyone treats it as filler, something to delete as soon as the real copy arrives. That is the wrong way to look at it. Pl

7 min read · [handynest.hashnode.dev](https://handynest.hashnode.dev/lorem-ipsum-is-not-filler-how-placeholder-text-catches-real-layout-bugs-before-your-users-do?utm_source=hashnode&utm_medium=feed)

[Nov 12](https://hashnode.com/posts/lorem-ipsum-is-not-filler-how-placeholder-text-catches-real-layout-bugs-before-your-users-do/6af556bdddb24df98450bad7)

### [Date Math Is the Bug You Ship Every Year: Time Zones, Leap Years, and Off-by-One Days](https://handynest.hashnode.dev/date-math-is-the-bug-you-ship-every-year-time-zones-leap-years-and-off-by-one-days?utm_source=hashnode&utm_medium=feed)

Counting the days between two dates looks like the easiest job in programming. Subtract one timestamp from another, divide by the number of milliseconds in a day, done. Then a user in another time zon

7 min read · [handynest.hashnode.dev](https://handynest.hashnode.dev/date-math-is-the-bug-you-ship-every-year-time-zones-leap-years-and-off-by-one-days?utm_source=hashnode&utm_medium=feed)

[Nov 11](https://hashnode.com/posts/date-math-is-the-bug-you-ship-every-year-time-zones-leap-years-and-off-by-one-days/6af41d0147ae0b9a57cdb690)

### [Your Word Counter Is Lying to You: How Unicode Breaks Naive Word Splitting](https://handynest.hashnode.dev/your-word-counter-is-lying-to-you-how-unicode-breaks-naive-word-splitting?utm_source=hashnode&utm_medium=feed)

Open any "how to count words in JavaScript" tutorial and you will see the same one-liner: const count = text.trim().split(/\\s+/).length; It works for "hello world". It falls apart the moment real tex

5 min read · [handynest.hashnode.dev](https://handynest.hashnode.dev/your-word-counter-is-lying-to-you-how-unicode-breaks-naive-word-splitting?utm_source=hashnode&utm_medium=feed)

[Oct 24](https://hashnode.com/posts/your-word-counter-is-lying-to-you-how-unicode-breaks-naive-word-splitting/6adc58e65070683322ef7a5d)
