Presentación de Ruby, destacando las características más interesantes del lenguaje desde un punto de vista cualitativo. Poco código en la presentación ya que va a ser usado con live coding con el IRB.
2. Rubyalgo de historia
Pensado para la felicidad de
programadores
2004, Ruby on Rails lo llevó a la fama
1993 by Yukihiro “Matz” Matsumoto
3. Rubyfilosofía
“We need to focus on humans, on how humans care
about doing programming or operating the aplication of
the machine. We are the masters.They are the slaves”
4. Rubyes un lenguaje dinámico y Orientado
a Objetos
Lo mejor de dos mundos...
Scripting
Expresiones regulares
Manejo de strings
Objetos
Dinámico
Virtual Machine
Closures (Bloques)
Y muchos más...
Perl Smalltalk
00-Intro.rb IRB Puts Arrays/Hash Definición de clases
En Ruby todo es un Objeto y todo es un mensaje class.methods =>, +1 unless/if
Everyone has an individual background. Someone may come from Python, someone else may come from Perl, and they may be surprised by different aspects of the language. Then they come up to me and say, "I was surprised by this feature of the language, so therefore Ruby violates the principle of least surprise." Wait. Wait. The principle of least surprise is not for you only. The principle of least surprise means principle of least my surprise. And it means the principle of least surprise after you learn Ruby very well. 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
Fácil de leer, endender y pocos errores attr_accesors /ensure
Menos código
“ in that the best programming style I think is usually minimal, it's simple and direct and it's expressive and that simplicity can be beautiful. “ Eliminar la vervosidad Un Hola mundo de 1 linea
Explicar * Duck typing * Mixims * Open Class/Methods * Hooks? Ver la cara de los pibes para meterme con “AOP”