Code Curiosity Prying for knowledge

Install Redis on Ubuntu

Setting up Sidekiq recently forced me to install redis.Sidekiq requires a pretty recent version of redis. One more recent than the package manger on Ubuntu provides. You can use the following script to install a more recent version. It's also useful for other packages you might need more up to date versions of (nginx, postgres, etc...)

Read more

Learning Clojure

If you are not aware of the ongoing shift from OO to functional programming, it might be worth watching this talk from Rich Hickey titled Are We There Yet. It contains many solid arguments in favor of pure functional languages, like clojure.

Read more

Install PhantomJS on Ubuntu

For those that know me, PhantomJS, is something that I have a soft spot for. It is fantastic for testing your JavaScript. Lately, I have been trying to use it to test my application features with Poltergeist, but have run into some version issues. For whatever reason, apt-get is installing a very old version (1.4). In order to install the current version you need to pull it down from the PhantomJS site. Below should help you out.

Read more

ORM Tradeoffs

There has been much talk about ORM hate. I have had many discussions with colleagues at ThoughtWorks about their feelings on ORMs from their personal experience. Some think they are wonderful and couldn’t imagine life without them. Others think they are abused and included in projects too often. I have a theory where this latter argument is really coming from, but I will save that for the conclusion.

Read more

Testing Javascript in Rails

This post is inspired by Derek Hammer's testing coffeescript for rails with jasmine. His solution was great for getting my team started, but we both agreed it wasn't ideal. I'm still not entirely happy with the final solution because you do need to start a rails server. However, I have made that as painless as possible.

Read more