Using Controllers in Ember

Last week we looked at Ember Routes. The Route is responsible for providing the model data, selecting the controller and rendering the template. The Controller is an important and well recognised component of the MVC paradigm. Controller’s in Ember sit between the Template and the Model to deal with logic and properties that do not […]

Continue reading...

Understanding and using blocks in Ruby

If you have been following along with this series, you might be confused by the use of blocks. So far we’ve seen blocks being passed to iterator methods such as each, map and select whilst looking at Arrays, and Hashes. A block is simply a chunk of code that can be passed as an argument […]

Continue reading...

Working with Routes in Ember

Last week we looked at the basics of routing in Ember. Routing URLs is one of the core components of a framework because it is the URL that drives the behaviour of the application. I mentioned last week that you don’t always have to specify things in Ember because certain defaults will be assumed. This […]

Continue reading...

What are Symbols in Ruby?

If you’ve been following along with the posts in this series you might have been wondering what a Symbol is. You can recognise a Ruby Symbol because it will be a word that starts with a :. So far we’ve seen them as the key in a Hash (Working with Hashes in Ruby): And as […]

Continue reading...

Routes and Resources in Ember

URLs are very important in just about every type of web application. A well designed URL scheme should describe the user’s location within the hierarchy of the application. In a modern web application, the user should be able to navigate by either taking an action through the user interface, using a browser function or typing […]

Continue reading...

Working with Structs in Ruby

Last week we looked at using Hashes in Ruby. A Hash is a dictionary of keys and values. This can be useful for passing around structured data that is unknown or could potentially have many key / value pairs. However it’s sometimes the case that you need to be a little more explicit with structured […]

Continue reading...

Using Templates in Ember

Last week we looked at setting up an Ember application as part of an existing Laravel repository. Ember is a front-end framework that makes building interactive client-side applications much easier than rolling your own Javascript. One of the core components of Ember is it’s templating engine. In today’s tutorial we will explore the Ember templating […]

Continue reading...

Working with Hashes in Ruby

Last week we looked at Arrays in Ruby. An Array is a useful data structure for working with a collection of items. A Hash is a similar Ruby data structure in that it allows you to work with a collection of items. However, a Hash is a dictionary of keys and values, where unlike an […]

Continue reading...

Getting started with Laravel and Ember

Over the last couple of years, the user experience bar for modern consumer and enterprise web application has risen steadily. Users now expect immersive, responsive and interactive user interfaces that respond and adapt to their input and requirements. Front-end Javascript frameworks are all the rage these days. These frameworks provide a lot of the functionality […]

Continue reading...

Working with Arrays in Ruby

Over the last couple of weeks we’ve started to get to grips with the Ruby programming language. We looked at some of the reasons why you would want to learn Ruby as well as how to install and play around with IRB in Getting started with Ruby. Next we looked at using the String object […]

Continue reading...