An Introduction to Ember for Angular Developers

Wednesday, February 10th, 2016

One pain point of Ember that I often hear is that the learning curve is a little steep. Because Angular is extremely popular, I’d like to introduce Ember from the perspective of an Angular developer, hopefully getting those who know Angular up and running quickly based on something you are already familiar with. Ember is a fantastic framework that I’ve grown to love coming from the Angular world myself, and you may too.

Read More

Testing Serializers in Ember - Part 2

Saturday, February 6th, 2016

Not too long ago I wrote about Testing Serializers in Ember. The examples in the post went over testing the serialization process on responses and verifying methods like normalizeResponse and keyForRelationship worked correctly. But what if you want to verify that data is serialized correctly when it is sent to your API? Let me show you an approach that has worked well for me.

Read More

Working With Nested Data In Ember Data Models

Friday, January 29th, 2016

In today’s post, I’d like to share a few ways of how you can work with nested data in Ember Data models.

Read More

5 Ways Unit Testing Can Help You

Thursday, January 28th, 2016

Have you ever been on a project where you make one change and later realize you broke something else? It feels like you’re playing whack-a-mole. Working on a JavaScript project like this is no fun at all. I’ve worked on plenty of projects like this, some of which I wrote all code. That’s when I learned about automated testing, and specifically unit testing. Once I got into unit testing and following the test driven development (TDD) methodology, it completely changed the way I wrote code. In today’s post, I’d like to introduce you to some of the benefits of unit testing and why you should get started with it right now.

Read More

Ember Data and Custom APIs - 5 Common Serializer Customizations

Saturday, January 23rd, 2016

When I first started working with Ember Data in the 1.X days, one of the most frustrating things was having to work with custom APIs. This wasn’t because of Ember Data but because I was new to it and there is a lot to learn. I was motivated to use Ember Data but I just couldn’t get it to work with whatever API I was using at the time. Do I massage the data in an adapter or a serializer? What is the difference between normalizeReponse() and normalize() in serializers? How do I handle related data that is nested? I had lots of questions like these. Even today I see a lot of the same questions being asked on the Ember Discussion Forum about getting Ember Data to work with custom APIs. In this post, I’d like to share a few common ways to customize serializers that others might be wanting to make as well, especially those new to the framework.

Read More