Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My javascript
blog and Updates

It's my personal blog and my post about what was my interested in. Not regularly. If you have any questions any discussion, I'm happy you get in touch with me, and try to answer as many as possible!

Blog
Let's See
Back to blog
Filter by:
Tags
//Article

How a Hash Map Works (and Why Your PHP Array Is Secretly One)

How a Hash Map Works (and Why Your PHP Array Is Secretly One)

Blog Summary

Finding one item among millions without searching sounds like cheating. It's a hash map. Buckets, hash functions, collisions, why lookups are O(1) on average, a 2011 security scare, and what it means for PHP arrays.

Read more
  • 97
  • 79
  • 4

Writing Readable React Components: Six Habits, One Messy Example

Writing Readable React Components: Six Habits, One Messy Example

Blog Summary

Every React codebase has that 400-line component with props called data, flag and cb. Let's refactor one, habit by habit: better names, derived state, custom hooks, smaller components and less prop drilling.

Read more
  • 77
  • 103
  • 13

The JavaScript Event Loop Explained: Why setTimeout(0) Isn't Instant

The JavaScript Event Loop Explained: Why setTimeout(0) Isn't Instant

Blog Summary

Predict the output of five lines of JavaScript and most people get it wrong. The call stack, task queue and microtasks explained with one kitchen analogy, plus the Node.js details that trip people up.

Read more
  • 66
  • 123
  • 25

If Programming Languages Were People at a Party

If Programming Languages Were People at a Party

Blog Summary

PHP is feeding everyone in the kitchen, JavaScript is in every room at once and SQL is in the corner, older than the house. A light look at the guests, and how I actually pick a language.

Read more
  • 144
  • 139
  • 10

Five React Mistakes in Forms and State That Cause the Weirdest Bugs

Five React Mistakes in Forms and State That Cause the Weirdest Bugs

Blog Summary

Deleting one row clears another. A timer stops at 1. An input warns it went from uncontrolled to controlled. Five common React form and state mistakes, why each happens, and the small fix for each.

Read more
  • 72
  • 74
  • 15

TypeScript for PHP Developers: The Parts That Actually Matter

TypeScript for PHP Developers: The Parts That Actually Matter

Blog Summary

PHP checks your types while the code runs. TypeScript checks them before it runs, then throws them away. That one difference explains almost everything a PHP developer needs to know about TypeScript.

Read more
  • 40
  • 143
  • 8

01. About Shiroz

Mohammed Shiroz

Hi, I'm Mohammed Shiroz, a software engineer and AI enthusiast from Sri Lanka who turns ideas into intelligent, real-world solutions. With over 9 years of hands-on experience, I currently lead real estate ERP development at Kate Group, a...

03.My Projects

04. Categories

Ready To Start Your Project ?

Get in Touch
Close