RantFever 4

I pontificate but not in the pejorative sense of the word.

Learning Curve

Posted 28 April 2013
Written by Abinadi Ayerdis
Category Ember.JS

Complaining is not attractive. But I will do it anyway. I want to get this off my chest.


Seriously, the learning curve for Ember.JS is too much. I have watched so many videos and read so many tutorials that I have gone a little batty staring at ember code. The worst is when the tutorial has code that doesn't work and I don't know enough about ember yet to understand why. Or if the tutorial came out two months ago and is already out of date. Perhaps I have decided to jump on the ember band wagon too early. I should perhaps wait for the stable release of ember 1.0. 


Then there is Laravel 4. There is also a learning curve there, but I feel like I have a better grasp of how it all works together. I am trying to embrace composer and packagist. I added ember, ember-data, and twitter bootstrap all to my composer.json file. It pulls it all in rather neatly. The downside is that it puts them wherever it wants them. Then I have to copy the relevent parts to the public directory. I wish there was a way I could do that automatically. Well, there is a way, but really, who want to write the php for that nonsense? Not me. They need to make it easier. 

Baby steps

So I have a working install of L4 with bootstrap, ember, and ember-data all ready to go. The next step will be to recreate my tabulature website using ember as a client-side MVC and Laravel as a REST API. This will introduce me enough to the mechanics of ember and laravel that I will be able to then do the Dominion site with less difficulty.


Christopher Moore

28 May 2013

Been eagerly awaiting someone attempting to tackle Laravel and Ember. I've recently been digging into the Ember framework, and to be honest, I find it much easier to grasp than Backbone & Marionette. The problem I'm running into is that Ember expects JSON to be received in a certain format, while Laravel returns its collections in a different format. I believe there is a Django adapter that will allow for Laravel collections to work with Ember, but I'm not sure I want to rely on it with both frameworks (Ember and Laravel) going through so many updates recently (congrats to Taylor and all those who contributed to L4 by the way!!).

Looking at Laravel's documentation, it looks like I can override the newCollection method in an Eloquent Model to try and produce the results I need. I've dabbled with Rails to get a sample up and running, and once I get Ember jiving with Laravel I don't think I'll ever look back.


29 May 2013

I was really excited about Ember when I first heard about it, too. I started a small project, but I quickly got stuck. I'm having a hard time wrapping my head around it all. Work has been keeping me busy and I haven't gotten back to the Ember+Laravel project yet. But I'll blog about it when I do.

I found someone who wrote a module to make Laravel and Ember play nice with JSON, but it didn't work for me. Part of the problem is both Laravel 4 and Ember Data were not stable yet. Luckily, Laravel 4 just released this week. Hopefully Ember Data will stabilize soon as well.

Posting comments after three months has been disabled.