News for hackers. Stuff that matters.
Re:Show HN: Hacker News implemented using the new API by hswolff on Wednesday October 08, 2014 @12:46AM (#8425360)
I just sprinted and re-created this in AngularJS as well.

Took me 2 hours from start to finish.

Demo: https://hn-ng.firebaseapp.com/

Source: https://github.com/hswolff/hn-ng

Re:Show HN: Hacker News implemented using the new API by Lord_Zero on Wednesday October 08, 2014 @09:30AM (#8426751)
Thanks to your app, TIL about Firebase. Really neat service. Currently the way id do it in ASP.NET using SignalR, but this could finally take two large chunks out of my stack. Especially the auth chunk.

I would miss Entity Framework and Web API 2 though.

Re:Show HN: Hacker News implemented using the new API by icholy on Wednesday October 08, 2014 @12:05PM (#8427641)
There's lots of errors showing up in the console

http://i.imgur.com/rQGweR8.png

Re:Show HN: Hacker News implemented using the new API by giancarlostoro on Tuesday October 07, 2014 @06:51PM (#8424436)
Glad you used Ember.JS, I love that framework, it's what actually got me to change my mind about JavaScript altogether. Love how in a few minutes you can pull together a rather responsive website.
Re:Show HN: Hacker News implemented using the new API by EGreg on Tuesday October 07, 2014 @11:00PM (#8425127)
You should try Q!

http://platform.qbix.com/

Re:Show HN: Hacker News implemented using the new API by oneweekwonder on Wednesday October 08, 2014 @01:20AM (#8425432)
Followed the link, tried to create a account, under "for business"...

And it asked for my cellphone number?!

I have left my cellphone number a year ago, I could not handle the spam calls. Yes I do have a sim card in my mobile but I actively don't want to remember it and only use it for the data, I don't share the number, except for my so and mother.

But back to the point, there was no other option to login, why only cell phone, did I miss something?

Re:Show HN: Hacker News implemented using the new API by EGreg on Wednesday October 08, 2014 @01:52AM (#8425484)
I guess that's what the platform.qbix.com app is set up with. Q apps can be configured out of the box to let people sign up using email, mobile, or facebook. You can also code your own adapter (such as using some other OAuth) and if you do, contribute it to the community.

I should mention that the main reason "mobile only" is the default is to try to prevent sybil attacks ... if you're a startup looking to launch an app, the last thing you want is to have some jokers create a million accounts and overload your site with inane stuff. Q expects that you'll require an authenticated session id for most of the "expensive" stuff like realtime pushes, notifications, or whatever your app wants to implement. But if people can sign up with 1 million fake emails, that won't do much good. It's hard to make it expensive to create hundreds of accounts and requiring a cellphone number is the only way I know, aside from requiring valid billable credit card numbers. Facebook commect MAY be a close second.

Also, people tend to pay more attention to SMSes which improves your retention until they download the native app and switch to in-app notifications. (You alluded to this by saying you got a lot of SPAM... that's why Q always has a way for users to unsubscribe.)

Re:Show HN: Hacker News implemented using the new API by jtymes on Tuesday October 07, 2014 @09:08PM (#8424848)
I made a basic Angular version with comments: https://jtymes.firebaseapp.com/

The 'Top', 'New', etc. don't work because those aren't implemented in the API yet.

Source: https://github.com/jtymes/hn-fire

Re:Show HN: Hacker News implemented using the new API by coherentpony on Tuesday October 07, 2014 @07:01PM (#8424475)
Is it just me or does it seem slower?
Re:Show HN: Hacker News implemented using the new API by qq66 on Tuesday October 07, 2014 @07:21PM (#8424547)
Of course it should be slower, it's routing everything through a third-party service.
Re:Show HN: Hacker News implemented using the new API by dstaley on Tuesday October 07, 2014 @07:31PM (#8424578)
The entire page is generated on the client side, so it makes sense that it would feel a bit slower.
Re:Show HN: Hacker News implemented using the new API by Fuzzwah on Tuesday October 07, 2014 @05:59PM (#8424267)
Re:Show HN: Hacker News implemented using the new API by dstaley on Tuesday October 07, 2014 @06:05PM (#8424283)
Fixed! Thanks for letting me know.
Re:Show HN: Hacker News implemented using the new API by mayop100 on Tuesday October 07, 2014 @06:28PM (#8424350)
Very cool, and looks like it only took you a few minutes of work! Nice job. Others might want to check out the code: https://github.com/dstaley/realtime-hacker-news
Re:Show HN: Hacker News implemented using the new API by insin on Wednesday October 08, 2014 @08:15AM (#8426470)
Here's a React version with collapsible comments:

http://insin.github.io/react-hn

Re:Show HN: Hacker News implemented using the new API by tlarkworthy on Tuesday October 07, 2014 @04:58PM (#8423973)
I really hope this ends up in a recursion.

edit: yay!

Re:Show HN: Hacker News implemented using the new API by andy_ppp on Tuesday October 07, 2014 @06:06PM (#8424286)
Me too...
Re:Show HN: Hacker News implemented using the new API by mnw21cam on Wednesday October 08, 2014 @07:26AM (#8426322)
Am I supposed to be seeing something other than a header over a blank page?
Re:Show HN: Hacker News implemented using the new API by zzmp on Tuesday October 07, 2014 @07:14PM (#8424523)
Are you able to show the comment counts as well?
Re:Show HN: Hacker News implemented using the new API by dstaley on Tuesday October 07, 2014 @07:35PM (#8424585)
In theory, yes. However the comment counts aren't part of the item's JSON, which only includes top-level comments. So I'd need to retrieve all the top-level comments, and then all of the children comments for every comment. Doable, yes, but I'd need to take a while to think about how to do it efficiently.
Re:Show HN: Hacker News implemented using the new API by huhtenberg on Wednesday October 08, 2014 @03:18AM (#8425650)
Load time is 3.55s vs 1.11s of the original.
Re:Show HN: Hacker News implemented using the new API by pluma on Wednesday October 08, 2014 @07:23AM (#8426311)
It's using an external API. Not surprising.
Re:Show HN: Hacker News implemented using the new API by general_failure on Tuesday October 07, 2014 @11:48PM (#8425230)
Great choice to use Ember!