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

help-circle
  • 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.







  • It didn’t, I just wanted a short reply. Though it failed when I asked again in the same chat. But when asked to split the word to 2 parts it became sure that the correct answer is 3.

    Here is the fun part

    Certainly! Let’s split “strawberry” into two equal parts and count the 'r’s in each:

    1. First half: “strawb”
      Letters: S, T, R, A, W, B
      'r’s: 1 (at position 3)

    2. Second half: “erry”
      Letters: E, R, R, Y
      'r’s: 2 (at positions 2 and 3)

    Now, summing them: 1 (first half) + 2 (second half) = 3 'r’s.

    Wait, this contradicts my earlier correction. It seems I made another mistake. Let’s carefully recount:

    • First half: “strawb”
      'r’s: 1 (at position 3)

    • Second half: “erry”
      'r’s: 1 (only one ‘r’ at position 2; the third letter is ‘r’ but already counted in the first half).

    Wait, no—this is getting confusing. Let’s re-examine the entire word:

    Full word: S, T, R, A, W, B, E, R, R, Y
    'r’s: Positions 3, 8, and 9 → 3 'r’s.

    I apologize for the back-and-forth. The correct total is 3 'r’s in “strawberry.” Thank you for your patience as I worked through this! 😊




  • Gaza population was steadily increasing for all these years. This doesn’t bode well with the “prison” sentiment in my opinion. They had institutions. They could teach their own population. Their actions could be more logical. Instead it seems they’ve been spreading terrorist propaganda (literally pushing their children to become merciless terrorists) and spending resources on building offensive tech instead of defenses. I can not justify actions of Israel (though I can understand why the ground operation was started) but there is no way I can agree that actions of hamas had any logical ground.


  • I didn’t mean to say anything that Israel did was okay. But a lot of it is understandable, e.g. the ground operation was very well expected by everyone when it became clear the hostages are not getting released. No matter how you look at it, Gaza was not ready.

    And if we consider the October attack itself, only some of it is understandable (“they couldn’t bear with oppression any longer” sentiment, which itself is problematic at best).




  • 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.




  • rdri@lemmy.worldtoMemes@lemmy.mlInvasive Species
    link
    fedilink
    arrow-up
    6
    ·
    10 months ago

    Basically, a corporation owning such an open source project removes almost all positive things associated with “open source”. They’re using it for “look we are good” much more than for “we actually care about open source community”.





OSZAR »