5 ms·
And if you build the next HN, please add an API
by VMG 14y ago
And if you build the next HN, please add an API
- polshaw 14y agoWhat are the main reasons you want an API?
- p4bl0 14y agoI guess something like the possibility to have a mobile application (either web based or native app) which would be usable (the tiny up- and down-vote arrows of HN are not easy to use using a finger on a touchscreen) and which would actually work by not relying on html-parsing or search kludge.
- blissland 14y ago>> I guess something like the possibility to have a mobile application See http://ihackernews.com/ http://ihackernews.com/
- guiambros 14y agoIf you have an iPhone, there's news:yc. Great reader. Not perfect, but the best I found so far.
- adroitec 14y agoThe best reading experience I've seen (by far in my opinion) for iPhone/iPad is http://cheeaun.github.com/hnmobile/ http://cheeaun.github.com/hnmobile/
- VMG 14y agoBuilding more powerful clients for desktop and mobile. Think user tagging, comment filtering, custom sort order, interface improvements.
- artursapek 14y agoI really like that HN still has such an old, simple interface. It's one of the reasons I haven't left yet.
- btilly 14y agoAbout a decade ago I noticed this phenomena. Worthwhile communities need to be maintained by barriers. The kind of barrier that I personally enjoy most is, "Crappy enough interface that only people who really like the content will be motivated to show up."
- artursapek 14y agoYep. No magic tricks. Just substance.
- xk_id 14y agoAmen to that.
- VMG 14y agoI think it just correlates with the presence if images. Also StackExchanges have excellent UIs, APIs and still very good content. StackOverflow itself could also be worse.
- btilly 14y agoThat is a good comparison. StackOverflow has a good API, but maintains itself with carefully thought through and zealously enforced moderation rules. I grant the existence of useful content there and a good API. However after one too many brushes with how differently moderators think about stuff than the people who I liked talking to did, I have demonstrated the truth of my comment by choosing to leave. StackOverflow works for a lot of people. But for me, personally, a stripped down interface and less moderation is a better experience.
- randomdata 14y agoTechnically, HN already exposes an API over HTTP. It just uses HTML as the exchange format instead of XML or JSON.
- duck 14y agoHmmm, not sure if I agree with that or not... but if so, it has a very limited usage quota before you get banned. :)
- sillysaurus 14y agoWhat API do you want? Automated submissions of posts is not a good idea, so that leaves data scraping. If you're looking to extract data from HN, use HNSearch. http://www.hnsearch.com/ http://www.hnsearch.com/ There's no reason to scrape data from HN itself.
- duck 14y agoHNSearch is great and I use it for my Wayback Letter project, but it hasn't been around that long so I couldn't use it before. When I started Hacker Newsletter about 2.5 years ago there was nothing, so scraping was the only solution. One of these days I will convert the application I built to build out each issue, but there also is a risk of HNSearch going away just like the last search engine did.
- randomdata 14y agoI'm curious why you disagree, aside from the quota thing? I have written many API consumers over the years and there is basically no difference between parsing HTML or any other format; XML especially, for obvious reasons. HTML APIs to come with the added benefit of being less prone to change, which I realize goes against conventional wisdom, but seems to hold in practice.
- duck 14y agoI agree that parsing can be easily done, although I don't think it is necessarily equal... but I guess that would depend on a case by case basis since a lot of API's are terrible. What makes it not an API IMHO is that you can't consume it when needed, but rather you have to consume it all the time. I guess you will call that a streaming API though. :) HTML APIs to come with the added benefit of being less prone to change Really? I don't think that does hold in a lot of cases. Using HN as an example, it broke a year or so ago when PG changed how the job postings were listed. Again, the quality of an API can vary, but at least you would know what changed in that case.
- jiggy2011 14y agoAlso, make sure that every time someone performs an action on the site, you generate a random number. Add that random number to the number of seconds since their last performed action. If that number exceeds a threshold (that is assigned randomly and valid for a randomly assigned amount of time) delete a random part of the session.