r/javascript • u/bogdanelcs • Jul 16 '26
I stopped destructuring everything
https://allthingssmitty.com/2026/07/13/i-stopped-destructuring-everything/
84
Upvotes
r/javascript • u/bogdanelcs • Jul 16 '26
View all comments
Show parent comment
11
u/serendipitousPi Jul 16 '26
But that's not the result of simply ensuring a function isn't a sprawling monstrosity, that's the result of people not taking 5 seconds to understand the point of code hygiene guidelines. You can write nicely separated code without any of that.
And honestly it's rather nice to have the self-documentation benefit of function names when people aren't just doing several things in the same function.
Saying that it leads to spaghetti is like saying that writing comments leads to the stupidity that is stuff like this (this is code a guy I knew "wrote")