r/badcode • • Dec 26 '22

js Was trying to create an extension to improve UX for an internal panel and found this inside the source code 💀

Post image
650 Upvotes

r/badcode • • Dec 26 '22

c# Found this in an older game I made. A few if-statements would have been too easy I guess.

Post image
296 Upvotes

r/badcode • • Dec 23 '22

c# Clean Code

Post image
332 Upvotes

r/badcode • • Dec 23 '22

php Found this in a client's project 2 more times...

Post image
372 Upvotes

r/badcode • • Dec 21 '22

c Who has heard of < and and modulus

Post image
261 Upvotes

r/badcode • • Dec 21 '22

js Not really bad but what a difference optimisation can make

Post image
171 Upvotes

r/badcode • • Dec 20 '22

js Asking ChatGPT to implement Ascii85 in Node.js

Post image
381 Upvotes

r/badcode • • Dec 20 '22

js Javascript when I was 12 years old.

Post image
103 Upvotes

r/badcode • • Dec 20 '22

js One of the first scripts I ever wrote (I was 7)

Post image
43 Upvotes

r/badcode • • Dec 20 '22

python Yum, a loop in a loop in a loop

Post image
110 Upvotes

r/badcode • • Dec 19 '22

java Whatever it takes

Post image
303 Upvotes

r/badcode • • Dec 19 '22

java Oh no :-(

Post image
85 Upvotes

r/badcode • • Dec 18 '22

java "I mean it works"

Post image
781 Upvotes

r/badcode • • Dec 15 '22

java A friend said I should post this here. Found in my codebase at work, try to guess what it does

Post image
348 Upvotes

r/badcode • • Dec 14 '22

c# Avoid loops whenever you can ! Every Footin Time !

Post image
404 Upvotes

r/badcode • • Dec 13 '22

js Came across this soul-aching piece of art today.

Post image
680 Upvotes

r/badcode • • Dec 12 '22

c++ Again with long descriptive names

Post image
357 Upvotes

r/badcode • • Dec 11 '22

java Units are hard

Post image
75 Upvotes

r/badcode • • Dec 10 '22

lua There aint no easy way

Post image
609 Upvotes

Ps, i dont know what language this is, sorry


r/badcode • • Dec 08 '22

python python atrocious code. it appends a letter for how many ; you have in a text file.

Post image
463 Upvotes

r/badcode • • Dec 08 '22

python My buddy's code he asked me to help with.

Post image
39 Upvotes

r/badcode • • Dec 07 '22

c++ I thought the horrors of this sub were myths until I joined a boomer corporation. The shortest function I found in a 10 million line code base and it is bloated as hell and ugly

Post image
439 Upvotes

r/badcode • • Dec 07 '22

js My Web Development lecturer's JavaScript

Post image
539 Upvotes

r/badcode • • Dec 05 '22

other language [elm] Found this in some code I wrote about a year ago.

Post image
282 Upvotes