this post was submitted on 21 Feb 2025
891 points (95.5% liked)

Programmer Humor

20735 readers
632 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 2 years ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 16 points 1 day ago (1 children)

Ah, yes. A private method for working on a public field.

load more comments (1 replies)
[–] [email protected] 7 points 1 day ago (1 children)

Well. I think I'm officially out of touch with the newest generations slang terms. I only understood about half of that.

[–] [email protected] 28 points 1 day ago* (last edited 1 day ago) (1 children)

I have many gray hairs, but here's what I know.

  • Highkey and lowkey - obvious and subtle.

  • fax is "facts" - true. Often in the sense of agreement.

  • Fuck around and find out - do something risky and reap the consequences

  • It's giving - how it makes you feel, or what it reminds you of.

  • Cap and no cap - lying and telling the truth.

  • Big yikes - bad, especially cringey.

  • Tea - (n) gossip. (v) "spill the tea"

  • Shoutout - give credit to someone. I don't think this one makes much sense here.

  • Yap - talk, especially too much or unnecessarily.

  • Yeet - throw, often without careful aim. (Unlike "Kobe", which is a throw with aim)

[–] [email protected] 25 points 1 day ago* (last edited 1 day ago) (1 children)

You missed

  • Rizz = charisma
  • vibe check = Vibe is kinda like someone’s aura or energy. So to check their vibe is to call them out on it.

Also got many grey hairs but I like to know what people mean and language evolves. Our generation did it too you get me blud.

[–] [email protected] 10 points 1 day ago (1 children)

Thanks for the catch, I thought I got all of them. Stay skibidi and not Ohio, my friend.

[–] [email protected] 6 points 1 day ago (2 children)

No problem. Ohio is a new one for me?

[–] [email protected] 6 points 1 day ago (2 children)

There was meme on titkok, someone says "only in Ohio" when something weird, impossible, unbelievable or some stupid bizarre shit happens.

load more comments (2 replies)
load more comments (1 replies)
[–] [email protected] 3 points 1 day ago (1 children)

I don’t get the joke. Is the one on the left actually valid C# code?

[–] [email protected] 7 points 1 day ago (2 children)

C# is basically Java and from what I can tell, this looks approximately valid.

Variables can always* be named freely to your liking.

*You used to have to stick to the Latin alphabet, but that’s increasingly not the case anymore. Emoji-named variables FTW!

[–] [email protected] 5 points 1 day ago

It looks valid but vibe isn’t declared anywhere so it won’t compile.

[–] [email protected] 2 points 1 day ago (3 children)

No it’s not “basically Java”

Aside from how Microsoft stole it, fucked the standard library, fucked the naming conventions, etc. You would never just “throw” without specifying what you were throwing.

[–] [email protected] 12 points 1 day ago (1 children)

This is incorrect. The C# is valid. Throw in a catch statement simply rethrows the caught exception. Source: I've been writing C# for 20 years, also the docs.

I won't act like MS absolutely didn't steal core concepts and syntax from Java, but I've always thought C# was much more thoughtfully designed. Anders Hejlsberg is a good language designer, TypeScript is also a really excellent language.

[–] [email protected] 3 points 1 day ago (1 children)

In Java you would say “throw e;” (to rethrow the same exception you just caught.)

You wouldn’t just say “throw”

Or you could also throw some other exception. But the syntax requires you specify what it is you are throwing. (And sane in C++, where you could throw any object, even a primitive.)

So that was my question.

[–] [email protected] 6 points 1 day ago (1 children)

Wildly, in C# you can do either and it has different results. I believe a bare throw doesn't append to the stack trace, it keeps the original trace intact, while throw e updates the stack trace (stored on the exception object) with the catch and rethrow.

In C#, you can only throw objects whose class derives from Exception.

load more comments (1 replies)
[–] [email protected] 4 points 1 day ago (1 children)

As a C# developer Java go go and die lol. It sucks imo.

[–] [email protected] 3 points 1 day ago (1 children)

Everyone is entitled to their own opinion.

