Advertisement
Guest User

Untitled

a guest
Feb 27th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. Ruby 1.9.2
  2.  
  3. Ruby Koans for exercises http://github.com/edgecase/ruby_koans
  4.  
  5. Ruby for Developers
  6. Text Editors only
  7. Ruby 1.9.2 only
  8.  
  9. h1. Basics
  10. 1 + 2
  11. 1.to_string
  12. (1 + 2).to_string
  13. "1" + 2
  14. Late-binding Strongly Typed
  15. Control Flow
  16. All Object Oriented
  17. leads to "Basic Data Structures"
  18. h1. Data Structures
  19. integer => Fixnum
  20. Float => in Ruby exact precision, but going to/from DB turns it into C double (not exact precision)
  21. Use BigDecimal to stop this behavior, or integers (cents)
  22. Strings - big topic!
  23. Symbols vs. Strings
  24. Regex -> like perl (Oniguruma regular expression library http://www.geocities.jp/kosako3/oniguruma/)
  25. yada yada
  26. Array
  27. Hash - Associative Array, Dictionary, etc.
  28.  
  29. h1. Control Flow
  30.  
  31. h1. Block, Procs & lambdas
  32. Refer to ragenwald post about this. Difference is in the scope of the passed main object I think.
  33.  
  34. h1. Classes and duck typing
  35.  
  36. h1. Environment
  37. "Every day usage of Ruby"
  38. Gems
  39. IRB
  40. Test::Unit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement