3 ms·
A lot of laziness has come from these newer rest/spread syntaxes (something to do with functional programming patterns too?). As a oldschool Amiga/PCDOS/ASM/C
by AltruisticGapHN 4y ago
A lot of laziness has come from these newer rest/spread syntaxes (something to do with functional programming patterns too?).
As a oldschool Amiga/PCDOS/ASM/C developer who moved on to the web ten years later... it always feels awkward to me to do things like arr = [...arr, ...arr2] because I'm always wondering just how effectively that is handled by the Javascript compiler.
- wruza 4y agoOn a technical side, ubiquity of javascript ensures that performance of common cases will be looked at and improved, if not yet. But as a fellow former low-level, my humble advice is: stop worrying and write clear code. Clear code eventually will run fast and stay clear. Nuanced code eventually will run as fast but stay nuanced.
- code_runner 4y agoReadability and pragmatism always win.
- eurasiantiger 4y agoProbably more effectively than anything you could roll yourself.