Stubbing "Today" in JavaScript Unit Tests

Tuesday, June 21st, 2016

One of the challenges of working with dates is unit testing code that depends on the current date. For example, let’s say we have a purchase history, and we want to find all purchase transactions for today. Let’s write a test for this:

Read More

Ember Data in the Wild Is Out!

Sunday, June 19th, 2016

I'm happy to announce that my book Ember Data in the Wild - Getting Ember Data to Work With Your API is finally finished and available for purchase!

Read More

Get Up and Running with Ember FastBoot

Friday, April 8th, 2016

Get up and running with Ember FastBoot with this video tutorial. This video tutorial goes through converting a simple application using jQuery AJAX calls, components, and Ember Data to using Ember FastBoot in under 5 minutes. It’s that easy.

Read More

Styling <select> Elements with CSS

Thursday, April 7th, 2016

As a JavaScript developer, I find myself keeping up less and less with CSS. Recently I had to style a select menu and figured this was probably now possible in at least modern browsers. After some research and trial and error, this is the solution I ended up with that worked pretty well:

Read More

Promises and Closure Actions in Ember

Saturday, March 12th, 2016

Recently I was working with closure actions and learned something new about promises in the process. So you’re probably familiar with this:

Read More