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.

AngularJS from an Ember.js perspective

206 pointsby tomdaleover 11 years ago

14 comments

gregwebsover 11 years ago
This is the only intelligent comparison I have seen of Ember &amp; Angular (or actually of Angular with any other modern framework). Thanks!<p>I am wondering if the uniform access principle is mostly a dynamic language issue: you end up screwing up whether you need a parentheses invocation and you don&#x27;t know until runtime. If you type everything with TypeScript then you know at compile time if you messed it up. Relatedly, Ember&#x27;s get&#x2F;set is more difficult to make strongly typed. In the TypeScript definitions I am looking at, property access is only typed as a string. One could define an enum for each object to be used in place of the string, but overall there is a price to pay with set&#x2F;get since it isn&#x27;t baked into the language (like Ruby).
评论 #6778590 未加载
评论 #6778606 未加载
评论 #6778603 未加载
sailfastover 11 years ago
Having just dug into Angular while wondering if I really wanted to be working with Ember, this was a great comparison. It&#x27;s obvious to me now I have to look at both frameworks. While done by an Ember.js creator I found the presentation also provided me with a much deeper knowledge of Angular at the same time - well done.<p>As for the Google popularity, one could snidely remark that Angular&#x27;s documentation and taxonomy requires significant amounts of searching to solve the problems you are after. While the community is active, it&#x27;s quite difficult to find examples of the right solution or effective documentation for newbies at times.
评论 #6777310 未加载
评论 #6781668 未加载
Bognarover 11 years ago
I hate that Google Docs modifies your history when you go to the next slide. This presentation clocks in at 57 slides and Firefox history defaults to truncating after 50 entries, meaning I can only go back to slide 7 and not back to HN.<p>Is it really better that I can use my browser forward and back buttons to navigate slides? Especially when there are forward&#x2F;back buttons on the presentation anyway?
评论 #6777526 未加载
评论 #6777826 未加载
评论 #6777899 未加载
评论 #6777710 未加载
评论 #6778448 未加载
评论 #6778731 未加载
tomphooleryover 11 years ago
I <i>really</i> liked this. Although I prefer to work with Ember.js, Emblem and EmberScript (as the latter addresses some of Ember&#x27;s syntactical faults), Angular seems very interesting when you view it as more of a toolset for building your own framework than a &quot;complete&quot; framework in and of itself.<p>When you bring the <i>entire</i> Ember toolchain into the mix, outside of the already-complete framework, it begins to smooth Ember&#x27;s rough edges in development. It&#x27;s just the same with Rails, I&#x27;m a Ruby developer and we&#x27;re used to dealing with dependencies already, so it&#x27;s not really a huge leap outside the box for us to be using tools that will compile down to HTML&#x2F;CSS&#x2F;JavaScript to build the frontend to a Rails backend API application.<p>I still understand Angular as a toolchain&#x2F;framework&#x2F;whatever for people who do not understand JS to the point where they want to begin extending it. Angular is a &quot;safe zone&quot;, something that frankly JavaScript as a language (without Ember&#x27;s additions to the object model and such) needs right now. When you write apps in Ember, I feel like a deeper understanding of how JS is working is necessary before you begin to abstract that portion away. Is this still a correct assumption to have? I&#x27;m not trying to insult anyone, frankly JS is a pretty screwed up language so I feel like it&#x27;s a natural tendency to want to just get what you need out of it quickly and safely and then move on to more fun projects. In my opinion, it&#x27;s simply a different way of doing things, not better and not worse.
chidevguyover 11 years ago
One thing that I like about Knockout is that you can easily drop it into a legacy site, allowing you to have some pages that use it and others that don&#x27;t. Forgive my naivete, but is this something that is easy to do with Ember or Angular as well?
评论 #6778264 未加载
评论 #6780860 未加载
评论 #6778657 未加载
评论 #6780186 未加载
评论 #6778674 未加载
评论 #6778104 未加载
评论 #6778107 未加载
paulftwover 11 years ago
Kudos to the author - I am impressed how well Alex Matchneer understands Angular.<p>Few thoughts of my own: - Ember is a long term relationship with one particular way of doing web FE, a way invented by someone else for you. Ember philosophy is &quot;one size fits all&quot;. - On directives and transclusion - it&#x27;s like Lisp&#x27;s dotted pair. these new concepts may be hard to understand, but experiments like that often fascinate programmers, and for a good reason - one day those experiments will revolutionize the way we build software.<p>The debate of a small set of flexible tools vs one tightly integrated system is not new. We had Linux vs Windows, Django vs Flask, etc. It&#x27;s funny to see it pop up in yet another area.<p>Thank you for this great write up and raising a bar of this long going discusiion on Ember vs Angular.
hpvic03over 11 years ago
I&#x27;ve been working with Ember for a while now, and I love it. Convention over configuration is a big deal, and the Ember team has done it right. I think if you like Rails then you&#x27;ll like Ember.
atjoslinover 11 years ago
I use angular a ton, and just learned more about Ember from this. thanks. I&#x27;ll have to check it out someday. Ember looks like it has good testing now too :-)
wereHamsterover 11 years ago
People really like googling angular<p>That could also be because angular has horrible documentation!
virtualwhysover 11 years ago
That was a really informative comparison, kudos to the Ember author for injecting minimal bias.<p>I&#x27;ve been on the fence about switching from jQuery + Coffeescript to Angular&#x2F;Ember&#x2F;etc.<p>Still am, bit of a server-side luddite here, AJAX, client-side form validation, some jQuery effects for dropdown menus, show&#x2F;hide layers, etc. is as far as I go.
jemptymethodover 11 years ago
Do we really need either Angular&#x27;s or htmlbars&#x27; (see slide 37) way of &quot;decorating DOM elements with behavior&quot; when it is so trivial with just ES5 and HTML? See this jsfiddle: <a href="http://jsfiddle.net/dexygen/nU8VK/" rel="nofollow">http:&#x2F;&#x2F;jsfiddle.net&#x2F;dexygen&#x2F;nU8VK&#x2F;</a> Give me a couple&#x2F;three strong JS devs and I guarantee you I could take these simple building blocks (as well as spans with data- attributes, and innerHTML, instead of templates), and I could build out a framework way faster than either Angular or Ember.js and would validate as HTML5 to boot. Doubt me? I pretty much did the same thing for PHP; see <a href="http://dexygen.com/ria/#!/docs/jackrabbitmvc" rel="nofollow">http:&#x2F;&#x2F;dexygen.com&#x2F;ria&#x2F;#!&#x2F;docs&#x2F;jackrabbitmvc</a>
Banzai10over 11 years ago
So technically what the presentation is trying to say is that you should use Angular to build Ember like framework. hahah<p>I personally like Angular, the Google support and the community are strong points to it. The documentation used to be hard to find, but now, specially with StackOverflow, finding what you need is easy.
评论 #6778554 未加载
dsegoover 11 years ago
This format sucks, I can&#x27;t click on jsfiddle links or even copy them.
评论 #6777482 未加载
评论 #6777559 未加载
Bahamutover 11 years ago
I enjoyed reading this, as a heavy Angular user &amp; someone interested in trying out Ember sometime. Thanks!