• 1 Post
  • 29 Comments
Joined 1 year ago
cake
Cake day: July 28th, 2024

help-circle

  • 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.orgtoMicroblog Memes@lemmy.worldold internet
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    2 months ago

    This might be the depressing answer, but: nothing.

    Most people want a fun (=addictive), nice looking, free (=no cost to them), easy to use web.

    And the current internet will always outperform the old one. Ads generate revenue and allow companies to fund development costs, hosting costs and optimize their page for search engines better than individuals.

    You, personally, can use platforms that mimick the old web, just like you’re doing right now.
    But if this is what most people wanted and cared about, Reddit and Twitter would long be dead and the Fediverse big and thriving.