The Algorithm Behind Shazam: I Read Wang's 2003 Paper So You Don't Have ToMost developers use Shazam every week without thinking twice. Hold up your phone, wait three seconds, song identified. It feels like magic. I wanted to understand the trick. So I went to the source — Mar 27 · 10 min readmaheshbora.hashnode.dev
The 16ms Miracle: Script, Actor, and Stage in the setState() DanceImagine you are watching a flipbook animation. To make the drawing look like it's actually moving, you need to flip the pages very, very fast. In Flutter, your phone is the flipbook. To keep the "magiFeb 20 · 4 min readmaheshbora.hashnode.dev
Flutter lied. Not everything is a widget.Flutter’s doc tells us: “Everything is a widget.” It’s catchy. It’s memorable…but not the whole story. If widgets did all the work, your app would be incredibly slow. Why? Because widgets are destroyed and recreated constantly. If you had to repaint ...Feb 16 · 3 min readmaheshbora.hashnode.dev
Keys – Giving your widgets an ID cardImagine a classroom where students arrive every day and take a seat. The teacher needs to keep track of everyone, but there’s a catch: the teacher has a very short memory. 🪑 The Problem: No Keys (Identification by Position) The teacher decides: "Who...Feb 13 · 3 min readmaheshbora.hashnode.dev
BuildContext: Why Every Widget Carries an Invisible MapImagine you’re at a massive music festival. You turn to a stranger and ask, "Where's the nearest bathroom?" They point you in the right direction because they know exactly where they are standing. But if you asked that same question over a phone call...Feb 9 · 3 min readmaheshbora.hashnode.dev