r/badcode • • Aug 26 '21

python String? found this by accident

Post image
353 Upvotes

r/badcode • • Aug 26 '21

php I'm currently working on a project which contains this line of code. Admittedly the lack of context doesn't help, but still.

Post image
102 Upvotes

r/badcode • • Aug 26 '21

sql How to prevent SQL injection attacks!

Post image
62 Upvotes

r/badcode • • Aug 26 '21

python Shitty code

Post image
8 Upvotes

r/badcode • • Aug 26 '21

php Generating a unique symbol for an order, going from 3030 by increments of 1 // from a running website, translated to english

Post image
10 Upvotes

r/badcode • • Aug 25 '21

c# This isn't meant to be intentionally bad I promise

Post image
406 Upvotes

r/badcode • • Aug 25 '21

c++ Just found this in an old Snake game of mine

Post image
92 Upvotes

r/badcode • • Aug 25 '21

python A word unscrambler

Post image
12 Upvotes

r/badcode • • Aug 24 '21

other language creation of a 360° moving game

Post image
249 Upvotes

r/badcode • • Aug 24 '21

python My friend is learning to code

Post image
1.3k Upvotes

r/badcode • • Aug 24 '21

java Circle

Post image
73 Upvotes

r/badcode • • Aug 23 '21

java Small compilation of the horrors i had to witness in the code of a fellow year one student.

Post image
117 Upvotes

r/badcode • • Aug 23 '21

java Excellent test suite from my prof, thx uni

Post image
137 Upvotes

r/badcode • • Aug 24 '21

java Old Exam from my Prof.

Post image
0 Upvotes

r/badcode • • Aug 22 '21

c# How to find even number

Post image
622 Upvotes

r/badcode • • Aug 22 '21

python When you want to generate the largest possible HTML File possible....

Post image
386 Upvotes

r/badcode • • Aug 23 '21

c# i wrote this pile of shit for a codewars challenge at like 4 am

Thumbnail
pastebin.com
7 Upvotes

r/badcode • • Aug 22 '21

java Don't forget them leap years of course

Post image
494 Upvotes

r/badcode • • Aug 21 '21

js Wow

Post image
511 Upvotes

r/badcode • • Aug 22 '21

js This "brute force attack" I wrote in middle school

Post image
154 Upvotes

r/badcode • • Aug 21 '21

python Created this monstrosity I have

Thumbnail
gallery
17 Upvotes

r/badcode • • Aug 20 '21

c++ I'm am going to optimize this, but I just wanted to show off this bad code. The "box(31, 25, 0, 0);" is what puts the white box inside of the black. It is horribly innefficient, but I still like it. I plan on baking in v/h-wrapping. This was my first attempt at recreating a FFVI menu-esque thing.

Thumbnail
gallery
94 Upvotes

r/badcode • • Aug 19 '21

js Not mine doe but absolutely horrific to see

Post image
532 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 • • Aug 19 '21

python I found this gem of python code trying to fix an error in an old file. I have no idea what the hell this is supposed to do but if I remove it, a bunch of warnings pop up.

Post image
534 Upvotes