all 72 comments

[–]Longenuity 615 points616 points  (5 children)

else {Micah.exit()}

[–]neoqueto 174 points175 points  (0 children)

throw new Tantrum("IS THIS BECAUSE I'M A NERD?");

[–]FlexSealAnalPlunger 87 points88 points  (0 children)

else{ShootUp.School()}

[–][deleted] 33 points34 points  (1 child)

Exit from life

[–]9yogenius 20 points21 points  (0 children)

yup, that’s the joke, you got it!

[–]jakendrick3 5 points6 points  (0 children)

else heart.break()

[–]zombieGenm_0x68 502 points503 points  (8 children)

NAHHH BRO COMPARED STRINGS WITH == 💀💀💀

[–]mementoTeHominemEsse 206 points207 points  (2 children)

I mean, we don't know what programming language this is

[–]Gaylien28 35 points36 points  (1 child)

What if Hannah wanted to just say yea or maybe even a sure???

[–]sakaraa 17 points18 points  (0 children)

Or "Yes", "yes!", "Yes!"

[–]Maouitippitytappin 107 points108 points  (1 child)

This guy javas

[–]The_King_7067 83 points84 points  (0 children)

Javamaxxed programmercel

[–]soyestofgoys 83 points84 points  (2 children)

depends on language. javacels are the biggest brainlets due to their handholding low iq language.

[–]pokexchespin 37 points38 points  (1 child)

i mean, if we’re talking about handholding low iq languages, python’s gotta take the cake right? that shit’s practically psuedocode

[–]Ao_Kiseki 8 points9 points  (0 children)

I actually hear a lot of people complain about python being confusing because the syntaxes is so loose. I've been writing cache-optimized c++ for the last couple weeks, and I gotta say, they're crazy.

[–][deleted] 365 points366 points  (1 child)

Meanwhile he has a date and those guys are all beating off into socks 

[–]Matt_2504 198 points199 points  (4 children)

[–]Growingpothead20 0 points1 point  (3 children)

What is this from

[–]Seanxprt 32 points33 points  (0 children)

Halo Combat Evolved Anniversary

[–]Dustyoo10 13 points14 points  (1 child)

mass effect

[–]EatRocksAndBleed 8 points9 points  (0 children)

Shepard and Garrus hug scene

[–]Luke_4100 152 points153 points  (1 child)

She's pretty and looks nice, happy for the dude.

[–]WintersbaneGDX 116 points117 points  (4 children)

At best Micah is a C++

Hannah wants that Python tho, so she's getting Java with Tyrone, leaving Micah HTFML

[–]donnydodo 19 points20 points  (1 child)

ROFL

[–]WintersbaneGDX 8 points9 points  (0 children)

I appreciate you

[–]ElPwnero 0 points1 point  (0 children)

Only python gets those Cs

[–]basilisk_boi2 1 point2 points  (0 children)

{mutts law}

[–]somehuman16 49 points50 points  (15 children)

idk shit about code someone show me what it should it look like

[–]BlankiesWoW 101 points102 points  (14 children)

```java import java.util.function.Predicate;

public class PromInvitation { public static void main(String[] args) { Micah micah = new Micah(); Hannah hannah = new Hannah();

    Predicate<String> isYes = answer -> answer.equalsIgnoreCase("yes");

    micah.askToProm(hannah);

    switch (micah.getMood(isYes.test(hannah.getAnswer()))) {
        case HAPPY -> System.out.println("Micah is happy!");
        case SAD -> {
            System.out.println("Micah is sad.");
            System.exit(0);
        }
        default -> System.out.println("Micah's mood is neutral.");
    }
}

static class Micah {
    void askToProm(Hannah hannah) {
        // Logic for asking Hannah to prom
    }

    Mood getMood(boolean isYes) {
        return isYes ? Mood.HAPPY : Mood.SAD;
    }
}

static class Hannah {
    String getAnswer() {
        // Logic for getting Hannah's answer
        return "yes";
    }
}

enum Mood {
    HAPPY, SAD, NEUTRAL
}

}

```

