New business cards
Check out our new Agile Evolved business cards which arrived today, just in time for RailsConf.
Posts from Luke Redpath...
Check out our new Agile Evolved business cards which arrived today, just in time for RailsConf.
The Decorator Pattern is a design pattern that enables you to dynamically wrap behaviour around an existing object at runtime. It is especially useful when an object can have many variables that can be combined in different ways, which in turn affect it’s behaviour.
This small, simple implementation of the decorator pattern in Ruby sums up what I love about the hottest dynamic language on the planet.
Ongoing updates live (or when I get round to it) from Barcamp London. I’ll be posting notes on the presentations I attend as the weekend goes on.
Ongoing updates live (or when I get round to it) from Barcamp London. I’ll be posting notes on the presentations I attend as the weekend goes on.
Writing Rails testing articles seems to be quite popular at the moment; seeing as I’m often quite vocal about testing on the #caboose and #rubyonrails IRC rooms I felt it was about time I posted one of my own. I have a large series of articles on testing with Rails in the pipeline, but until that is done, here is a nice and simple tutorial for newcomers to BDD and RSpec – the first in a two-part article exploring the development of a typical Rails model, using BDD techniques and the RSpec framework. If you are interested in BDD and RSpec, or new to testing in general and want to learn how to iteratively develop a model test/spec-first, this is the article for you.
In the style of 37Signals “SunSpots” articles – a small collection of odds and ends not big enough to warrant an entire entry to themselves – I present to you SoundBytes; little bites of information (but bytes, because we are geeks, right?) that are, as any of my Northern friends would say, sound.
Dan and I are please to announce the biggest release of the Unobtrusive Javascript for Rails plugin – now simply known as UJS. This is a big release in many ways – we’ve got some important bug fixes in here, some great new helper functionality and most importantly: caching. The other big news is that the UJS plugin now has its very own website.
Ryan Daigle speculated on his blog that an official Rails plugin repository was in the works. He referred to an app checked into the Rails subversion repository recently.
I can announce that a Rails plugin repository is on the way, although not the one currently in the Rails repository. That particular app was a repository started by Rick Olson. The repository that is on the way is actually being worked on by myself and James Adam of Rails Engines fame.
Like many other people, I’ve moved my blog over to Mephisto by Olson and Palmer (doesn’t that sound like a 70s prog band?). I’d become very sick of Hemmingway though, even if I was using the less common white version, and with Mephisto coming with Hemmingway as its default theme its now even less unique, so it was time for a change. So I present to you…Sydney.
I’m sure many people are aware of the risks in running pre-1.0 software/plugins and that there are likely to be many bugs discovered until that 1.0 release finally hits (and beyond).
Unfortunately, it takes really working with a Rails plugin to find problems and I have been doing so today. I encountered a strange error where the plugin was generating IDs for elements that shouldn’t have any javascript events attached.
We're currently using Edge Rails and the Unobtrusive Javascript for Rails plugin in the forthcoming Rails Plugin Repository and after a Subversion update today, something seems to have broken the Unobtrusive Javascript plugin.
David posted an entry on the RubyOnRails weblog pushing people to go to RailsConf EU and a lot of people reacted negatively to it.
The thing that most people reacted badly about was the price. ?575 is a lot of money to spend for most people, especially freelancers and enthusiasts and the early bird price of ?475 is still not cheap.
Dan Webb and I are happy to announce the latest release of the Unobtrusive Javascript plugin for Rails. This release packs in lots of cool new features, a few changes to old ones and some performance enhancements.
Good news - Geoffrey has agreed to roll Rails Plugin Packs into RaPT. I’ve already integrated it into the RaPT source code and a patch is winging its way to Geoffrey’s inbox as I write this.
After a brief brainwave on the way home from work, I came up with a simple solution to the problem, which I now present to you simply as: Rails Plugin Packs™.
Similar to many Rails helpers/methods, a lot of the methods I write often use an optional hash of options, or sometimes just a hash only, to simulate keyword arguments (often using symbols).