009 RR What Makes Beautiful Code

by Charles Max Wood on July 5, 2011

Panelists

Mentioned in this Episode

Ruby-Chan

Why Beautiful Code?

  • You know your code is written correctly by looking at it.
  • Knots metaphor – If it’s shaped right, you know it’ll hold.
  • The shape in your mind matches the shape on the page

Evaluating code:

  • Eric Hodel – Audio evaluator of code
  • rubygems-sing
  • Reveals the intention to someone

Practices:

  • 80 character limit
  • 1 statement per line
  • Comments are code smells
  • Red-green-refactor
  • Engage more senses-use more parts of the brain
  • Short functions/methods
  • Morph the language into the language of the problem domain (DSL’s)

Dave’s post on Dishonest code

Picks

1 comments
Henry Maddocks
Henry Maddocks

I love your podcast, love the guests, love the subjects, love the format, might even like to be on it sometime, but dude, you've got to sort out the production. The awful production makes it hard work to listen to. Just a little bit of editing will make a huge improvement. Henry

Trackbacks

Previous post:

Next post: