• 52 Posts
  • 1.89K Comments
Joined 2 years ago
cake
Cake day: July 5th, 2023

help-circle

  • I don’t know. Honestly probably nothing. I think the commies rightfully see EU and US capitalist democracies as being one bad election away from fascism and for a good reason. Examining the trajectories of our politoeconomic systems, we have been on that trend for a long time now. We’re not doing anything meaningful to stop it. So from their perspective, they understand that our capitalist systems are unsustainable and they understand the right ideologues are diametrically opposed to socialism around the world and have used military and economic force against it in the 20th century. I’m pretty sure they see this happening again, aimed at them and they would need to be able to protect themselves. Having a gas station or two that are isolated from the rest of the world is a great asset in this scenario. So I think the best we could do is getting Russia to agree to some compromise which would most likely include significant land loss for Ukraine. Unless there’s a military solution that someone is willing and able to fight. Maybe if the US goes full in weapons supply to Ukraine. Don’t know.






  • Why would they stop supporting Russia? China has been under economic attack by the US for three administrations now and the US has been encircling them with military bases. The EU hasn’t helped. From Chinese perspective, their sovereignty is not assured and it’s doubtful that the EU or the US would demonstrate new friendship if they stopped supporting Russia. In that case, throwing one of their main sources of fossil fuels and a giant buffer under the bus doesn’t seem like a good proposition. In a war scenario with the US, the oil shipments from the Gulf are likely to stop one way or another which makes Russian fossil fuels that much more important.






  • Avid Amoeba@lemmy.catoMicroblog Memes@lemmy.worldWelp
    link
    fedilink
    English
    arrow-up
    28
    arrow-down
    1
    ·
    edit-2
    22 hours ago

    Keep telling people about Mastodon. Don’t push them. Just explain that this is a result of BlueSky being VC funded and more will follow just like it did with Twitter, Facebook and so on. Add that Mastodon is open source run by multiple non-profits around the world so if one fails, the rest would pickup the slack. Conclude with - if they want to stop having to uproot their network every so often, Mastodon is their best bet for microblogging.




  • Much more important than the enjoyable culture is the material aspect - how much work each developer has to do. Nice vibes help delay burnout but rarely eliminate it. Or they let it happen with a smile on the face.

    Pay the developers instead, so they can reduce hours worked elsewhere, if you can. Or contribute code, if you can. This isn’t aimed at you personally, but anyone reading. I can’t contribute code but I can pay so I do that.



  • You could absolutely do that and be fucked too. However the point of the pattern I suggested isn’t to replace the return with an assignment. That is, the point isn’t to do the exact same implementation and then do result = something before returning it. Instead it’s to use the initialized result var to directly store your result throughout the function, at every place where you manipulate it. So in this case my suggestion is to not have psize at all. Instead start with int result = -1; and return result; and do all the things you do to psize except on result. Then there’s a higher chance you will return the right value. Not a guarantee.


  • Scary indeed.

    This one could be helped by always using this pattern whenever you write a function that returns a value, in any language, along with no early returns:

    int func(...) {
        int result = -1;
        ...
        return result;
    }
    

    I always start with writing my result default value, ideally indicating failure, and the return line. Then I implement the rest. We often don’t have the luxury of choosing the language we work with that has the features we like, but consistently enforced code style can help with a lot of problems. Anyone can make mistakes like the one in this bug regardless of experience so every little bit helps.