Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My Knowledge
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 Compression Works on the Web: gzip, Brotli and Why Repetition Is Free

How Compression Works on the Web: gzip, Brotli and Why Repetition Is Free

Blog Summary

Your 400 KB JavaScript bundle often travels as a fraction of that. Compression is why, and it works by spotting repetition. Here's how gzip and Brotli shrink text, why images don't benefit, and how to switch it on properly.

Read more
  • 59
  • 121
  • 15

What Happens After You Click "Pay": How a Payment Gateway Really Works

What Happens After You Click "Pay": How a Payment Gateway Really Works

Blog Summary

One tap, two seconds, money moves. Behind the Pay button are tokens, authorizations, captures, webhooks and a lot of careful design. Here's the full trip, and what it means for the code you write.

Read more
  • 52
  • 117
  • 25

Character Sets, Collations and Sorting: Why Your Database Thinks "Sara" Equals "sara"

Character Sets, Collations and Sorting: Why Your Database Thinks "Sara" Equals "sara"

Blog Summary

A unique email that rejects a different capital letter, lists that sort differently in PHP and MySQL, Arabic searches that miss: all collation. Here's how character sets and collations work, and how to choose them on purpose.

Read more
  • 52
  • 132
  • 8

UUID vs ULID vs Auto-Increment: Choosing IDs That Don't Race, Leak or Slow You Down

UUID vs ULID vs Auto-Increment: Choosing IDs That Don't Race, Leak or Slow You Down

Blog Summary

Auto-increment IDs leak your volume, random UUIDs can hurt insert performance, and neither is a security fix on its own. Here's how UUID, UUIDv7, ULID and plain integers really compare, and the hybrid that often wins.

Read more
  • 110
  • 74
  • 15

How Image Formats Work: JPEG, PNG, WebP and AVIF Explained

How Image Formats Work: JPEG, PNG, WebP and AVIF Explained

Blog Summary

The slowest thing on your page is often a photo saved as a 4000-pixel PNG. How JPEG, PNG, WebP and AVIF actually compress images, when to use each, and why resizing usually beats switching formats.

Read more
  • 140
  • 142
  • 14

JWT vs Sessions vs API Keys: Which One to Use, and When

JWT vs Sessions vs API Keys: Which One to Use, and When

Blog Summary

"We use JWT" is often the answer for the web app, the mobile app and the partner integration alike. Sessions, JWTs and API keys solve different problems; here's how to tell which one each caller needs.

Read more
  • 139
  • 61
  • 24

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