▶   We’ve been acquired by Pluralsight!   ▶   Upgrade your account to Pluralsight   ▶   More details…

Play by Play: Refactoring with Ben Orenstein

Preview

Download Free Preview

Purchase includes iPod download Purchase includes Quicktime (zip) download

Refactoring, or improving and refining code without changing functionality, is a key skill in any programmer’s toolbox. Over the past few years, one of the most eloquent refactoring experts has been Ben Orenstein of thoughtbot.

In this hour and a half long video, Ben takes the code written by Aaron Patterson and Corey Haines and refactors both its tests and its implementation.

PeepCode Play by Play is an opportunity to watch experts work (not a step by step tutorial), but you’ll learn about the following topics:

  • In the first 25 minutes, Ben starts looking at the code and gives us a tour of his text editor (Vim), extensive shell customization, and tooling workflow.
  • In the next half hour, Ben reads and understands the test code, then rewrites it to be clearer and more maintainable.
  • He then sets his sights on the implementation code where he changes a bit of the API, then tackles a particularly terse method.

The result is a dozen insights into when, where, and how to refactor code confidently.

The live coding format works perfectly for seeing how refactoring is done in the real world. This isn’t a rehearsed presentation, but a live discovery of code for the first time. If you’re not confident with refactoring, you’ll learn a ton from this video. If you are, you’ll see how another expert does it.

Available as part of a PeepCode Unlimited subscription (including streaming on our iOS app!) Business plans are also available.

Skills

If you’ve done any kind of programming at all, you’ll be able to learn from this video. It uses the Ruby language but the concepts apply to any programming language.

Revision 1 (Notes) · Updated: Apr 11, 2013 · Length: 96 min · 889 MB

Screencast Catalog