Web Development  >>  Ruby On Rails

Better Hacking With Training Wheels - Joe Martinez

Language: English Quality: High Has Audio: true Source: confreaks Media: Flash Posted On: 08 Feb 09

I'd like to do a talk on a library I'm developing called Training Wheels. The idea is to bridge the gap between junior developers who understand the syntax but may not use OO or common idioms properly up to advanced rubyist level, and do it in ruby to boot!

Training Wheels is a ruby library that can be run against your own scripts, libraries or applications that looks for common problems in ruby, like:

  • repetitive code
  • pretty poorly performing patterns (alliteration not included)
  • fat methods
  • deprecated methods in libraries it has plugins loaded for
  • all manner of wickedness
    Training Wheels works by converting your ruby to s-expressions using ParseTree and performing analysis on the resulting tree.

    It can be used as a development aide in conjunction with rstakeout(and growl for extra zen factor) to get instant suggestions on better practices in your code. As a Rails plugin it runs in development mode and slings all sorts of insults via the log file.

    It's also configureable via a yaml config file or command like switches. Merb hacker who thinks 'returning' is a bug? Let the Training Wheels make sure you don't commit such a grievous error. Rails hacker who thinks alias_method_chain is the bees knees? Let Training Wheels watch out for: alias_method :foo_without_feature, :foo; alias_method :foo, :foo_with_feature

    Training Wheels is extendable so developers can write plugins that train on proper usage of their DSL's or business layer. So the default ruby wheels would be loaded by default. The Rails plugin would include the Rails wheels, the Merb plugin the Merb wheels and so on.

    New wheels wouldn't just be limited to web frameworks. Any ruby library could include a set of training wheels that are loaded by anyone riding with Training Wheels.

    If you're already an expert developer and you don't need no stinkin' training wheels, let Training Wheels train your underlings so you don't have to.


  • Tags: Ruby, Conference, Screencast, rubyconf2008, rubyconf 2008, Training Wheels, Training, Wheels, Ruby on Rails, OO, Plugin, library,     [SUGGEST  A  TAG]



    Other dowloadable format of this video

    Video in h.264 Quicktime (mp4) format
    Resolution : 640x240
    OR 
    Video in h.264 Quicktime (mp4) format
    Resolution : 960x368
    OR