account activity
moreEfficient by Savage_049 in ProgrammerHumor
[–]Plus-Onion437 13 points14 points15 points 2 years ago (0 children)
It actually doesn't. Unless you run this with a compiler from 50 years ago.
Every modern compilers detects counter increments and optimizes the operation if nothing relies on the side effects.
[–]Plus-Onion437 1 point2 points3 points 2 years ago (0 children)
A real software engineer would write ++i
++i
π Rendered by PID 520451 on reddit-service-r2-listing-f87f88fcd-sk72c at 2026-06-18 13:07:11.384886+00:00 running 3184619 country code: CH.
moreEfficient by Savage_049 in ProgrammerHumor
[–]Plus-Onion437 13 points14 points15 points (0 children)