I don't believe Auto Save feature in any software

3 years ago by sag to c/programmer_humor

crony 76 points 3 years ago

:w

:w

:w

:w

:w

i

esc

:w

:w

:w

:w

Average day in (neo)vim

path: 0 7231541, hotness: undefined, score: 76, children: 17
fylkenny 19 points 3 years ago

You can use :wq only once

path: 0 7231541 7232194, hotness: undefined, score: 19, children: 7
victorz 15 points 3 years ago

So choose wisely. All other editor instances must remain open forever.

path: 0 7231541 7232194 7232590, hotness: undefined, score: 15, children: 0
calzone_gigante 9 points 3 years ago

I use quake style terminals, and often start writing a file and completely forget about it and turn off the computer, and only remember what i left behind when i find the random recovery files around, so :w a lot is quite useful for me.

path: 0 7231541 7232194 7233747, hotness: undefined, score: 9, children: 3
kender242 5 points 3 years ago

Quake? The FPS? I'm confused, though I knew a little about Linux

path: 0 7231541 7232194 7233747 7238898, hotness: undefined, score: 5, children: 2
calzone_gigante 9 points 3 years ago

Yes, on classic fps you could spaw a console that will drop down from the top os the screen, some terminal emulators allow you to do that.

I like it because then i have the terminal always open that i just draw from the top of the screen with a keypress

On KDE i do that with Yakuake, and on gnome with tilix

path: 0 7231541 7232194 7233747 7238898 7248309, hotness: undefined, score: 9, children: 1
dukatos 3 points 3 years ago

:x

path: 0 7231541 7232194 7233384, hotness: undefined, score: 3, children: 0
Vash63 2 points 3 years ago

*per open file

path: 0 7231541 7232194 7232977, hotness: undefined, score: 2, children: 0
Commiunism 4 points 3 years ago

:w before ZZ just to make sure

path: 0 7231541 7235207, hotness: undefined, score: 4, children: 0
Anticorp 2 points 3 years ago

Make all changes

:wq!

Force that bitch!

path: 0 7231541 7239893, hotness: undefined, score: 2, children: 0
SorryQuick 2 points 3 years ago

Is there any reason to use :w other than it being the default? I have mine mapped to CTRL-S and it makes sure to keep me in insert mode if I was in insert mode. Feels way faster and easier to spam than the 4 key presses it takes to execute “:w”.

path: 0 7231541 7247652, hotness: undefined, score: 2, children: 1
crony 3 points 3 years ago

I'm just used to it and I'm keeping ny time in instert mode at minimum.

path: 0 7231541 7247652 7250804, hotness: undefined, score: 3, children: 0
marswarrior 1 point 3 years ago
path: 0 7231541 7397664, hotness: undefined, score: 1, children: 1
crony 2 points 3 years ago

Requires me to use my pibky for ctrl. I have esc remaped to caps so its faster for ke to just do :w

path: 0 7231541 7397664 7435605, hotness: undefined, score: 2, children: 0
marswarrior 1 point 3 years ago


This will allow you to ctrl+s to save. I tried to add this in a backtick code line/block but it removes part of the syntax.

path: 0 7231541 7397715, hotness: undefined, score: 1, children: 1
crony 2 points 3 years ago

Sorry but I'm already used to :w stoo much and a lot faster with it than ctrl+s

path: 0 7231541 7397715 7435630, hotness: undefined, score: 2, children: 0
pkill -2 points 3 years ago

not mapping semicolon to colon

lel

path: 0 7231541 7234392, hotness: undefined, score: -2, children: 0
CookieOfFortune 39 points 3 years ago

Some of us have PTSD from losing work back in the day. Now it’s just habit.

path: 0 7232211, hotness: undefined, score: 39, children: 3
WhatAmLemmy 4 points 3 years ago

It'd be great if there were side kind of feedback, like the cursor quickly flashing a "C" or something... anything to let you know the operation occurred; better yet, was successful.

