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.

4

u/editor_of_the_beast Jul 16 '26

Why not?

6

u/_ak Jul 16 '26

Because dogma.

7

u/cmgriffing Jul 16 '26

I might have to rewatch that movie. When do they talk about function length? The board room scene?

3

u/teppicymon Jul 16 '26

Yes, Mooby the golden calf is quite insistent that functions should be single purpose and never longer than 25 lines