JoC #22: Refactoring for good style

      We are accustomed to see men deride what they do not understand, and snarl
      at the good and beautiful because it lies beyond their sympathies.
            — Goethe

Okay, time to get a little more professional again: Let’s clean up our code a little.

Writing in good style is really important, so today I’ll show you a bit about refactoring. Especially, we want to create short, clear methods. (The technical term for it is cohesion – we want highly cohesive methods.)

Download video

Concepts discussed: methods, refactoring, style, cohesion

JoC #8: Keeping your code clean

      Always code as if the guy who ends up maintaining your code will
      be a violent psychopath who knows where you live.
          — John F. Woods

Here it is: The Joy of Code, Episode 8.

This time: housekeeping. No new functionality, but good coding practice. Enjoy.

Download video

Below is a version of the scenario to download as it is so far (at the end of this episode). If you haven’t been coding along with the previous episodes, but want to start here, use this version.

Concepts discusseddefining methods, code quality

Scenario download:  trick-the-turtle-v2.zip