Am I the only one who thinks the JS community’s overuse of => functions is ruining source order? Old-fashioned function declarations FTW!
Conversation
Guess they must be tired of writing out `function`. Not sure how much is gained vs `const =>` though… What do you mean by 'source order'?
1
High-level fns at top of file, low-level implementation details below. Unhoisted consts force you to reverse that (e.g. render at the end).
1
2
Replying to
Ah interesting. In most other langs I tend to do the opposite. Types up top, leaf functions middle, down to the roots at the bottom.
Replying to
Yep I’m arguing it’s better to swap those last two, per Uncle Bob. To paraphrase, source files should read like news stories. Summary first.
2

