this post was submitted on 14 Feb 2024
221 points (89.6% liked)

Programmer Humor

18250 readers
1553 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
all 16 comments
sorted by: hot top controversial new old
[–] [email protected] 74 points 4 months ago (3 children)

All I can think about is that atrocious braces indentation

[–] normalexit 22 points 4 months ago

The red squiggle instantly caught my eye, followed by the terrible indentation. Then I noticed the class is called Main without a public static void main method, odd. Wait and Love is a string now?

Then I realized I too was saddened like Biden at this code snippet, so I guess in the end it redeemed itself

[–] [email protected] 4 points 4 months ago (1 children)

Maybe it's Horstmann style indentation.

[–] SpaceNoodle 20 points 4 months ago (1 children)
[–] [email protected] 7 points 4 months ago

Lmao gottem!!

[–] [email protected] 27 points 4 months ago (1 children)

You have to declare your love first, duh.

[–] idunnololz 1 points 4 months ago

My love is nil :/

[–] [email protected] 7 points 4 months ago

Because true love is a constant.

[–] [email protected] 3 points 4 months ago

Try importing a package, you may have to purchase a license or subscribe to use it.

[–] [email protected] 2 points 4 months ago

Makes me cry

[–] [email protected] 2 points 4 months ago (1 children)

Love is in the air... the sudden outbreak of atomic war just reduced you and everyone you know to a fine mist - what did you think I meant?

[–] [email protected] 2 points 4 months ago (1 children)

I thought you meant RF signals carrying "love".

[–] [email protected] 1 points 4 months ago

Hmm, that sounds like a much easier approach... but I did already buy all these nukes.

[–] [email protected] 1 points 4 months ago

There is no love if you dont constructor it. Then you would need to initialize it or use existing instance to borrow. You can even extend from Respect or Humor as a starting point, there is no need to implement Love from scratch.