Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)AI
Posts
11
Comments
11
Joined
1 yr. ago

Programming @programming.dev

The Innocent Loop

Programming @programming.dev

Lessons from David Lynch: A Software Developer's Perspective

Programming @programming.dev

Runtime Diagnostics: Catching Bugs as They Happen

Programming @programming.dev

Writing Composable SQL using Knex and Pipelines

  • Perhaps I was unclear. What I meant to say is that, whenever possible, we shouldn't have multiple versions of a field, especially when there is no corresponding plaintext password field in the database, as is the case here.

  • I appreciate the security concerns, but I wouldn't consider overriding the password property with the hashed password to be wrong. Raw passwords are typically only needed in three places: user creation, login, and password reset. I'd argue that having both password and hashedPassword properties in the user object may actually lead to confusion, since user objects are normally used in hundreds of places throughout the codebase. I think, when applicable, we should consider balancing security with code maintainability by avoiding redundancy and potential confusion.

  • Programming @programming.dev

    Self-documenting Code

    Programming @programming.dev

    Avoiding if-else Hell: The Functional Style

    Programming @programming.dev

    Firewalling Your Code

    Programming @programming.dev

    Teaching Programming with BASIC

    Programming @programming.dev

    I Don't Trust My Own Code

  • Seriously, why the negative tone? If I've offended you, I'm sorry. You might think that I'm wasting time, but there are multiple ways to skin a cat. I prefer not to use DEB packages for deployment, though others might.

  • Cleanup can be as simple as deleting the latest deployment directory, if the script gets that far. The article is about using built-in Linux tools for 'easy' application deployments. One can also use dedicated tools, as you suggested, to further automate the deployment process.

  • Programming @programming.dev

    Easy Application Deployments with Linux

  • There's certainly the danger of creating too many ad-hoc or sparse relationships, which can cause issues. That said, when used for supplementing foreign keys, Tie-in can be a useful tool in a production system as well.

  • Yes, that's correct. Here's how an entry in the join table looks like:

     json
        
    {
      "id": 6,
      "sourceComp": "user",
      "sourceId": 2,
      "targetComp": "post",
      "targetId": 3,
      "type": "author",
      "createdAt": "2024-03-28T13:28:59.175Z",
      "updatedAt": "2024-03-28T13:28:59.175Z"
    }
    
      
  • AFAIK, no NoSQL database fully supports SQL, and only some offer support for transactions and joins. The idea here is to augment a relational database by adding capabilities for dynamic relationships.

  • Programming @programming.dev

    Beyond Foreign Keys