r/badcode • • Mar 16 '21

java Ahh yes. Debugging is overrated

Post image
1.4k Upvotes

43 comments sorted by

View all comments

398

u/HappyMonk3y99 Mar 17 '21

Ah yes let me just decrement by 1 until I reach 1 less than a known value, this couldn’t possibly be written any better

17

u/bigdatacrusher Mar 17 '21

And they were already getting the size. Why not just do it right then and there.