Better HN
topnewbestaskshowjobs
Log inSign up

initialcommit

166 karma · joined Nov 24, 2019 (7y ago) · 54 submissions

Software developer and creator of https://initialcommit.com
Submissions

comment 1mo ago · link · parent

It happened unexpectedly when I released git-sim in 2023. I made this blog post on the r/programming subreddit:

https://initialcommit.com/blog/git-sim

and it kind of took off organically from there. I just released the post below post this morning as kind of a retrospective look at the mistakes I made in the initial design if you're interested:

https://initialcommit.com/blog/git-sim-mistakes-and-fixes

2.

git-sim: web-first, interactive Git command simulations in your own repos(github.com ↗)

1 points · by initialcommit · 1mo ago · 2 comments

3.

Show HN: An animated, customizable Git cheat sheet drawn by git-sim(initialcommit.com ↗)

1 points · by initialcommit · 1mo ago · 1 comment

4.

12 Git commands visualized in 3D: a spatial approach to version control [video](youtube.com ↗)

3 points · by initialcommit · 1y ago · discuss

comment 1y ago · link · parent

Thank you! So glad it's been useful :D

comment 1y ago · link · parent

Lol... fully aware it's a kooky project, but I've had a lot of fun working on it.

either way glad you got a laugh ;)

comment 1y ago · link · parent

It can basically do all this: https://www.youtube.com/watch?v=BF7FnK1Gml8

comment 1y ago · link · parent

Questionable decision on my part! :D

comment 1y ago · link · parent

Yeah! This is a great tool and it's been around for a while. Nice little puzzles and good to have some kind of visual representation. But Devlands can do so much more than visualize the commit graph: https://www.youtube.com/watch?v=BF7FnK1Gml8

comment 1y ago · link · parent

Kinda! But really only in the sense that they're both "games" related to Git.

Devlands can do so much more (it's can simulate, run, and visualize any command or scenario that can happen in Git within the context of any local repo) and in a much more intuitive way.

comment 1y ago · link · parent

Haha yes I am extremely curious to hear the answers to these questions as well to understand the utter stagnation here.

comment 1y ago · link · parent

Hey there! Never heard of Luanti, but the reasons I chose to make this in Pygame using this particular open-source voxel engine implementation are outlined in the post :D

comment 1y ago · link · parent

Thanks! Yeah I've seen that before. Nice that it's online and nice little puzzles but pretty limited in what it can do by comparison.

comment 1y ago · link · parent

The reason it's sad to me is because there is so much more to explore, to be stimulated by, to be able to apply in a way that makes you think out of the box.

Maybe a lot of people don't care about that, and I guess everybody has their threshold, where as long as they know the minimum required to do their job they can stay in that comfort zone typing the same commands over and over.

comment 1y ago · link · parent

Yes totally agree. Curious if you think visual or gamified tools might have been useful to get an initial grasp on the types of concepts you mentioned? And if so where they might fit in?

comment 1y ago · link · parent

Hard agree. I love this mindset! If you put a tool in your toolbag you should know how to use it.

Git is definitely abstract and hard to get the hang of but totally worth it - pays dividends in terms of the options it puts at your disposal. And the stimulating nature of learning how it works so that you can think for yourself to figure out a solution, instead of just memorizing 3 commands and running to AI for help when you get a little stuck.

comment 1y ago · link · parent

That's such a relatable story - and I feel like it highlights something I've been thinking about a lot while working on these visual and gamified Git tools.

There's this whole class of capable engineers (some at senior/staff levels!) who just never had to build good Git habits or learn how to think about the different options that Git's command set provides, because their workflow didn't demand it.

Curious - do you think that's mostly a tooling/culture thing, or more of a learning gap, where they just never had a reason to dive deeper?

Part of why I'm making these tools is to explore if a more visual approach might make some of those concepts stick better. But curious what you've seen actually work in practice for helping people improve their Git skills.

comment 1y ago · link · parent

haha this is a bit of a sad take in my opinion, because of the value that I feel that comes with understanding how a tool like Git works behind the scenes, but seems to be several folks here who feel the same way you do

comment 1y ago · link · parent

Thanks for sharing your workflow - nice and simple! And sounds like you've got a rhythm down with those core commands, which I know is the case for many Git users.

One of the things I'm trying to explore with these visual and gamified tools is how to help newer Git folks or even users who mostly live in that commit/push/pull flow get a clearer mental model of what's actually happening under the hood.

Git has a really wide breadth of functionality that is kind of interesting on its own merit, but also useful for a plethora of different tasks. For better or worse even Git experts can always find ways to expand their knowledge :)

20.

I struggled with Git, so I'm making a game to spare others the pain(initialcommit.com ↗)

246 points · by initialcommit · 1y ago · 310 comments

comment 3y ago · link · parent

Ah good! Glad to hear it. I had some issues when trying to install it on Mac's using the system Python. Switching to a homebrew-installed version of Python >3.7 worked for me in my testing.

But glad you got it working too!

comment 3y ago · link · parent

You can use the --reverse flag to reverse the direction of the graphs in Git-Sim.

However the fact that time flows in the opposite direction of the parent/child relationships, is inevitable based on Git's design.

comment 3y ago · link · parent

Ew clone a repo to simulate a command?!

Hehe jk you make a fair point, and in fact I do have a bunch of work left to do to make sure my simulations do match up with Git's behavior as closely as possible.

One big benefit I was going for with Git-Sim though is to interrupt the developer workflow as little as possible.

Changing directories, running a new clone (which could take a mildly annoying amount of time), and running gitk is a pretty big context-switch.

comment 3y ago · link · parent

Hey cool idea! I'll definitely consider that and variations on it. This could work for Pull-direction operations like fetch/pull, but maybe not as well for push since the remote would still be affected in some way.

Will need to think about it more...

comment 3y ago · link · parent

Nice I need to find some time to actually sit down with Mercurial for a nice summer afternoon

comment 3y ago · link · parent

Manim rocks.

comment 3y ago · link · parent

Yes much agree!

A big reason I wanted to pursue this idea is exactly what you mentioned - a lack of ability to easily create presentation-quality Git structures that can apply specifically to the situation a user is in, NOW.

A super annoying thing about troubleshooting Git issues is when you find a similar solution online but it's done in someone's random repo which could be very different that yours. Your whiteboard sessions are another good example down this line of thought.

comment 3y ago · link · parent

This is a great point. I thought about how I could simulate commands like "git pull" and "git push", but like you said that would require communicating with the remote to determine ... stuff ... like what objects need to be synched, and potentially even doing some of the actual data transfer before an accurate simulation would be possible.

My initial goals for this tool are to purely simulate actions on Git repos without actually modifying them, but I might be flexible on that going forward, as I mention in the article with the --execute flag.

comment 3y ago · link · parent

Good suggestion, I will add that.
12