• 4 Posts
  • 22 Comments
Joined 28 days ago
cake
Cake day: June 2nd, 2024

help-circle
  • For those who don’t know:

    Speaking at a software conference in 2009, Tony Hoare hyperbolically apologized for “inventing” the null reference:[26] [27]

    I call it my billion-dollar mistake. It was the invention of the null reference in 1965. At that time, I was designing the first comprehensive type system for references in an object oriented language (ALGOL W). My goal was to ensure that all use of references should be absolutely safe, with checking performed automatically by the compiler. But I couldn’t resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years.

    https://en.wikipedia.org/wiki/Tony_Hoare





  • Indeed, and that turns out to be a problem if the JavaScript expects the key not to be there, but instead it is there. And then you try to tell the backend dev that the key shouldn’t be there, but he’ll try to convince you that it’s the same whether the key is not there or whether it’s assigned null and then you wonder if he’s messing with you, but actually he isn’t and then the only thing keeping you sane is bitching about it in meme form on lemmy.









  • bleistift2@sopuli.xyztomemes@lemmy.worldShocked face
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    5 days ago

    Yay, a likeminded person!

    For Microsoft I fully understand that they’d rather have a subscription model for Windows. After all you’re getting updates every fortnight and critical patches ASAP. I wonder they let you buy their shit for so long.

    Just in case someone brings it up—and someone will bring it up regardless—: I’m not defending their recent enshittification and “always online” mindset.






  • bleistift2@sopuli.xyztoProgrammer Humor@programming.devJavaScript
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    2
    ·
    6 days ago

    The libraries underneath will still allow nonsense at runtime

    Only if you use a badly written library. Most libraries have types provided by DefinitelyTyped. Those who don’t are (in my experience) so tiny that you probably aren’t using them; or, if you really wanted, can check yourself.

    In the end, if you encounter a bug, it’ still 99% of the time not a library’s fault, even if it’s written in plain JS.







  • bleistift2@sopuli.xyztomemes@lemmy.worldLife Pro Tip!
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    27 days ago

    Don’t you guys have dead keys? On German keyboards there’s a key that does nothing on its own. When you press it twice, you get ‘`’, and when you press that button and ‘e’ you get è.

    Many people confuse this for the apostrophe which brings me into a murderous rage every time I see it.