Ruby

" El mejor amigo de un desarrollador "


Quien soy?

Yukihiro Matsumoto


  he wanted a language that made him productive while being fun  to use



" I hope to see Ruby help every programmer in the world to be productive, and to enjoy programming, and to be happy. That is the primary purpose of the ruby language. "


Principios


  • La felicidad del desarrollador
  • Principio de menos sorpresa
  • Legible por el humano
  • Sintaxis hermosa

Características


  Multiplataforma
  •  Gnu Linux
  • OS X
  • Windows


   Multiples Implementaciones

  •   MRI
  • JRuby
  • Iron Ruby
  • Rubinius

Interpretado

Duck typing


" If it walks like a duck and talks like a duck, it must be a duck "



Regexp


 phone = "(0298 90)454 545"
phone.gsub!(/\D/, "")
puts "Phone Number: #{phone}"

Phone Number: 029890454545





¿Quienes usan ruby?

 




Instalar

  • OS X viene instalado
  • Linux viene instalado o "apt-get install ruby"
  • Windows:

rubyinstaller.org o railsinstaller.org

Probar ruby online

tryruby.org


Editores/IDE

  • Vim/Mac Vim
  • Emacs
  • Sublime Text
  • Atom
  • Textmate (mac)
  • Rubymine

Recursos

Libros

  • "Learn to program" by Chris Pine
  • "Pragmatic Programming Ruby"
  • "Eloquent Ruby"
  • "Rails Tutorial"
  • "Agile Web development with Rails"
  • "The well grounded rubyist"

Cursos por internet

  • codecademy.com
  • codeschool .com (pago)

Web

  • Stack Overflow
  • Rubysur
  • ruby-doc.org
  • guides.rubyonrails.org
  • railscasts.com
  • github.com/styleguide/ruby
  • gorails.com
Made with Slides.com