In which I share how we are using more tiny classes to make Gauges more maintainable.
Refactoring: be eager, not reckless
The illustrious Chris Eppstein recently tweeted:
If some code should be refactored, stop what you are doing and refactor it.
I was about to respond, but realized I had more to say than would fit in a tweet. (Waiting for someone to fix that prob...
Refactoring: be eager, not reckless
The illustrious Chris Eppstein recently tweeted:
If some code should be refactored, stop what you are doing and refactor it.
I was about to respond, but realized I had more to say than would fit in a tweet. (Waiting for someone to fix that prob...
Correct, Beautiful, Fast (In That Order)
In which I post some thoughts on the steps to beautiful code.
Just In Time, Not Just In Case
In which I discuss coding only for what is needed today, not what might be needed down the road.
Using BETWEEN for SQL comparisons
Recently, Carlos, suggested that I should start sharing some basic SQL tips that help with performance and/or general usage. I recently came across some code that I didn’t like to read and/or write. For example, let’s take the following…
SELECT * FROM brochures WHERE published_at <= now() AND archived_at >= now()
Essentially, this is pulling back...
DRYing Models via Acts As
ActsAs is an idiom familiar to every Rails developer, which makes it a good candidate for a shared functionality between models. Using it as early in the game as possible allows one to work on its functionality without a need to touch the code in multi...

