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 full-size slide

  2. Motivation
    Wheels
    WTFs

    View full-size slide

  3. ARGF & DATA
    Command Line Helper
    Embedded contents

    View full-size slide

  4. Comparable
    Ordering Helpers

    View full-size slide

  5. Enumerable
    Iteration Helpers

    View full-size slide

  6. Enumerator
    Laziness built-in

    View full-size slide

  7. Fiber
    Like Threads
    but with more Mindfuck

    View full-size slide

  8. Encoding
    Ruby 1.9.x's notorious Encoding

    View full-size slide

  9. Method
    Still an Object

    View full-size slide

  10. Standard Libraries

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  13. english
    Perlism Avoider

    View full-size slide

  14. delegate & forwardable
    Delegate Pattern!
    SimpleDelegator

    View full-size slide

  15. optparse & getoptlong
    Option Parsers

    View full-size slide

  16. gserver
    generic TCP Servers

    View full-size slide

  17. ostruct
    Rails.configuration-like objects

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  20. We’re Done Here

    View full-size slide