Miltiadis Bouchalakis retweeted
Starting to wonder if the smartest way to reduce slop is just to produce less code
Force code review to continually reduce code while ALSO keeping cyclomatic complexity low
Less code means less code to maintain, fewer bugs
React tip: how event handlers actually get called.
You hand React a function, React calls it on the click and passes the event object in automatically.
Once that clicks, three classic bugs explain themselves: the handler that fires on render, where e comes from, and why your id logs a SyntheticEvent.
2
32
React tip that most people learn way too late:
You can force any component to start fresh just by changing its key.
38 seconds, full explanation in the video.
29
The X algorithm and I have agreed to see other people. @grok is it official yet?
1
1
38
You didn't misclick.
The page moved the button to a different location after promising you a layout.
An ad loads above the button, the page never reserved space for the image, so everything below it jumps when it arrives the add is loaded.
The fix: tell the browser the size upfront. One line of CSS, zero layout shift.
1
23
Optimistic UI: the button fills first, the server finds out later, 30 seconds, with the useOptimistic code.
1
26
A loading spinner says wait. A skeleton says almost.
Same three seconds, completely different feeling.
Perceived performance is the cheapest UX win most teams never touch.
2
37
Miltiadis Bouchalakis retweeted
🎉BIG ANNOUNCEMENT
Excited to join @cityjsconf in Athens on Oct 23 for the opening keynote:
"The Era of Doers: Stop Overthinking It. (Please)"
In the AI era, execution matters more than endless comparison, preparation, and waiting for the perfect moment.
See you in Athens 🇬🇷
Half the useEffects I review are syncing state that could be computed in one line during render.
If you can derive it, delete the effect.
The dependency array you don't write can't go stale.
React's docs have said this for years. The habit outlived the advice.
2
29
TypeScript 7 doesn't change your types.
It deletes the wait between writing them and trusting them.
Speed is a feature of correctness tools.
31
Miltiadis Bouchalakis retweeted
📣 The moment is here. 📣
TypeScript 7 is officially released! 7️⃣
devblogs.microsoft.com/types…
Your AI writes code like a stranger hired yesterday, because to your repo, that's what it is.
Five lines of CLAUDE.md at the root fixes more output than any prompt trick.
Context beats cleverness.
23
Selected-card styling used to mean a click handler and a state class. Now the CSS just looks at its own children. :has() quietly killed a whole category of JavaScript.
Ugly headline wraps are a one-line fix, and most people still don't know it exists. text-wrap: balance. Watch the orphan word disappear.
39
Miltiadis Bouchalakis retweeted
Replying to @milbouchal @grok
Miltiadis Bouchalakis retweeted
Replying to @milbouchal
yes my toolbar i use all the time
bobjames.dev/apps/bobar








