• 0 Posts
  • 21 Comments
Joined 2 years ago
cake
Cake day: October 13th, 2023

help-circle



  • Ok, so imagine that you’re a billionaire and a really smart dude (as claimed by so many people on the internet). And you get into government and appear on TV and want to look good. You might hire a publicist, a PR team, some speechwriters, hell how about a body language consultant. When you go on TV you’re going to project exactly the image you intend to. Anything less would be careless and stupid, right?

    So yeah. This was a Nazi salute. And if you really want to argue that it wasn’t, that Musk doesn’t even know what a Nazi is, you gotta also accept that he’s grossly incompetent and should not be in government at all. Throw him out, we didn’t vote for him.




  • For a first step you can get away with just add, commit, push, and pull. Maybe reset, but tbh using git like svn at first is fine.

    Next branch, checkout and merge. At this point show, log, bisect and blame also start to be useful.

    I’m not a fan of stash, and would instead recommend reflog and cherry-pick as the first two advanced commands to learn. Then rebase and squash.








  • (very obviously, but people keep covering this like it’s a real thing so…)

    You get 100% or even like, 60% of women in on this, yeah. Things will change real quick. I’d hope for the better.

    If you get like 5-10% of liberal women doing this, which is by far the most that I’d believe, what’s going to happen is the corresponding 5-10% of men get sexually frustrated. Then they’ll go online and get caught up in all the incel->alt-right pipelines that already exist today, and men will swing further right.

    If we want a movement like this to work it needs to 1. Not punish people who are already on our side and 2. Provide a better pipeline than the alt-right already has for channeling sexual frustration into action.

    So cool, interesting idea, I wish it was workable but remember that a majority of women who voted voted for Trump. Even if men didn’t exist he would have won.




  • In addition to the excellent points made by steventhedev and koper:

    user.password = await hashPassword(user.password);

    Just this one line of code alone is wrong.

    1. It’s unclear, but quite likely that the type has changed here. Even in a duck typed language this is hard to manage and often leads to bugs.
    2. Even without a type change, you shouldn’t reuse an object member like this. Dramatically better to have password and hashed_password so that they never get mixed up. If you don’t want the raw password available after this point, zero it out or delete it.
    3. All of these style considerations apply 4x as strongly when it’s a piece of code that’s important to the security of your service, which obviously hashing passwords is.