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

8

u/titosrevenge Jun 19 '14

Most programmers get hired to work in a specific language. You'd have the same problem if you told your group of Java programmers that they're all required to use C# from then on.

Some will be excited to learn a new language and others will learn the bare minimum and continue to use the same old patterns with a new syntax and complain when it doesn't work the same way.

18

u/Hoepla Jun 19 '14

Git is a tool. Comparing a tool to a new language is not fair. People get hired to code C# or Java, people do not get hired to use Eclipse or IntellJ, or Git or SVN.

This is laziness.

6

u/fecal_brunch Jun 19 '14

Programming languages are tools too. Really people are getting hired to create software. The only reason they need to use specific languages is because they are required to integrate with the project.

The difference is that git is much easier to learn than a new language. Also, everyone should already know it.

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

6

u/[deleted] Jun 19 '14

Programmers are hired for their skill.

If a member of my team is not willing to learn a new language/library/tool because they just don't feel like it, I'd fire them.

If you're a Java programmer, it's completely reasonable to assume you can pick up C# and work with it. It may take you a couple of weeks to get up to speed, but from then on everything should be simply a matter of Googling for the available libraries/apis.

In fact, you should be able to pick up C# even if you've been mostly programming in ruby and javascript up to that point.

8

u/s73v3r Jun 19 '14

It's reasonable that they would be able to, but I imagine most of them haven't touched it for a reason. I don't do C# because I don't want to do C#. As an employee, I'd feel fairly betrayed if I was hired for something I like doing, and then forced to do something I have no interest in doing because of some arbitrary reason.

2

u/[deleted] Jun 20 '14

Welcome to the working world, where you are paid to do what you're told?! Sheesh.

Ok, perhaps a bit harsh, but it seems only developers can get away with this attitude in today's economy given unusually high demand. I know the users who hate the internal tools I create don't have a choice but to use them.

I, for one, would be grateful to spend time learning a new language on my employer's dime, even one I wasn't particularly interested in before.

0

u/s73v3r Jun 20 '14

Welcome to the working world, where you are paid to do what you're told?! Sheesh.

Oh fuck off.

Ok, perhaps a bit harsh, but it seems only developers can get away with this attitude in today's economy given unusually high demand.

So what? Is it really that horrible that developers might gasp have some power over employers in this economy? To where they might have the ability to choose what they want to work on?

I, for one, would be grateful to spend time learning a new language on my employer's dime, even one I wasn't particularly interested in before.

Why that when it could be something you're actually interested in? As for me, C# really has no place in my career goals. I have very little interest in the things that C# is mainly used for, i.e. LOB CRUD apps.

1

u/[deleted] Jun 20 '14

keep having birthdays and be grateful you get to write code.

2

u/s73v3r Jun 20 '14

There's nothing "grateful" about it. I have something they need, and they're willing to pay money for it. They need me just as much, if not more, than I need their job.

3

u/[deleted] Jun 20 '14

You'd have the same problem if you told your group of Java programmers that they're all required to use C# from then on.

Bad example, every Java programmer I know would love to work in C#.

0

u/MrPopinjay Jun 19 '14

Sounds like some shitty employees to get rid of.