Skip to content

Instantly share code, notes, and snippets.

@amaierhofer
Created October 15, 2012 07:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amaierhofer/3891244 to your computer and use it in GitHub Desktop.
Save amaierhofer/3891244 to your computer and use it in GitHub Desktop.

Title

Towards understandable, maintainable code.

Explain how OO and ruby work together in producing readable, flexible, fun to work with code.

Why is this important

  • Code as conversation

Methods at the core

  • good method goals
  • composed method pattern via TextProcessor
  • explained method as basic building block

Ruby method specialities

  • indicative
  • default params
  • block arguments

Objects interacting in the system

  • SOLID design principles

Refactoring example from sandi metz

  • achieve open/closed via SRP and DI

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment