Sony Fermino dos Santos
About Ruby
puts "Hello World!"
My Evolution
Delphi
Pros:
Cons:
PHP - Pros
PHP - Cons
Adding fruits to the basket - PHP
Adding fruits to the basket - Ruby
Adding fruits in chunks
Adding fruits in chunks
PHP:
Ruby:
Python vs Ruby: Personal Appeals
Python:
Python vs Ruby: Personal Appeals
Python: Ruby:
Speaking Dog
Python:
Speaking Dog
Python: Ruby:
Ruby Object Model
BasicObject
Object
Module
Class
Kernel
String
Fixnum
"love"
1337
is instance of Object
is subclass of Class
includes Module
Open Classes
Open Classes
Open Classes
Open Classes
Solution: Refinements!
(since Ruby 2.0)
Ruby Gems
Gem (precious stone, as ruby is):
gem install mysql2 sequel sinatra mail sqlite3
rubygems.org
Gems Public Library
DSL: Domain-Specific Language
You can create another language inside Ruby to work more directly in a specific domain
Sequel DSL for SQL
Sequel DSL for SQL
Sinatra DSL for web apps
Ruby Best Practices
Best Practices: Benchmark
Best Practices: Unit Testing
Best Practices: Documentation
Front-end in Ruby
Ruby drawbacks
Installing
Documentation and Tutorials
The End