• 0 Posts
  • 39 Comments
Joined 2 years ago
cake
Cake day: June 30th, 2023

help-circle

  • rdri@lemmy.world
    cake
    toProgrammer Humor@programming.devJavaScript
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    26 days ago

    The interpreter knows that this is not something anyone will ever do on purpose, so it should not silently handle it.

    You basically defied the whole NaN thing. I may even agree that it should always throw an error instead, but… Found a good explanation by someone:

    NaN is the number which results from math operations which make no sense

    And the above example fits that.

    "hello" - 1 makes no sense at all.

    Yeah but actually there can be many interpretations of what someone would mean by that. Increase the bytecode of the last symbol, or search for “1” and wipe it from string. The important thing is that it’s not obvious what a person who wrote that wants really, without additional input.

    Anyway, your original suggestion was about discrepancy between + and - functionality. I only pointed out that it’s natural when dealing with various data types.

    Maybe it is one of the reasons why some languages use . instead of + for strings.









  • Ability to teleport any words I want into the mind of someone who is broadcasting or streaming anything over internet or radio or tv, that I currently watch or listen, as long as the broadcast is going on. For them it would be like hearing me as if I was in the same room. They won’t know anything about me other than realize I’m one of their listeners or viewers. It works only for one person at a time - the streamer/broadcaster or one of them. They can choose to tell other listeners what they heard, or not.










  • rdri@lemmy.world
    cake
    toSelfhosted@lemmy.worldPaid SSL vs Letsencrypt
    link
    fedilink
    English
    arrow-up
    3
    ·
    10 months ago

    It actually seems more like a windows 10 compatibility dilemma for developers. You can support older systems but it would require some effort. The problem is not the absence of some specific certificates, but the absence of newer ciphers altogether.

    This does give security but also removes backwards compatibility with some clients that might be important for some websites.