this post was submitted on 03 Feb 2024
810 points (97.5% liked)

Programmer Humor

19817 readers
991 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 2 years ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 10 months ago

I’m the same way. I think it’s just a matter of being conditioned to manually save for the majority of my computing life.

[–] [email protected] 3 points 10 months ago (4 children)

Ok here's a question I should have asked like way sooner.

In Ubuntu (and similar distros), is there a hotkey to immediately kill the process? Like CTRL-C but harsher.

[–] Vanshaj 4 points 10 months ago

I use a process manager like btop for this.

[–] [email protected] 4 points 10 months ago (1 children)

My PC has a dedicated key to kill all processes.

[–] [email protected] 2 points 10 months ago

sudo poweroff?

[–] [email protected] 4 points 10 months ago

If you’re using X11, you can use xkill: https://en.m.wikipedia.org/wiki/Xkill

You can bind it to a key in gnome/kde (not sure how they handle custom keybinds. Otherwise add a call to xbindkeys to your .bashrc or equivalent). It kills any window you want, responsive or not.

As for the terminal, I don’t think you can send SIGKILL, but ctrl + \ will result in a core dump if you’re using bash.

[–] GentriFriedRice 1 points 10 months ago

CTRL-C -- SIGINT CTRL-\ -- SIGQUIT CTRL-Z + kill -9 %1 -- SIGTSTP + SIGKILL

[–] alphacyberranger 3 points 10 months ago

The same can be applied for editors as well

[–] [email protected] 2 points 10 months ago

Auto-saving is the insurance against manually saving failing, which is the insurance against the computer or program failing.

It's insurances all the way down, yet I'm still let down when versioning overwrites my changes.

[–] [email protected] 2 points 10 months ago

I just do a full rebuild. Saves all files.

[–] McArthur 2 points 10 months ago* (last edited 10 months ago)

I was never really aware I did this until I had to program something with hot reloading (I don't remember what) and it was so insufferable...

And now my pain is with rustfmt. Just because I saved before filling in the struct fields does not mean I want you to format the struct accordingly!!!

[–] devfuuu 2 points 10 months ago

Intellij being a good guy amd autosaving every few seconds. No more worrying about crtl+s.

[–] [email protected] 1 points 10 months ago

autosave is no good if you have live reload imo

[–] warling 1 points 10 months ago

Except the autosave in BBEdit. I trust that with my life. It’s never lost ANYTHING in 30 years.

[–] [email protected] 1 points 10 months ago

i just store everything in google drive and let chance take over

[–] [email protected] 1 points 10 months ago

Meanwhile, me over here with the self-doubt slamming ctrl-z

[–] [email protected] 1 points 10 months ago

Excuse me i think you mean ctrl+c:w

load more comments
view more: ‹ prev next ›