Creating new Ember Data objects

In last week’s tutorial we looked at transitioning to view an individual task. This involved writing a failing test and then incrementally implementing the functionality to make the test pass. So far in this mini-series we’ve created a task list, added task replies, and looked at viewing individual tasks. In today’s tutorial we will look […]

Continue reading...

Design Inspiration #199

Design Inspiration from Charity Bank, Zeplin, Infinit, Freddie Meadows, and Soverin! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. Charity Bank http://charitybank.org Zeplin https://zeplin.io Infinit https://infinit.io Freddie Meadows http://freddiemeadows.com Soverin https://soverin.net

Continue reading...

Using Ruby Exceptions

When developing an application, it’s easy to just think about the happy path. The happy path is the flow through the application when everything works as expected. The user enters the correct data, the request satisfies the business logic and any interaction with third party services or infrastructure happens without a hitch. In reality, there […]

Continue reading...

Transitioning to new pages in Ember

Over the last couple of weeks we’ve built out the main task list using TDD. First we built out the task list using static HTML (Writing your first Ember.js Acceptance Test). Next, we made it dynamic by returning data from the Controller (Introducing Controllers and Models to an Ember.js Application). Next, we mocked an API […]

Continue reading...

Design Inspiration #198

Design Inspiration from HYPH, Baron Fig, Teamgeek, Brightly, and Drip! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. HYPH http://www.hyph.me Baron Fig http://www.baronfig.com Teamgeek http://www.teamgeek.co.za Brightly http://teambrightly.com Drip https://drip.com

Continue reading...

Practical Object-Oriented Design in Ruby [Review]

Practical Object-Oriented Design in Ruby (Poodr) is an accessible guide to Object-Oriented design in Ruby. It covers the foundations of how to think about Object-Oriented design and how to design better objects. The book walks you through how certain practices can lead to brittle code and how using alternative approaches will allow you to write […]

Continue reading...

Adding related models to an Ember Application

Last week we introduced Ember CLI Mirage to mock the API server. By mocking the API server it means we can effectively work with the Ember application in isolation during development and testing. When it comes to shipping the application to production, we can just switch out the mock for the real server. Last week […]

Continue reading...

Design Inspiration #197

Design Inspiration from TINQ, Cushion, Monodraw, Scottie and Russell, and Urban Walks! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. TINQ http://www.tinq.co Cushion http://cushionapp.com Monodraw http://monodraw.helftone.com Scottie and Russell http://scottieandrussell.co.uk Urban Walks http://urban-walks.com

Continue reading...

Working with Mixins in Ruby

Over the last couple of weeks we’ve looked at a couple of important concepts when working with Classes in Ruby such as Inheritance and using Modules. Ruby is a programming language that only allows single inheritance. This means a class can only inherit from one parent class. However, there are a lot of situations where […]

Continue reading...

Mocking your JSON API with Ember CLI Mirage

Last week we went from static HTML to calling a property on the controller to retrieve data for an Ember template. We also created a very simple model object so that we could get the title attribute and display it on the page. However, in the real world you would never hard code your data […]

Continue reading...