Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrAwesomeSauce
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
Show HN: Angular 2 HN – A progressive Hacker News client that works offline
(github.com)
134 points
by
MrAwesomeSauce
10y ago
|
43 comments
62.
▲
by
MrAwesomeSauce
10y ago
Thank you for this, this is exactly the kind of feedback I appreciate so much. It was my intention to have people follow along step by step, so I apologize for having some unnecessary complexity in the middle that sort of stopped you from f
63.
▲
by
MrAwesomeSauce
10y ago
Yeah someone else mentioned they were seeing the same thing, weird I didn't see this issue at all. But he did solve it by just manually updating the value in angular-cli.json ( https://github.com/angular/angular-cli
64.
▲
by
MrAwesomeSauce
10y ago
Oops, thanks for catching this. Just updated it.
65.
▲
by
MrAwesomeSauce
10y ago
I built a Hacker News client with Angular 2 ( https://angular2-hn.firebaseapp.com ) and shared it here a short while ago ( https://news.ycombinator.com/item?id=12438119 ). Got some very useful feedback and thought i
66.
▲
How I built a Hacker News client with Angular 2
(houssein.me)
10 points
by
MrAwesomeSauce
10y ago
|
7 comments
67.
▲
by
MrAwesomeSauce
10y ago
Just fixed this. Each comment/post doesn't download through a separate request anymore. The main page now takes ~ 3.8 KB on my site, almost half of the original site :)
68.
▲
by
MrAwesomeSauce
10y ago
And done. With this absolutely amazing API ( https://github.com/cheeaun/node-hnapi/ ), items don't load individually and everything loads roughly with half the bandwidth than right here on the original site. No
69.
▲
by
MrAwesomeSauce
10y ago
Okay weird, yeah not sure why it's happening for me. And thanks so much for spotting that, will fix that up.
70.
▲
by
MrAwesomeSauce
10y ago
Okay it's not the iPhone, it's just Safari for some reason. Tried on Chrome and everything loads perfectly fine (I like the experience on mobile). I can add stories and everything no problem. On Safari I don't see any request
71.
▲
by
MrAwesomeSauce
10y ago
Update: Just fixed the comment section to not load individually async. It now loads at a proper speed. A post with > 1000 comments now takes ~ 200ms and 130KB (where it used to take ~15X longer). Appreciate all the feedback folks. I'
72.
▲
by
MrAwesomeSauce
10y ago
Fair point, I can see how that can feel like you're left at a random location. One other thing I noticed is that stories don't seem to load on my iPhone, but works fine on browser. Not sure why though.
73.
▲
by
MrAwesomeSauce
10y ago
Thanks! Yep absolutely speed definitely needs work. And yeah for sure apps like Materialistic, HackerNews-React-Native are way more fully fledged.
74.
▲
by
MrAwesomeSauce
10y ago
This is cool! Thanks for sharing. I like how you can open the comments inline. One thing I think that might be cool to add would collapse button that shows (bottom right the screen maybe?) when you open inline comments. It would be nice to
75.
▲
by
MrAwesomeSauce
10y ago
Very good point, I have the loading indicators show immediately if the response isn't received. Any slight internet connection issues or even just a slight stagger for the requests to complete, it'll show the loading icons. Thanks
76.
▲
by
MrAwesomeSauce
10y ago
Thank you. And really eh? Hmmm haven't tested on an Android device throughly and it does load pretty decently on my iPhone. But as someone already mentioned here, there definitely is some work that needs to be done to speed up the requ
77.
▲
by
MrAwesomeSauce
10y ago
Yeah it's completely different. Will definitely suggest looking into it a bit before making the switch especially if you're planning to do so for a large project. There's quite a bit of overhead you most definitely would have
78.
▲
by
MrAwesomeSauce
10y ago
Oh thanks for that mate will definitely look into this, especially the free tier
79.
▲
by
MrAwesomeSauce
10y ago
Thank you! Yeah I was thinking that too, I need to look into caching the requests so it doesn't get hit every single time.
80.
▲
by
MrAwesomeSauce
10y ago
Cheers mate, glad you like it :)
81.
▲
by
MrAwesomeSauce
10y ago
Thank you, you're right I'm loading every item individually async from the official API. Not only are the requests unnecessarily large, it can take a while to load with a large number of comments. Definitely something to work on a
82.
▲
by
MrAwesomeSauce
10y ago
Yeah I know, another Hacker News client? There seems to be a new one everyday. I wanted to build one with a responsive UI that would provide a `native` feel regardless of which device you use. Decided to use Angular CLI, RxJS and Webpack to
83.
▲
Show HN: Angular 2 HN – A responsive Hacker News client built with Angular 2
(angular2-hn.firebaseapp.com)
40 points
by
MrAwesomeSauce
10y ago
|
30 comments