path: 0 7232211 7234438, hotness: undefined, score: 4, children: 2
DrDeadCrash 4 points 3 years ago

Check for an asterisk after the file name (in the tab/title bar), it means "unsaved changes".

path: 0 7232211 7234438 7235199, hotness: undefined, score: 4, children: 0
kbotc 4 points 3 years ago

I actually disagree from a systems engineer perspective: The program doesn’t actually know shit if those bits hit any permanent medium, just that the OS told them “I’ll take care of it” it could be sitting in a write back cache when you save, see the “write complete” and rip the power and that’s all gone now. Basically, I don’t like promising durability when it’s not really there.

path: 0 7232211 7234438 7244216, hotness: undefined, score: 4, children: 0
ornery_chemist 31 points 3 years ago
  :wa! 
path: 0 7237586, hotness: undefined, score: 31, children: 2
Stupidmanager 2 points 3 years ago

The old school programmer right here! All we’re missing is someone typing git commit -am “updates and stuff”

path: 0 7237586 7264200, hotness: undefined, score: 2, children: 0
intensely_human 1 point 3 years ago

Basically a Jackie Chan fight scene, complete with somebody rolling a carriage at him and him kicking it back to pin them against the wall

path: 0 7237586 7407540, hotness: undefined, score: 1, children: 0
dependencyinjection 21 points 3 years ago

When you do this using Word online it be like “chill dude we autosave here, we got you” and I’m like “brother I do not trust you”.

path: 0 7234841, hotness: undefined, score: 21, children: 1
Anticorp 7 points 3 years ago

You are wise beyond your years.

path: 0 7234841 7239875, hotness: undefined, score: 7, children: 0
QuazarOmega 21 points 3 years ago

We can optimize this further:

unsatisfied = true
while(unsatisfied) {
    key.dispatch(
        Keyboard::Ctrl,
        Keyboard::s
    )
}

..No, there is no instance where unsatisfied changes state

path: 0 7232272, hotness: undefined, score: 21, children: 4
backhdlp 4 points 3 years ago

You should just be able to while(true)

path: 0 7232272 7233227, hotness: undefined, score: 4, children: 3
Octopus1348 9 points 3 years ago

It's a joke.

path: 0 7232272 7233227 7233634, hotness: undefined, score: 9, children: 1
Tja 3 points 3 years ago

That sounds like an excuse.

path: 0 7232272 7233227 7233634 7241766, hotness: undefined, score: 3, children: 0
halfway_neko 4 points 3 years ago

Don't worry, most modern brains have a builtin jit compiler, so when a habit starts to form, the check will be optimised out. (It saves excess neurons from being generated.)

path: 0 7232272 7233227 7252393, hotness: undefined, score: 4, children: 0
DirkMcCallahan 16 points 3 years ago

It's because the first time doesn't always work. I swear, sometimes it doesn't!

path: 0 7231966, hotness: undefined, score: 16, children: 3
Vlyn 10 points 3 years ago

Ctrl + C literally doesn't work at times, it drives me crazy. It might be due to some shitty applications and websites overriding it or adding complexity (Like copying not only the text but additional information).

I'm often 100% sure I copied the text, change the window and an old clipboard entry gets pasted.

path: 0 7231966 7237793, hotness: undefined, score: 10, children: 2
blanketswithsmallpox 8 points 3 years ago

God I hate this so much. It's especially frustrating on mobile where it takes like thirty seconds to try to get the right part of the text copied and use the fucking magnified blue dots... Ugh.

path: 0 7231966 7237793 7238501, hotness: undefined, score: 8, children: 1
Vlyn 4 points 3 years ago

Mobile is an entirely different beast. Like sometimes my keyboard doesn't show up. Or the text select refuses to work. And so on. It's a mess. Even on a Galaxy S22.

No clue how people can exist without a proper computer at home and still do stuff online.

path: 0 7231966 7237793 7238501 7238899, hotness: undefined, score: 4, children: 0
MrScottyTay 13 points 3 years ago

