News for hackers. Stuff that matters.
Re:What I Hate About Git by ovatsug25 on Saturday August 04, 2012 @11:10PM (#4340462)
Joel Spolsky had the same concerns about Git when he first started using it. He changed his mind and wrote a great post on why distributed version control is way better than SVN.

http://www.joelonsoftware.com/items/2010/03/17.html

He also happened to write a tutorial for mercurial that explains the same concepts. The tutorial is linked to at the very end of the article.

Re:What I Hate About Git by elviejo on Sunday August 05, 2012 @12:22AM (#4340575)
Hg Init: a Mercurial tutorial by Joel Spolsky http://hginit.com/

It's a pretty good tutorial. But to me the mere fact that there are so many posts on How-to use a tool that is basic in a programmers arsenal, tells me that DVCS are a solution that lacks usability.

Re:What I Hate About Git by sigkill on Sunday August 05, 2012 @01:16AM (#4340669)
Ah, so it's by Joel.

I tried Git but failed miserably with it. It could probably be attributed to the lack of quality tutorials at that time. I then thought, "Fuck it, let's try Mercurial" and stumbled upon hginit. That is one awesomely written tutorial. I use mercurial for my programming needs and find it totally intuitive to use.

I definitely found it easier than git, but that could be possibly chalked up to my bad introduction to git.

Re:What I Hate About Git by tedunangst on Sunday August 05, 2012 @03:47PM (#4342421)
Personally, I think anyone familiar with cvs or svn can pick up hg really easily. The commands and concepts in hg map onto equivalents in cvs very nicely. My mental model of hg is just cvs + cvsync. Done.

git does not work like that. It's like each command was cut in half and recombined differently, like interlaced video or something. It's all there, it's just harder to recognize.

Re:What I Hate About Git by 2muchcoffeeman on Sunday August 05, 2012 @07:23AM (#4341180)
I tried Hg first and failed. Then I tried git and for some reason worked it out. DVCS concepts are hard when you're used to SVN.
Re:What I Hate About Git by sigkill on Sunday August 05, 2012 @11:06AM (#4341611)
Hmm. I can't really comment on that since I've never used SVN. I was kind of lucky to jump directly into DVCS. The reason why I'm comfortable with Hg is because at the initial/first step the only commands I was told to remember (by hginit.com) were `hg commit` and `hg init`. Slowly, from there I took on a steady pace and grew comfortable with it. Currently on Windows I use tortoiseHg and bitbucket (I'm strictly a hobbyist coder only).

When I tried to learn Git (before Hg), I looked for tutorials but everything was all over the place and maybe they introduced too much too soon. Anyway, at the end of the day I find Hg good enough for my usage - init, commit, push, pull so far.

Re:What I Hate About Git by nitrogen on Sunday August 05, 2012 @12:59AM (#4340638)
We are talking about programming tools here, not tools for home kitchen chefs to track their recipes. A little intelligence and hard work on the part of the user is expected.
Re:What I Hate About Git by GrumpySimon on Sunday August 05, 2012 @04:24AM (#4340926)
No that's just programmer masochism. If a tool is easy to use, then I get whatever I needed it for done, and done quickly. I can then move on to doing more interesting things (e.g. programming) rather than wrestling with the tool.
Re:What I Hate About Git by SiVal on Sunday August 05, 2012 @04:55AM (#4340975)
We are talking about programming tools here. A little intelligence and hard work on the part of the DESIGNER of the tools is expected.
Re:What I Hate About Git by regularfry on Sunday August 05, 2012 @04:36AM (#4340946)
Intelligence can be expected. Hard work should be unnecessary.
Re:What I Hate About Git by chris_wot on Sunday August 05, 2012 @07:14AM (#4341158)
Interesting non sequitur.
Re:What I Hate About Git by regularfry on Sunday August 05, 2012 @07:30AM (#4341189)
Why do you say that?
Re:What I Hate About Git by chris_wot on Sunday August 05, 2012 @07:38AM (#4341206)
Because it does not follow that if you are intelligent then you will not have to do any hard work.

Edit: appear to have annoyed someone with that comment! But do go on - prove to me how high intelligence means that you don't need to do hard work, which is the proposition of the OP.

Re:What I Hate About Git by sirclueless on Sunday August 05, 2012 @09:32AM (#4341379)
What on earth are you talking about? Git currently requires intelligence and hard work to learn properly. Regularfry suggests that we shouldn't need hard work to use a version control system. This statement isn't a proposition on the human condition, and doesn't need any proof.
Re:What I Hate About Git by chris_wot on Sunday August 05, 2012 @03:38PM (#4342381)
Actually, I disagree. It took me no more than about half an hour to understand and use git properly. I don't particularly consider it to have been hard work.

As for it not being a proposition on the human condition - I mistook what he was saying, but then after it was clarified I understand what was meant. It was unclear to me what was being said - interestingly enough, that is the entire argument being expressed for the reason why git is "hard work".

Re:What I Hate About Git by andrewflnr on Sunday August 05, 2012 @11:14AM (#4341630)
I think his point was that software should be designed so that if someone is intelligent, they won't have to work hard (remember, "hard work should be unnecessary", em. mine). But he optimized for pithiness over clarity.
Re:What I Hate About Git by regularfry on Sunday August 05, 2012 @09:22AM (#4341364)
> Because it does not follow that if you are intelligent then you will not have to do any hard work.

I don't think anyone's said that, or tried to say it (least of all me), at any point.

Re:What I Hate About Git by chris_wot on Sunday August 05, 2012 @09:30AM (#4341376)
You seemed to. You said "intelligence can be expected. Hard work should be unnecessary". What did you actually mean? I apologise if I misunderstood what you were saying!
Re:What I Hate About Git by regularfry on Sunday August 05, 2012 @10:08AM (#4341456)
I'm saying that while it may be valid to assume intelligence on the part of your users, that doesn't make it valid to make them work hard. I'm not saying that intelligence gets you out of hard work, I'm saying that it shouldn't necessarily get you into it - and from where I'm sitting, git requires both where it should only require one.
Re:What I Hate About Git by chris_wot on Sunday August 05, 2012 @03:46PM (#4342413)
Ah. I'm following you finally. Yes, I agree that unnecessary hard work shouldn't be needed.
Re:What I Hate About Git by philwelch on Sunday August 05, 2012 @01:02AM (#4340645)
Really? How many how-tos are there on text editors, programming languages, build systems, deployment systems, unit testing frameworks, frameworks, APIs, libraries, debuggers...?
Re:What I Hate About Git by bermanoid on Sunday August 05, 2012 @01:29AM (#4340692)
I spend at least an order of magnitude, if not several, more time with each of those things than I do with a goddamn version control utility.

I put in effort where it's worth it. Version control doesn't even come close to hitting the top of that list.

Re:What I Hate About Git by philwelch on Sunday August 05, 2012 @01:42AM (#4340718)
You build and deploy ten times as often as you commit? Apparently you really don't think version control is worth it!
Re:What I Hate About Git by einhverfr on Sunday August 05, 2012 @04:59AM (#4340979)
He said he spends ten times more time on building than on managing revision control. That doesn't mean 10x more deployment or development.

On the other hand, I can tell you we have almost 10x more downloads than we have svn commits ;-)

Re:What I Hate About Git by chris_wot on Sunday August 05, 2012 @07:19AM (#4341170)
There is very little that is hard with managing your source code on your local workstation.

To commit any changes, you type in:

  git commit -a -m "thing that I changed"
To branch, it's:

  git checkout -b newbranch
To switch back to the master branch, you just type in:

  git commit -a -m "changes made on branch"
  git checkout master
To merge in that branch, should you so wish to do so, then you type in:

  git merge newbranch
What is exactly so hard about that?
Re:What I Hate About Git by einhverfr on Sunday August 05, 2012 @04:52AM (#4340970)
"Way better" at what?

The thing that people need to get through their head is that distributed version control is a whole different concept. There are some things it is great at. There are some things it sucks at. Centralized version control is great at some other things, and lousy at some other things too.

I am thinking for example that if you are going for a PA-DSS-certified application, git, particularly with the ability to rewrite history, is going to be a problem, but dvs generally will provide more problems in assuring the auditor that you can locate, trace, and take corrective action if someone introduces a security issue (perhaps intentionally) into your application. I don't see git really working in that environment.

On the other hand, if you have a lively project that everyone is experimenting with and you need to merge patches occasionally to create a stable release, yeah, it's much better.

Re:What I Hate About Git by Aga on Sunday August 05, 2012 @06:49AM (#4341128)
Why would dvcs cause problems for auditors?

For any given project, no matter how distributed the development, you will have a "blessed" repository, from which the official releases are made. The history of this "blessed" repository is made not rewritable, even if anyone can push new stuff to it. The config files and hooks can be made writable by only admins.

Or you use a maintainer model, where the "blessed" repository is not even pushable. A maintainer (or a group of them) chooses what he merges in.

Re:What I Hate About Git by pgeorgi on Monday August 06, 2012 @06:11AM (#4344606)
A post why DVCS are better than SVN doesn't state anything about the qualities of git (unless it's actually about git, of course).

I have concerns about git and used distributed version control years before git existed.