philnash@programming.dev to JavaScript@programming.devEnglish · 11 months agoStop nesting ternaries in JavaScriptwww.sonarsource.comexternal-linkmessage-square34fedilinkarrow-up143arrow-down111
arrow-up132arrow-down1external-linkStop nesting ternaries in JavaScriptwww.sonarsource.comphilnash@programming.dev to JavaScript@programming.devEnglish · 11 months agomessage-square34fedilink
minus-squarefolkrav@lemmy.calinkfedilinkarrow-up10arrow-down2·11 months agoThis shit always leaves me wondering who even writes this crap. The answer is more often than not a junior that just discovered code golf thinking he’s oh so clever. You learn to appreciate boring code, with experience…
minus-squarekassuro@feddit.delinkfedilinkarrow-up5·11 months agoTotally agree with you. I’m always an advocate for boring and easy to understand code. I really don’t need an extra layer of complexity just so someone can save a line or two.
This shit always leaves me wondering who even writes this crap. The answer is more often than not a junior that just discovered code golf thinking he’s oh so clever. You learn to appreciate boring code, with experience…
Totally agree with you. I’m always an advocate for boring and easy to understand code.
I really don’t need an extra layer of complexity just so someone can save a line or two.