Live data from Hacker News

Git git git git git

caiustheory.com

11–20 of 244 posts

Re: Git git git git git

#12
At first I thought this title was pointing to the quirky symptom of Clojure's default value for the "get" function that allows this statement:

(get get get get)

to be equivalent to this one:

get

as in:

((get get get get) {:a 1} :a)

I was very excited about an article on this topic.

Re: Git git git git git

#14
>I quite often type git then go away and come back, then type a full git status after it.

Does anyone else actually do this besides OP. I've never heard of this problem until now.

Re: Git git git git git

#15

The mathematical term for a function that is the same when applied multiple times giving you the same results is called "idempotent" which translates to "same power". f^n(x)=f(x) for some positive natural number n and any x. https://en.wikipedia.org/wiki/Idempotence

I had a senior dev interview with a major company in SV last year where the lead and hiring manager claimed that the description for this behavior was "side-effect free".

I didn't want to ruin my chances by correcting him that side-effects and idempotence refer to different qualities.

I passed the interview, but I've never forgotten that. The guy also seemed to have washed into the interview off his surf board.

Oh well. It was a very major company, so I let it all go.

Re: Git git git git git

#16
You can also just use 'fuck' for this:

  > git git pull
  git: 'git' is not a git command. See 'git --help'.

  The most similar command is
	init

  > fuck
  git pull [enter/↑/↓/ctrl+c]

Re: Git git git git git

#19

>I quite often type git then go away and come back, then type a full git status after it. Does anyone else actually do this besides OP. I've never heard of this problem until now.

All the time, at least twice already today. Another common command that I'll start typing only to switch context from is vim.

Re: Git git git git git

#20

Why type out `git status`? I use `gst`, and lots of other great aliases provided by the [oh-my-zsh git plugin]( https://github.com/robbyrussell/oh-my-zsh/blob/master/plugin... )

I used to do that, but I found it wasn’t actually saving me any cognitive load. My newer philosophy toward git aliases is the one described here: http://gggritso.com/human-git-aliases . After reading this I totally overhauled my .gitconfig and replaced it with the one described here and I’m a lot happier.

I realized this myself. And eventually ended up with a fuzzy search thing (using FZF): https://github.com/chrissound/LinuxVerboseCommandLib

I can usually get away with typing the first letter of each word. So `gd` for git diff.

Post reply on HN