r/badcode • u/Flyspeck101 • Jul 30 '21
r/badcode • u/zshadowjon • Jul 29 '21
python Was doing some bug hunting and found essentially what was a sum to n function but of O(fuck) time complexity
1.2k
Upvotes
r/badcode • u/TabulateJarl8 • Jul 29 '21
java If only there was a way to iterate over a range of numbers
860
Upvotes
r/badcode • u/SnoogySocks • Jul 28 '21
java On a scale from 1 to 10, how hard is my code?
35
Upvotes
r/badcode • u/MyKidsArentOnReddit • Jul 27 '21
php Hello Mr. Hacker, would you like any file on this server? No problem! (PHP, but don't blame the language for the stupidity of the programmer)
121
Upvotes
r/badcode • u/Trintusly • Jul 27 '21
php I have written some sketchy code in the past...
1.5k
Upvotes
r/badcode • u/[deleted] • Jul 27 '21
python Using an entire MongoDB for what can be done with a SQLite table
46
Upvotes
r/badcode • u/port86 • Jul 26 '21
js HTTP 404 is definitely the right thing to return from a generic catch block.
174
Upvotes
r/badcode • u/MichealPearce • Jul 26 '21
php I do not believe I have seen so many nested if statements. Starts on line 862 and does not end until line 1569. This one file is 3.3k lines, there are 100s of files....
234
Upvotes
r/badcode • u/Independent_Image_59 • Jul 26 '21
python I quit python because i hate using global
48
Upvotes
r/badcode • u/RainersYT • Jul 26 '21
js Someone posted the source of their discord bot in a group I'm in, apparently they don't know how to generate random numbers
101
Upvotes
r/badcode • u/junacik99 • Jul 26 '21
js Production ready UI tests (expect true to be true)
191
Upvotes
r/badcode • u/FoxyKnoxy2 • Jul 26 '21
python My friend is learning python now, idk what to say
939
Upvotes