Do I really need version control? [closed]

2019-01-03 12:29发布

I read all over the Internet (various sites and blogs) about version control. How great it is and how all developers NEED to use it because it is very useful.

Here is the question: do I really need this? I'm a front-end developer (usually just HTML/CSS/JavaScript) and I NEVER had a problem like "Wow, my files from yesterday!". I've tried to use it, installed Subversion and TortoiseSVN, I understand the concept behind version control but... I can't use it (weird for me).

OK, so... Is that bad? I usually work alone (freelancer) and I had no client that asked me to use Subversion (but it never is too late for this, right?). So, should I start and struggle to learn to use Subversion (or something similar?) Or it's just a waste of time?


Related question: Good excuses NOT to use version control.

30条回答
爷、活的狠高调
2楼-- · 2019-01-03 13:21

It's really odd. Ever since I started using version control, I've very occasionally had the need to look up old copies of my code and use them. I never needed to do this before...probably because the idea of doing didn't really stick. It's easy not to notice those times when you could have found version control helpful.

查看更多
The star\"
3楼-- · 2019-01-03 13:21

Search within an entire codebase. It's a killer feature, mainly because the search gets actioned on another machine so you can get on with your work undisturbed.

Which incidentally, is the reason why we didn't change to SourceGear Vault. It can't do this. We're still looking for a SourceSafe-compatible replacement for... well, SourceSafe. Despite what everyone says, it hasn't let us down yet*

* this may just be a matter of time.

查看更多
混吃等死
4楼-- · 2019-01-03 13:24

Since you usually work alone, I would say that it is a good idea to use version control. One of the main benefits I have found in using version control (Subversion in my case), is that when working alone it gives me more confidence in trying a new approach to the problem. You can always branch to a new method or framework of solving the problem and see if you like it better. If it turns out that this branch doesn't work, you can just abandon it and go back to the old method. This also makes it easier to try out the different solutions side by side.

So, if you have ever seen a different approach to solving a problem and you wanted to try it out, I would definitely use version control as a tool to make this easier.

查看更多
Emotional °昔
5楼-- · 2019-01-03 13:26

I think the main advantage in moving from a "keep-all-versions file system" to a source code control system lies in the fact that the sccs adds structure to all those versions you kept of all those files, and provides you with records of "what was the consistent state of the whole file system at point X".

In other words, "Which version of file A goes with which versions of B, C, D, ...".

And an afterthought (¡!): the special act of committing or checking in makes you think about "what is this?", and the resulting log message can, hopefully, serve as memory...

查看更多
Animai°情兽
6楼-- · 2019-01-03 13:26

Even if you don't need it right now, it is something you will need whenever you work in a team.

查看更多
【Aperson】
7楼-- · 2019-01-03 13:26

I think you've made the right decision to use some kind of version control. For simplicity, I'd go with SVN (ignore CVS as SVN is basically a "better" CVS)

SVN can work with "local" repositories right on the filesystem and on lots of platform so you don't have to bite off too much in infrastructure (servers, networks, etc)

Great resource for SVN: http://svnbook.red-bean.com

I don't know much about GIT, but it being open source and gain lots of mindshare probably has alot of similar advantages!

Borrowing a quote from somewhere: You might not need it now, but when you do, you'll be glad you did.

Happy versioning!

查看更多
登录 后发表回答