Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 28

Why I love Ruby than X

by Samnang Chhhun

#DevCamp

#ShareVisionTeam

Who Care?

Why Ruby?
Java

Ruby

Whats 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

Its all about Freedom

How to learn?
irb (Interactive Ruby Shell) http://tryruby.org/ http://rubylearning.com/

Question?
Thank you!

You might also like