Web

Lunchtime Tech Talk: Tom Dale and Yehuda Katz on Ember.js

On Wednesday, Tom Dale and Yehuda Katz joined us for a lunchtime tech talk. Tom gave a great overview of ember.js, a new JavaScript MVC born out of the work done on SproutCore 2.0. Here’s the video of the presentation … Continue reading

Posted in Web | Tagged , | 2 Comments

Beginning Outside-In Rails Development with Cucumber and RSpec

The RSpec Book defines outside-in Rails development as starting with views and working your way in toward the models. By developing from the outside in, you are always taking a client perspective at each layer of the application. The end … Continue reading

Posted in Process, Web | Tagged , , , , | 5 Comments

Display Line Numbers on Embedded Gists

I’ve been working on a post here for C5 and in order to make my points, I was referencing gists hosted by GitHub. When those gists were shown as embeds, the line numbers, and thus the clarity of my documentation, … Continue reading

Posted in Web | 4 Comments

Does My Rails App Need a Service Layer?

Sometimes during domain modeling you come across something that isn’t a thing. These operations that don’t quite belong to an object are called services. Services often live in a separate, service layer. The service layer lies between controllers and models, … Continue reading

Posted in Design, Web | Tagged , , , | 18 Comments

Exploring Client-side MVC with Backbone.js

Backbone.js continues to gain popularity in the JavaScript MVC community. I decided to give it a try by creating a simple, single-page app to CRUD a single domain model. While it wasn’t as trivial as a traditional server-side implementation in … Continue reading

Posted in Web | Tagged , , , | 7 Comments

Modern Cucumber and Rails: No More Training Wheels

Last month, cucumber-rails 1.1 was released. This release removed web_steps.rb, a collection of step definitions for interacting with a web app. For months, web_steps.rb contained a warning of its negative effects on feature maintenance. Like most developers, I ignored the … Continue reading

Posted in Process, Web | Tagged , | 13 Comments

Up and Running with Clojure

For the last three years or so, Clojure has been a language that I admired from afar: the design of the language is wonderful but I’ve never really used it to build anything and haven’t looked closely at the language … Continue reading

Posted in Web | 16 Comments

A Modern Guide to Threads

I spoke recently at Rubyconf 2011 on some advanced topics in threading. What surprised me was how little experience people had with threads so I decided to write this post to give people a little more background on threads. Matz … Continue reading

Posted in Web | 11 Comments

Automating Node.js deployment to EC2 with Chef

This post is a follow up to my colleague Ben’s excellent post from three weeks ago describing how he got node.js up and running on Amazon EC2. He asked me if I could automate his deploy in order to help … Continue reading

Posted in Ops, Web | Tagged , , | 9 Comments

Improving Resque’s memory efficiency

Resque is a very popular message queueing system for Rails applications.  Here’s how I recently improved the memory efficiency of a Carbon Five customer’s resque processing farm by 68x! The Problem This customer has an existing investment in Resque and … Continue reading

Posted in Web | 8 Comments