Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Var?! I'm beyond pissed off, I'm disappointed.
Luckily our team enforces airbnb styling with pipeline checks -
Never heard of the Three Strikes rule, but it's not bad. I'm not a huge fan of dogmatic practices personally, but it's a decent rule nonetheless.
-
@junon like everything else in life, I feel like these are guidelines rather than rules. I personally have had to force myself to violate DRY for readability, testability, and debugging.
-
I used to think I understood function scope. Then I started doing javascript. Although sometimes I wonder if I do understand it and this project just sucks.
-
@alexbrooklyn With all the shitty hires my company has, my code base would be a pile of toxic waste if I didn't have pipelines enforcing this shit.
Related Rants
KISS, DRY, Path of Least Resistance, Three Strikes and You Refactor, early returns, no array.map when nothing is returned, only use switch when # cases >= 3.
And using var in javascript instead of let/const to piss off my colleagues (and because I understand function scope well)
rant
wk231