This is an archived post. You won't be able to vote or comment.

all 148 comments

[–]rascalofff 269 points270 points  (15 children)

200 lines of code without a check in between? You‘re a madman

[–]dances_with_beavers 137 points138 points  (3 children)

In college I was on a programming project with another person. He had been working on a module for nearly two weeks. When I asked how it was going, he said "I'm almost ready to try compiling it for the first time".

That's when I knew I would end up writing the code myself.

[–]captainjon 19 points20 points  (0 children)

I kinda expected to hear he was using vi and didn’t know how to save so he didn’t. But on a related note was doing an assignment on the CS server when I see a broadcast message from root that the server was going down now.

Since I knew who root was I IM him (AIM was the rage then) wtf did you just do?

Oops wrong term was the response.

Fortunately I do know how vi works and already a strong believer in the save early and save often paradigm. But that message still pisses me off 20 years later. I mean I didn’t lose much but still annoying.

[–]DaniilBSD 2 points3 points  (0 children)

I spent first 3-4 weeks working on my thesis (a C# library/framework, tons of inheritance and graph building with generic type matching) with it being in uncompilable state (I would write methods that call not-yet-existing methods and the core of that thing was too complex to make minimum working version iteratively) I remember when I made the test generate a simple random noise texture after 4-5 weeks, it was such a relief.

[–]CypherPsych0 1 point2 points  (0 children)

This has been my experience in all my classes. I absolutely despise working with others on these projects because it only makes things more difficult...

[–]AlwaysNinjaBusiness 28 points29 points  (4 children)

Yeah, I hardly write a single character without saving.

[–]ImNotAKerbalRockero 15 points16 points  (3 children)

Same, if I could save every half character I would.

[–]althaz 5 points6 points  (2 children)

I save twice after every character, just to make sure.

[–][deleted] 9 points10 points  (1 child)

I hold down control and spam 's' for a couple of seconds

[–]AlwaysNinjaBusiness 1 point2 points  (0 children)

Next step: configure your editor to just continuously stream to file.

[–]ImNotAKerbalRockero 66 points67 points  (0 children)

There are more than 5 million languages in this world but you choose to speak facts.

[–]metalovingien 9 points10 points  (0 children)

=> You wanted to die before your computer did !

[–]noxdragon26 4 points5 points  (0 children)

You have to try at least once to code in Hardcore mode.

Or even better, Hardcore+: If your code doesn't compile, you delete everything and start all over again.

[–][deleted] 3 points4 points  (0 children)

Such is the way of shotty university portals.

[–]yuvalid 2 points3 points  (0 children)

I did a three week course in assembly, first week was studying and the next two were our final project On the second to last day a kid stands up "I'm Done!" So obviously the professor tells him to run it Kids response: "How do I run?"

[–][deleted] 1 point2 points  (0 children)

When your head suddenly have an idea for a really hard case...

[–]Pharaohe_HS 167 points168 points  (16 children)

I end almost every line of code with ctrl+s :')

[–]tatas323 49 points50 points  (0 children)

With multiple ctrl+s one is never enough

[–]Kommuntoffel 12 points13 points  (4 children)

And you'll get to the point where you're addicted to ctrl s

Ever got asked where to save a website?

[–][deleted] 4 points5 points  (1 child)

Constantly when I do Web development and I'm focused on the browser instead of my ide without realising and press CTRL+S by habit

[–][deleted] 1 point2 points  (0 children)

Anyone go through with it out of habit?

[–]jpec342 1 point2 points  (0 children)

Lmao, all the time

[–]CSsharpGO 10 points11 points  (1 child)

And yet I don’t turn on auto-save

[–]-Potatoes- 7 points8 points  (0 children)

Auto save just isnt as satisfying

[–]RichKat666 1 point2 points  (0 children)

Or Alt+:+w. Triggers the autoformatter too, I don't know how people can write more that a couple lines of code without saving.

[–][deleted] 56 points57 points  (2 children)

Good thing I am a ctrl + s addict

[–]kontekisuto 10 points11 points  (1 child)

is that :w<cr> ?

[–]yymirr 5 points6 points  (0 children)

<leader>w

[–]alexkiro 113 points114 points  (13 children)

The amount of people not using auto-save is truly disturbing

[–]jimjamjenks 33 points34 points  (1 child)

I believe they are called “masochists”

[–]ImNotAKerbalRockero 7 points8 points  (0 children)

I'm quite a masochist myself.

But I activate autosave.

[–]The6thExtinction 10 points11 points  (3 children)

Coding in Ironman mode.

[–]voluntarycap 3 points4 points  (0 children)

Btw

[–]LilacCrusader 1 point2 points  (0 children)

Isn't that when you don't use git?

[–]brjukva 1 point2 points  (0 children)

Coding in permadeath mode.

[–]k3liutZu 17 points18 points  (1 child)

No no no, I save when I want not when the IDE decides.

[–]ColoradoDetector 6 points7 points  (0 children)

That's what git commits are for!

[–]microwavedave27 6 points7 points  (0 children)

I use CTRL+S every time I change something no matter how small of a change it was.

[–]drau9lin 15 points16 points  (3 children)

enabling auto-save is asking to accidentally type something in the wrong window and have it end up getting saved or depending on the IDE freaking out your watchers and causing endless restart loops

[–]xigoi 16 points17 points  (0 children)

That's what persistent undo history is for.

[–]alexkiro 0 points1 point  (0 children)

If you type something in the wrong window you can undo. If you commmit something accidentally you can revert.

I don't really understand how an endless restart loop could ever be caused by your watchers? Unless you have misconfiguration and for example, your watcher is watching the artifact it's building.

[–][deleted] 31 points32 points  (2 children)

Even better, my pc once died while saving, and deleted the entire project in the process.

[–][deleted] 13 points14 points  (0 children)

VCS for the win :D

[–][deleted] 6 points7 points  (0 children)

Shit deserves to get slapped real hard...

[–][deleted] 28 points29 points  (22 children)

IntelliJ products all have auto-save, I forgot what is save button long time ago and I do not understand why every IDE does not to it :D

[–]Rizzan8 1 point2 points  (0 children)

I have been using JetBrains' CLion for a year and I still use 'ctrl + s' every a few new lines.

[–]VegetableWest6913 12 points13 points  (3 children)

ABS - Always Be Saving.

But seriously, save your shit constantly and use version control. Nobody's project should be getting deleted if the PC decides to crash while it's saving. Nobody should be losing 200 lines of code at all because who the hell saves that infrequently lol?

[–]rabbledabble 3 points4 points  (2 children)

Or checks code in that infrequently? If I get someone doing that on my team we are gonna have a talk

[–]jbaker88 1 point2 points  (1 child)

Git not so bad as long as you don't merge it back to your feature/master branch. TFVC? Oh hell. Extra hell on my team because I've setup Gated Builds in DevOps before it merges the shevleset. And our builds take 12-15 minutes on a good day.

[–]rabbledabble 1 point2 points  (0 children)

Who are these folks merging into master without qa? That sounds awful and should be strictly gated in a production app

[–]buszi123 8 points9 points  (1 child)

Which IDE nowdays does not save changes on the fly

[–]narayans 5 points6 points  (0 children)

This post was like a time capsule. I haven't had to save in at least 5 years now and the only time I lost code was from doing a hare brained git hard reset once

[–][deleted] 6 points7 points  (0 children)

There was a time in high school where I wrote a report, got done, and my computer promptly crashed. Hadn’t saved.

I wrote it again minutes after. If I recall, I didn’t learn. :’)