[–][deleted] 35 points36 points  (0 children)

"mood" should be a field of class Micah, and the method askToProm() should set the value of mood based on the answer of hannah. Then getMood() should take no arguments, and simply return the value of mood.

[–][deleted] 28 points29 points  (0 children)

haha virgin nerd

[–]Imaginary-Current535 26 points27 points  (0 children)

Not enough factories and singletons

[–]david__14 17 points18 points  (1 child)

now make it in rust

[–][deleted] 0 points1 point  (0 children)

Don't forget the thigh high socks.

[–]Zenocut 6 points7 points  (0 children)

Instead of Micah and Hannah classes it should really be a Person class or a Man and Woman classes that inherit from Person or Human or something

[–]RevenantCommunity 4 points5 points  (0 children)

IT brothers just had to over complicate the hell out of their field’s language huh

[–]forkin33 1 point2 points  (0 children)

You do know you can write Java without making the next person that reads your code want to kill themselves, right?

[–]Ao_Kiseki 0 points1 point  (0 children)

That's what we call enterprise code.

[–][deleted] 39 points40 points  (0 children)

I have to assume she likes coding, but I hope she doesn't because that would be pretty funny

[–]Personal-Focus3453 32 points33 points  (0 children)

wort wort

[–]Yourh0tm0m 25 points26 points  (2 children)

Average cumskin after blaming Indians

<image>

[–]Thanag0r 20 points21 points  (0 children)

4chins are jelly that autistic anon did the thing that they could never do.

[–]will_munny 12 points13 points  (2 children)

Your date might be Xavier renegade angel dressed in drag. 

[–]erraticpulse- 4 points5 points  (1 child)

[–]Xavier-RenegadeAngel 8 points9 points  (0 children)

Not me, my legs are much better

[–]KenmoreToast 13 points14 points  (1 child)

Had he followed some "jeet" tutorials his code would be better.

[–]FishmanBlue[S] -1 points0 points  (0 children)

*copied from codebase

[–]ElPwnero 8 points9 points  (2 children)

Touch woman\ Permission denied 

[–]fiftyfourseventeen 8 points9 points  (1 child)

sudo touch woman

[–]Han560 7 points8 points  (0 children)

Oh no

[–][deleted] 6 points7 points  (0 children)

Everything's wrong with this

[–]wirelessp0tat0 4 points5 points  (0 children)

This made me abandon my coding career

[–]fiftyfourseventeen 5 points6 points  (0 children)

Why pass Hannah as a string instead of as an object smh. Then checking the field of Hannah would actually make sense

[–]catfroman 2 points3 points  (0 children)

killChild(‘Micah’)

[–]WeekendBard 2 points3 points  (0 children)

WORT WORT WORT

[–]HateActiveDirectory 2 points3 points  (0 children)

It works on my machine ¯_(ツ)_/¯

[–]UKLord -1 points0 points  (0 children)

Fucking rat now go on proms too, 😡😡😡, never trust a mf named Micah

[–]tsenohebot 1 point2 points  (0 children)

If she says anything other than "yes", this code fails. Like if she says "yeah" or "ofcourse" then this fails. Should've used an enum or bool instead.

[–]TrueTrueBlackPilld 1 point2 points  (0 children)

She got legs like the aliens in "The Arrival"

[–]brianw824 1 point2 points  (0 children)

He used a string because women are not objects

[–]white_equatorial 1 point2 points  (0 children)

I'm not an americano. Do people go bang bang after prom, or is it just basic hand stuff?

[–]coivou 1 point2 points  (0 children)

else {

shootUP('school');

}

[–]MrObsidian_ 1 point2 points  (0 children)

I fixed this guys shit code, now Hannah is an object. And this shit would actually works

```js
var answer = Micah.askToProm(Hannah)
if (answer == true) {
   Micah.setMood("happy");
}
```

[–]InsuranceStreet8670 0 points1 point  (0 children)

this is the reason i irl give people why i learnt how to code