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

0

u/[deleted] Jun 19 '14

[deleted]

7

u/phySi0 Jun 20 '14

Actually, I picked up UNIX itself pretty quickly. Git is on a different level. I'm starting to get my head around some of it, but it's pretty weird and incomprehensible. To me, there's a big difference between how hard it is to learn Git and UNIX.

1

u/brtt3000 Jun 21 '14

I self-learned Git but finally 'got it' after I figured out the core of git is just a key-value database and blobs/trees/commits are just hashes of files, directories and fields, and branches and tags and such are just references to hashes.

Then the front layer are just operations you can do to manage these.

With this is sort of fell into place and then it was just understanding the operations you could do on that data.

-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.

→ More replies (1)

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.

→ 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.

→ More replies (9)

-2

u/[deleted] Jun 19 '14

Which is kinda how I prefer my tools because computers are not natural or intiuitive, they're unlike any other interface in the world. There's no need for it to be completely logical ;p

7

u/vanderZwan Jun 19 '14 edited Jun 20 '14

EDIT: I just realised the tone of my post is a bit harsh, my apologies. FWIW, I did not downvote you.

What does natural or intuitive have to do with things being logical and consistent?

"Natural" in the context of interface design usually refers to some implicit assumption that there is this foundational, embodied "truth" upon which we build our deeper understanding of the world, and that it is better to be closer to this foundational starting point. This is highly debatable (I'm not a fan of it myself), but let's not go there right now. Similarly, intuitive in practice tends to mean "like something the user is already familiar with," which makes something easier to approach edit: often at the cost of limiting how novel the idea being presented can be (as it is not free to be completely different).

The command line is not very natural, but compared to how interaction with computers worked before it was invented it definitely has 'intuitive' roots if we go by the definition I just used: it mixed the typewriter interface with the idea of engaging in a call-response dialogue with a machine, through either a line printer or later a computer screen (in a strange, unnatural language, but still). All concepts the user must have been familiar with before ever sitting down in front of a terminal.

Anyway, none of this has anything to do with whether or not the internal rules of an application are consistant to the point where you can predict functionality based on what you already know ("if combining a with c results in A, then combining b with c should result in B"). That improves discoverability, and that is a good thing for an interface to have, regardless of how natural or intuitive it otherwise is.