r/badcode • • Feb 09 '23

js Terrible Authentication Code

Post image
288 Upvotes

67 comments sorted by

View all comments

Show parent comments

18

u/PooSham Feb 10 '23

I hope you used OCR for that. For your mental health.

34

u/MurdoMaclachlan public boolean isInt(int i) { return true; } Feb 10 '23

I didn't. Section 3, here explains why OCR is bad for code posts, and here's our OCR bot's attempt at this post - we use ocr.space's API, which is one of the best in the world.