Live data from Hacker News

Developer accidentally deletes 3 months of work with Visual Studio Code

cc.bingj.com

41–50 of 75 posts

Re: Developer accidentally deletes 3 months of work with Visual Studio Code

#41
post #40

This is a valid complaint. You simply don't design UI that allows to delete a large number of files with a press of a single button. That he didn't have backups is irrelevant. Even accidentally deleting fresh changes is quite damaging. VS Code doesn't say anything about Git, or what Git is. You can't expect anyone who downloads MS software to be a Git expert.

[deleted]

Re: Developer accidentally deletes 3 months of work with Visual Studio Code

#42

The sad part is that he didn't learn his lesson. The problem obviously isn't with Visual Studio Code, but with Git (or whatever version control software he tried out). It seems that he didn't know anything about using git and accidentally checked out a bare repo instead of adding his files to stage. From his post, he says he's using windows and he's used to things going into the recycle bin, something a Linux tool li…

You're blaming the victim. Yes, it's better to know git than not knowing it, but the developer was merely tossing around with the various options of the IDE. It shouldn't be that easy to make an operation with such disastrous results. It is the responsibility of the product designers to prevent this.

If he has that large of a codebase, he may be a VS Code newbie and/or a git newbie but he isn't s computer newbie.

Anyone who has anything important on a computer should know to back it up somewhere.

Re: Developer accidentally deletes 3 months of work with Visual Studio Code

#43

So, his hard drive could die. He could have a virus or a crypto infection. All would delete his work. A developer uses source control, it's as easy as that.

Quite apart from the problem of total code loss there's the lack of a safe way to prototype changes - how the hell does he revert in a situation where he inadvertantly breaks his previously working code?!

If this guy did any kind of decent IT or programming course you would think they would have covered at least backing up at some point. If he has done a course and still ended up in this situation I'm tempted to say it's time for him to find a new career.

Re: Developer accidentally deletes 3 months of work with Visual Studio Code

#44
post #30

Earlier quoted context omitted.

Certainly there might be room for improvement. But the warning was pretty clear I feel. At some point you have to take responsibility for knowing your tools. This is a professional.

> This is a professional. He might know how to write code, but obliviousness towards source control (and backups, for that matter) is a HUGE indicator of him not being a professional.

I would agree. User friendliness isn't a bad goal for any piece of software, but there is a certain level of knowledge we can expect from a professional. Knowledge of their chosen tooling is one of them I feel.

Re: Developer accidentally deletes 3 months of work with Visual Studio Code

#45
"This is Git. It tracks collaborative work on projects through a beautiful distributed graph theory tree model.

Cool. How do we use it?

No idea. Just memorize these shell commands and type them to sync up. If you get errors, save your work elsewhere, delete the project, and download a fresh copy."

- https://xkcd.com/1597/

I think MS would do well to just buy this comic from Randall Munroe and display it on git init. In 10 seconds you get a more useful and realistic appraisal of the tool than you will from reading the docs for an hour. You heard me right: Docs by Meme.

Re: Developer accidentally deletes 3 months of work with Visual Studio Code

#46

The sad part is that he didn't learn his lesson. The problem obviously isn't with Visual Studio Code, but with Git (or whatever version control software he tried out). It seems that he didn't know anything about using git and accidentally checked out a bare repo instead of adding his files to stage. From his post, he says he's using windows and he's used to things going into the recycle bin, something a Linux tool li…

You're blaming the victim. Yes, it's better to know git than not knowing it, but the developer was merely tossing around with the various options of the IDE. It shouldn't be that easy to make an operation with such disastrous results. It is the responsibility of the product designers to prevent this.

>You're blaming the victim.

The victim did it to themselves, it's like playing with a loaded gun then complaining when you accidentally shoot yourself in the face. A bad workman always blames their tools. At the very least they should have learnt Git.

Re: Developer accidentally deletes 3 months of work with Visual Studio Code

#47

Really feel for the guy. Hasn't happened to me, but I would hope a developer friendly editor would give warnings about when something like this could happen. Does VS Code have a tutorial? Haven't used it before, can't say I am inclined to right now...

My response to this person would be:

well you're going to have to restore from backup.

Oh you don't have a backup? Why not? (Some excuse) LOLZ

Re: Developer accidentally deletes 3 months of work with Visual Studio Code

#49
post #48

its always sad to see people learn the lesson of source control the hard way.

This is more of a backup lesson.

Exactly. Also, source control is not backup. It is possible for bugs in git or mistakes in your workflow to mess up all the copies of your repository.

Re: Developer accidentally deletes 3 months of work with Visual Studio Code

#50

The sad part is that he didn't learn his lesson. The problem obviously isn't with Visual Studio Code, but with Git (or whatever version control software he tried out). It seems that he didn't know anything about using git and accidentally checked out a bare repo instead of adding his files to stage. From his post, he says he's using windows and he's used to things going into the recycle bin, something a Linux tool li…

You're blaming the victim. Yes, it's better to know git than not knowing it, but the developer was merely tossing around with the various options of the IDE. It shouldn't be that easy to make an operation with such disastrous results. It is the responsibility of the product designers to prevent this.

I was surprised when the exact same thing happened the first time I "played" with Code :D ! Discovering this the hard way.

Well not that hard, because of course I tried it first on a copy of the project so haven't lost anything (if not time).

But even if I agree that what is going to happen is unclear for some (included me at the time), and a total wipe of your work is excruciating, you don't "try things" on the only copy of 3 months of work.

Post reply on HN