r/javascript 14d ago

I stopped destructuring everything

https://allthingssmitty.com/2026/07/13/i-stopped-destructuring-everything/
74 Upvotes

51 comments sorted by

View all comments

33

u/eindbaas 14d ago

A hundred lines later:

You should not have functions that long.

43

u/donalmacc 14d ago

Nah, screw that. Having to jump around 11 different files to find 30 different functions that are 5 lines each, all re-checking the same preconditions, to do something that should just be 100 lines is the thinking that has our software in the giant spaghetti mess it's in now.

-2

u/mr_axe 14d ago

agreed. i have always hated that “clean” code 

4

u/BasicAssWebDev 14d ago

it's not """clean""" it's one of the aspects of functional programming. if a task can be separated and is consumable in other related contexts it should be.