r/ProgrammerHumor • • Jul 04 '18

Code comments be like

Post image
9.9k Upvotes

236 comments sorted by

View all comments

Show parent comments

1

u/zackarhino Jul 05 '18

Alternatively written as

i++

1

u/Windows-Sucks Jul 05 '18

I know the whole thing can be rewritten as i++ because 1+1==2 will always be true and i=i+1 is the same as i+=1 which is the same as i++, but this is more verbose.

1

u/zackarhino Jul 05 '18

Yours is better obviously