3 comments

  • PufPufPuf1 hour ago
    That seems unnecessarily cryptic -- the whole HTTP analogy doesn't really work well, or the article doesn't do a good job of explaining it. I know, I come from a place of knowing git and beginners are often confused by it... but surely "checkout a branch, make a commit" has a clearer mental model than "post ?branch!", whatever that is supposed to mean.
    • gritzko2 minutes ago
      Git vocabulary is workflow-based, i.e. &quot;what we usually do&quot;. Unfortunately, the language grew so complex there is always a probability of messing things up. This is the same problem e.g. C++ has: too many constructs, they interact in unexpected ways =&gt; bang!<p>So the idea here is to define actual operations that happen to the tree. Those are a bit more complicated than the vanilla blob&#x2F;tree&#x2F;commit model, but still manageable. The operations are orthogonal, plus we isolate concerns into different URI parts (also orthogonal).<p>Overall, it all decomposes cleanly and uniformly. Workflow-based vocabulary becomes unnecessary (and a bit confusing) once you grasp that basic underlying model of orthogonal operations&#x2F;concerns. Some parts still need work though, e.g. conveying the state of the tree in the most precise manner.
    • Contortion1 hour ago
      Agreed. I think the code examples in the article could do with showing before and after states of the branch or repo and maybe compare with standard git commands.<p>Even then I don&#x27;t think the abstraction to HTTP verbs is necessarily a useful one as web requests and version control are two different mental models.
  • quantummagic1 hour ago
    I love the idea of building a new Git UI on top of Git primitives[1], but the REST inspiration leaves me feeling underwhelmed; there has to be a more human-friendly model.<p>[1] <a href="https:&#x2F;&#x2F;replicated.wiki&#x2F;wiki&#x2F;Home.html" rel="nofollow">https:&#x2F;&#x2F;replicated.wiki&#x2F;wiki&#x2F;Home.html</a>
    • gritzko57 minutes ago
      The most human-friendly thing is probably natural language. If so, it is LLMs who should have an intuition about the REST interface and its URI syntax. I personally would prefer to glance at it, but not to type it repeatedly. Especially, hashes.<p>So, the actual question is how to make this machinery un-screw-up-able. (Author)
  • OJFord44 minutes ago
    &quot;yo dawg, I heard you like confusing SVC CLIs&quot; vibes