Presentation on Writing Good Library Code in Ruby
JavaScript Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Tips.oo3
chainsaw_infanticde_files
gino-tesei_files
keynote
pdf
src
.gitignore
Leeroy Jenkins.gvi
README.md
chainsaw.txt
chainsaw_infanticde.html
gino-tesei.html
nil.rb
silence.txt

README.md

TITLE:

Playing It Safe (in a meta-programming world)

SHORT DESCRIPTION:

Ruby is an amazing powerful language with lots of really flexible feature. Alas, with great power also comes great responsibility. Some of Ruby's features, such as open classes, give programmers from more traditional languages pause. Sure, you can add a method to any class, but should you do that. This talk will explore the use of Ruby's flexible features in the context of larger system development.

LONGER DESCRIPTION:

Ruby's incredibly flexible language features puts a great deal of responsibility on the programmer to use them in a safe manner. This talk will discuss when it is appropriate to use these feature and when it might be better to "play it safe". It will also discuss future language features such as "selector namespaces" and how they effect programming styles.

Topics include:

  • How to safely add methods to open classes.
  • Avoiding name conflicts.
  • Using send rather than send.
  • Safe use of method_missing.
  • Selector namespaces.
  • Safe method chaining.
  • Custom "require" behavior.