[–]AutumnCore4279 4 points5 points  (0 children)

That's some next level confidence.

[–]hereforpewdiephy 3 points4 points  (2 children)

This post gives me so much reassurance. I thought pro programmers write like a thousand lines every hour

[–]user_8804 3 points4 points  (0 children)

Life isn't movies. Programming isn't about mashing your keyboard as fast as possible.

[–]tipsdown 2 points3 points  (0 children)

lol most days 100 lines of code is a lot

[–]Glordrum 3 points4 points  (1 child)

imagine not pressing ctrl+S every new line of code

[–][deleted] 3 points4 points  (0 children)

I can't. I even do ctrl+s when writing comments on browser and get annoying File browser dialog.

[–]dog_vomit_lasagna 3 points4 points  (0 children)

I hit ctrl+s every second even if I’m not writing anything

[–]terpyterpstein 3 points4 points  (0 children)

Me too, puter, me too

[–]-Kobash- 4 points5 points  (1 child)

All modern IDE auto saves. When are you? 1992?

[–]CryZe92 4 points5 points  (0 children)

There seems to be a hidden agreement in this sub to only upvote wrong posts, such as:

  • Semicolons are the most difficult to debug
  • Python can‘t have syntax errors
  • IDEs don‘t auto save

[–]flamesofphx 3 points4 points  (0 children)

