Code + Product

Rspec - How to test a controller has included concerns

May 18th, 2015 in Ruby on Rails

A short Rspec snippet to verify the correct concerns have been included in a controller.

How to split Rails routes.rb into multiple smaller files

Apr 27th, 2015 in Ruby on Rails

Organise your routes.rb file into smaller files, works in both Rails 3 and 4.

Supercharged Javascript and CSS animations

Apr 21st, 2015 in Product | Javascript

Summary notes from the Browser Rendering Optimization course on Udacity focussed on building 60 fps apps.

How do you measure user experience quality?

Apr 14th, 2015 in Product

Are there any factors which help evaluate a product as a bronze, silver, or gold standard of quality?

Overview of basic terms in AngularJS

Mar 25th, 2015 in Javascript

A glossary of terms commonly used in Angular JS documentation and tutorials.

Serving PHP with FPM (FastCGI) using Nginx on CentOS

Mar 11th, 2015 in Servers and Scaling

Installation steps to start serving any PHP application (eg Wordpress) using FPM on CentOS, together with a sample Nginx config file.

Testing a $rootScope broadcast event with Jasmine

Feb 23rd, 2015 in Javascript

A short snippet for testing AngularJS with Jasmine.

Rails 4 Conditional Page Cache for Logged In Users

Feb 18th, 2015 in Ruby on Rails

A technique to generate a full static HTML page for caching, based on any specified conditions.

Recommended Rspec style for Rails models

Feb 11th, 2015 in Ruby on Rails

Listing out my top 10 recommendations for how to structure and layout rspec tests for Rails models.

Simple sysadmin tools - Screen on CentOS

Feb 4th, 2015 in Servers and Scaling

Screen is one of my favourite utilities when managing servers - it allows you to use multiple shell windows from a single SSH session and to keep these active even after logging out. It is super useful for monitoring long-running processes.