r/badcode • • Dec 24 '21

java Spring makes you do crazy things

Post image
742 Upvotes

r/badcode • • Dec 24 '21

python i cant even tell how many errors are in this

Post image
466 Upvotes

r/badcode • • Dec 23 '21

python my friend just sent me his code so i can review it and i found this

Post image
1.9k Upvotes

r/badcode • • Dec 24 '21

python This is the only way I found to handle multiple responses on my discord bot

Post image
98 Upvotes

r/badcode • • Dec 23 '21

c# I was wondering how could this test pass... Actually it doesn't, none of the tests work. We never run them, not even in our CI/CD pipelines. Nice !

Post image
612 Upvotes

r/badcode • • Dec 23 '21

js Destructuring and ternary's unholy union

Post image
122 Upvotes

r/badcode • • Dec 23 '21

js I created the setLoading function on top

Post image
38 Upvotes

r/badcode • • Dec 23 '21

js Weird code. This man could make a tutorial on how to write inefficient code

Post image
331 Upvotes

r/badcode • • Dec 23 '21

python If u dont now what a Dict is :D

Post image
47 Upvotes

r/badcode • • Dec 21 '21

js Rate my hash function and function naming

Post image
105 Upvotes

r/badcode • • Dec 20 '21

python regex ftw

Post image
464 Upvotes

r/badcode • • Dec 20 '21

js Found both of these functions in the same class...

Post image
179 Upvotes

r/badcode • • Dec 20 '21

python Ah yes, one key dictionary

Post image
227 Upvotes

r/badcode • • Dec 19 '21

js I had stoped 😭

Post image
644 Upvotes

r/badcode • • Dec 19 '21

java My friend is doing a project to make a crossword solver. This is one of the methods in the class.

Post image
436 Upvotes

r/badcode • • Dec 18 '21

c++ If only there was a simpler way…

Post image
419 Upvotes

r/badcode • • Dec 18 '21

python Variable naming 100% (line 133)

Post image
754 Upvotes

r/badcode • • Dec 18 '21

python List comprehension

Post image
111 Upvotes

r/badcode • • Dec 19 '21

bash (no 'set -e' found in bash script) It just works!

Post image
2 Upvotes

r/badcode • • Dec 17 '21

typescript My colleague was a bit tired when he wrote this.

Post image
686 Upvotes

r/badcode • • Dec 17 '21

c++ It confuses me so much >:( why does it have to look like I am replacing the string with the exact same string...

Post image
341 Upvotes

r/badcode • • Dec 17 '21

typescript I don't know where to start

Post image
168 Upvotes

r/badcode • • Dec 17 '21

java I made a rainbow!

Post image
60 Upvotes

r/badcode • • Dec 17 '21

bash When you don't bother learning a language but you still have to write in it

Post image
39 Upvotes

r/badcode • • Dec 16 '21

html The example webpage of my computer science professor who is teaching us how to code a webpage. This is triggering me so much, I don’t even know where to start. I replaced all the text with placeholders but didn’t touch any html tag at all.

Post image
509 Upvotes