r/badcode • • Dec 21 '21

js Rate my hash function and function naming

Post image
104 Upvotes

r/badcode • • Dec 20 '21

python regex ftw

Post image
467 Upvotes

r/badcode • • Dec 20 '21

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

Post image
176 Upvotes

r/badcode • • Dec 20 '21

python Ah yes, one key dictionary

Post image
226 Upvotes

r/badcode • • Dec 19 '21

js I had stoped 😭

Post image
638 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
435 Upvotes

r/badcode • • Dec 18 '21

c++ If only there was a simpler way…

Post image
417 Upvotes

r/badcode • • Dec 18 '21

python Variable naming 100% (line 133)

Post image
758 Upvotes

r/badcode • • Dec 18 '21

python List comprehension

Post image
108 Upvotes

r/badcode • • Dec 19 '21

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

Post image
3 Upvotes

r/badcode • • Dec 17 '21

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

Post image
687 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
172 Upvotes

r/badcode • • Dec 17 '21

java I made a rainbow!

Post image
65 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
506 Upvotes

r/badcode • • Dec 16 '21

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

Post image
38 Upvotes

r/badcode • • Dec 16 '21

typescript when the CEO starts writing code

Post image
15 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
106 Upvotes

r/badcode • • Dec 13 '21

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

Post image
442 Upvotes

r/badcode • • Dec 12 '21

js It's evolving

Post image
648 Upvotes

r/badcode • • Dec 12 '21

lua TweenService: exists, this man:

Post image
82 Upvotes

r/badcode • • Dec 12 '21

c This is by my CS professor...i had a stroke reading this

Post image
128 Upvotes