4 ms·
In practice you don't run into these issues often. I'm annoyed when you see different function declaration conventions in the same codebase, but generally () =>
by b_e_n_t_o_n 1y ago
In practice you don't run into these issues often. I'm annoyed when you see different function declaration conventions in the same codebase, but generally () => is used for either one line functions or inline lambdas, and function foo(){} for everything else. Nobody uses var anymore.
The implicit conversions is a definite footgun tho.
- plopz 1y agoFunny you mention nobody uses var anymore when I just saw a post on here yesterday that perf critical code still uses var since it's faster
- b_e_n_t_o_n 1y agoBundlers will convert let/const to var, assign classes and functions to var etc but generally people don't write it themselves unless they want to (ab)use its semantics for performance reasons.
- stefanfisk 1y agoDo people often use bundlers for the backend?