HN user

pradeepin

4 karma
Posts0
Comments4
View on HN
No posts found.
EmberJS Confuses Me 13 years ago

Very funny, LOL :). Answer these simple questions with out googling (Be honest :)) and score 80% to get a reply from me.

1) Is MVC an OOP concept ?

2) Is JS an Classical or Functional language ?

3) How does JS support Closures ?

4) What is Unobtrusive JavaScript and why its so popular ?

5) Is it necessary to add declarations in markup or templates to implement bindings in client side ?

6) Differences between Model Backed View and Markup Driven views ?

7) which should be fat in MVC model or controller ?

8) How does multiple controllers in JS MVC App are controlled?

If you answer these questions and score 80%, you will know what i am talking about.

P.S: If you want some, Come on get some :)

EmberJS Confuses Me 13 years ago

Yes that's exactly. you got it right,If you are JS developer, you still need to learn about "understand $scope and $resource, $http etc," features.

If you feel my comment about Angular is completely Unfair, I agree with you and will delete it. But here is my argument.

Why Angular is not Javascript:

1) The code written in Angular javascript gets compiled into javascript.

2) Tough to extend Angular and implement features that are not supported by Angular. Please Try adding new features on your own, then you will feel the pain.

3) Mixing bindings between the markup and script is not a good way to add bindings. Bindings should not be mixed with Markup (Unobtrusive JavaScript).

4) I felt Google is doing the same mistake they did with "GWT". They are not thinking in terms of issues faced by other JS developers, That is why jQuery is still pretty popular (Plugin based approach)

While developing client side app, each requirement is completely different and you really don't need a framework to address all this. But you need libraries like Backbone, jQuery ...etc as per the requirement and backed by open source . This is why, i love Backbone,jQuery ..etc

I worked on 4 applications with each having its own simplicity and complexity that uses Backbone. Never faced any issues, Community is very supportive.

If you have done R&D on JS MVC and like Angular than Backbone JS (Ember JS always confuses me too), Please continue with your work. Because there is always a nicer way of doing things in Client side :).

P.S Here is one of my project in Backbone JS (https://github.com/pradeepin2/bbquiz)

Please share your toughts, Why you prefer Backbone JS over Angular JS ? It will be very helpful.

EmberJS Confuses Me 13 years ago

Yes, I too agree EmberJS always a confusing library, Following are my resaons.

1)They say it follows MVC. Its actually MVC but MVP, if you look closely at the implementation.

2)Controller job is not precisely defined. Example: Even the data validations are done at controller level not a model level

So i switched to Backbone.js, which is very flexible library with tons of plugins that can be used when needed.

Since implementation of UI is different from requirement to another requirement. I feel EmberJS doesn't satisfy this, which leads to people using Backbone.js.

Regarding AngularJS, please use it only if you are new javascript and prefer learning Angular Javascript (which is not javascript by the way) :)

I have used backbone and angular, created a small Quiz application in both the frameworks.

I would say with Angular, what you write is not javascript , it is Angular JavaScript, which gets compiled into javascript on running over compiler. Having been worked with GWT for many years, I am disappointed with Angular doing the same mistakes of not allowing the developers to think in terms of Javascript. But in terms of the framework, which they had brought in.

However, Backbone gives me lot of freedom in customizing the app by adding Javascript and using its model view observable logic. If i find any shortcoming in backbone, i can see a plugin available in the Community. Which is really great.

To conclude , If your are experienced JS developer (JS ninja), you will love backbone. If you are intermediate/beginner JS developer you will love angular. However, this is just my perspective.