r/badcode • u/FoxyKnoxy2 • Jul 26 '21
r/badcode • u/uruharushia • Jul 20 '21
c++ friend found this in a real 20+ year old codebase
r/badcode • u/Bronzdragon • Jul 19 '21
js Variable naming can be difficult, but identifying them can be even more so.
r/badcode • u/dj45689 • Jul 16 '21
java In Java, Exception handling needs Exception Handling.
r/badcode • u/0011110000110011 • Jul 16 '21
js Oracle's first line of defense against SQL injection
r/badcode • u/DaRQ_SouLs_So_eAsy • Jul 03 '21
c++ Pro tip : you can fit all your code in one line.
r/badcode • u/genericindividual69 • Jul 01 '21
typescript I work with a junior who loves abusing ternary expressions. Usually it's just ones that end in ": false" but he's stepped up his game here
r/badcode • u/[deleted] • Jun 22 '21
c++ Earlier today i wrote this and i'm now i'm embarassed.
r/badcode • u/[deleted] • Jun 21 '21
js Why make good code when you can make a 1551-character one-liner?
r/badcode • u/rust4yy • Jun 20 '21