As much as this hurts,
yeet;
as an aliasthrow;
is hilarious81 0 ReplyOf all the gen z lingo yeet is the best.
18 0 ReplyYou can yoink that word from my cold, dead hands!
7 0 Reply
Funnily enough, that is a keyword in rust.
(it's a placeholder to remove any bikeshedding)
5 0 Reply
I really really dig the fuckaround/findout. It paints the try/catch with a more dreadful undertone and reeks of mystery.
155 0 ReplyYeah, I love that one.
"Try" is too hopeful. "fuck_around" makes it clear that you know what you're doing is dangerous but you're going to do it anyhow. I know that in some languages wrapping a lot of code in exception blocks is the norm, but I don't like that. I think it should be something you only use rarely, and when you do it's because you know you're doing something that's not safe in some way.
"Catch" has never satisfied me. I mean, I know what it does, but it doesn't seem to relate to "try". Really, if "try" doesn't succeed, the corresponding block should be "fail". But, then you'd have the confusion of a block named "fail", which isn't ideal. But "find_out" pairs perfectly with "fuck_around" and makes it clear that if you got there it's because something went wrong.
I also like "yeet". Partly it's fun for comedic value. But, it's also good because "throw" feels like a casual game of catch in the park. "Yeet" feels more like it's out of control, if you hit a "throw" your code isn't carefully handing off its state, it's hitting the eject button and hoping for the best. You hope there's an exception handler higher up the stack that will do the right thing, but it also might just bubble all the way up to the top and spit out a nasty exception for the user.
11 0 ReplyAs well as the
yeet
keyword, I'm really friggin' diggin' this. [modernisation required]46 0 Reply#define yeet throw #define let const auto #define mut & #define skibidi exit(1)
The future is now!
25 0 ReplyOh yes, this one too of course!
1 0 Reply
The whole thing was pretty damn good all the way through. The only thing that had me wondering was
Tea
Until it got to
SpillTea
Well played.
28 0 ReplyNGL, that helped me actually understand the original function. It's been over a decade since I've touched anything related to C.
7 0 Replythe suspense!
4 0 ReplyIndeed. I was unfair of me to pick only one favourite, as there are more candidates :)
1 0 Reply
just what you want from code !
8 0 ReplyExactly!
3 0 Reply
Should else be big_yikes? That seems situational to me.
8 0 ReplyIt’s actually a comment on the performance loss incurred from a likely failed branch prediction.
7 0 Reply
Ugh. Just
its_giving rizz ratios vibe;
No more needless nesting plz
32 0 ReplyConsidering
vibe
is probalbyfloat
, I doubt any exceptions can be thrown there, you can eliminate another useless scope.Even if it's not
float
, I'd consider burning alive anyone who overrides an operator like this anyway.6 0 ReplyFloat
? Do you meanfax
? Get with the program, old man4 0 Reply
Honestly, that's about an inch away from Python...
5 0 ReplyIts literally bash
4 0 Reply
And a decade or so ago it was LOLCODE that had me mildly concerned for the wellbeing of my peers.
92 0 ReplyHAI 1.2 CAN HAS STDIO? IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 10 VISIBLE SUM OF VAR AN 1 IM OUTTA YR LOOP KTHXBYE
A perfectly reasonable language. None of this Gen Z rubbish.
Something something better times. Shakes stick at sky.
104 0 ReplyKids today just don't know real code
13 0 Reply
For some reason, this just sparked an ancient memory of the Geek Code, which was a sort of signature block you could append to your emails and online bios to show off how much of a geek you were in the geekiest fashion possible.
Goddamn I'm old.
20 0 ReplyWow, hadn't thought of that thing in ages. Now all we need is for B1FF to bring back ASCII sword signatures.
3 0 ReplyRemember it spawning a bunch of copycats? For a while every community had their own code block. I wrote one for a usenet group i was in at the time.
alt.sysadmin and alt.sysadmin.recovery both had em iirc...
3 0 Reply
41 0 Reply😂
6 0 Reply
That's way better than my emoji based programming language.
26 0 ReplyI’m not so sure. Send a link.
7 0 ReplyHaven't published it yet.
Here are comparisons:
⚖️
🐲
🐲⚖️
⚖️🐲
🚫🐲⚖️
11 0 Reply
Aliasing no_cap and cap to true and false.....
I might have to steal that.....
11 0 ReplyBig "you damn kids and your phones" vibes from this
11 0 ReplyEvery generation is peddled two insane concepts:
When they are young, they are told that they have a weird bizarre vernacular which sounds stupid to everyone else.
Then when they are old, they are told young people have a weird bizarre vernacular which sounds stupid to everyone else.
Then you die.
6 0 ReplyYes, and? Get off my lawn!
3 1 Reply
i hate it so fucking much
14 0 ReplyI fucking love it. Gen Z slang is so lighthearted and fun.
11 0 ReplyIt's because we are depressed nihilists who have given up on pretty much everything, running on gallows homour to a point where we are meming youth slang. Don't worry, we're fine haha... Ha...
4 1 Reply
play_stupid_games { // ... } win_stupid_prizes(thePrize) { // ... }
27 0 ReplyI always thought it was "prizes"
15 0 ReplyIt is.
6 0 ReplyThx and sorry. My spelling skills are bad.
2 0 ReplyHave you seen eggs lately, though?
2 0 Reply
FAFO block passes better
1 0 Reply
Ah, yes. A private method for working on a public field.
19 3 ReplyAh but maybe the vibe is a
lowkey period
we can't be sure5 0 Reply
I'd take that
yeet
instead ofreturn
...26 1 Reply20 0 ReplyThis is a better argument to adopt Rust than memory safety or even sane package management.
14 0 Reply
Just needs a rap about the fun in functions performed by 60-year-old seniors
22 0 ReplyThis was by far the best way to explain current slang.
I got all of it No Tea9 0 Replyratios
I need this and I'm an elder millenial15 0 ReplyRatio is when your comment receives less upvotes than my reply, you get ratioed.
4 1 ReplyI know! (Jumpin' Jehosaphat!, I'm no boomer!) 🤭
3 0 Reply
slowly steps back and returns to basic and z80 assembly
21 0 Reply*Gen Z assembly
22 0 Reply*z18 assembly
1 0 Reply
Good thing I'm sticking with GDScript.
3 0 ReplyToo many capital letters in the gen z version.
11 1 ReplyThat's what we Do.
5 0 Reply
I've seen forms of this joke quite a lot in the last few years, and it never fails to make me laugh.
6 0 Reply(ノಠ益ಠ)ノ彡┻━┻
6 0 ReplyAs if default keywords are the biggest deal-breaker.
1 0 ReplyConflating us again with iPad kids?
14 1 ReplyJust wait till they get Lemmy on their iPads
3 0 Reply
Well. I think I'm officially out of touch with the newest generations slang terms. I only understood about half of that.
8 0 ReplyI 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)
29 0 ReplyYou 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.
26 0 Reply
-
Everyones first language should be brainfuck CMV.
1 0 ReplyShoutout.SpillTea🤣
10 0 Reply@sjmarf And now someone is preparing a PR on C#’s GitHub issues… well done, well done.
4 0 ReplyI don’t get the joke. Is the one on the left actually valid C# code?
3 0 ReplyC# 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!
7 0 ReplyIt looks valid but vibe isn’t declared anywhere so it won’t compile.
5 0 ReplyNo 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.
3 1 Reply
Now I wanna see this in jive
1 0 ReplyWhy does the bool have brackets? I haven't really used c#, seems odd
3 0 ReplyIt's a method definition. C#'s standard formatting puts the left
bracketbrace of the method body on a new line. It's equivalent to:private bool IsSus(){ ... }
12 0 ReplyAhhh, that makes way more sense. Thanks
3 0 Reply
ruby if matz wete brainror
1 0 Reply