• 0 Posts
  • 21 Comments
Joined 1 year 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.








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






  • Ah yes, it’s far right populists that caused this and not the gangs who killed two people in shootings and another in an explosion in Stockholm just two days ago… lmao

    And yeah, these are unintegrated migrants imported from 2015 onwards, who failed to integrate and now run massively violent, warring gangs that are currently responsible for an unprecedented amount of violent deaths in Sweden’s largest cities. Putting our heads in the sand regarding real issues for fear of being racist is what got us here in the first place.

    Look at the data, and act, just as Sweden’s LEFT-WING government is CURRENTLY doing because the situation has now become untenable.



  • But definitely one of the biggest factors that should be considered is how assholeish the community around a particular language is.

    I think all of the factors you’ve mentioned are extremely valid, but this is the one factor that I think should absolutely not count into whether something’s a ‘good’ or ‘bad’ language. If I’m choosing which technologies to use for my next project, the question of whether it has a rude vocal minority in its community is AS FAR DOWN on my list as possible. Right next to whether its name is hip or whether their homepage is engaging.