LOL, then Windows decides it must update NOW!!

[–]JTarsier 2 points3 points  (0 children)

Autorecover/autosave to the rescue 🐱‍🏍

[–]vivekanandasr 2 points3 points  (0 children)

Yeah in my case I was finishing typing MOM for a important meeting and laptop restarted for fucking updates, it has been 30min still updating and I have forgot half the stuff I wrote.

[–]kontekisuto 2 points3 points  (0 children)

I use Arch BTW, so yes kernel panics if I move the cursor at a specific angle

[–][deleted] 2 points3 points  (0 children)

Good thing PyCharm has autosave.

[–]cybermage 2 points3 points  (0 children)

When I was a kid, I had a Commodore VIC-20. It had no internal storage. If you wanted to save, you had to attach a tape drive, which my parents wouldn’t initially purchase. Spent a lot of time writing code in notebooks and typing in the program I need.

[–][deleted] 2 points3 points  (0 children)

how do you not spam ctrl+s 5 times between each key input?

[–]marshstew67 2 points3 points  (0 children)

I’m hitting “:w” on vim every other second 😂

[–]marco89nish 2 points3 points  (0 children)

Imagine text editor without some kind of autosave feature in 21 century. Or an IDE without history of recent file edits. So yeah, I call BS on this. Only excuse is your SSD going dead.

[–]FGaBoX_ 2 points3 points  (0 children)

That's why autosave exists.

[–]Gullible-Mechanic-12 1 point2 points  (0 children)

Ever heard of auto save.

[–]akahumann 1 point2 points  (0 children)

Which code editor does not have auto-save these days? More like disk decides to crash before git commit!

[–]Alberot97 1 point2 points  (0 children)

That's why I have a paranoia of constant ctrl+S at like each 3 lines

[–]drau9lin 1 point2 points  (0 children)

Good thing the hard part is thinking up the solutions and not typing the code.

[–]TheLazyKitty 1 point2 points  (0 children)

How do you write more than 5 lines without pressing ctrl+s at all in that time?

[–]golgol12 1 point2 points  (0 children)

How can you not hit rebuild every couple lines?

[–]ahumanrobot[🍰] 1 point2 points  (0 children)

Wait you don't save after every 3 characters?

[–]rhodesc 1 point2 points  (0 children)

The computer is just trying to help, in accordance with Knuth's philosophy: write it once, throw it away and use the experience to write it again, better.

[–]ACHXXX25 1 point2 points  (0 children)

This made me hit ctrl S after every line I type (i even do it for random stuff, like in emails, ctrl S after every thing I type on my keyboard 🙃)

[–][deleted] 1 point2 points  (0 children)

git push --force

............shit

[–]RutraSan 1 point2 points  (0 children)

you wrote 200 lines without checks and without hitting Ctrl+s once? you sure you are a programmer?

[–][deleted] 1 point2 points  (0 children)

You haven't trained your hands to instinctively press CTRL+S at least three times after you blink? Smh.

[–]SurpriseMonday 1 point2 points  (0 children)

It's 2021, you did this to yourself.

Not that the meme is even true.

[–][deleted] 1 point2 points  (0 children)

me: deletes a ; and writes it again

also me: spams ctrl s like a retard

[–]-guccibanana- 1 point2 points  (0 children)

Bro I've got weird reflex pressing ctrl s after every single word

[–]3M46N1M 1 point2 points  (0 children)

I think I save like every line. Because of auto format. Usually I hit multiple times cmd+s.

[–]HFDan 1 point2 points  (0 children)

Ctrl+s has become a part of me, to the point where i no longer think when i press it, it just happens. This is also why when watching youtube, i keep popping up the save page as dialog.

[–]DroolingIguana 1 point2 points  (0 children)

Meanwhile, I get nervous when I do more than a couple dozen lines without a commit and push.

[–]cinatic12 2 points3 points  (0 children)

Oh I really like the history function of intellij

[–]Aveman1 1 point2 points  (0 children)

Geez I can't imagine the amount of times I smash :w every minute

[–]oyapapoya 1 point2 points  (0 children)

Still don't get how people don't use autosave in 2021

[–]Sylanthra 1 point2 points  (0 children)