CTRL + Shift + S is the real GOAT

path: 0 7233695, hotness: undefined, score: 13, children: 4
EatATaco 0 points 3 years ago

Why?

path: 0 7233695 7235343, hotness: undefined, score: 0, children: 3
MrScottyTay 9 points 3 years ago

It saves all files that are changed rather than just the current one you have open.

path: 0 7233695 7235343 7235602, hotness: undefined, score: 9, children: 2
EatATaco 4 points 3 years ago

TIL thanks!

path: 0 7233695 7235343 7235602 7235700, hotness: undefined, score: 4, children: 0
force 3 points 3 years ago

fuck i needed this

path: 0 7233695 7235343 7235602 7244667, hotness: undefined, score: 3, children: 0
dipshit 12 points 3 years ago

:w!

path: 0 7237255, hotness: undefined, score: 12, children: 4
sik0fewl 30 points 3 years ago

Esc Esc Esc :w!

path: 0 7237255 7237522, hotness: undefined, score: 30, children: 2
dipshit 7 points 3 years ago

Most accurate

path: 0 7237255 7237522 7240010, hotness: undefined, score: 7, children: 0
creation7758 2 points 3 years ago

Caps caps caps :w! Is the way

path: 0 7237255 7237522 7254210, hotness: undefined, score: 2, children: 0
wewbull 9 points 3 years ago

C-x C-s wtf!

path: 0 7237255 7240731, hotness: undefined, score: 9, children: 0
0x0 10 points 3 years ago

Ctrl+s means "stop the presses" to VT100 terminal emulators and you have to press ctrl+q to resume. Key combinations from a different era.

path: 0 7235899, hotness: undefined, score: 10, children: 0
Holzkohlen 10 points 3 years ago

I just can't stand Kate showing me a little orange bar meaning I have not saved the changes yet. The bar must be green! I am a slave to the green bar. The white dot in vscode (I use an open source build) is a bit more tolerable, but whenever I notice it I HAVE to save the file.

path: 0 7253198, hotness: undefined, score: 10, children: 2
MonkeMischief 3 points 3 years ago

Kate

Ah! Another fellow coder of culture!

It's such a good text editor.

path: 0 7253198 7259269, hotness: undefined, score: 3, children: 1
jaemo 2 points 3 years ago

Love me some Kate.

path: 0 7253198 7259269 7259548, hotness: undefined, score: 2, children: 0
victorz 10 points 3 years ago

I really should turn on auto save when vscode loses focus.

path: 0 7232605, hotness: undefined, score: 10, children: 0
summerof69 10 points 3 years ago

I've never had to think about that with Intellij IDEA. It just works!

path: 0 7237373, hotness: undefined, score: 10, children: 1
lud 3 points 3 years ago

I still click Ctrl S occasionally when using pycharm. It's the law.

path: 0 7237373 7247139, hotness: undefined, score: 3, children: 0
palarith 9 points 3 years ago

sync

sync

sync

path: 0 7232177, hotness: undefined, score: 9, children: 2
victorz 7 points 3 years ago

lol, me when I transfer shit to my USB thumb drive.

path: 0 7232177 7232597, hotness: undefined, score: 7, children: 0
gazby 4 points 3 years ago

sync

⬆️↩️

⬆️↩️

😂

path: 0 7232177 7233374, hotness: undefined, score: 4, children: 0
pythonoob 9 points 3 years ago

Dude I save almost every time I type anything. It's muscle memory at this point.

path: 0 7259973, hotness: undefined, score: 9, children: 0
fu 8 points 3 years ago

you CTRL+C CTRL+C CTRL+C CTRL+C CTRL+C

I CTRL+X CTRL+V we are not the same.

path: 0 7233094, hotness: undefined, score: 8, children: 0
JoYo 8 points 3 years ago

MFRs are saving each keystroke they have access to.