[–] [email protected] 3 points 1 day ago (2 children)

To be honest I’m just playing into the meme of Java.

My understanding is it’s academically great, but a pain in practice.

For reference we use C# .Net, Entity Framework with GraphQL and React TypeScript for our enterprise applications and I really like C# now, but when I first started I’d only really used Node.js and some Java.

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

No problem. I’m not sure if all of that would run on all the platforms I use.

load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 27 points 1 day ago (1 children)

That's way better than my emoji based programming language.

[–] [email protected] 7 points 1 day ago (1 children)

I’m not so sure. Send a link.

[–] [email protected] 11 points 1 day ago (1 children)

Haven't published it yet.

Here are comparisons:

⚖️

🐲

🐲⚖️

⚖️🐲

🚫🐲⚖️

[–] [email protected] 8 points 1 day ago (1 children)

Post the GitHub repo.

I will help you make this happen.

[–] [email protected] 5 points 1 day ago* (last edited 1 day ago) (1 children)

Sure! It doesn't do anything yet, I just have a text file with how I'm intending to architect it.

It quite literally started ~~two~~ four (edit: I can't keep track of time) days ago.

I'll configure a repo, stick this in a file, and push it. I'll reply with another comment so you (and others) can look it up.

I've come up with some crazy stuff. Instead of something like "class" to indicate a class, it's

🏫 Followed by the emoji name of the class like 🖼️📁. So it will need to be able to handle operators in the name it's amazingly gross! Properties and methods will also be emoji names, like to get the 🖼️📁 "File Name" it would be 📁💳.

[–] [email protected] 5 points 1 day ago (1 children)

I was kind of being sarcastic. I haven’t written a compiler since I rode my dinosaur to college. Still it’s a funny idea. Could probably do it in C using a bunch of pound defines.

[–] [email protected] 5 points 1 day ago* (last edited 1 day ago)

I was thinking Rust, but that works too.

Because then I could call the Language Spoons.

It would as uncomfortable to use as it is to watch Rusty Spoons

[–] [email protected] 16 points 1 day ago (1 children)

ratios I need this and I'm an elder millenial

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

Ratio is when your comment receives less upvotes than my reply, you get ratioed.

load more comments (1 replies)
[–] [email protected] 156 points 1 day ago (7 children)

I really really dig the fuckaround/findout. It paints the try/catch with a more dreadful undertone and reeks of mystery.

[–] [email protected] 8 points 1 day ago (1 children)

just what you want from code !

load more comments (1 replies)
[–] [email protected] 45 points 1 day ago (2 children)

As well as the yeet keyword, I'm really friggin' diggin' this. [modernisation required]

[–] [email protected] 26 points 1 day ago* (last edited 1 day ago)
#define yeet throw
#define let const auto
#define mut &
#define skibidi exit(1)

The future is now!

load more comments (1 replies)
load more comments (5 replies)
[–] [email protected] 27 points 1 day ago* (last edited 1 day ago) (2 children)
play_stupid_games {
    // ...
} win_stupid_prizes(thePrize) {
    // ...
}
[–] [email protected] 16 points 1 day ago (3 children)

I always thought it was "prizes"

[–] [email protected] 2 points 1 day ago

Thx and sorry. My spelling skills are bad.

[–] [email protected] 2 points 1 day ago

Have you seen eggs lately, though?

[–] [email protected] 6 points 1 day ago (1 children)
[–] [email protected] 6 points 1 day ago

No, this is what they win:

load more comments (1 replies)
[–] [email protected] 3 points 1 day ago (1 children)

Why does the bool have brackets? I haven't really used c#, seems odd

[–] [email protected] 12 points 1 day ago* (last edited 1 day ago) (1 children)

It's a method definition. C#'s standard formatting puts the left ~~bracket~~ brace of the method body on a new line. It's equivalent to:

private bool IsSus(){
    ...
}
[–] [email protected] 3 points 1 day ago

Ahhh, that makes way more sense. Thanks

load more comments
view more: ‹ prev next ›