Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.

  • AceFuzzLord@lemmy.zip
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    16 days ago

    Mine is basic since I’m still a noob programmer, but if you are on an OS with APT or something similar, you should absolutely automate all your commands for updating your software packages by consolidating everything into a single script.

    It’s easy to create a bash script that runs all your needed commands sequentially, so why not? Hell, I take it a step further with my script by aliasing it to 2 letters since I don’t wanna type the full script name or type tab to autocomplete it.

      • Zink@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        16 days ago

        I also like to use an alias to update like the previous comment described. I did it on Mint, and I still do it now on Debian even though it has a graphical update manager too.

        I like it better this way, probably for readability when there are multiple updates, and definitely for the verbose progress indications. I do already use the terminal all the time too.

        My alias does something like apt update, apt upgrade, flatpak update, and then a commented-out firmware manager update.

      • AceFuzzLord@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        16 days ago

        My distro doesn’t have any OOTB tools AFAIK that does this, which is why I “need” my script and alias. That is one advantage of mint, though. Closest I have is KDE discover, but IDK how it fully works for/with updates.