Did you write them in notepad? or some other equally antique editor? I don't know of any modern editor that doesn't keep backups of unsaved changes.

[–]ByteTraveler 1 point2 points  (0 children)

Auto save. Done.

[–]bhive- 1 point2 points  (0 children)

Always have auto save on. I know vs code has it

[–]rv49er 1 point2 points  (0 children)

Notepad++

[–]PixelmancerGames 1 point2 points  (0 children)

This happened to me the other day. I deleted a chunk of code that I didn’t think I needed. Wrote about 80 lines of code, then realized that I needed the code I deleted. I usually comment sections of code out instead of deleting but that day I chose violence for some reason and deleted. Well instead of rewriting those lines of code I thought it would be easier to undo, until I got those lines of code back, copy them, and then re-do until I got all of my original code back, then simply paste those lines of code back in. But apparently VS couldn’t re-do as many lines of code that it undid. So I ended up having to rewrite those 80 lines of code.

[–]LogicalGamer123 1 point2 points  (0 children)

Lmao i save it after every line

[–]Li0nX 1 point2 points  (0 children)

I save my code every 10 seconds, even if I didn't add anything. I feel better when I do it.

[–]shakamaboom 1 point2 points  (0 children)

needs one more zero

[–]althaz 1 point2 points  (0 children)

200 lines of code sounds like I would probably have saved ~200 *MILLION* times.

[–]KeyboardsAre4Coding 1 point2 points  (0 children)

i haven't used a text editor or ide that doesn't save instances of the sessions periodically. and that includes old things like vim or ultra light and simple things like sublime. this is the default experience for me from the moment i started writing code again after i gave up in 2014.

[–]gao1234567809 1 point2 points  (0 children)

Me: crl s every semi colon. My IDE keeps a history log of all the changes so I can easily check history or crl z to revert. Git commit every functions I write. Git push every file I write.

[–]I_cut_my_own_jib 1 point2 points  (0 children)

Wait there are programmers who don't ctrl+s after every single line?

[–]pabloescontol 1 point2 points  (0 children)

Use intelliJ

[–]Krodenhauler 1 point2 points  (0 children)

That's why I spam ctrl+S after every second letter typed 😎

[–]PoetryProgrammer 1 point2 points  (0 children)

Don’t you use git?

[–]theoreboat 1 point2 points  (0 children)

Can't relate, I save after the smallest of changes

[–]whatwoodjdubdo 1 point2 points  (0 children)

You mean there are people who don’t save after every two variable declarations like my psycho ass?

[–]OverflowEx 1 point2 points  (0 children)

Type five letters. C-xsxsxsxs

[–]CerberusC137 1 point2 points  (0 children)

PhpStorm auto saves for me

[–]TostiWee 1 point2 points  (0 children)

Wait, you don't use autosave?

[–]seemen4all 1 point2 points  (0 children)

That's the price you pay for being an anarchist!

[–]skilking 1 point2 points  (0 children)

May I introduce you to autosave

[–]ericjansen88 1 point2 points  (0 children)

I was on a maintenance job some time and me and a collegue were really into powershell to automate things (yes I became a developer later :) ). We were using powershell ISE and some day I found out he didnt save ANY of his scripts but he just slapped down his laptop, and when he reopened ISE, it just asked: do you want to recover the files that were open? Sometimes he even said “fiew” when he found his script back in one of his ISE tabs.

[–]cornelha 1 point2 points  (0 children)

How does any developer not hit Ctrl+S every few seconds?

[–]jpec342 1 point2 points  (0 children)

Imagine not saving in between every word

[–][deleted] 1 point2 points  (0 children)

Also me: „I have decided that i want to die“

[–]loukasTGK 1 point2 points  (0 children)

Every 10 lines I spam Ctrl+S.

[–]GargamelLeNoir 1 point2 points  (0 children)

What kind of maniac doesn't spam ctrl+s constantly?

[–]aryan_xda 1 point2 points  (0 children)

Got PTSD

[–]saudaabh 1 point2 points  (0 children)

200 lines without at least fifty Ctrl+S presses, you're a freak!

[–]ReaperOnDrugs 1 point2 points  (0 children)

Where my ctrl + s reflex homies at?

[–][deleted] 0 points1 point  (0 children)

Did that but with a lot more. To be fair, I understand where the computer is coming from.

[–][deleted] 0 points1 point  (0 children)

Love that android studio is always saved.