path: 0 7231637, hotness: undefined, score: 8, children: 1
UNWILLING_PARTICIPANT 4 points 3 years ago

Hell sometimes I'll save just after having thought about writing something

path: 0 7231637 7232477, hotness: undefined, score: 4, children: 0
Johanno 8 points 3 years ago

This is me in eclipse.

Because I used to do the single save and it failed

path: 0 7231377, hotness: undefined, score: 8, children: 2
normalexit 6 points 3 years ago

Oh, eclipse. I'm still happy I don't have to save in intellij .

path: 0 7231377 7235311, hotness: undefined, score: 6, children: 1
Johanno 3 points 3 years ago

I tried intellij years ago and never left it.

path: 0 7231377 7235311 7235882, hotness: undefined, score: 3, children: 0
ILikeBoobies 8 points 3 years ago

Cost/benefit

Manually saving will save a lot more time than it not saving

path: 0 7259451, hotness: undefined, score: 8, children: 0
AnUnusualRelic 7 points 3 years ago

sync ; sync ; sync ; shutdown -h now

path: 0 7234888, hotness: undefined, score: 7, children: 0
Underwaterbob 7 points 3 years ago

I trust auto save in... Souls games.

path: 0 7238825, hotness: undefined, score: 7, children: 0
UNWILLING_PARTICIPANT 6 points 3 years ago

Meanwhile I, a gentleman

nmap <CR> :w<CR>

Binding the Enter key to save the current buffer. 🧐

path: 0 7232436, hotness: undefined, score: 6, children: 0
Adanisi 6 points 3 years ago
path: 0 7235685, hotness: undefined, score: 6, children: 1
Tja 3 points 3 years ago

I hate editors that cut the current line if you do C-x with nothing selected. Always do C-x C-s, even in VSCode and KDevelop.

path: 0 7235685 7241739, hotness: undefined, score: 3, children: 0
hemko 6 points 3 years ago

Closing tabs and one of them asks if you want to save changes

path: 0 7233364, hotness: undefined, score: 6, children: 0
Korne127 6 points 3 years ago

Using JetBrains product, I never explicitly save while programming 😅

path: 0 7236750, hotness: undefined, score: 6, children: 0
Eonandahalf 5 points 3 years ago

But then, if you’re forced to develop on microsoft 🤬, it’s late, you’re tired, you’re hand slides just a little to the right (win + d), aaaaand everything is gone, and you’re sitting there looking at you’re background wondering what the hell just happened 🙃.

path: 0 7234385, hotness: undefined, score: 5, children: 2
whostosay 6 points 3 years ago

Dude, win + d fucks, and it fucks hard. Just press it again if you can't handle

path: 0 7234385 7234549, hotness: undefined, score: 6, children: 1
Eonandahalf 1 point 3 years ago

Yeah but at 4am in the morning, it tends to take me a couple of seconds to realise what the hell just happened . It gets me every time.

path: 0 7234385 7234549 7234733, hotness: undefined, score: 1, children: 0
AeonFelis 5 points 3 years ago
:for _ in range(32) | w | endfor
path: 0 7259521, hotness: undefined, score: 5, children: 0
M500 4 points 3 years 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.

path: 0 7231615, hotness: undefined, score: 4, children: 0
explodicle 3 points 3 years ago

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.

path: 0 7237334, hotness: undefined, score: 3, children: 5
SorryQuick 4 points 3 years 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.

path: 0 7237334 7247839, hotness: undefined, score: 4, children: 0
Black616Angel 4 points 3 years ago

My PC has a dedicated key to kill all processes.

path: 0 7237334 7237678, hotness: undefined, score: 4, children: 1
kionite231 2 points 3 years ago

sudo poweroff?

path: 0 7237334 7237678 7248464, hotness: undefined, score: 2, children: 0
Vanshaj 4 points 3 years ago

I use a process manager like btop for this.

path: 0 7237334 7237452, hotness: undefined, score: 4, children: 0
GentriFriedRice 1 point 3 years ago

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

