3 ms·
I find the map solution simpler than the for loop as there is no loop variable.
by witty_username 10y ago
I find the map solution simpler than the for loop as there is no loop variable.
- gravypod 10y agoIt's simpler, much simpler, in this context. It's not simpler when you scale up the implementation being used. After you scale it up it stops being simpler and starts being `clever`. "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." − Brian W. Kernighan