I disagree.
Mel Walker
394

I disagree on the disagree :D

the second version tells you quickly in 3 lines what happens to each item in the for loop. In the 1st version I need to dig through the guard statements first and then read the lines to get an idea what it does. Also in real life, often things need to be added. For example the coin reduction must be changed, cos we want to work with coredata. Then you need to change all the code that decreases the count. Therefor having it in one place from the start ist better. Also you dont need to change the for loop, Your code stays the same, except the part that needs to be changed..

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.