• 0 Posts
  • 33 Comments
Joined 9 months ago
cake
Cake day: September 29th, 2023

help-circle

  • I’ve definitely had it hallucinate a feature sending me on a red herring hunt on several occasions now… Sometimes I wish I’d just used StackOverflow to begin with, but then with StackOverflow I sometimes wish I’d just read the documentation to begin with.

    Alas, it won’t be a hit 100% of the time and will occasionally send you the long way round. Just like StackOverflow. But even despite this property, nobody would tell you to NEVER use StackOverflow because it SOMETIMES takes way too long to find the answer to a question easily glanced from the docs.






  • Qwant is unfortunately owned by Axel Springer, truly one of the worst German companies in existence. They’re the publisher of the most popular (and unfortunately highly politically biased, filled to the brim with dishonest exaggerations and occasionally straight-up lies) German newspaper Bild.

    Whatever comes out of Qwant if it actually becomes popular, you can rest assured it will be nothing good.

    Just use DuckDuckGo and be done with it.





  • Imagine getting hung up on something as trivial as a switch statement. Which is more poignant, I ask you?

    switch(var){
       case 1: 
          <code>;
          break;
       case 2: 
          <code>;
          break;
       case 3: 
          <code>;
          break;
       default:
          <code>
    }
    

    or

    if var == 1:
       <code>
    elif var == 2:
       <code>
    elif var== 3:
       <code>
    else:
        <code>
    

    The performance difference is absolutely negligible, but now you’ve introduced a bunch of unnecessary indentation (for no benefit) that’s gonna get hard to read should you even add a little bit of additional logic, and a footgun with all the break; s.

    And then in JS the syntax for the case-blocks isn’t even consistent with the rest of the language.</code></code></code></code></code></code></code></code>






  • herr@lemmy.worldtoProgrammer Humor@lemmy.ml*Permanently Deleted*
    link
    fedilink
    arrow-up
    10
    arrow-down
    3
    ·
    edit-2
    9 months ago

    Huh? The Python Stacktrace is great. What kinda fucked up library were you using that it prints the error code instead of raising an exception?!

    Also don’t think outdated library docs are a fault of Python 😅 In much the opposite way, I’ve found Python’s standard library to be really great, reducing the number of random third party libraries needed. (Looking at you, JavaScript)




  • The system of integration for migrants failed in Sweden (as it was hardly even existent in the first place). That’s the systemic cause.

    The acute symptom of this currently is gang violence. That said, the symptom is like a cancer that runs itself, the criminal systems underpinning gang violence are now established and you won’t get rid of them by being nice anymore.

    So you have to fight both the symptoms and the causes… Which Sweden is beginning to do. Reinstating and hardening penalties for organized and violent crime to get rid of the acute symptoms, as well as stopping the inflow of non-European migrants to stop the cause.

    The Swedish government didn’t say they’ll never take non-European migrants again, but it’s clear the whole system needs a huge overhaul.