Comparison of nested if-statements vs clean guard clauses

Stop Nesting If Statements. Use Guard Clauses

I am not an if-nester, I am the kind of developer who don’t like conditions getting deeply nested. At work i am the one who sees some nested code and try to promote removing the nesting, There are acceptable levels, sure - but I still don’t like it. Level 1 This is fine. if (loggedIn) { } Level 2 Still acceptable. if (loggedIn) { if (authorized) { } } Level 3 Nope. This is where it gets ugly. ...

January 26, 2026 · 2 min · 247 words · Hitesh Patel
Dart syntactic sugar features

9 Dart Syntactic Sugar Features That Make My Codebase Happier

I’ve been using Dart for more than 2 years now and after jumping in and out of Kotlin and some other languages, I realized something, Dart has a ton of syntactic sugar that I use daily without even realizing it — and these features quietly make my life somuch easier. Whenever I switch to another language, I start to miss these tiny conveniences — from the power of named/unnamed parameters,to null-aware operators, to the spread operator that makes Flutter codebase so clean. ...

January 15, 2026 · 3 min · 581 words · Hitesh Patel