Understanding Class Methods verses Instance Methods in Ruby

Over the last couple of weeks we’ve started to look at defining classes in Ruby. First we looked at writing methods and some of the idioms you might encounter (Working with Ruby Methods). Next we looked at defining basic classes and how we can use some of Ruby’s nice little features to make setting up […]

Continue reading...

Understanding and Creating Components in Ember

As Web Developers, we work with the building blocks of HTML to create websites. HTML is a standards-based markup language that provides the foundations of how pages are rendered in a web browser. Web Components have been have been talked about widely for a number of years now. Web Components are essentially a way to […]

Continue reading...

Finding, Creating and Saving records with Ember Data

If you have ever rolled your own Javascript applications in the past, you’ve probably experienced the mess you usually get into when dealing with Ajax requests. One of the big benefits of using Ember Data is that you don’t have to deal with this headache. Instead, Ember Data provides an easy to use interface that […]

Continue reading...

Writing Ruby Classes

An important part of object-oriented programming is writing classes. Classes are the blueprints of objects and allow us to define the properties and behaviour that the objects of our applications should posses. Last week we looked at working with Ruby methods. Writing reusable methods is a big step towards becoming a programmer in the early […]

Continue reading...

Working with Records in Ember Data

Last week we looked at defining Models in Ember Data. A Model definition is like a blueprint that describes the attributes and relationships for that resource. The actual object that is defined by the Model is known as a Record. When you create a new object using a Model, or you find an existing instance […]

Continue reading...

Working with Ruby Methods

So far in this Ruby series we have already touched upon using classes and methods a number of times, but we haven’t really looked at writing our own. A class is like the blueprint of an object and describes it’s properties and behaviours. If you are already familiar with object-oriented programming, using classes and methods […]

Continue reading...

Defining Models in Ember Data

A model is a class that defines the properties and behaviour of an object that is persisted as part of your application. The model is the blueprint for how each record should be created. If you’re familiar with Object-relational mapping, the concept of a model should already be pretty familiar to you. In today’s tutorial […]

Continue reading...

What are Lambdas in Ruby?

Over the last couple of weeks we’ve looked at working with blocks and Procs. A block is a chunk of code that can be passed to a method. This makes it really easy to write flexible methods that can be used in a number of different ways. If you are already familiar with other programming […]

Continue reading...

Understanding Models and Ember Data

The majority of web applications aren’t going to be very useful without data. In a typical MVC application, it is the model layer that usually deals with the data of the application. In single page applications this is usually in the form of a JSON API to some kind of backend service. In today’s tutorial […]

Continue reading...