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

-4

u/[deleted] Jun 19 '14

What? Git is totally like a programming language. It's entirely fair to compare it to one.

No I'm not being sarcastic.

It's also like a library. You have to learn about certain types of objects and how they interact with each other, and what library functions (git commands) do what to these objects.

7

u/-Y0- Jun 19 '14 edited Jun 19 '14

No it's not. Git is rather complicated because the CLI is atrocious, but day to day basics, learning the founding principles of git isn't hard and once you do you understand Git and not just clobber CLI until it does what you want. If you don't understand Git's model you are doomed to repeat arcane commands you don't understand.

An anecdote: On my previous employment a member of team that had very strenuous grasp on git (let's call him GitLord) simply wrote down the TEN COMMAND(MENT)S OF GIT and adhered to them religiously. My colleague who actually knew Git fairly well, would get in trouble with GitLord because allegedly he made some unneeded merges. When I once really, had enough of GitLord's preaching I actually looked at his environment and it seems that GitLord didn't obey his own commandments and was the one causing 'merge problems' . Merge problems being that GitLord didn't rebase on master before he merged his changes which led to following graph:

  *
  | \
  C   GitLord's commit
  | /
  *  

instead of:

 GitLord's commit
 |
 Colleague's commit
 |
 *

Which in on itself isn't an error...

5

u/ggtsu_00 Jun 19 '14

If you want to preserve a linear history of commits using rebase, you probably should just be using SVN. Most issues with people have with git is them trying to use it like SVN.

1

u/immibis Jun 19 '14

But Git is better, and smart people use Git, and centralization is a terrible idea that should have never been invented, and only an idiot would choose SVN over Git, and mah sugahs are dropping (oh wait, wrong subreddit)!

/s

1

u/kgb_operative Jun 19 '14 edited Jun 19 '14

By that definition, IDEA is also a language. Along with Agile and TDD.

Programmers don't need these things to actually make software. These things are tools to make software more efficiently. If a system is overly complicated or difficult to learn, then it ends up being detrimental rather than beneficial to the development process.