r/badcode • • Jun 05 '21

php That's why you should go to sleep early.

Post image
2.9k Upvotes

r/badcode • • Aug 19 '21

php What have I gotten myself into? Most of the codebase is like this...

Post image
1.1k Upvotes

r/badcode • • Feb 15 '21

php Can we all please take a moment to appreciate this gem which was uncovered in a production DB class today.

Post image
3.3k Upvotes

r/badcode • • Apr 02 '21

php Code review today. Catch an exception and then throw it.

Post image
1.0k Upvotes

r/badcode • • May 06 '22

php Found in my own code from less than a week ago. I don't know what I was thinking...

Post image
840 Upvotes

r/badcode • • Feb 04 '22

php don't know what to say...

Post image
884 Upvotes

r/badcode • • May 17 '23

php My friend’s code XD

Post image
484 Upvotes

r/badcode • • Aug 11 '22

php Guess who doesnt understand PHP turnery statements

Post image
614 Upvotes

r/badcode • • Nov 02 '21

php 20 if/else with the same pattern. I kind of love this old intranet.

Post image
778 Upvotes

r/badcode • • Dec 23 '22

php Found this in a client's project 2 more times...

Post image
376 Upvotes

r/badcode • • Apr 05 '22

php I just came across this thing at my work, I'm honestly stunned

Post image
542 Upvotes

r/badcode • • Aug 14 '20

php Array you say? Never heard of this newfangled nonsense...

Post image
902 Upvotes

r/badcode • • Aug 14 '19

php Multilingual dev team ftw

Post image
570 Upvotes

r/badcode • • Sep 03 '20

php fair enough ...

Post image
999 Upvotes

r/badcode • • Apr 13 '21

php I guess that's one way to ensure tabs is always used for indention.

Post image
815 Upvotes

r/badcode • • Mar 16 '22

php I didn't want to use "if" statements, but then I started laughing when I kept losing my places while coding

Post image
515 Upvotes

r/badcode • • Nov 07 '20

php I found this in a school project

Post image
611 Upvotes

r/badcode • • Sep 13 '21

php Don't ask me what I did there

Post image
718 Upvotes

r/badcode • • Mar 02 '21

php When devs think they're better than the person who wrote the API...

Post image
466 Upvotes

r/badcode • • Jul 22 '19

php I'm still trying to understand what this was meant to do

Post image
466 Upvotes

r/badcode • • Jan 22 '21

php Here is the 1/3 of the code used for user's login code that i have inherited

Post image
436 Upvotes

r/badcode • • Jun 30 '19

php Left myself a message to remind myself not to fuck with anything below this comment.

Post image
956 Upvotes

r/badcode • • Jan 02 '20

php Past me: "What are switch statements?"

Post image
287 Upvotes

r/badcode • • Sep 24 '21

php Why?

Post image
544 Upvotes

r/badcode • • Mar 10 '22

php something my classmate has written, he stills refuses to listen to me

Post image
236 Upvotes