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.

Angular 2 First App Post-Mortem

52 pointsby Halienjaover 9 years ago

4 comments

randletover 9 years ago
<p><pre><code> I leveraged the Flux architecture powered by the immensely popular Redux library. For a cleaner integration with Angular 2’s injector and TypeScript’s type system, I wrote a class-based wrapper around Redux that exposes state changes using RxJS observables. Consumers can subscribe to these observables and use the Store class to dispatch state-changing actions. </code></pre> This reads like a Markov chain generated from a pool of top voted Hacker News Javascript submissions.
评论 #10957421 未加载
评论 #10962467 未加载
runin2k1over 9 years ago
I hate to be cynical, but reading an article like this makes me chuckle to myself thinking about how much vitriol is still spewed at Java for its over-engineering dark ages.<p>I start to have flashbacks when an innocent sounding article like this has so much word soup that it has to be cross-referenced against half a dozen other technologies.<p>For Javascript&#x27;s sake, I propose we skip the phase where we implement Enterprise JS Beans, and go straight to Spring JS so we can all finally get some work done.
评论 #10956429 未加载
评论 #10957067 未加载
评论 #10956880 未加载
评论 #10957204 未加载
评论 #10956660 未加载
cheezover 9 years ago
Uh... I&#x27;m relatively new to JS but why the heck are you mixing Redux and angular?
评论 #10956711 未加载
EvanPlaiceover 9 years ago
As somebody who has been writing an Angular2 app in ES6, it kind of saddens me that Google has gone all-in on Typescript despite it&#x27;s glaring departure from future web standards.<p>Specifically, the parameter annotation syntax they use is much different from that proposed in the future ES7 spec.<p>I really like Angular2 but it&#x27;s hard not to feel like it was created as a promotional tool for Typescript adoption.<p>Types in JS are mostly &#x27;window dressing&#x27; to protect devs from themselves and allow for better autocomplete support. They come with a performance overhead so they&#x27;ll be disabled in production anyway.<p>Anyway, it&#x27;s very interesting that Op went with Redux. Redux is pretty game changing in terms of reducing the feedback cycle between changes. Hopefully, better Redux support in NG2 is forthcoming.
评论 #10958152 未加载