# -*- coding: utf-8 -*- #+TITLE: Design Patterns in Ruby #+AUTHOR: Mathias Huber #+Email: mhuber@linux-magazin.de #+OPTIONS: toc:nil reveal_overview:nil #+OPTIONS: num:nil #+OPTIONS: reveal_keyboard:t #+REVEAL_TRANS: linear #+REVEAL_THEME: sky #+REVEAL_HLEVEL: 2 * Design Patterns ** Principles - Do not reinvent the wheel - Names for prepacked solutions - 23 patterns - middle ground ** Applying Design Patterns to Ruby *** Internal Iterator #+BEGIN_SRC ruby a = [1,2,3,4] a.each {|x| puts x} #+END_SRC *** External Iterator [...]