Ah, yes. A private method for working on a public field.
Programmer Humor
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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
Well. I think I'm officially out of touch with the newest generations slang terms. I only understood about half of that.
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)
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.
Thanks for the catch, I thought I got all of them. Stay skibidi and not Ohio, my friend.
No problem. Ohio is a new one for me?
There was meme on titkok, someone says "only in Ohio" when something weird, impossible, unbelievable or some stupid bizarre shit happens.
I don’t get the joke. Is the one on the left actually valid C# code?
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!
It looks valid but vibe isn’t declared anywhere so it won’t compile.
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.
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.
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.
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.
As a C# developer Java go go and die lol. It sucks imo.
Everyone is entitled to their own opinion.
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.
No problem. I’m not sure if all of that would run on all the platforms I use.
That's way better than my emoji based programming language.
I’m not so sure. Send a link.
Haven't published it yet.
Here are comparisons:
⚖️
🐲
🐲⚖️
⚖️🐲
🚫🐲⚖️
Post the GitHub repo.
I will help you make this happen.
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 📁💳.
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.
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
ratios
I need this and I'm an elder millenial
Ratio is when your comment receives less upvotes than my reply, you get ratioed.
I really really dig the fuckaround/findout. It paints the try/catch with a more dreadful undertone and reeks of mystery.
As well as the yeet
keyword, I'm really friggin' diggin' this. [modernisation required]
#define yeet throw
#define let const auto
#define mut &
#define skibidi exit(1)
The future is now!
play_stupid_games {
// ...
} win_stupid_prizes(thePrize) {
// ...
}
I always thought it was "prizes"
Thx and sorry. My spelling skills are bad.
Have you seen eggs lately, though?
It is.
No, this is what they win:
Why does the bool have brackets? I haven't really used c#, seems odd
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(){
...
}
Ahhh, that makes way more sense. Thanks