DEV Community


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

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...

danhomola profile image
Dan Homola Author

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...).