fuck_around/find_out - sh.itjust.works

Lemmy

slowly steps back and returns to basic and z80 assembly
Looks even better than PyGyat
PyGyat - Python with rizz

A Python preprocessor that translates Python into brainrot

Just wait till they get Lemmy on their iPads
And a decade or so ago it was LOLCODE that had me mildly concerned for the wellbeing of my peers.
LOLCODE - Wikipedia

HAI 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.

Kids today just don’t know real code

My 21 year old is pretty into rust and html. Does that count?

I’m pretty ignorant on most of it. In my youth, I just dabbled trying to lean basic on a c64 and AMOS on the Amiga though, so maybe not lol

Hell, kids today don’t even number their lines anymore. What’s wrong with the world?

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.

Geek Code - Wikipedia

Remember 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…

Wow, hadn’t thought of that thing in ages. Now all we need is for B1FF to bring back ASCII sword signatures.
I’d take that yeet instead of return
yeet_expr - The Rust Unstable Book

This is a better argument to adopt Rust than memory safety or even sane package management.

For programmers who need action (cross-generational):

lhartikk.github.io/ArnoldC/

ArnoldC

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
play_stupid_games { // ... } win_stupid_prizes(thePrize) { // ... }
I always thought it was “prizes”
It is.

No, this is what they win:

Have you seen eggs lately, though?
Thx and sorry. My spelling skills are bad.
FAFO block passes better
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!
Oh yes, this one too of course!
just what you want from code !

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.

Indeed. I was unfair of me to pick only one favourite, as there are more candidates :)
NGL, that helped me actually understand the original function. It’s been over a decade since I’ve touched anything related to C.

Yeah, 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.

I visualized “try” as watching a young child climb something that might be out of their comfort zone, so you’re letting them, but stay ready to “catch” them if something goes wrong. I suppose “throw” would be if they soiled themselves in their fall, you can throw them back into the arms of their loving parent for cleaning.

But fuck_around, find_out and yeet would be fantastic.

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 know! (Jumpin’ Jehosaphat!, I’m no boomer!) 🤭
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 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.
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!

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.

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.
.net can run on Linux now

I started my career in Java and transitioned to c# a few years in and c# is much better imo, especially now that .Net can be run in Linux.

I run a team for a large project (13 deployable components apis/ Windows services/ desktop applications/ websites/mobile) that has mix of vb.net/c# .net framework 4.8 and .net 6 soon to be 8 with angular for Web and wpf for desktop. Slowly but surely working to kill off our legacy code and consolidate.

Some of the older vb code (that existed long before I joined the project let alone became the lead dev) is so bad that a bug fix for nhibernate that stopped silently failing and began throwing exceptions breaks everything if we try to update to a later version. it’s such a tangled mess and I’m probably the only one on my team that could unfuck it(but I didn’t have the time to do it) it’s not even worth fixing even though our version of nhibernate has a CVE with rating of 9/10 (we don’t actually use anything that is affected from the finding thankfully) and are just biding our time till we kill off the offending apps.