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

help-circle



  • What’s the purpose of foo? Why an ambiguous single character variable? What if the property was there but the value was null? Why not use (assuming JS) optional chaining?

    I’d approach it more like this:

    function getWhatevrProp(userData) (
      const default = { whatevr: "n/a" };
    
      return { ...default, ...userData }.whatevr;
    }
    

    Sorry, read too fast the first time. It’s more likely Python. I also don’t know Python well enough to give recommendations on that.



  • Usually it doesn’t solve my problems but it gives me a few places to start looking. I know some models are capable of this but to get a perfectly accurate and useful response would probably require it to recall a specific piece of input it was given and not just an “average” of the inputs.














  • Don’t remember the tool, maybe someone here does, but there’s some web service out there that boasts a “no storage” approach. You provide some URI and some other value (maybe username) and it makes a password for you, but it’s always the same for a given combination. Basically it’s a purely functional generator.

    Downside would be forgetting a minor detail (Did it end with a slash or not? What was the username?) or the site going down. You can achieve the same thing yourself with a hash calculator but those passwords are a bitch to type in.

    tl;dr just use KeePass