Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A talk on lean and sweetened code at the Kings of Code un-conference.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Short and sweet II '08.key
code
work
.gitignore
README.rdoc
Short and sweet II.key

README.rdoc

Short is Sweet II

  1. Why?

* Less (or actually ‘lean’) code is more time for other stuff (equals profit). Because:
  * Maintainable code: As it improves readability, thus more understandable.
  * Code quality: Less code means less bugs, increases testability, and makes it easier to debug.
  * Easier integration: Less code means less interface, which in turn means it's easier to integrate into different systems.
  1. How?

* Only implement what you need… right now!
  * For instance, most of our plugins start life as a file in ./lib. Or in ./vendor/plugins, but still in the applications repo.
* Dare to throw away unused code. Or move the code into the only application _actually_ using it.
  As it meant that the code wasn't that general at all.
  1. Yeah, but…

* Encapsulation: A lack of encapsulation in the future does not have to be a problem.
  Especially in a language such as Ruby where, for instance, duck-typing is easily done.

Examples

  • composed_of vs attribute-view

Something went wrong with that request. Please try again.