Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Tour Through Ruby’s Dusty Corners

A Tour Through Ruby’s Dusty Corners

Sam Elliott

July 01, 2012
Tweet

More Decks by Sam Elliott

Other Decks in Programming

Transcript

  1. A Tour Through
    Ruby’s Dusty Corners

    View Slide

  2. Motivation
    Wheels
    WTFs

    View Slide

  3. Core

    View Slide

  4. ARGF & DATA
    Command Line Helper
    Embedded contents

    View Slide

  5. Comparable
    Ordering Helpers

    View Slide

  6. Enumerable
    Iteration Helpers

    View Slide

  7. Enumerator
    Laziness built-in

    View Slide

  8. Fiber
    Like Threads
    but with more Mindfuck

    View Slide

  9. Encoding
    Ruby 1.9.x's notorious Encoding

    View Slide

  10. Method
    Still an Object

    View Slide

  11. Standard Libraries

    View Slide

  12. Interlude
    Libraries in 2.0
    minitest, rake, rdoc, rubygems,
    bigdecimal, io-console, json, psych

    View Slide

  13. abbrev & shellwords
    Unambiguous Prefixes
    Splitting Strings the Bash Way

    View Slide

  14. english
    Perlism Avoider

    View Slide

  15. delegate & forwardable
    Delegate Pattern!
    SimpleDelegator

    View Slide

  16. optparse & getoptlong
    Option Parsers

    View Slide

  17. gserver
    generic TCP Servers

    View Slide

  18. ostruct
    Rails.configuration-like objects

    View Slide

  19. coverage & ripper
    Introspection tools
    Coverage (in-built) & Ruby Parser

    View Slide

  20. pstore, dbm & sdbm
    KV Stores
    File-based

    View Slide

  21. We’re Done Here

    View Slide