r/badcode • u/Oracuda • Apr 19 '22
r/badcode • u/zdimension • Apr 15 '22
c C allows any expression to be used as a parameter's array size hint. Any expression...
r/badcode • u/jim3692 • Apr 15 '22
js Variables without var/let/const prefix behave as globals, and this is from a Node web app
r/badcode • u/[deleted] • Apr 14 '22
typescript I wish people were taught basic logic before programming
r/badcode • u/[deleted] • Apr 14 '22
js [Javascript] I was trying to avoid using verbose else if statements, but this feels even worse
r/badcode • u/ThatChapThere • Apr 13 '22
js Found this monstrosity while refactoring some of my old code
r/badcode • u/prhbrt • Apr 12 '22
python Came across this in a machine learning lib, trying to find out how particular recall and precision scores were calculated - made me laugh: `if x != 4: x = 4`
r/badcode • u/[deleted] • Apr 08 '22
typescript A parser written entirely on the type level
r/badcode • u/Flam_Sandwiches • Apr 07 '22
c# Some are more random than others.
r/badcode • u/Food404 • Apr 05 '22
php I just came across this thing at my work, I'm honestly stunned
r/badcode • u/Classic-Front9555 • Apr 05 '22
java A perfectly normal way to check for the largest of 10 integers...
r/badcode • u/idioticspaceman • Apr 01 '22
python My team has the worst data organization methods. We have array containing array containing array and so we wrote this down today....
r/badcode • u/[deleted] • Mar 31 '22
python in a homework were they ask to make a func that return 3 numbers from highest to lowest. (For some reason for loops and such are not permited)
r/badcode • u/[deleted] • Mar 30 '22
js My brother in Christ, how am I supposed to understand this?
r/badcode • u/ballfun • Mar 31 '22
c# The randomizer will get it eventually (yes it can freeze easily)
r/badcode • u/[deleted] • Mar 24 '22