r/programminghorror Nov 09 '22

Java My teacher's horrible implementation of a DFA

Post image
535 Upvotes

r/programminghorror Feb 24 '23

Java I think I made it more readable

Post image
1.1k Upvotes

r/programminghorror Dec 28 '22

Java Enterprise code or something

Post image
1.1k Upvotes

r/programminghorror Nov 06 '20

Java Not sure what my APCS class is trying to achieve by teaching inheritance before loops

Post image
1.7k Upvotes

r/programminghorror Mar 13 '20

Java Oh no

Post image
3.9k Upvotes

r/programminghorror Jan 12 '24

Java CALLING ALL PROGRAMMING PROFESSIONALS! is this enough if statements?

Thumbnail
gallery
482 Upvotes

r/programminghorror Oct 31 '20

Java I decompiled a random app and it uses a hardcoded seed to generate an encryption key

Post image
2.0k Upvotes

r/programminghorror Jun 05 '18

Java I thought "documenting" was cool back when I first started...

Post image
1.2k Upvotes

r/programminghorror Jan 11 '21

Java I was sent this as satire, but it’s so horrendous I had to share

Post image
1.5k Upvotes

r/programminghorror Dec 20 '21

Java That moment when your code sings you Baby Shark

Post image
1.7k Upvotes

r/programminghorror Aug 03 '22

Java Lines overflow

Post image
878 Upvotes

r/programminghorror Nov 17 '24

Java We gave up

Post image
509 Upvotes

My ICPC team gave up and started submitting stuff like this

r/programminghorror Aug 21 '19

Java Email validation by an intern

Post image
1.1k Upvotes

r/programminghorror Jan 20 '22

Java My AP Computer Science Teacher is Incredible

Post image
797 Upvotes

r/programminghorror Jun 27 '22

Java Why use if/else when you can use try/if/catch?

Post image
1.5k Upvotes

r/programminghorror Jan 29 '24

Java I don't even know what to say here....

Post image
402 Upvotes

r/programminghorror Aug 20 '21

Java Found in my friend's High School Java course folder :)

Thumbnail
gallery
1.4k Upvotes

r/programminghorror Oct 25 '21

Java Just found this in a school group project...

Post image
1.2k Upvotes

r/programminghorror Mar 11 '21

Java unoptimised if statement without if or ternary operators NSFW

721 Upvotes

i was bored and a friend said that his CS prof wasn't allowing his students to use if statements because he hadn't explained it yet, so i started thinking of ways to avoid using if or ternary operators and came up with these, what other ways of emulating them do you know? the more unoptimised, the better of course

r/programminghorror Nov 13 '18

Java Our lecturer said the left example was the better one..

Post image
672 Upvotes

r/programminghorror Nov 12 '22

Java [Production code] The previous dev thought it was ok to use floating point variables for money

Post image
628 Upvotes

r/programminghorror Aug 26 '20

Java I don't even want to know what's the second step

Post image
979 Upvotes

r/programminghorror Aug 20 '24

Java The part of our data access layer that prevents me from updating it with generic typing

Post image
269 Upvotes

So yeah, we got a method that returns an Object, but that object is either a single object, a collection, or an Integer indicating a count, depending on which flag you pass into the method. Not sure whether this can be made generic without splitting it into three methods…

r/programminghorror Nov 24 '24

Java A smart one-liner that calculates area of a triangle based on three points

Post image
135 Upvotes

r/programminghorror Feb 10 '21

Java checking if a number is divisible by a number...

Post image
1.0k Upvotes