• 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: October 13th, 2023

help-circle



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




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








  • Yes, but also some of polyamory is that not every relationship has to be “we cohabit and have kids and can deal with every single little quietly annoying thing the other does”. Some relationships are focused on sex. Some are focused on breaking into aquariums together. Some are with people across the country and even though you are close it doesn’t make sense to get together more than once a year. Although polyamorous relationships can look like monogamy*2, part of the point is that more focused, smaller relationships can also be romantic.