4 ms·
I compare it to 10-15 years ago, when functional programming was rather rare. Mid-level OO programmers would complain it was confusing and unfamilar, whereas in
by paulddraper 8y ago
I compare it to 10-15 years ago, when functional programming was rather rare. Mid-level OO programmers would complain it was confusing and unfamilar, whereas in reality has beautiful and simple concepts.
Git's use of a DAG is confusing and unfamilar for many programmers, though in reality it's beautiful and simple.
- bachmeier 8y ago> Git's use of a DAG is confusing and unfamilar for many programmers, though in reality it's beautiful and simple. The difference relative to functional programming is that you get paid for one and the other is just a tool
- adambyrtek 8y agoI would argue that functional programming is just a tool as well... Programmers are paid for solving problems and code is just a means to that end.
- deleted 8y ago[deleted]
- glitchc 8y agoYup, second that. My old boss introduced the whole team to Scala and made us attend a weekly tutorial as part of training/team-building. Since then, I try to write stateless functions, methods and objects as much as possible regardless of language or platform. Git is quite elegant if one has a good grasp of graph theory.
- Fins 8y agoGit is certainly great technically. But one should not need to know graph theory to source control files. And I believe that any version control system that does not follow the convention (that probably predates Linus' existence on Earth) that commit should actually commit changes to server, is, by definition, more4 hard to use than it has any reason to be. But this might be a good study in why Linux is not taking over the desktop, and unlikely to do so in foreseeable future.
- bvrmn 8y ago> But one should not need to know graph theory to source control files. You have two pills. Or you know few basic DAG concepts, or you need to know a lot of "semantic" VCS commands.
- Fins 8y agoUsually, VCS commands makes some sense (i.e. commit commits), which isn't always the case with Git. THere are only two version control systems where I ever needed to use commands, rather than being able to do what I need in GUI -- SVN (because it is crap and would corrupt repository all the time, and then you needed to fix it up by hand) and Git, because... well, because Git.
- bvrmn 8y agoI worked with cvs, perforce, clear case, svn and mercurial before git. And each system force me to learn new concepts and a new set of commands. There is no one universal set. There is no surprise your vcs skills are not transfered to git. And no, some inferior wrapper like subj doesn't help you. It's always better to learn tool.
- Fins 8y agoBut checkin had always did the same thing, be it in VSS or PVCS. Sure, there'd be varying capabilities, differences in tooling, but concepts were the same. Git wants to be different for the sake of being different (even if we assume for a moment that one should know anything about DAGs in order to use version control, which is pretty laughable by itself).
- bvrmn 8y ago> But checkin had always did the same thing I bet you have no problem in remembering what git pull, git checkout, git add, git commit and git push do, isn't it? For everyday work it's enough. You have problem in mastering git, all these nifty logs, diffs, indexes, refs, heads, remotes and other stuff. Other VCS have complex concepts too besides checkins.
- hrktb 8y agoIs OO simple ? It is supposed to be, but I am not sure it delivers on that part. That’s another discussion, but for instance I wouldn’t bet on having a random 10 yo kid understand OO beyond the bare Cats and Dogs tutorial everyone goes through at first. And that’s what I would say about git as well. Even after knowing the internals and how it is supposed to work, I still feel that for a tool it’s pretty unelegant and puts a significant burden on the user to know what needs to be done in what situations.
- theonemind 8y agoThe DAG is the easy part. I can understand perfectly well what I want to do with the DAG and have no idea how to get git to DO it.
- adrusi 8y agoPretty much this. Fortunately the command you need is usually a quick Google search away, and a sequence of basic invocations of branch, checkout, merge, rebase and commit are usually enough to transform the DAG however you want, even if there are simpler ways to do it.
- paulddraper 8y ago> The DAG is the easy part. Excellent. I responded to the comment that claimed "deep problems in its conceptual design". > have no idea how to get git to DO it. Yes, the ergonomics of git could be significantly better. Branches vs tags, manipulating local refs vs remote refs, etc.