Some of us have PTSD from losing work back in the day. Now it’s just habit.
I don't believe Auto Save feature in any software
Submitted 9 months ago by sag@lemm.ee to programmer_humor@programming.dev
https://lemm.ee/pictrs/image/bdfa0229-a4b8-4840-b1bb-e192b8bba9ba.jpeg
Comments
CookieOfFortune@lemmy.world 9 months ago
WhatAmLemmy@lemmy.world 9 months 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.
kbotc@lemmy.world 9 months 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.
DrDeadCrash@programming.dev 9 months ago
Check for an asterisk after the file name (in the tab/title bar), it means “unsaved changes”.
ornery_chemist@mander.xyz 9 months ago
<esc> <esc> <esc> <esc> <esc> <esc> :wa!
Stupidmanager@lemmy.world 9 months ago
The old school programmer right here! All we’re missing is someone typing git commit -am “updates and stuff”
intensely_human@lemm.ee 8 months 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
dependencyinjection@discuss.tchncs.de 9 months 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”.
Anticorp@lemmy.world 9 months ago
You are wise beyond your years.
QuazarOmega@lemy.lol 9 months ago
We can optimize this further:
unsatisfied = true while(unsatisfied) { key.dispatch( Keyboard::Ctrl, Keyboard::s ) }
…No, there is no instance where
unsatisfied
changes statebackhdlp@iusearchlinux.fyi 9 months ago
You should just be able to
while(true)
halfway_neko@lemmy.dbzer0.com 9 months 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.)
DirkMcCallahan@lemmy.world 9 months ago
It’s because the first time doesn’t always work. I swear, sometimes it doesn’t!
Vlyn@lemmy.zip 9 months 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.
blanketswithsmallpox@lemmy.world 9 months 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.
MrScottyTay@sh.itjust.works 9 months ago
CTRL + Shift + S is the real GOAT
EatATaco@lemm.ee 9 months ago
Why?
MrScottyTay@sh.itjust.works 9 months ago
It saves all files that are changed rather, than just the current ones you have open.
summerof69@lemm.ee 9 months ago
I’ve never had to think about that with Intellij IDEA. It just works!
lud@lemm.ee 9 months ago
I still click Ctrl S occasionally when using pycharm. It’s the law.
dipshit@lemmy.world 9 months ago
:w!
sik0fewl@kbin.social 9 months ago
Esc Esc Esc :w!
dipshit@lemmy.world 9 months ago
Most accurate
creation7758@lemmy.ml 9 months ago
Caps caps caps :w! Is the way
wewbull@feddit.uk 9 months ago
C-x C-s wtf!
Holzkohlen@feddit.de 9 months 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.
MonkeMischief@lemmy.today 9 months ago
Kate
Ah! Another fellow coder of culture!
It’s such a good text editor.
jaemo@sh.itjust.works 9 months ago
Love me some Kate.
0x0@lemmy.dbzer0.com 9 months 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.
victorz@lemmy.world 9 months ago
I really should turn on auto save when vscode loses focus.
pythonoob@programming.dev 9 months ago
Dude I save almost every time I type anything. It’s muscle memory at this point.
palarith@aussie.zone 9 months ago
sync sync sync
victorz@lemmy.world 9 months ago
lol, me when I transfer shit to my USB thumb drive.
gazby@lemmy.dbzer0.com 9 months ago
sync
⬆️↩️
⬆️↩️
😂
ILikeBoobies@lemmy.ca 9 months ago
Cost/benefit
Manually saving will save a lot more time than it not saving
Korne127@lemmy.world 9 months ago
Using JetBrains product, I never explicitly save while programming 😅
AnUnusualRelic@lemmy.world 9 months ago
sync ; sync ; sync ; shutdown -h now
fu@libranet.de 9 months ago
you CTRL+C CTRL+C CTRL+C CTRL+C CTRL+C
I CTRL+X CTRL+V we are not the same.
JoYo@lemmy.ml 9 months ago
MFRs are saving each keystroke the have access to.
UNWILLING_PARTICIPANT@sh.itjust.works 9 months ago
Hell sometimes I’ll save just after having thought about writing something
Johanno@feddit.de 9 months ago
This is me in eclipse.
Because I used to do the single save and it failed
normalexit@lemmy.world 9 months ago
Oh, eclipse. I’m still happy I don’t have to save in intellij .
Johanno@feddit.de 9 months ago
I tried intellij years ago and never left it.
Underwaterbob@lemm.ee 9 months ago
I trust auto save in… Souls games.
const_void@lemmy.ml 9 months ago
Ctrl-S? Are you writing code on Windows? 🤮
knexcar@lemmy.world 9 months 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.
wewbull@feddit.uk 9 months ago
Yeah! It’s also Emacs
Vlyn@lemmy.zip 9 months ago
There’s no Visual Studio for Linux, so yeah… especially as a .NET dev.
Visual Studio Code isn’t the same.
Adanisi@lemmy.zip 9 months ago
Cx-Cs
Tja@programming.dev 9 months 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.
UNWILLING_PARTICIPANT@sh.itjust.works 9 months ago
Meanwhile I, a gentleman
nmap :w
Binding the Enter key to save the current buffer. 🧐
Eonandahalf@lemmy.world 9 months 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 🙃.
whostosay@lemmy.world 9 months ago
Dude, win + d fucks, and it fucks hard. Just press it again if you can’t handle
Eonandahalf@lemmy.world 9 months 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.
hemko@lemmy.dbzer0.com 9 months ago
Closing tabs and one of them asks if you want to save changes
AeonFelis@lemmy.world 9 months ago
:for _ in range(32) | w | endfor
BorgDrone@lemmy.one 9 months 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.
Anticorp@lemmy.world 9 months ago
You’re pretty brave! That doesn’t always work.
Source: have used a MacBook Pro for work for 7 years now.
firelizzard@programming.dev 9 months ago
Maybe these days. That definitely was not true when I was growing up, or even a decade ago.
Grass@sh.itjust.works 9 months ago
You must have been born before they were beige that eventually turned yellow and brown.
darklamer@lemmy.dbzer0.com 9 months ago
Why would you ever use an editor that could lose your work unless you save? Vim users will never understand that.
Beanie@programming.dev 9 months 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.
darklamer@lemmy.dbzer0.com 9 months ago
Yes, exactly. Why would anyone ever use an editor that doesn’t work like that, where unsaved work could disappear? I can’t understand that.
M500@lemmy.ml 9 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.
crony@lemmy.cronyakatsuki.xyz 9 months ago
:w :w :w :w :w i esc :w :w :w :w
Average day in (neo)vim
fylkenny@feddit.de 9 months ago
You can use :wq only once
victorz@lemmy.world 9 months ago
So choose wisely. All other editor instances must remain open forever.
calzone_gigante@lemmy.eco.br 9 months 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.
dukatos@lemm.ee 9 months ago
:x
Vash63@lemmy.world 9 months ago
*per open file
Commiunism@lemmy.wtf 9 months ago
:w before ZZ just to make sure
SorryQuick@lemmy.ca 9 months 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”.
crony@lemmy.cronyakatsuki.xyz 9 months ago
I’m just used to it and I’m keeping ny time in instert mode at minimum.
Anticorp@lemmy.world 9 months ago
Make all changes
:wq!
Force that bitch!
marswarrior@lemmy.world 8 months ago
Image This will allow you to ctrl+s to save
crony@lemmy.cronyakatsuki.xyz 8 months ago
Sorry but I’m already used to :w stoo much and a lot faster with it than ctrl+s
marswarrior@lemmy.world 8 months ago
crony@lemmy.cronyakatsuki.xyz 8 months ago
Requires me to use my pibky for ctrl. I have esc remaped to caps so its faster for ke to just do :w
pkill@programming.dev 9 months ago
lel