Stop nesting ternaries in JavaScriptwww.sonarsource.comexternal-link philnash ( @philnash@programming.dev ) JavaScript@programming.devEnglish • 10 months ago message-square25fedilinkarrow-up126
arrow-up126external-linkStop nesting ternaries in JavaScriptwww.sonarsource.com philnash ( @philnash@programming.dev ) JavaScript@programming.devEnglish • 10 months ago message-square25fedilink
minus-square folkrav ( @folkrav@lemmy.ca ) linkfedilink9•10 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-square kassuro ( @kassuro@feddit.de ) linkfedilink4•10 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.