this post was submitted on 25 Oct 2026
160 points (93.5% liked)

Programmer Humor

33769 readers
2463 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] AceFuzzLord@lemmy.zip 4 points 7 hours ago (2 children)

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.

[–] Appoxo@lemmy.dbzer0.com 1 points 3 hours ago

Meh. Instead I set up patchmon and manage it from a pretty GUI on my browser

[–] eatham@aussie.zone 3 points 7 hours ago (4 children)

I just use Linux mint which does all this for me out of the box

[–] MalReynolds@piefed.social 1 points 4 hours ago

Sure, but theirs grows with them. Add backups, bare git check in, etc., etc..

[–] decolo@piefed.social 1 points 5 hours ago (1 children)

CachyOS and MX Linux both do this out of the box too

[–] MarauderIIC@lemmy.zip 2 points 3 hours ago (1 children)

Just moved to Cachy. Searched for a way to do unmanned updates once a week. It's not something that CachyOS just supports apparently?

[–] decolo@piefed.social 1 points 2 hours ago* (last edited 1 hour ago)

from this thread, its definitely available but due to concerns about Arch's rolling updates potentially bricking something, they don't make it visible in the GUI front and center.

systemctl --user edit --full arch-update.timer

and modify the OnUnitActiveSec value to your liking.

For instance, if you want Arch-Update to check for new updates every 10 minutes instead:

[Timer]
OnStartupSec=15
OnUnitActiveSec=10m

Time units are s for seconds, m for minutes, h for hours, d for days…

...... whoops I misread. here's something that actually applies updates, probably: https://github.com/LoonixTools/cachy-auto-update

[–] AceFuzzLord@lemmy.zip 1 points 5 hours ago (1 children)

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.

[–] moonshadow@sh.itjust.works 1 points 4 hours ago

It's pretty much just a GUI for apt+flathub, way cooler that you wrote your own script though :)

[–] Zink@programming.dev 1 points 6 hours 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.