Ediacarium

joined 1 year ago
[–] Ediacarium@feddit.org 13 points 1 day ago (6 children)

Languages like Java or C++ have Exceptions, which are errors, that are not explicitly mentioned in the function signature. Meaning, you might need to handle an exception you didn't even know existed. And if you don't, your program will just crash when these exceptions occur.

In Rust all errors are explicitly mentioned and part of the return type. Because of this Rust has a lot of ways to quickly handle an error. One of those ways is "Trust me, bro" (or .unwrap()), which converts the combined error/success return type into just a success type, causing the program to crash if it actually was an error, restoring the more unsafe behavior of other languages.

[–] Ediacarium@feddit.org 2 points 5 days ago (1 children)

Doesn't swapping increase the chance of total failure?

You're basically using them equally, which makes it more likely that the surviving hard drive failes while copy the data to the future brand new replacement drive.

(This is obviously assuming, that storing a drive is different to you using the drive and that both drives will fail around the same time)

[–] Ediacarium@feddit.org 7 points 1 week ago

Und wer gar nix wird, wird Betriebswirt.

[–] Ediacarium@feddit.org 38 points 1 week ago

Doesn't look like anything to me

[–] Ediacarium@feddit.org 2 points 2 weeks ago (1 children)

Because I'm not used to entering dates in month/day/year order.

[–] Ediacarium@feddit.org 88 points 2 weeks ago (4 children)

This is disgusting. Who enters dates in month/day/year order?

[–] Ediacarium@feddit.org 20 points 2 weeks ago (3 children)

HAHA, I, TOO, A FELLOW HUMAN, LOVE A REAL HUMAN FRIENDSHIP BETWEEN TWO HUMAN FRIENDS.

[–] Ediacarium@feddit.org 55 points 1 month ago (5 children)

Why were you married to your mom?

[–] Ediacarium@feddit.org 2 points 1 month ago

Or every fabric woven out of that wool slowly turns the wearer mad or into a follower of the patreon.

^But mooom this sweater is sooooo fluffy^

[–] Ediacarium@feddit.org 1 points 1 month ago

Does Coriolis: The third Horizon - Core Rulebook count?

[–] Ediacarium@feddit.org 18 points 1 month ago

Chess pizza

 

Aus gegebenem Anlass

2
submitted 11 months ago* (last edited 11 months ago) by Ediacarium@feddit.org to c/lemmaroo@lemmy.world
view more: next ›