this post was submitted on 26 Jan 2024
92 points (96.9% liked)

Fediverse

34699 readers
172 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] SorteKanin@feddit.dk 6 points 1 year ago (1 children)

I'm all for competition within the Fediverse (that's a big strength of the Fediverse if you ask me). I just wish we'd move on from Java and other exception-based languages.

[–] shrugal@lemm.ee 4 points 1 year ago (2 children)

What's wrong with exceptions?

[–] asdfasdfasdf@lemmy.world 7 points 1 year ago* (last edited 1 year ago)

Exceptions opt out of the type system. The problem with them is the same problem as null. Here's a video of the creator of null explaining: https://www.infoq.com/presentations/Null-References-The-Billion-Dollar-Mistake-Tony-Hoare/

Null and errors are just values at the end of the day, and should be treated as such. Doing so means your code is far easier to reason about.

Rust takes this approach and is one of the many reasons people love it so much.

[–] SorteKanin@feddit.dk 5 points 1 year ago

What @asdfasdfasdf@lemmy.world said, but also they kind of have the same problem as goto. The control flow becomes very complicated and you can jump from one place in the code to another extremely far away.

Spooky action at a distance, basically.