• 0 Posts
  • 52 Comments
Joined 1 年前
cake
Cake day: 2024年7月28日

help-circle


  • Ediacarium@feddit.orgtoProgrammer Humor@programming.devFree iphone
    link
    fedilink
    arrow-up
    58
    arrow-down
    1
    ·
    2 个月前

    I worked at a company where everyone would try and send an email to themselves from an unlocked PC. That mail contained a heads up that the victim willl bring cake into the office e.g. next tuesday. They then were typically forwarded to the whole team while thanking them for their generosity.

    It really hammered that lesson home and the victims did honor the cake-mails. Only downside was, that this led to people to tryimg to bait each other into leaving their PCs unlocked and creative countermeasures, such as delaying mails containing the word ‘cake’.








  • 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
    ·
    7 个月前

    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.