Your Agent Should Not Trust Its Own Tool Input.Your agent should not trust its own tool input. An agent I wired up called createOrder with whatever the model produced. Most days the input was fine. One day the model sent an order where one item ha7 min read·msohailkhandev.hashnode.dev3d ago
Your Flutter Screen Fetches on Every Build. It Should Fetch Once.Your Flutter screen fetches on every build. It should fetch once. A screen I reviewed called the API inside build. Every rebuild fired the request again, so a keyboard opening, a theme change, or any6 min read·msohailkhandev.hashnode.dev5d ago
Your API Does Not Need More Logs. It Needs One Error Shape.Your API does not need more logs. It needs one error shape. A client I worked with kept breaking every time an endpoint failed. One error came back as plain text, the next as an HTML page, the next as4 min read·msohailkhandev.hashnode.devNov 10
Your Flutter App Is Not Slow. It Is Loading Full Size Images Into Tiny Boxes.A product list I reviewed scrolled badly on older phones. Every card showed a small thumbnail, but the app downloaded the full size photo for every item, held it in memory, and resized it on the fly.5 min read·msohailkhandev.hashnode.devNov 5
I Reject More PRs for Boring Mistakes Than for Clever BugsI reject more PRs for boring mistakes than for clever bugs. I lead a team of Flutter developers and I review PRs every day. Here is the uncomfortable truth I keep coming back to: the bugs that reach p9 min read·msohailkhandev.hashnode.devOct 31