Live data from Hacker News

Shit – An implementation of Git using POSIX shell

git.sr.ht

31–40 of 235 posts

Re: Shit – An implementation of Git using POSIX shell

#33

Hiya HN. I was ranting on Mastodon earlier today because I feel like people learn git the wrong way - from the outside in, instead of the inside out. I reasoned that git internals are pretty simple and easy to understand, and that the supposedly obtuse interface makes a lot more sense when you approach it with an understanding of the fundamentals in hand. I said that the internals were so simple that you could implem…

funny how these same words came to many https://codewords.recurse.com/issues/two/git-from-the-inside...

Re: Shit – An implementation of Git using POSIX shell

#34

Hiya HN. I was ranting on Mastodon earlier today because I feel like people learn git the wrong way - from the outside in, instead of the inside out. I reasoned that git internals are pretty simple and easy to understand, and that the supposedly obtuse interface makes a lot more sense when you approach it with an understanding of the fundamentals in hand. I said that the internals were so simple that you could implem…

I view not learning the basic concepts of how git works inside like trying to learn SQL without know what a table is. You could, but its easier if understand that basic abstractions which are its fundamental building blocks.

I think it's more like learning enough SQL to build an application without learning about indexes and transactions: you can be sufficiently productive until you encounter corner cases or things go wrong.

Re: Shit – An implementation of Git using POSIX shell

#36

Hiya HN. I was ranting on Mastodon earlier today because I feel like people learn git the wrong way - from the outside in, instead of the inside out. I reasoned that git internals are pretty simple and easy to understand, and that the supposedly obtuse interface makes a lot more sense when you approach it with an understanding of the fundamentals in hand. I said that the internals were so simple that you could implem…

Love the name -- very fitting.

> I said that the internals were so simple that you could implement a workable version... inside of an afternoon. So I wrapped up what I was working on and set out to prove it.

Been there. Done that. With other things, not git.

I suspect many others here have too.

> Five hours later, it had turned into less of a simple explanation of "look how simple these primitives are, we can create them with only a dozen lines of shell scripting!" and more into "oh fuck, I didn't realize that ...". Then it became a personal challenge to try and make it work anyway...

Yep. Been there too. Done that too. Again, with other things, not git.

I suspect many others here have too.

Re: Shit – An implementation of Git using POSIX shell

#38

Hiya HN. I was ranting on Mastodon earlier today because I feel like people learn git the wrong way - from the outside in, instead of the inside out. I reasoned that git internals are pretty simple and easy to understand, and that the supposedly obtuse interface makes a lot more sense when you approach it with an understanding of the fundamentals in hand. I said that the internals were so simple that you could implem…

Why even have the index? Just skip that step.

Re: Shit – An implementation of Git using POSIX shell

#39
post #38

Hiya HN. I was ranting on Mastodon earlier today because I feel like people learn git the wrong way - from the outside in, instead of the inside out. I reasoned that git internals are pretty simple and easy to understand, and that the supposedly obtuse interface makes a lot more sense when you approach it with an understanding of the fundamentals in hand. I said that the internals were so simple that you could implem…

Why even have the index? Just skip that step.

I wanted to have the staging area, and I had decided upfront that I wouldn't make the repository state inconsistent between shit and git. So the index needed to be done.

Also, you need to generate a tree out of something. Could just hash the entire worktree every time, but that would be pretty lame.

Re: Shit – An implementation of Git using POSIX shell

#40
post #19

Earlier quoted context omitted.

Why not simply stream to somewhere live Twitch/YouTube and have them serve the recording offline later on?

I try to avoid proprietary services.

You know, YouTube is pretty easy. I bet someone could implement it in an afternoon and a dozen lines of shell script...
Post reply on HN