Posts

Showing posts with the label Javascript

Ember: Actions Up, Data Sideways

The rallying cry for Ember 2.0 has been “Data Down, Actions Up”. Ember's component based architecture sets a pattern where data is passed “down” to child components, while children “request” changes from their parents by triggering actions. This certainly has its advantages ... until it becomes unwieldy. My colleague @ForSpareParts and I have been deep in the trenches implementing an analytics and big data product in Ember for a number of months now. He wrote a great article about an alternative to Data Down, Actions Up and proposes the alternative architecture we have landed on. Its a good read: http://forspareparts.github.io/2016/01/24/actions-up-data-sideways/

Debugging Minified Javascript

This is an error we got in the early morning hours from our staging environment: c is null There are lots of things to like about minifying Javascript except this of course. Removing proper variables annihilates context so completely.