3 ms·
Really? It just looks compact and efficient to me.
by SmellyGeekBoy 8y ago
Really? It just looks compact and efficient to me.
- smt88 8y ago"Compact" (abbreviated) names are negligibly more efficient when machines read them, and they're wildly less efficient when humans read them. Code is read many more times than it's written, so it doesn't make sense to optimize for fewer keystrokes when typing the code. This is especially true with modern IDEs that autocomplete everything.
- eadmund 8y ago> Code is read many more times than it's written, so it doesn't make sense to optimize for fewer keystrokes when typing the code. That's actually probably not the case with JavaScript, so it may indeed make more sense to write it to be more efficient to execute.
- smt88 8y agoPost-processors do that much better than a human and can also tree-shake. There's no reason for a human to do it.