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
2
u/serendipitousPi Jul 16 '26
That function was just about the comments not the prior stuff I mentioned, sorry if that wasn't super clear.
I just meant that people take comment your code to mean all their code should be commented when lots of code is 1. basic enough to not need them or 2. self-documenting like via the function names.
Like as an example of another thing taken to an extreme.
The function itself was ok, like yeah I might do something similar if there might be some more logic I might need to add to logout at a later date.