DEV Community

Discussion on: Don’t pay the for-loop tax

Collapse
 
dfellini profile image
Dan Fellini

Great article. I hadn't thought about it, but I can't remember the last time I wrote a for loop. I do, though, remember the last time I had to explain one to someone...

Collapse
 
danhomola profile image
Dan Homola

Thank you! And I know what you mean. On the other hand some loop is always better than for example copy/pasting the same thing five times (I saw production code like that...).