Mahdi Moghadasi·5h agoWhy innerHTML Turns Someone Else’s Text Into Your CodeOne property assignment decides whether a string is shown to your users or run in their browser, and LLM chat interfaces have made that…
Mahdi Moghadasi·1d agoWhy Python Ignores Your Type Hints, and Why You Should Write Them AnywayAnnotations are promises that a separate tool checks before your code runs, and knowing exactly where that checking stops is how you catch…A response icon1A response icon1
Mahdi Moghadasi·2d agoWhy Your Model Behaves Differently the Moment You Call model.eval()Dropout and batch normalization run two different programs depending on one flag, and mixing them up fails silently.
Mahdi Moghadasi·3d agoWhy Your Code Is Slowest the First Time You Run ItInterpreters and JIT compilers trade a slow start for a fast steady state, and that trade quietly decides what your benchmarks, cold starts…A response icon1A response icon1
Mahdi Moghadasi·4d agoWhy Your Server Will Fetch Any URL You Hand It, Including Its Own SecretsServer-side request forgery turns a harmless “fetch this link” feature into a key to your internal network, and AI agents just made it…
Mahdi Moghadasi·5d agoWhy “Turn It Off and On Again” Works, and What the Restart Is HidingA restart doesn’t fix a bug. It erases the state that piled up, and long-running AI workloads pile it up faster than most.
Mahdi Moghadasi·6d agoWhy Your System Prompt Is a Suggestion, Not a RuleTo the model, your carefully written instructions are just the first few thousand tokens of one long document.
Mahdi Moghadasi·Nov 17Why Your Logout Button Doesn’t Log Out a JWTA signed token is a promise that stays true until it expires, no matter what happens to the person who was carrying it.
Mahdi Moghadasi·Nov 16Why Your Version Number Promises Less Than You ThinkA semantic version tells you whether an upgrade should break your code, not whether it will change your results.
Mahdi Moghadasi·Nov 15Why Your Batch Size Is a Learning Decision, Not a Memory SettingChanging how many examples your model sees per step changes how it learns, and the code will never warn you.