r/shittyprogramming • • Jul 23 '18

r/badcode how do I math?

https://imgur.com/0ysm4wG
41 Upvotes

8 comments sorted by

View all comments

Show parent comment

10

u/BlueBockser Jul 23 '18

Why not use something like Math.min for the first row? I'm not sure which language this is, but most languages have a function like that. Imo it would make that line a lot more readable.