Category: System Design
-
There is nothing Random inside a computer
Have you ever wondered how your music app shuffles thousands of songs, or how a video game generates a brand new world every time you hit “New Game”? It feels like digital magic. We call it “random,” but in the world of silicon and circuits, true randomness is actually quite hard to find. In fact,…
-
Django Forms & Validations — From Simple to Advanced
When I first started learning Django, forms looked magical. I would write a few lines, call is_valid(), and Django somehow knew whether my data was correct or not. Only later did I realize how much work Django does behind the scenes (batteries included) type conversion, sanitization, security checks, and structured validation. Forms are the front…
-
Have you been told “Use plain SQL, its faster than ORM” ?
You might have heard this advice before, Just use SQL; no need for ORMs. At first glance, that sounds elegant. SQL is expressive, close to the metal, and avoids the “magic” of an ORM. But as systems grow, accidental complexity sneaks in, the kind that comes not from business logic, but from all the supporting…