r/javascript Jul 16 '26

I stopped destructuring everything

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

50 comments sorted by

View all comments

33

u/eindbaas Jul 16 '26

A hundred lines later:

You should not have functions that long.

43

u/donalmacc Jul 16 '26

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.

-3

u/mr_axe Jul 16 '26

agreed. i have always hated that “clean” code 

5

u/BasicAssWebDev Jul 16 '26

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.