View
1.562
Download
0
Category
Tags:
Preview:
Citation preview
by Samnang Chhhun
#DevCamp #ShareVisionTeam
Why I love Ruby than X
Who Care?
Why Ruby?
• Java
• Ruby
What’s Ruby?
• Interpreted Scripting Language
• Ruby was first released on July 95 by a Japanese nut (Yukihiro 'Matz' Matsumoto).
• An 100% OO language (well, 99.9%)
• Dynamically typed language
• Concise. Simple. Fun!
• Multi-platforms
Smalltalk Perl Lisp Scheme Python CLU Eiffel Ada Dylan
“Ruby is designed to make programmers happy.”
Matz
Why Ruby?
Communities
Simplicity
Everything in Ruby is Object
Array
Hash
Range
Methods
Mixins
Duck Typing
If it walks like a duck, And talks like a duck,
Then we can treat it like a duck. (who cares what it really is)
Reflection
Monkey Patch
• Objects and classes are open
– Add method to object even at Runtime!
• Might be dangerous or break some stuff
– But it's awesome
Encourage testing
• Test::Unit builds in into standard libraries
• Other tools
– RSpec
– Cucumber
– …
DSL
Libraries in Ruby
It’s all about Freedom
How to learn?
• irb (Interactive Ruby Shell)
• http://tryruby.org/
• http://rubylearning.com/
Question?
Thank you!
Recommended