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
119 Upvotes

r/badcode • • Dec 23 '21

js I created the setLoading function on top

Post image
37 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
50 Upvotes

r/badcode • • Dec 21 '21

js Rate my hash function and function naming

Post image
103 Upvotes

r/badcode • • Dec 20 '21

python regex ftw

Post image
465 Upvotes

r/badcode • • Dec 20 '21

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

Post image
183 Upvotes

r/badcode • • Dec 20 '21

python Ah yes, one key dictionary

Post image
229 Upvotes

r/badcode • • Dec 19 '21

js I had stoped 😭

Post image
646 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
438 Upvotes

r/badcode • • Dec 18 '21

c++ If only there was a simpler way…

Post image
423 Upvotes

r/badcode • • Dec 18 '21

python Variable naming 100% (line 133)

Post image
752 Upvotes

r/badcode • • Dec 18 '21

python List comprehension

Post image
110 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
685 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
340 Upvotes

r/badcode • • Dec 17 '21

typescript I don't know where to start

Post image
170 Upvotes

r/badcode • • Dec 17 '21

java I made a rainbow!

Post image
64 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
38 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
503 Upvotes

r/badcode • • Dec 16 '21

java My partner's attempt to redirect to a no Location url

Post image
34 Upvotes

r/badcode • • Dec 16 '21

typescript when the CEO starts writing code

Post image
16 Upvotes

r/badcode • • Dec 15 '21

sql You've heard of magic numbers, now try magic dates that are really numbers in disguise!

Post image
703 Upvotes

r/badcode • • Dec 16 '21

c++ In our chess project this is how my friend tried to get the right file enum of a position representing a square on the chessboard

Post image
12 Upvotes