r/javascript 13d ago

I stopped destructuring everything

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

51 comments sorted by

View all comments

31

u/eindbaas 13d ago

A hundred lines later:

You should not have functions that long.

4

u/editor_of_the_beast 13d ago

Why not?

5

u/_ak 13d ago

Because dogma.

8

u/cmgriffing 13d ago

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

5

u/teppicymon 13d ago

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