News for hackers. Stuff that matters.
Re:Show HN: GitHub Trending Repos by simonw on Friday February 23, 2018 @12:33PM (#16447804)
Using GitHub issues to power notifications in this way is absolutely inspired!

You get single-sign-in for anyone with a GitHub account.

You get both email AND push-based notifications without needing to run ANY of the infrastructure yourself.

Your scrapers get to run in their own time and publish via a very well-documented and easy to use API.

I'm totally sticking this idea in my back-pocket. It's brilliant.

Re:Show HN: GitHub Trending Repos by simonw on Friday February 23, 2018 @12:43PM (#16447891)
Hah, it's even clever-er than I thought: the entire implementation is 220 lines of Node.js https://github.com/vitalets/github-trending-repos/blob/maste...

And everything runs in a free Circle CI instance on a daily and weekly basis: https://github.com/vitalets/github-trending-repos/blob/maste...

So Vitaliy runs the entire thing at no cost to himself, and on infrastructure he doesn't need to maintain. It's the perfect setup for a side-project like this.

Re:Show HN: GitHub Trending Repos by AceJohnny2 on Friday February 23, 2018 @05:14PM (#16450087)
I'm imagining the Github infrastructure folks cringing at this. The second-order effects of people reusing the infrastructure for a different purpose than initially intended.

Like how they caved and provided github.io because people were using Raw (or some other feature of the repos) as a ad-hoc CDN anyhow.

In fact, I'm curious how much of their traffic is traditional git/repo view and how much is any of these "second-order" services.

Re:Show HN: GitHub Trending Repos by simonw on Saturday February 24, 2018 @10:31AM (#16453624)
I bet they're fine with it. They have invested a great deal of engineering effort in building a notification system that scales - there are plenty of legitimate uses for that system that dwarf this clever hack in terms of traffic (issues with hundreds or even thousands of subscribers).

If I were them I would be delighted at someone using my work in an unexpected and creative way like this - having users surprise you like this (provided it's not for abuse or spam) is one of the joys of software design.

You could figure out the actual impact by counting the number of individual subscribers to all of the issues in this repo. My guess it's not even a hundred yet.

Re:Show HN: GitHub Trending Repos by tobylane on Monday February 26, 2018 @10:18AM (#16465846)
They had problems with CocoaPods and Homebrew each using up several servers worth of CPU/network, and rather than ask those projects to change Github added functionality to make the workload lighter (an HTTP code for checking if there's an update to a repo).