4 ms·
It really is a foreign world to me where a loop is considered a "verbose idiom".
by dsymonds 12y ago
It really is a foreign world to me where a loop is considered a "verbose idiom".
- Havvy 12y agoIt's less about verbosity and more about the lack of clarity. `for (i = 0; i < myContainer.length; i++) { ... }` vs. `myContainer.map( ... )` - which tells the reader more about what the code does? Which of these lets the writer focus more on domain logic?
- omphalos 12y agoAnd something like groupBy is even worse.