Web Developer by day, and aspiring Swift developer at night.

  • 1 Post
  • 49 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle

  • Back in 2016 (wow, almost a decade now…) I got a job with a group who used Word docs to email instructions on how to update your code with their changes. For example, “In file xyz.php, go to line 123 and replace <code> with <code>.”

    One of my first tasks was getting that group set up with git. But I will never forget that was their best way to version control code… in 2016.



  • dohpaz42@lemmy.worldtolinuxmemes@lemmy.worldThoughts?
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    10 days ago

    I’ve given up on truly being private. Between all of the data leaks, the known back doors, and now this… it’s mostly a lost cause. In fact, I got a letter the other day from a company I’ve never heard of, let alone done business with, stating that my PII was lost to a data breach.

    All in the name of convenience and “national” security I assume. Such a bullshit excuse.

    (Yeah I’m talking to you NSA, and CIA, and FBI, and you, Pervert)











  • dohpaz42@lemmy.worldtoProgrammer Humor@programming.devJSON Query Language
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    1
    ·
    2 months ago

    It’s normal to denormalize data in a relational database. Having a lot of joins can be expensive and non-performant. So it makes sense to use a common structure like JSON for storing the demoralized data. It’s concise, and still human readable and human writable.

    Why should I spin up a NoSQL solution when 99% of my data is relational?





  • dohpaz42@lemmy.worldtoProgrammer Humor@programming.devWhich one???
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    2 months ago

    So, assuming bash is your shell, the ~/.bash_profile is executed for login shells for the user logging in.

    ~/.bashrc is the initialization script for when starting a bash session (for the current user).

    In my experience, the ~/.bashrc will also execute ~/.bash_profile if it exists. So you can use either.



  • I think it’s kind of okay to commit credentials and configuration used for the local dev environment (and ONLY the local one).

    No. Never.

    E.g. when you require some infrastructure like a database inside a container for your app. Not every dev wants to manually set a few dozen configuration entries when they quickly want to checkout and run the app

    In this situation, it would be better to write a simple script that can generate fresh and unique values for the dev.

    Laziness is not an excuse.