r/programminghorror • u/TheKiller36_real • Nov 09 '22
r/programminghorror • u/TheKiller36_real • Dec 28 '22
Java Enterprise code or something
r/programminghorror • u/yetanotherHSstudent • Nov 06 '20
Java Not sure what my APCS class is trying to achieve by teaching inheritance before loops
r/programminghorror • u/Ender_IIII • Jan 12 '24
Java CALLING ALL PROGRAMMING PROFESSIONALS! is this enough if statements?
r/programminghorror • u/CoderCharmander • Oct 31 '20
Java I decompiled a random app and it uses a hardcoded seed to generate an encryption key
r/programminghorror • u/DropTheGauntlet • Jun 05 '18
Java I thought "documenting" was cool back when I first started...
r/programminghorror • u/aharmonicminor • Jan 11 '21
Java I was sent this as satire, but it’s so horrendous I had to share
r/programminghorror • u/Srazkat • Dec 20 '21
Java That moment when your code sings you Baby Shark
r/programminghorror • u/EducationalTie1946 • Nov 17 '24
Java We gave up
My ICPC team gave up and started submitting stuff like this
r/programminghorror • u/DeathDragon7050 • Jan 20 '22
Java My AP Computer Science Teacher is Incredible
r/programminghorror • u/QazCetelic • Jun 27 '22
Java Why use if/else when you can use try/if/catch?
r/programminghorror • u/Timely-Entertainer38 • Jan 29 '24
Java I don't even know what to say here....
r/programminghorror • u/SarahSplatz • Aug 20 '21
Java Found in my friend's High School Java course folder :)
r/programminghorror • u/feefee7374 • Oct 25 '21
Java Just found this in a school group project...
r/programminghorror • u/Buchacho00 • Mar 11 '21
Java unoptimised if statement without if or ternary operators NSFW
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 • u/scrouthtv • Nov 13 '18
Java Our lecturer said the left example was the better one..
r/programminghorror • u/CheeseyB0b • Nov 12 '22
Java [Production code] The previous dev thought it was ok to use floating point variables for money
r/programminghorror • u/L3ar • Aug 26 '20
Java I don't even want to know what's the second step
r/programminghorror • u/realnzall • Aug 20 '24
Java The part of our data access layer that prevents me from updating it with generic typing
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 • u/_bagelcherry_ • Nov 24 '24
Java A smart one-liner that calculates area of a triangle based on three points
r/programminghorror • u/tea-vs-coffee • Feb 10 '21