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...

Design Inspiration #196

Design Inspiration from Slack, Atom, Help Scout, The Loppist, and Atomic! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. Slack https://slack.com Atom https://atom.io Help Scout http://www.helpscout.net The Loppist https://loppist.com Atomic https://www.atomic.io

Continue reading...

Creating and using Modules in Ruby

A problem that you will encounter when you begin to work on bigger Ruby projects is code organisation and how best to reuse code. Modules are a way of “namespacing” your code. This is important for organisation, but it also prevents name clashes between classes, methods and constants. In today’s tutorial we’ll be looking at […]

Continue reading...

Design Inspiration #195

Design Inspiration from Tracksmith, Fivefootsix, ThinkBlink, The Calvert Journal, and CashBack Corporation! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. Tracksmith https://www.tracksmith.com Fivefootsix http://www.fivefootsix.co.uk ThinkBlink http://thinkblink.nl The Calvert Journal http://calvertjournal.com CashBack Corporation http://cashbackcorp.com

Continue reading...

Understanding Inheritance in Ruby

One of the fundamental aspects of Object-oriented programming is inheritance. Inheritance is where an object inherits from another object. This means it acquires the same properties and methods of it’s parent. This is an important concept for a lot of reasons. However, I think inheritance is often misused by newbie programmers who jump at the […]

Continue reading...