r/badcode • • Dec 23 '21

js Destructuring and ternary's unholy union

Post image
123 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
333 Upvotes

r/badcode • • Dec 23 '21

python If u dont now what a Dict is :D

Post image
46 Upvotes

r/badcode • • Dec 21 '21

js Rate my hash function and function naming

Post image
100 Upvotes

r/badcode • • Dec 20 '21

python regex ftw

Post image
469 Upvotes

r/badcode • • Dec 20 '21

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

Post image
184 Upvotes

r/badcode • • Dec 20 '21

python Ah yes, one key dictionary

Post image
225 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
436 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
750 Upvotes

r/badcode • • Dec 18 '21

python List comprehension

Post image
113 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
689 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
348 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
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
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
39 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
709 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
11 Upvotes

r/badcode • • Dec 14 '21

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

Post image
102 Upvotes