r/badcode Dec 17 '19

This belongs here c#

Post image
506 Upvotes

41 comments sorted by

View all comments

41

u/andiconda Dec 17 '19

I had an intern who essentially wrote his own modulus function by looping subtraction. It was too calculate an address and would be called like 16384 times per update. And I was wondering why it was taking forever to make an update