EmberJS JavaScript MVC Framework


UPDATE: Since this post is still getting some traffic, I thought I’d update the resources it contains. Here is a better list of sites that can help you get started with Ember:

http://ember101.com/

http://www.embercasts.com/

https://kerricklong.com/articles/why-ember-js-rocks.html

http://freecourses.tutsplus.com/lets-learn-ember/ – a recent and comprehensive set of video tutorials on all the basics of the quality you’d expect from nettuts

// the following links come from the final video in the tutsplus series

emberwatch.com

emberjs.tumblr.com

reddit.com/r/emberjs

stackoverflow.com/questions/tagged/ember.js

Enjoy!

Summary:

  • Ember looks interesting.

I’ve been looking at JavaScript Frameworks for a while. I feel I’m at a point where I’d like to move beyond procedural-style code. A lot of that desire comes from using an MVC framework with PHP. Using an MVC framework in JavaScript seems like the right step.

It took me a while to understand MVC. The first thing I’ll say about MVC is that it is just a design decision. It’s just a structure. Learning MVC is learning where to put things and how to get those things to talk to each other. I like the style and the confusion it helps avoid.

Basically, a JavaScript MVC framework provides/enforces a structure in your code by grouping parts of your app together in Models, Views, and Controllers.

  • Parts that edit, create, delete, etc. data (generally in a database) are called Models.
  • Views are the parts that are eventually shown to the user. View files are commonly made up of HTML and/or a templating script.
  • Controllers receive input from Views and send it to a Model. When that Model has done its work, it returns something to the Controller. The Controller then sends information to the View.

A couple of days ago, I saw a useful tutorial on EmberJS by Andy Matthews. It really clicked. I also found a couple other helpful resources by Andy elsewhere. Ember and I are going to be friends.

My experience is that the best way to learn something is to use it in a project. Well, I’ll have to think up something quick.


Leave a Reply

Your email address will not be published. Required fields are marked *