Live data from Hacker News

Hacker News API

blog.ycombinator.com

291–300 of 315 posts

Re: Hacker News API

#291
post #165

Earlier quoted context omitted.

LOL. My first thought was, "That's kind of a dick comment." My second thought was, "Oh, it must be tptacek himself." :-)

That was exactly my reaction as well. I wasn't going to comment, but "mhartl" looked familiar. I just wanted to say "thank you" for your Rails Tutorial; I don't think I would have ever learned to program without it. It literally changed my life.

Awesome, glad to hear it!

Re: Hacker News API

#292

Decided to recreate the Hacker News homepage using Ember and the new API. I was really pleased with how easy it was! https://realtimehackernews.firebaseapp.com/

Definitely digging the live-update on the scores. Haven't seen top stories switch places yet, but I'm guessing that happens also.

Good work.

Re: Hacker News API

#293

Nice! I'll be changing my Mac system tray app HackerBar over to use this instead of some Objective-C scraping magic that it uses now: http://hackerbarapp.com/

Wow I've never heard of this but that is a really cool app, I'll definitely check it out. Do you know of anything similar for reddit?

There's way too many reddit things already out there... I was trying to tap a market that doesn't have lots of enthusiastic software developers.

oh.... wait...

Re: Hacker News API

#294

Decided to recreate the Hacker News homepage using Ember and the new API. I was really pleased with how easy it was! https://realtimehackernews.firebaseapp.com/

Very cool! Congrats on the quick work!

(As I find myself pondering the idea of standing something up like this on an dual-stacked server purely so that I could access HN from my IPv6-only test network... hmmm...)

Re: Hacker News API

#295
I'm definitely excited about the API and the future possibilities with it. Looks like a great start. I do have a few questions and suggestions, though.

Is there any chance of getting more than just the top 100 stories returned? I think it will be a lot more useful for api consumers if you can use a query parameter to set the limit (within reason, usually 1,000) and a number of results to skip. For now, scraping is still more desirable to me since I can retrieve any number of results in their current order.

Better yet, but more complex: a number to skip and a certain timestamp so I don't see the same article on two pages due to natural upvoting, downvoting, or rank decay.

Also, if there's any flexibility still with property names, I'd suggest these changes for clearer semantics: "deleted" -> "hidden" (since they're obviously not deleted) "by" -> "author" (for more clarity) "kids" -> "children" (the common convention)

Re: Hacker News API

#296

Earlier quoted context omitted.

Because it can be better designed, use common design / navigation patterns of your mobile OS, notify you when you get a reply, change the text size, change the theme, have richer animations, and allow you to automatically share content from other applications directly to HN?

Yeah. I'm just a bit averse to apps scraping data for the reasons you mentioned. It should have been the work of the mobile website, not an app. Speaking purely from the user's point of view (not the developer - I realize this is a community full of app developers) - one can't just keep installing apps for every website which is not mobile efficient yet. You all must have seen a lot of websites showing messages like…

Edit (Typo): Most of those apps don't do anything which a mobile website couldn't.

Re: Hacker News API

#297
post #262

Earlier quoted context omitted.

It works now, thanks! One side question: why is your hamburger (icon) a Double-Double ( http://www.in-n-out.com/mobile/double-double.aspx )?

Ha! A) Because I love Double-Doubles. B) Because it's more than 2 year old (before there really was a hamburger icon on Android). It's completely redesigned in the next version, though.

Can't wait to upgrade to it! Thanks for the wonderful app!

Re: Hacker News API

#298
post #169
post #159

Earlier quoted context omitted.

Well unfortunately there's no Firebase SDK for Windows Phone/C#/WinRT, and the WebSocket API is undocumented. EDIT: After having played with the JS SDK a bit I'd like to add that it is indeed incredibly awesome.

[Firebase founder] There is a Firebase C# SDK on the way. We've had some other things, that we've been working on for the last year, that are shipping in the next few weeks which have taken priority. After that, we'll be shifting focus to new SDKs (they're a little complicated and take a bit of time to build)

This would be awesome. Right now I'm experimenting using raw HTTP requests and Newtonsoft.Json as the JSON [de]serializer. I presume that you will make your C# SDK a portable class library so we can use it in iOS and Android apps as well via Xamarin?

Re: Hacker News API

#299
post #265

Earlier quoted context omitted.

Great you're here. I'm using this app, but I'm sorry to say this... It's pretty bad. Here's a list of issues that I encounter very often: - It often crashes during startup - There are massive encoding issues, I see question mark symbols pretty often. - Comments often won't load, without any error message whatsoever. I uninstalled the app multiple times for these reasons, but unfortunately there isn't anything that's…

Would you be willing to beta test my application? It's pretty much finished already and doesn't have any of the issues you listed (in addition to having a, in my opinion, much nicer design), I'd just be looking for some general feedback regarding the discoverability of some features. I could submit a beta today or tomorrow.

I'd like to beta test your app as well! meng.tan [at] gmail. Thanks in advance!

Re: Hacker News API

#300
Chiming in here and presenting my try at a Hacker News website using Angular JS and Bootstrap. https://github.com/lekoaf/HackerNews

My only problem with the API is that you need to do an awful lot of Ajax calls just to get something out of it. The topstories endpoint just gives you an array of IDs and then you need to do one Ajax call for each ID to get the story.

Oh well, the site is a work in progress. Not done yet.

Post reply on HN