WhatCodeCraves

Rails String Inflections

I've been using constantize to turn strings into Class objects. Constantize is mixed into the String class by Rails. This got me to thinking about other clever helpers that might be mixed into the string class. A quick search through the API did not disappoint.

Read more

RSpec'ing acts_as_state_machine

One of my favorite plugins I've seen so far is acts_as_state_machine. It's a dead simple way to model the different states your models can be in. It also lets you register callbacks to when a model enters, entered, or leaves a particular state. It's absolutely fantasic until I have to test it. Then it becomes an absolute nightmare.

Read more

First Sprint

Today at work, I sat in my first planning poker meeting. This was in preparation of our next 4 weeks of development time. We used the Planning Poker site to vote on suggested projects. I had read a little bit about user stories back in my Rails class, but the few times I tried practicing agile development methodologies were always met with whining and criticism. It's good to be at a place where people support this.

Read more

Dangerous Scaffolding

I did something bad today. It wasn't bad enough to destroy working customer instances, but it was enough to make all the dev team all up in a huff. The worst part of the whole experience was a) I didn't remember I was the one who nuked it, and b) it got nuked because of some crufty scaffolding and default behaviours.

Read more

Capify my App

After a complete Saturday of vegging out, I decided to accomplish something today. My initial target was to pull Craigslist rental listings for my housing app, but that led to me learning more about plugins, which somehow led me to reading about Capistrano. Yak shave, anyone?

Read more

blog comments powered by Disqus

FlacoBlog 2008