TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hacker News written with Angular 2.0

47 pointsby hswolffabout 10 years ago

16 comments

error54about 10 years ago
Is everyone missing the point of this? It&#x27;s a proof-of-concept app using an alpha[1] framework that, in a year or two, will likely be one of the dominant frameworks on the web. I for one find real examples like this much more useful than underwhelming &quot;Todo&quot;[2] examples. Yes, it&#x27;s slow. Yes, it has lots of bugs but hell, at least the author is giving it a shot. I just hope they write a decent blog post about it with some of the lessons learned.<p>1- <a href="https:&#x2F;&#x2F;github.com&#x2F;angular&#x2F;angular&#x2F;blob&#x2F;master&#x2F;package.json#L3" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;angular&#x2F;angular&#x2F;blob&#x2F;master&#x2F;package.json#...</a><p>2- <a href="http:&#x2F;&#x2F;todomvc.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;todomvc.com&#x2F;</a>
darthdeusabout 10 years ago
This is interesting, when I opened the link I thoguht to myself &quot;this might be a nice and faster way to browse HN&quot; ... but wow, this thing I slow. Not just slow, but the back button isn&#x27;t working as well. Or maybe it is, but it loads the whole content again when you click back?
评论 #9405488 未加载
评论 #9405560 未加载
评论 #9405527 未加载
gfoscoabout 10 years ago
Taking something simple and making it complex and limited, with Angular 2.0.
评论 #9405406 未加载
jdotjdotabout 10 years ago
Thanks so much for sharing this. I&#x27;ve been waiting a while to see something complete written in Angular 2.0 to see what it looks like.<p>Really enjoyed looking through the source on this.
评论 #9405567 未加载
ralusekabout 10 years ago
To people who are complaining that this is slow, please understand that<p>1. Doesn&#x27;t have to do with Angular 2. Doesn&#x27;t even have to do with a single page implementation<p>I made a really shit take on a single page reddit client, and I&#x27;m sure you&#x27;ll see that the browsing experience is actually quite nice (and much faster than using native reddit). This was written in Angular 1.3, and Angular 2.0 is MUCH faster.<p><a href="http:&#x2F;&#x2F;bredd.it.s3-website-us-west-1.amazonaws.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;bredd.it.s3-website-us-west-1.amazonaws.com&#x2F;</a><p>My point is that implemented correctly, even a content site like reddit or hackernews could work quite well with a single-page implementation. Don&#x27;t blame Angular for this demo, its server responses are just impossibly slow
评论 #9406883 未加载
Geeeabout 10 years ago
This is a great example why you shouldn&#x27;t use a client-heavy stack for a site like HN. You could, in theory, make something that&#x27;s a bit better than original HN, but it requires way more work and&#x2F;or quite possibly something else than Angular.
lightningstormabout 10 years ago
The repeated animation for each content is very annoying. Would be better to have a single spinner for the whole page.
bikamonkiabout 10 years ago
Much slower, why?
评论 #9405362 未加载
评论 #9405472 未加载
评论 #9405348 未加载
seba_dos1about 10 years ago
That&#x27;s exactly the purpose one shouldn&#x27;t use Angular for.
pdkl95about 10 years ago
Seems to be serving a broken page...<p><pre><code> &lt;div class=&quot;bodyContainer&quot;&gt; &lt;hacker-news&gt;&lt;&#x2F;hacker-news&gt; &lt;&#x2F;div&gt;</code></pre>
评论 #9405484 未加载
评论 #9405479 未加载
mambodogabout 10 years ago
An &#x27;isomorphic&#x27; approach would really help with that first page load time. Here&#x27;s one I built with isomorphic React: <a href="http:&#x2F;&#x2F;hackernewsmobile.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;hackernewsmobile.com&#x2F;</a><p>(source: <a href="https:&#x2F;&#x2F;github.com&#x2F;jsdf&#x2F;hacker-news-mobile" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jsdf&#x2F;hacker-news-mobile</a>)
评论 #9405476 未加载
评论 #9405621 未加载
criswellabout 10 years ago
Here is a Hacker News clone done with Vue: <a href="http:&#x2F;&#x2F;yyx990803.github.io&#x2F;vue-hackernews&#x2F;#&#x2F;news&#x2F;1" rel="nofollow">http:&#x2F;&#x2F;yyx990803.github.io&#x2F;vue-hackernews&#x2F;#&#x2F;news&#x2F;1</a><p>I find it easier to follow if you&#x27;re looking around for alternatives.
Hobotron1about 10 years ago
Doesn&#x27;t work with JavaScript disabled. =P
thrownaway2424about 10 years ago
The perfect indictment of Web development these days.
bitwizeabout 10 years ago
(gruff Solid Snake voice)<p>The web... has changed.
trustfundbabyabout 10 years ago
And its better ... how?