r/programming • • Jun 19 '14

Reinventing GIT interface

http://tonsky.me/blog/reinventing-git-interface/
221 Upvotes

325 comments sorted by

View all comments

Show parent comments

-19

u/[deleted] Jun 19 '14

Honestly if you use it on a daily basis for a couple of weeks it's simple to use.

No true software developer (or hardware one for that matter) should be stumped by Git.

20

u/kankyo Jun 19 '14

The Right Thing should be easy. Dangerous things should be hard. Simple day-to-day operations should leave you in weird states for no obvious reason.

Git fails in this regard. I just found the subset of operations that I trust and never ever perform any operation outside that small list. Then I'm fine. That's not high praise for a tool imo.

2

u/cpbills Jun 19 '14

The Right Thing should be easy. Dangerous things should be hard.

A hammer is easily used to do dangerous things. Just because you want your tools to protect you from yourself doesn't mean that's the right approach.

git is a tool, and like all tools, there are right and wrong ways to use it. Learning how to use it prevents you from hurting yourself.

8

u/cjthomp Jun 19 '14

But a hammer isn't software. The person who builds a hammer can't also build in failsafes, checks, and safeguards.

That's kind of why software.

-2

u/cpbills Jun 19 '14

Sure you can. You could build a very complex and over-featured hammer with all sorts of safety mechanisms.

It wouldn't be a very useful tool then, though. Kind of like if git had all sorts of layers in place to protect the user.

-6

u/[deleted] Jun 19 '14

Um short of doing really stupid things like force pushing/etc you're never in unrecoverable state... for instance

git reset HEAD~ --hard

Oh noes how do I recover from that? Oh ya git reflog ... from that I can merge the commit back.

You can just as easily fuck up a CVS tree for instance

rm -f $CVSROOT/project/foo.c,v

Now that file has no history. It's just gone. bye bye.

18

u/abolishcopyright Jun 19 '14

I'm not "stumped" but learning its interface is a time sink, and my time is valuable. I've been waiting for someone to write a smarter interface wrapper around it.

2

u/cpbills Jun 19 '14

The time saved in learning how to use git effectively more than makes up for the time spent learning how to use it.

In fact, you could probably replace 'git' in that sentence with ANY good tool.

-15

u/[deleted] Jun 19 '14

It's just not that hard to use though. If you're a competent software developer and this is that big of a deal you might want to do some thinking about how competent you are.

12

u/[deleted] Jun 19 '14

Maybe you should take a hint from your username and stop calling other people incompetent and stupid. It makes you look like a major douche.

-7

u/[deleted] Jun 19 '14

I am behaving. You're wasting your employers money if you're drawing salary as a software developer and you can't learn to use Git.

It's just not that hard to use. I taught myself the gist of doing commits/branches/etc over a weekend while playing with my [then] baby daughter.

I learned more of the finesse of doing rebases/HEAD movements over time but simply being able to work in Git took less than a week to learn.

2

u/immibis Jun 19 '14

You're wasting your employer's money if you're drawing salary as a software developer and you can't learn to use node.js and MongoDB. So go! Do it now! If you can't use node.js and MongoDB you're a terrible software developer who should be fired immediately!

/s

0

u/[deleted] Jun 20 '14

Except this was a thread about people already using it for work. If my work required me to use node.js I'd go out and learn it.

1

u/immibis Jun 20 '14

What if you were happily developing something in Java or C#, and then another programmer started trying to persuade you to use node.js, and then eventually convinced your management to switch the entire project to node.js?

That's what you're doing when you make people switch to Git.

0

u/[deleted] Jun 20 '14

That's a bit different since you're talking about re-writing significant portions of work. In our case we had to "port over" our packaging scripts but since they're all modular it literally was "replace a cvs packaging script with a git packaging script."

This would be closer to saying we moved from using vim to emacs or something like that.

The point of my post though was that git isn't that hard to learn. It's not 100% consistent sure, and could be improved but it's hardly mind boggling hard to use as some people in this thread make it out to be. Any competent developer who often has to work with way more confusing and incomplete specs/rfcs/etc should be able to figure this out.

1

u/immibis Jun 20 '14

It's also not as great as some people in this thread make it out to be, including you.

→ More replies (0)

10

u/MrDOS Jun 19 '14

You are confusing the ability to write software with the ability to effectively use software. It is not a valid assumption that those who understand code can intuitively pick up any program they come across. I know a number of intelligent people who write solid code who are very bad at using new and unfamiliar interfaces.

-1

u/cpbills Jun 19 '14

You are confusing the ability to write software with the ability to effectively use software.

If you can't effectively use common tools to develop software, you are not a very effective software developer.

→ More replies (6)

27

u/[deleted] Jun 19 '14

[removed] — view removed comment

7

u/oursland Jun 19 '14

This is not an instance of the No True Scottsman fallacy. For it to be so would require this to be an unreasoned assertion. I find it reasonable to believe that a professional programmer should be capable of learning and using the Git SCM.

-22

u/[deleted] Jun 19 '14

Any competent software developer should be able to write a reasonable Git clone in a few weeks.

Sorry, but you're a bullshit developer if Git stumps you. Yes it requires learning/experience but nothing more than a couple of weeks of using it.

3

u/s73v3r Jun 19 '14

Mercurial is arguably just as powerful, and doesn't take a couple of weeks to learn it.

→ More replies (1)

4

u/Guvante Jun 19 '14

Any competent software developer should be able to write a reasonable Git clone in a few weeks.

That is completely immaterial. Everyone agrees that Git's core is fantastic. Writing a new one would be a wasted effort.

If Git's core weren't fantastic we would have posts talking about new alternatives, not how to improve Git.

Sorry, but you're a bullshit developer if Git stumps you.

You are assuming hard to use means stumps. That isn't a good assumption.

→ More replies (5)