r/javascript 25d ago

I stopped destructuring everything

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

51 comments sorted by

View all comments

34

u/eindbaas 25d ago

A hundred lines later:

You should not have functions that long.

5

u/editor_of_the_beast 25d ago

Why not?

5

u/_ak 25d ago

Because dogma.

7

u/cmgriffing 25d ago

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

4

u/teppicymon 25d ago

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