Live data from Hacker News

Show HN: GitBattle – Battle two Github accounts

gitbattle.com

1–10 of 45 posts

Re: Show HN: GitBattle – Battle two Github accounts

#3
post #2

It's definitely fun to mess around with. Nicely, done! Quick question: why do repo and gist counts cap at 100? I haven't looked at Github's API myself yet, so there might be a technical limitation here that I'm unaware of.

Yeah, there are a lot of technical limitations that we had to work around. Mainly, everything is paginated with a max per_page of 100. We decided to only analyze the 100 most recent gists and repos to not have to worry about that.

For commits, however, we couldn't not analyze them, so we do a ton of processing. Basically, we loop over every one of your repos and loop over all of the pages of commits for that repo. For big repos (i.e. Facebook), that means we end up doing 100s of async API requests...it gets pretty intense.

Re: Show HN: GitBattle – Battle two Github accounts

#5
post #4

What is it doing while "processing"? A progress bar would be a good idea.

I said it below, but the big chunk of "processing" is looking at all of the commits for all of your repos. There's no good way to access this data, so we essentially loop over all of your repos and than for each repo loop over all the pages of commits--a lot of API requests.

Re: Show HN: GitBattle – Battle two Github accounts

#6
post #4

What is it doing while "processing"? A progress bar would be a good idea.

Unlocking the secret of life, apparently. At least, that's what it says it's doing now, after complaining that nobody else had got this far. It's been about 5 minutes...

...maybe it would have been wise to start with a table of existing entries that could be resolved quickly. I don't use Git and couldn't think of any accounts off the top of my head, so I just set 'abc' against 'xyz' on the theory that those usernames were likely to exist. UPDATE: I'm getting the behavior with Obama v Romney and indeed Jesse P v Remy G. Maybe the server's just overloaded...

Re: Show HN: GitBattle – Battle two Github accounts

#9
post #4

What is it doing while "processing"? A progress bar would be a good idea.

Unlocking the secret of life, apparently. At least, that's what it says it's doing now, after complaining that nobody else had got this far. It's been about 5 minutes... ...maybe it would have been wise to start with a table of existing entries that could be resolved quickly. I don't use Git and couldn't think of any accounts off the top of my head, so I just set 'abc' against 'xyz' on the theory that those usernames…

Hmmm...it shouldn't be taking that long? Would you mind checking your console?

Re: Show HN: GitBattle – Battle two Github accounts

#10
post #7

Looks like everyone else has discovered this too. I'm getting back messages that I've discovered the secret of life and still no results...

are there still repos left under the processing box? if so, would you mind checking your console?
Post reply on HN