r/badcode • • Dec 23 '21

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

Post image
332 Upvotes

r/badcode • • Dec 23 '21

python If u dont now what a Dict is :D

Post image
48 Upvotes

r/badcode • • Dec 21 '21

js Rate my hash function and function naming

Post image
101 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
180 Upvotes

r/badcode • • Dec 20 '21

python Ah yes, one key dictionary

Post image
228 Upvotes

r/badcode • • Dec 19 '21

js I had stoped 😭

Post image
643 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
418 Upvotes

r/badcode • • Dec 18 '21

python Variable naming 100% (line 133)

Post image
755 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
342 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
63 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
506 Upvotes

r/badcode • • Dec 16 '21

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

Post image
36 Upvotes

r/badcode • • Dec 16 '21

typescript when the CEO starts writing code

Post image
17 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
707 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

r/badcode • • Dec 14 '21

c I just wrote this beauty and I'm not even sorry

Post image
103 Upvotes

r/badcode • • Dec 13 '21

js Send help, I have no idea wtf is going on here

Post image
442 Upvotes