Live data from Hacker News

Git git git git git

caiustheory.com

61–70 of 244 posts

Re: Git git git git git

#61

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 we…

I wonder what would have happened if you gave a short counter example.

Re: Git git git git git

#63

>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.

Not this, but I do fairly often think assume I'm in vim when I'm not.

`alias :q="echo NOT IN VIM!!!"`

Re: Git git git git git

#64

>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.

[deleted]

Re: Git git git git git

#65

>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.

I totally do this. I also occasionally will have something breaking and soon realize I typed 'git' randomly in the middle of a file instead of in my terminal...

Re: Git git git git git

#66
post #63

>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.

Not this, but I do fairly often think assume I'm in vim when I'm not. `alias :q="echo NOT IN VIM!!!"`

Not just `alias :q exit`?

Re: Git git git git git

#67

>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.

The one I do is `git clone ` then paste in the repository URL from bitbucket, and end up with `git clone git clone https://....`

I don't think that can be solved here though.

Re: Git git git git git

#69

>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.

The one I do is `git clone ` then paste in the repository URL from bitbucket, and end up with `git clone git clone https://....` I don't think that can be solved here though.

Hah! Bitbucket drives me nuts in many ways but this one truly is the worst!

Re: Git git git git git

#70
post #63

Earlier quoted context omitted.

Not this, but I do fairly often think assume I'm in vim when I'm not. `alias :q="echo NOT IN VIM!!!"`

Not just `alias :q exit`?

Not really, if they mean `:q` to exit vim and go back to the terminal `alias :q=exit` wouldn't produce the desired result.
Post reply on HN