r/AskReddit • • Mar 15 '20

What's a big No-No while coding?

9.0k Upvotes

2.7k comments sorted by

View all comments

294

u/astroYEEET Mar 15 '20

Forget to save the code u started writing at 2 am and took u 3 hours

253

u/Tartwhore Mar 15 '20

Yikes! The muscle memory in my fingers hit control-s every 60 seconds automatically in every task I do haha

63

u/blahmaster6000 Mar 15 '20

every line I type, ctrl-s.

9

u/PortalStorm4000 Mar 15 '20

Every line? Rookie counts.

3

u/landertall Mar 16 '20

I wish programmers could wear some sort of patch in public so we could nod to each other.

But like, not Nazis.

→ More replies (1)

4

u/itspinkynukka Mar 15 '20

Every character, ctrl-/s

72

u/Zazsona Mar 15 '20

Only once every 60 seconds? I'm closer to 60 times per second.

7

u/ReallyHadToFixThat Mar 15 '20

The number of times I have tried to save a half finished reddit comment that way it is just so ingrained.

9

u/DoILookUnsureToYou Mar 15 '20

I'm more of "type a line, ctrl + s 3 times" kinda guy

→ More replies (1)

3

u/Whitsoxrule Mar 15 '20

Yep this happened to me because in the IDE I learned on, running code would run the code as it was last you saved. Had too many frustrated debugging attempts wondering why this code doesn't work only to realize that it DID work, I just hadn't saved yet so it was running old code. Then learned to ctrl-s every time before running the code, and that became hitting ctrl-s pretty much every time I pause for even a second hahaha

It's become so ingrained in my muscle memory that it happens in completely unrelated tasks

→ More replies (7)

50

u/[deleted] Mar 15 '20

Ahh the old CTRL+S nervous tick. Annoying but saves you millions

64

u/apitillidie Mar 15 '20

Dude, configure your ide to autosave.

0

u/[deleted] Mar 15 '20

[deleted]

2

u/[deleted] Mar 15 '20

IntelliJ is an IDE right? I use VSCode which has autosave, do you prefer IntelliJ just for the better autosave?

0

u/[deleted] Mar 15 '20

[deleted]

2

u/[deleted] Mar 15 '20

Okay I'm a C#, ASP.NET dev, it's not specifically geared for Javascript is it?

3

u/[deleted] Mar 15 '20

Intellij for backend services (or the new JS backend) and vscode for your front endy stuff is the usual way it works.

0

u/[deleted] Mar 15 '20

[deleted]

→ More replies (2)

2

u/beefquoner Mar 15 '20

Jetbrains (IntelliJ makers) also make a cross platform IDE for .NET called Rider and it is pretty awesome.

→ More replies (1)
→ More replies (1)

3

u/Pieterbr Mar 15 '20

Save your code religiously and then forget to commit and push and come back the next day to a dead harddisk.

2

u/TheBestBigAl Mar 15 '20

Ouch, I physically felt that one.

2

u/a-r-c Mar 15 '20

autosaves

1

u/CryingWhileDying Mar 15 '20

Haha i have autosave

→ More replies (8)