News for hackers. Stuff that matters.
Re:Code Smells: Iteration by nemetroid on Wednesday August 23, 2017 @12:13PM (#15082710)
Map-style iteration carries more semantic information than a C-style index based loop. An index based loop might be doing anything with the data being iterated over. When you do collection.map, already at first glance you get an idea about what the code is doing.
Re:Code Smells: Iteration by jstimpfle on Wednesday August 23, 2017 @06:03PM (#15085619)
Yep - and nobody cares. Write clean code instead. Much harder than simply changing the looping style.