Live data from Hacker News

Ember.js or Angular.js?

news.ycombinator.com

61–70 of 104 posts

Re: Ember.js or Angular.js?

#61
Ours is basically a CRUD App, i tried to build it in Ember.js but gave up after not finding an step by step getting started (like the one in angularjs homepage),

after that i started to learn angular, it had an step by step guide and working with ng-repeat was such a bliss, we were able to launch a simple billing system in about 5 days using angularjs, egghead videos help me whenever i find something difficult to implement (like 2 way binding between controller and a directive)

Re: Ember.js or Angular.js?

#62
post #41

I have limited experience with javascript and MVMM's and cannot answer all the questions, but here is what I do know: Which is best overall? Not enough experience with ember.js to comment. Common gotchas for angular: It's a very different approach when compared to using jquery for everything. The documentation can seem a bit daunting at first, as described in the popular post about why discourse chose ember.js. "The…

Ha ha, nice way to scare people off angular and justify their decision ;) Transclusions are an interesting feature to cherry pick because a) they're a necessary complexity to enable reusable components (one of angular's greatest strengths), and b) they highlight the steep learning curve required to truly master angular. I agree that the docs can be a bit vague occasionally, but I think that's only due to the sheer de…

Can you share what converted you from knockout to to angular? What were the big reasons? What was the tipping point?

Re: Ember.js or Angular.js?

#63
post #34

ok here is my take : AngularJS : + MVVM : databinding + Dependency Injection, so no global state, and loose coupling + Well organised into services , view models ,directives , filters , ... - forget any projects that are animation/transition between views heavy, you'll fail - doesnt play well with some other frameworks ( requireJS, jQuery mobile , even phonegap ...) - is slow when dealing with a lot of data. - no con…

> forget any projects that are animation/transition between views heavy, you'll fail Animation is coming to the next version. It's already possible but you have to do it yourself. > doesnt play well with some other frameworks ( requireJS, jQuery mobile , even phonegap ...) * https://github.com/tigbro/jquery-mobile-angular-adapter * http://briantford.com/blog/angular-phonegap.html > is slow when dealing with a lot of…

> Object.observe will make it fast even if you're batman.

Additionally Object.observe will make Ember way of the data binding obsolete. So there will be another big Ember API change in near future.

Object.observe adoption for Angular apps will be transparent. Only the framework code will be updated. Maybe it is already updated.

Re: Ember.js or Angular.js?

#64
From Addy @ - http://coding.smashingmagazine.com/2012/07/27/journey-throug... ::

I want something flexible which offers a minimalist solution to separating concerns in my application. It should support a persistence layer and RESTful sync, models, views (with controllers), event-driven communication, templating and routing. It should be imperative, allowing one to update the View when a model changes. I’d like some decisions about the architecture left up to me. Ideally, many large companies have used the solution to build non-trivial applications. As I may be building something complex, I’d like there to be an active extension community around the framework that have already tried addressing larger problems (Marionette, Chaplin, Aura, Thorax). Ideally, there are also scaffolding tools (grunt-bbb, brunch) available for the solution. Use Backbone.js.

I want something declarative that uses the View to derive behavior. It focuses on achieving this through custom HTML tags and components that specify your application intentions. It should support being easily testable, URL management (routing) and a separation of concerns through a variation of MVC. It takes a different approach to most frameworks, providing a HTML compiler for creating your own DSL in HTML. It may be inspired by upcoming Web platform features such as Web Components and also has its own scaffolding tools available (angular-seed). Use AngularJS.

Re: Ember.js or Angular.js?

#65
post #60

I want to learn Ember, but the official docs are confusing, and the tutorials are outdate, are there any YouTube videos or any other of tutorial on Ember?

The docs are actually quite good now. As we've just released 1.0 RC, the API is also frozen which will help the docs improve even further.

The guides are good, but I'm missing the whole put it all together to make a real app tutorial type level of documentation. Can you point me to something like that?

Re: Ember.js or Angular.js?

#66
post #38
post #34

ok here is my take : AngularJS : + MVVM : databinding + Dependency Injection, so no global state, and loose coupling + Well organised into services , view models ,directives , filters , ... - forget any projects that are animation/transition between views heavy, you'll fail - doesnt play well with some other frameworks ( requireJS, jQuery mobile , even phonegap ...) - is slow when dealing with a lot of data. - no con…

- forget any projects that are animation/transition between views heavy, you'll fail Why? How is it different from using jQuery without Angular?

you have a list , each time you remove elements on the list ,you want to fade out elements that are being removed for 0.5 secs. Explain me how you would do that.

Re: Ember.js or Angular.js?

#67
post #34

ok here is my take : AngularJS : + MVVM : databinding + Dependency Injection, so no global state, and loose coupling + Well organised into services , view models ,directives , filters , ... - forget any projects that are animation/transition between views heavy, you'll fail - doesnt play well with some other frameworks ( requireJS, jQuery mobile , even phonegap ...) - is slow when dealing with a lot of data. - no con…

> forget any projects that are animation/transition between views heavy, you'll fail Animation is coming to the next version. It's already possible but you have to do it yourself. > doesnt play well with some other frameworks ( requireJS, jQuery mobile , even phonegap ...) * https://github.com/tigbro/jquery-mobile-angular-adapter * http://briantford.com/blog/angular-phonegap.html > is slow when dealing with a lot of…

> * https://github.com/tigbro/jquery-mobile-angular-adapter * http://briantford.com/blog/angular-phonegap.html

that's what i'm saying i should not need an adapter for these libraries , i dont need them with Ember or Backbone

Re: Ember.js or Angular.js?

#68
None.

Backbone + underscore + jQuery.

Unless you really have to have a framework.

The combination of the above will have you writing in JS rather than in framework X.

Re: Ember.js or Angular.js?

#69
post #68

None. Backbone + underscore + jQuery. Unless you really have to have a framework. The combination of the above will have you writing in JS rather than in framework X.

If using Backbone, then https://github.com/marionettejs/backbone.marionette is a MUST. It would cut down on lot of code and it makes code more cleaner. In addition, switch to CoffeeScript.

Re: Ember.js or Angular.js?

#70
post #44

As a relative beginner - "It's a very different approach when compared to using jQuery for everything" — is a bit misleading. They're both very different to jQuery (or Backbone/Spine - which are beautifully simple). Totally anecdotal: - Backbone I learnt straight away and have been progressively writing better code for around a year. It gives you enough rope to hang yourself but you can usually see what you've done a…

> I think what the community sorely needs is a good Ember teacher

I think what we really need is a tool to go around and mark outdated blog posts as outdated. There's also this: http://www.embercast.com/. Not sure where it's going.

Post reply on HN