ruby Archive

Refactoring Rails Legacy Apps with APIs and Messages

Ruby Rails as a framework is famous for getting an application up and running quickly, but the very paradigms that make it so easy at the start can lead to maintenance nightmares down the road. Successful applications

Code Smells: Your Refactoring Cheat Codes

Sure, the TDD cycle is red-green-refactor but what exactly are we refactoring? We just wrote the code, it’s green, and it seems reasonable to us. Let’s move onto the next test. We’re have a deadline, remember? Whether

Refactoring from Good to Great

Most developers know enough about refactoring to write code that’s pretty good. They create short methods, and classes with one responsibility. They’re also familiar with a good handful of refactorings, and the code smells that motivate them.

Metrics Based Refactoring

Metric_fu makes it easy to generate reports that measure code quality. Once you’ve created the reports, what do you do next? You know your code could be better. Now what? As lead developer of metric_fu, Jake Scruggs

BDD With Cucumber RSpec

This two videos show how to do Behaviour Driven Development (BDD) with Ruby, Cucumber and RSpec.