RUBY
PROGRAMMING LANGUAGE OTAKU
PRINCIPLE OF LEAST SURPRISE
FOR EXAMPLE, I WAS A C++ PROGRAMMER BEFORE I STARTED DESIGNING
RUBY. I PROGRAMMED IN C++ EXCLUSIVELY FOR TWO OR THREE YEAR...
NEED-TO-KNOW
SYNTAX SUGARS
RUBY 2.0
CONVENTIONS
VARIABLES
? METHODS
! METHODS
MAGIC COMMENT
MAGIC COMMENT IN RUBY 2.0
OPTIONAL PARENTHESES
DOMAIN SPECIFIC LANGUAGE
EVERYTHING IN RUBY EVALUATES TO TRUE
EXCEPT FOR FALSE AND NIL.
STRING INTERPOLATION
STRING & SYMBOL
STRING
SYMBOL
STRING VS. SYMBOL
ARRAY
SYMBOL
ENUMERABLE(.EACH)
FILE
.MAP
LAMBDA SYNTAX SUGAR
__DIR__ VS. FILE.DIRNAME(__FILE__)
INHERITANCE
MIX-IN
INCLUDE VS. INHERITANCE
SELF VS. INCLUDE
PREPEND VS. SELF
HASH PARAMETERS
KEYWORD PARAMETERS
????????
IF STATEMENT?
IF STATEMENT
EXPRESSION-ORIENTED
inpython:
OPEN CLASS
IN RAILS
REFINEMENTS
DON'T BE SURPRISED!
THANK YOU!
Ruby for biginner - Don't be suprised
Ruby for biginner - Don't be suprised
Ruby for biginner - Don't be suprised
Upcoming SlideShare
Loading in …5
×

Ruby for biginner - Don't be suprised

734 views
651 views

Published on

from http://slid.es/nacyot/ruby
on aug 2013 at Dev.study
by nacyot(Kim Daekwon)

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
734
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Ruby for biginner - Don't be suprised

  1. 1. RUBY
  2. 2. PROGRAMMING LANGUAGE OTAKU
  3. 3. PRINCIPLE OF LEAST SURPRISE
  4. 4. FOR EXAMPLE, I WAS A C++ PROGRAMMER BEFORE I STARTED DESIGNING RUBY. I PROGRAMMED IN C++ EXCLUSIVELY FOR TWO OR THREE YEARS. AND AFTER TWO YEARS OF C++ PROGRAMMING, IT STILL SURPRISED ME.
  5. 5. NEED-TO-KNOW
  6. 6. SYNTAX SUGARS
  7. 7. RUBY 2.0
  8. 8. CONVENTIONS
  9. 9. VARIABLES
  10. 10. ? METHODS
  11. 11. ! METHODS
  12. 12. MAGIC COMMENT
  13. 13. MAGIC COMMENT IN RUBY 2.0
  14. 14. OPTIONAL PARENTHESES
  15. 15. DOMAIN SPECIFIC LANGUAGE
  16. 16. EVERYTHING IN RUBY EVALUATES TO TRUE EXCEPT FOR FALSE AND NIL.
  17. 17. STRING INTERPOLATION
  18. 18. STRING & SYMBOL
  19. 19. STRING
  20. 20. SYMBOL
  21. 21. STRING VS. SYMBOL
  22. 22. ARRAY
  23. 23. SYMBOL
  24. 24. ENUMERABLE(.EACH)
  25. 25. FILE
  26. 26. .MAP
  27. 27. LAMBDA SYNTAX SUGAR
  28. 28. __DIR__ VS. FILE.DIRNAME(__FILE__)
  29. 29. INHERITANCE
  30. 30. MIX-IN
  31. 31. INCLUDE VS. INHERITANCE
  32. 32. SELF VS. INCLUDE
  33. 33. PREPEND VS. SELF
  34. 34. HASH PARAMETERS
  35. 35. KEYWORD PARAMETERS
  36. 36. ????????
  37. 37. IF STATEMENT?
  38. 38. IF STATEMENT
  39. 39. EXPRESSION-ORIENTED inpython:
  40. 40. OPEN CLASS
  41. 41. IN RAILS
  42. 42. REFINEMENTS
  43. 43. DON'T BE SURPRISED!
  44. 44. THANK YOU!

×