path: 0 7237334 7238055, hotness: undefined, score: 1, children: 0
alphacyberranger 3 points 3 years ago

The same can be applied for editors as well

path: 0 7232369, hotness: undefined, score: 3, children: 0
Lmaydev 2 points 3 years ago

I just do a full rebuild. Saves all files.

path: 0 7237404, hotness: undefined, score: 2, children: 0
McArthur 2 points 3 years 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!!!

path: 0 7248136, hotness: undefined, score: 2, children: 0
devfuuu 2 points 3 years ago

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

path: 0 7258643, hotness: undefined, score: 2, children: 0
po_tay_toes 2 points 3 years 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.

path: 0 7232664, hotness: undefined, score: 2, children: 0
cupcakezealot 1 point 3 years ago

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

path: 0 7237641, hotness: undefined, score: 1, children: 0
AVeryCleverName 1 point 3 years ago

Excuse me i think you mean ctrl+c:w

path: 0 7235373, hotness: undefined, score: 1, children: 0
warling 1 point 3 years ago

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

path: 0 7235814, hotness: undefined, score: 1, children: 0
pkill 1 point 3 years ago

autosave is no good if you have live reload imo

path: 0 7234380, hotness: undefined, score: 1, children: 0
resin85 1 point 3 years ago

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

path: 0 7265075, hotness: undefined, score: 1, children: 0
darklamer 0 points 3 years ago
path: 0 7237634, hotness: undefined, score: 0, children: 3
Beanie 5 points 3 years ago

Actually vim has swap files which it saves to when you make any edit, whether you save the change or not, meaning you shouldn't lose any work even if you kill -9 vim on unsaved work.

path: 0 7237634 7238443, hotness: undefined, score: 5, children: 2
darklamer 1 point 3 years ago
path: 0 7237634 7238443 7241014, hotness: undefined, score: 1, children: 1
Beanie 2 points 3 years ago

Oh I get you. No idea tbh.

path: 0 7237634 7238443 7241014 7262434, hotness: undefined, score: 2, children: 0
const_void -3 points 3 years ago

Ctrl-S? Are you writing code on Windows? 🤮

path: 0 7237274, hotness: undefined, score: -3, children: 3
knexcar 14 points 3 years ago

First of all, it’s fine to write code on Windows. In fact, many companies have windows-only development workflows.

Second of all, many Linux programs also use standard shortcuts like Ctrl+S. Linux is more than Vim.

path: 0 7237274 7237525, hotness: undefined, score: 14, children: 1
wewbull 7 points 3 years ago

Yeah! It's also Emacs

path: 0 7237274 7237525 7240793, hotness: undefined, score: 7, children: 0
Vlyn 6 points 3 years ago

There's no Visual Studio for Linux, so yeah.. especially as a .NET dev.

Visual Studio Code isn't the same.

path: 0 7237274 7237733, hotness: undefined, score: 6, children: 0
BorgDrone -8 points 3 years ago

Tell me you use Windows without telling me you use Windows.

Meanwhile I just reboot my Mac without bothering to save anything and everything just restores as it was, even new documents that were never saved. It works so well I don’t even think about it anymore.

path: 0 7238913, hotness: undefined, score: -8, children: 3
Anticorp 9 points 3 years ago

You're pretty brave! That doesn't always work.

Source: have used a MacBook Pro for work for 7 years now.

path: 0 7238913 7239848, hotness: undefined, score: 9, children: 0
firelizzard 7 points 3 years ago

Maybe these days. That definitely was not true when I was growing up, or even a decade ago.

path: 0 7238913 7240974, hotness: undefined, score: 7, children: 0
Grass 6 points 3 years ago

You must have been born before they were beige that eventually turned yellow and brown.

path: 0 7238913 7243288, hotness: undefined, score: 6, children: 0
programmer_humor
programmer_humor

@programming.dev

login for more options
32862
2487
7731

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

go to feed...