SlideShare a Scribd company logo
1 of 63
Download to read offline
´
                            Introduccion
                                   Ruby
                           Ruby on Rails




          ´
Introduccion al desarrollo de aplicaciones
         web con Ruby on Rails
                           Cursos ISLA 2010


                          Ancor Cruz
                   contactar@ancorcruz.com

                          Oficina de Software Libre
                          Universidad de La Laguna
                           http://osl.ull.es


                     17 y 24 de Abril de 2010



     Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                      Introduccion
                                             Ruby
                                     Ruby on Rails



Tabla de contenidos
  1             ´
      Introduccion
         Presentaciones
         Objetivo del curso
         Contenido del Curso
  2   Ruby
            ´
        ¿Que es Ruby?
        Caracter´sticas principales de Ruby
                 ı
                ´
        ¿Por que Ruby?
        Practiquemos con Ruby
                ´
        Y despues de gatear. . .
  3   Ruby on Rails
            ´
        ¿Que es Ruby on Rails?
        Arquitectura Modelo-Vista-Controlador
        Entornos de desarrollo
        Ejemplo: ToDo on Rails

               Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                 Introduccion   Presentaciones
                                        Ruby    Objetivo del curso
                                Ruby on Rails   Contenido del Curso



    ´
¿Quien soy?




           Ancor Cruz (contactar@ancorcruz.com)
            Desarrollador Ruby on Rails Freelance
                     Colaborador OSL-ULL
                 Blog: http://blog.ancorcruz.com
           Twitter: http://www.twitter.com/ancorcruz
           Del.icio.us: http://delicious.com/ancorcruz




          Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                   Introduccion   Presentaciones
                                          Ruby    Objetivo del curso
                                  Ruby on Rails   Contenido del Curso



Antes de empezar




               ´
    ¿Programacion orientada a objetos?




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                   Introduccion   Presentaciones
                                          Ruby    Objetivo del curso
                                  Ruby on Rails   Contenido del Curso



Antes de empezar




               ´
    ¿Programacion orientada a objetos?
    ¿HTML? ¿CSS? . . .




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                   Introduccion   Presentaciones
                                          Ruby    Objetivo del curso
                                  Ruby on Rails   Contenido del Curso



Antes de empezar




               ´
    ¿Programacion orientada a objetos?
    ¿HTML? ¿CSS? . . .

    ¿   ?




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                   Introduccion   Presentaciones
                                          Ruby    Objetivo del curso
                                  Ruby on Rails   Contenido del Curso



Objetivos




                 Tiempo muy limitado. . .




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                   Introduccion   Presentaciones
                                          Ruby    Objetivo del curso
                                  Ruby on Rails   Contenido del Curso



Objetivos




                             Conocer Ruby.




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                   Introduccion   Presentaciones
                                          Ruby    Objetivo del curso
                                  Ruby on Rails   Contenido del Curso



Objetivos




     Conceptos generales de Ruby on Rails.




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                   Introduccion   Presentaciones
                                          Ruby    Objetivo del curso
                                  Ruby on Rails   Contenido del Curso



Objetivos




             Conocer BDD y Cucumber.
                      ´
                  ¿Dara tiempo?




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                   Introduccion   Presentaciones
                                          Ruby    Objetivo del curso
                                  Ruby on Rails   Contenido del Curso



Objetivos




              Esto solo es el comienzo.




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                     Introduccion   Presentaciones
                                            Ruby    Objetivo del curso
                                    Ruby on Rails   Contenido del Curso



Contenido del Curso




                                ´
  Teor´a: Ruby, MVC, Rails (Lo basico)
      ı
    ´                                  ´
  Practica: Ejemplos en Ruby y Aplicacion de listas ToDo en Rails




              Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                   ¿Que es Ruby?
                                              ´
                                    Introduccion   Caracter´sticas principales de Ruby
                                                            ı
                                           Ruby            ´
                                                   ¿Por que Ruby?
                                   Ruby on Rails   Practiquemos con Ruby
                                                           ´
                                                   Y despues de gatear. . .


   ´
¿Que es Ruby?



                         ´
   Lenguaje de programacion orientado a objetos.




             Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                    ¿Que es Ruby?
                                               ´
                                     Introduccion   Caracter´sticas principales de Ruby
                                                             ı
                                            Ruby            ´
                                                    ¿Por que Ruby?
                                    Ruby on Rails   Practiquemos con Ruby
                                                            ´
                                                    Y despues de gatear. . .


   ´
¿Que es Ruby?



                         ´
   Lenguaje de programacion orientado a objetos.
   Es software libre y open source (Licencias GPL y
   Ruby).




              Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                    ¿Que es Ruby?
                                               ´
                                     Introduccion   Caracter´sticas principales de Ruby
                                                             ı
                                            Ruby            ´
                                                    ¿Por que Ruby?
                                    Ruby on Rails   Practiquemos con Ruby
                                                            ´
                                                    Y despues de gatear. . .


   ´
¿Que es Ruby?



                         ´
   Lenguaje de programacion orientado a objetos.
   Es software libre y open source (Licencias GPL y
   Ruby).
   Su creador es Yukihiro Matsumoto conocido como
   “matz”.




              Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                    ¿Que es Ruby?
                                               ´
                                     Introduccion   Caracter´sticas principales de Ruby
                                                             ı
                                            Ruby            ´
                                                    ¿Por que Ruby?
                                    Ruby on Rails   Practiquemos con Ruby
                                                            ´
                                                    Y despues de gatear. . .


   ´
¿Que es Ruby?



                         ´
   Lenguaje de programacion orientado a objetos.
   Es software libre y open source (Licencias GPL y
   Ruby).
   Su creador es Yukihiro Matsumoto conocido como
   “matz”.
   Es un lenguaje joven, 1993, presentado en 1995.




              Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                    ¿Que es Ruby?
                                               ´
                                     Introduccion   Caracter´sticas principales de Ruby
                                                             ı
                                            Ruby            ´
                                                    ¿Por que Ruby?
                                    Ruby on Rails   Practiquemos con Ruby
                                                            ´
                                                    Y despues de gatear. . .


   ´
¿Que es Ruby?



                         ´
   Lenguaje de programacion orientado a objetos.
   Es software libre y open source (Licencias GPL y
   Ruby).
   Su creador es Yukihiro Matsumoto conocido como
   “matz”.
   Es un lenguaje joven, 1993, presentado en 1995.
      ´
   Esta inspirado en los lenguajes favoritos de matz:
   Python, Perl, Smalltalk, Eiffel, Ada, Lisp. . .




              Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                             ¿Que es Ruby?
                                        ´
                              Introduccion   Caracter´sticas principales de Ruby
                                                      ı
                                     Ruby            ´
                                             ¿Por que Ruby?
                             Ruby on Rails   Practiquemos con Ruby
                                                     ´
                                             Y despues de gatear. . .


Matz




       Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                        ¿Que es Ruby?
                                   ´
                         Introduccion   Caracter´sticas principales de Ruby
                                                 ı
                                Ruby            ´
                                        ¿Por que Ruby?
                        Ruby on Rails   Practiquemos con Ruby
                                                ´
                                        Y despues de gatear. . .




Caracter´sticas principales de Ruby
        ı




  Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




            ˜
        Disenado para facilitarle la vida al
                 programador




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                                Interpretado




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                     Orientado a objetos.
                      Todo son objetos.




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                                   ´
                         Tipado dinamico.




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                                   ´
        Recolector de basura automagico
              No mas´ destructores




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                Manejo de excepciones




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                  Expresiones regulares




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                                      Threads




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                                   ´
                Amplia librer´a estandar
                             ı




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                 Monkey Patch
           ´                                 ´
  Modificacion de objetos en tiempo de ejecucion




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                ´
       Modificacion de clases previamente
                   definidas




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                       Mixins
                                      ´
           Interfaces con implementacion




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




              Metaprogramacion ´
       Programas que hacen otro programas




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Caracter´sticas principales de Ruby
        ı




                                Reflexividad




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                   ¿Que es Ruby?
                                              ´
                                    Introduccion   Caracter´sticas principales de Ruby
                                                            ı
                                           Ruby            ´
                                                   ¿Por que Ruby?
                                   Ruby on Rails   Practiquemos con Ruby
                                                           ´
                                                   Y despues de gatear. . .


       ´
¿Por que Ruby?


                      ´          ´
    Por todas sus fantasticas caracteristicas.




             Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                   ¿Que es Ruby?
                                              ´
                                    Introduccion   Caracter´sticas principales de Ruby
                                                            ı
                                           Ruby            ´
                                                   ¿Por que Ruby?
                                   Ruby on Rails   Practiquemos con Ruby
                                                           ´
                                                   Y despues de gatear. . .


       ´
¿Por que Ruby?


                      ´          ´
    Por todas sus fantasticas caracteristicas.
    Porque tiene una gran comunidad.




             Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                   ¿Que es Ruby?
                                              ´
                                    Introduccion   Caracter´sticas principales de Ruby
                                                            ı
                                           Ruby            ´
                                                   ¿Por que Ruby?
                                   Ruby on Rails   Practiquemos con Ruby
                                                           ´
                                                   Y despues de gatear. . .


       ´
¿Por que Ruby?


                      ´          ´
    Por todas sus fantasticas caracteristicas.
    Porque tiene una gran comunidad.
                        ´
    Porque viene de Japon.




             Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                   ¿Que es Ruby?
                                              ´
                                    Introduccion   Caracter´sticas principales de Ruby
                                                            ı
                                           Ruby            ´
                                                   ¿Por que Ruby?
                                   Ruby on Rails   Practiquemos con Ruby
                                                           ´
                                                   Y despues de gatear. . .


       ´
¿Por que Ruby?


                      ´          ´
    Por todas sus fantasticas caracteristicas.
    Porque tiene una gran comunidad.
                        ´
    Porque viene de Japon.




    Porque Ruby y Rails molan.




             Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                   ¿Que es Ruby?
                                              ´
                                    Introduccion   Caracter´sticas principales de Ruby
                                                            ı
                                           Ruby            ´
                                                   ¿Por que Ruby?
                                   Ruby on Rails   Practiquemos con Ruby
                                                           ´
                                                   Y despues de gatear. . .


       ´
¿Por que Ruby?


                      ´          ´
    Por todas sus fantasticas caracteristicas.
    Porque tiene una gran comunidad.
                        ´
    Porque viene de Japon.




    Porque Ruby y Rails molan.
                ´
    ¿Necesitas mas razones?



             Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                 ¿Que es Ruby?
                                            ´
                                  Introduccion   Caracter´sticas principales de Ruby
                                                          ı
                                         Ruby            ´
                                                 ¿Por que Ruby?
                                 Ruby on Rails   Practiquemos con Ruby
                                                         ´
                                                 Y despues de gatear. . .


Making friends


                            Consola + irb




           Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                ¿Que es Ruby?
                                           ´
                                 Introduccion   Caracter´sticas principales de Ruby
                                                         ı
                                        Ruby            ´
                                                ¿Por que Ruby?
                                Ruby on Rails   Practiquemos con Ruby
                                                        ´
                                                Y despues de gatear. . .


Ruby con clase

                                     Clases




          Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                  ¿Que es Ruby?
                                             ´
                                   Introduccion   Caracter´sticas principales de Ruby
                                                           ı
                                          Ruby            ´
                                                  ¿Por que Ruby?
                                  Ruby on Rails   Practiquemos con Ruby
                                                          ´
                                                  Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                  ¿Que es Ruby?
                                             ´
                                   Introduccion   Caracter´sticas principales de Ruby
                                                           ı
                                          Ruby            ´
                                                  ¿Por que Ruby?
                                  Ruby on Rails   Practiquemos con Ruby
                                                          ´
                                                  Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org
     www.ruby-doc.org




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                  ¿Que es Ruby?
                                             ´
                                   Introduccion   Caracter´sticas principales de Ruby
                                                           ı
                                          Ruby            ´
                                                  ¿Por que Ruby?
                                  Ruby on Rails   Practiquemos con Ruby
                                                          ´
                                                  Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org
     www.ruby-doc.org
     www.apidock.com/ruby




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                  ¿Que es Ruby?
                                             ´
                                   Introduccion   Caracter´sticas principales de Ruby
                                                           ı
                                          Ruby            ´
                                                  ¿Por que Ruby?
                                  Ruby on Rails   Practiquemos con Ruby
                                                          ´
                                                  Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org
     www.ruby-doc.org
     www.apidock.com/ruby
     www.ruby-forum.com




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                  ¿Que es Ruby?
                                             ´
                                   Introduccion   Caracter´sticas principales de Ruby
                                                           ı
                                          Ruby            ´
                                                  ¿Por que Ruby?
                                  Ruby on Rails   Practiquemos con Ruby
                                                          ´
                                                  Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org
     www.ruby-doc.org
     www.apidock.com/ruby
     www.ruby-forum.com
     www.rubyinside.com




            Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                   ¿Que es Ruby?
                                              ´
                                    Introduccion   Caracter´sticas principales de Ruby
                                                            ı
                                           Ruby            ´
                                                   ¿Por que Ruby?
                                   Ruby on Rails   Practiquemos con Ruby
                                                           ´
                                                   Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org
     www.ruby-doc.org
     www.apidock.com/ruby
     www.ruby-forum.com
     www.rubyinside.com
     www.rubycentral.org/pickaxe




             Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                   ¿Que es Ruby?
                                              ´
                                    Introduccion   Caracter´sticas principales de Ruby
                                                            ı
                                           Ruby            ´
                                                   ¿Por que Ruby?
                                   Ruby on Rails   Practiquemos con Ruby
                                                           ´
                                                   Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org
     www.ruby-doc.org
     www.apidock.com/ruby
     www.ruby-forum.com
     www.rubyinside.com
     www.rubycentral.org/pickaxe
     www.rubyproblems.com




             Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                   ¿Que es Ruby?
                                              ´
                                    Introduccion   Caracter´sticas principales de Ruby
                                                            ı
                                           Ruby            ´
                                                   ¿Por que Ruby?
                                   Ruby on Rails   Practiquemos con Ruby
                                                           ´
                                                   Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org
     www.ruby-doc.org
     www.apidock.com/ruby
     www.ruby-forum.com
     www.rubyinside.com
     www.rubycentral.org/pickaxe
     www.rubyproblems.com
     delicious.com/ancorcruz/Ruby




             Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                   ¿Que es Ruby?
                                              ´
                                    Introduccion   Caracter´sticas principales de Ruby
                                                            ı
                                           Ruby            ´
                                                   ¿Por que Ruby?
                                   Ruby on Rails   Practiquemos con Ruby
                                                           ´
                                                   Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org
     www.ruby-doc.org
     www.apidock.com/ruby
     www.ruby-forum.com
     www.rubyinside.com
     www.rubycentral.org/pickaxe
     www.rubyproblems.com
     delicious.com/ancorcruz/Ruby
     www.google.com




             Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                    ¿Que es Ruby?
                                               ´
                                     Introduccion   Caracter´sticas principales de Ruby
                                                             ı
                                            Ruby            ´
                                                    ¿Por que Ruby?
                                    Ruby on Rails   Practiquemos con Ruby
                                                            ´
                                                    Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org
     www.ruby-doc.org
     www.apidock.com/ruby
     www.ruby-forum.com
     www.rubyinside.com
     www.rubycentral.org/pickaxe
     www.rubyproblems.com
     delicious.com/ancorcruz/Ruby
     www.google.com
     listas de correo.



              Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                    ¿Que es Ruby?
                                               ´
                                     Introduccion   Caracter´sticas principales de Ruby
                                                             ı
                                            Ruby            ´
                                                    ¿Por que Ruby?
                                    Ruby on Rails   Practiquemos con Ruby
                                                            ´
                                                    Y despues de gatear. . .


       ´
Y despues de gatear. . .

     www.ruby-lang.org
     www.ruby-doc.org
     www.apidock.com/ruby
     www.ruby-forum.com
     www.rubyinside.com
     www.rubycentral.org/pickaxe
     www.rubyproblems.com
     delicious.com/ancorcruz/Ruby
     www.google.com
     listas de correo.
     Libros: The Ruby Way, Programming Ruby, . . .


              Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                ¿Que es Ruby on Rails?
                                           ´
                                 Introduccion
                                                Arquitectura Modelo-Vista-Controlador
                                        Ruby
                                                Entornos de desarrollo
                                Ruby on Rails
                                                Ejemplo: ToDo on Rails



   ´
¿Que es Rails?




                   Framework Web.




          Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                ¿Que es Ruby on Rails?
                                           ´
                                 Introduccion
                                                Arquitectura Modelo-Vista-Controlador
                                        Ruby
                                                Entornos de desarrollo
                                Ruby on Rails
                                                Ejemplo: ToDo on Rails



   ´
¿Que es Rails?




                   Framework Web.
                      ´
                   Esta escrito en Ruby.




          Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                ¿Que es Ruby on Rails?
                                           ´
                                 Introduccion
                                                Arquitectura Modelo-Vista-Controlador
                                        Ruby
                                                Entornos de desarrollo
                                Ruby on Rails
                                                Ejemplo: ToDo on Rails



   ´
¿Que es Rails?




                   Framework Web.
                      ´
                   Esta escrito en Ruby.
                   Sigue el paradigma de la arquitectura MVC.




          Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                ¿Que es Ruby on Rails?
                                           ´
                                 Introduccion
                                                Arquitectura Modelo-Vista-Controlador
                                        Ruby
                                                Entornos de desarrollo
                                Ruby on Rails
                                                Ejemplo: ToDo on Rails



   ´
¿Que es Rails?




                   Framework Web.
                      ´
                   Esta escrito en Ruby.
                   Sigue el paradigma de la arquitectura MVC.
                   Es software libre y open source (Licencia MIT)




          Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                ¿Que es Ruby on Rails?
                                           ´
                                 Introduccion
                                                Arquitectura Modelo-Vista-Controlador
                                        Ruby
                                                Entornos de desarrollo
                                Ruby on Rails
                                                Ejemplo: ToDo on Rails



   ´
¿Que es Rails?




                   Framework Web.
                      ´
                   Esta escrito en Ruby.
                   Sigue el paradigma de la arquitectura MVC.
                   Es software libre y open source (Licencia MIT)
                   Su creador es David Heinemeier Hansson.




          Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                      ¿Que es Ruby on Rails?
                                 ´
                       Introduccion
                                      Arquitectura Modelo-Vista-Controlador
                              Ruby
                                      Entornos de desarrollo
                      Ruby on Rails
                                      Ejemplo: ToDo on Rails




 Un poco de filosof´a de Rails
                  ı




Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                    ¿Que es Ruby on Rails?
                                               ´
                                     Introduccion
                                                    Arquitectura Modelo-Vista-Controlador
                                            Ruby
                                                    Entornos de desarrollo
                                    Ruby on Rails
                                                    Ejemplo: ToDo on Rails



Filosofando




                               DRY
                       Don’t Repeat Yourself




              Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                    ¿Que es Ruby on Rails?
                                               ´
                                     Introduccion
                                                    Arquitectura Modelo-Vista-Controlador
                                            Ruby
                                                    Entornos de desarrollo
                                    Ruby on Rails
                                                    Ejemplo: ToDo on Rails



Filosofando




         Convention over configuration




              Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                                    ¿Que es Ruby on Rails?
                                               ´
                                     Introduccion
                                                    Arquitectura Modelo-Vista-Controlador
                                            Ruby
                                                    Entornos de desarrollo
                                    Ruby on Rails
                                                    Ejemplo: ToDo on Rails



Filosofando




    ´
   Maximizar la felicidad y la productividad de
              los desarrolladores




              Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                      ¿Que es Ruby on Rails?
                                 ´
                       Introduccion
                                      Arquitectura Modelo-Vista-Controlador
                              Ruby
                                      Entornos de desarrollo
                      Ruby on Rails
                                      Ejemplo: ToDo on Rails




                              MVC




Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                             ¿Que es Ruby on Rails?
                                        ´
                              Introduccion
                                             Arquitectura Modelo-Vista-Controlador
                                     Ruby
                                             Entornos de desarrollo
                             Ruby on Rails
                                             Ejemplo: ToDo on Rails



IDEs




       Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails
´
                                      ¿Que es Ruby on Rails?
                                 ´
                       Introduccion
                                      Arquitectura Modelo-Vista-Controlador
                              Ruby
                                      Entornos de desarrollo
                      Ruby on Rails
                                      Ejemplo: ToDo on Rails




                     ´
  ¡¡Pasamos a la accion!!




Ancor Cruz, contactar@ancorcruz.com   CISLA 2010 on Rails

More Related Content

Recently uploaded

Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...JohnRamos830530
 
Avances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estosAvances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estossgonzalezp1
 
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptxPROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptxAlan779941
 
Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21mariacbr99
 
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptxEL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptxMiguelAtencio10
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITMaricarmen Sánchez Ruiz
 
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdfRefrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdfvladimiroflores1
 
Avances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvanaAvances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvanamcerpam
 
How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.FlorenciaCattelani
 
Modulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdfModulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdfAnnimoUno1
 
EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveFagnerLisboa3
 

Recently uploaded (11)

Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
 
Avances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estosAvances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estos
 
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptxPROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
 
Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21
 
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptxEL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNIT
 
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdfRefrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
 
Avances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvanaAvances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvana
 
How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.
 
Modulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdfModulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdf
 
EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial Uninove
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Introduccion al desarrollo de aplicaciones web con Ruby on Rails

  • 1. ´ Introduccion Ruby Ruby on Rails ´ Introduccion al desarrollo de aplicaciones web con Ruby on Rails Cursos ISLA 2010 Ancor Cruz contactar@ancorcruz.com Oficina de Software Libre Universidad de La Laguna http://osl.ull.es 17 y 24 de Abril de 2010 Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 2. ´ Introduccion Ruby Ruby on Rails Tabla de contenidos 1 ´ Introduccion Presentaciones Objetivo del curso Contenido del Curso 2 Ruby ´ ¿Que es Ruby? Caracter´sticas principales de Ruby ı ´ ¿Por que Ruby? Practiquemos con Ruby ´ Y despues de gatear. . . 3 Ruby on Rails ´ ¿Que es Ruby on Rails? Arquitectura Modelo-Vista-Controlador Entornos de desarrollo Ejemplo: ToDo on Rails Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 3. ´ Introduccion Presentaciones Ruby Objetivo del curso Ruby on Rails Contenido del Curso ´ ¿Quien soy? Ancor Cruz (contactar@ancorcruz.com) Desarrollador Ruby on Rails Freelance Colaborador OSL-ULL Blog: http://blog.ancorcruz.com Twitter: http://www.twitter.com/ancorcruz Del.icio.us: http://delicious.com/ancorcruz Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 4. ´ Introduccion Presentaciones Ruby Objetivo del curso Ruby on Rails Contenido del Curso Antes de empezar ´ ¿Programacion orientada a objetos? Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 5. ´ Introduccion Presentaciones Ruby Objetivo del curso Ruby on Rails Contenido del Curso Antes de empezar ´ ¿Programacion orientada a objetos? ¿HTML? ¿CSS? . . . Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 6. ´ Introduccion Presentaciones Ruby Objetivo del curso Ruby on Rails Contenido del Curso Antes de empezar ´ ¿Programacion orientada a objetos? ¿HTML? ¿CSS? . . . ¿ ? Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 7. ´ Introduccion Presentaciones Ruby Objetivo del curso Ruby on Rails Contenido del Curso Objetivos Tiempo muy limitado. . . Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 8. ´ Introduccion Presentaciones Ruby Objetivo del curso Ruby on Rails Contenido del Curso Objetivos Conocer Ruby. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 9. ´ Introduccion Presentaciones Ruby Objetivo del curso Ruby on Rails Contenido del Curso Objetivos Conceptos generales de Ruby on Rails. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 10. ´ Introduccion Presentaciones Ruby Objetivo del curso Ruby on Rails Contenido del Curso Objetivos Conocer BDD y Cucumber. ´ ¿Dara tiempo? Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 11. ´ Introduccion Presentaciones Ruby Objetivo del curso Ruby on Rails Contenido del Curso Objetivos Esto solo es el comienzo. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 12. ´ Introduccion Presentaciones Ruby Objetivo del curso Ruby on Rails Contenido del Curso Contenido del Curso ´ Teor´a: Ruby, MVC, Rails (Lo basico) ı ´ ´ Practica: Ejemplos en Ruby y Aplicacion de listas ToDo en Rails Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 13. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ ¿Que es Ruby? ´ Lenguaje de programacion orientado a objetos. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 14. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ ¿Que es Ruby? ´ Lenguaje de programacion orientado a objetos. Es software libre y open source (Licencias GPL y Ruby). Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 15. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ ¿Que es Ruby? ´ Lenguaje de programacion orientado a objetos. Es software libre y open source (Licencias GPL y Ruby). Su creador es Yukihiro Matsumoto conocido como “matz”. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 16. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ ¿Que es Ruby? ´ Lenguaje de programacion orientado a objetos. Es software libre y open source (Licencias GPL y Ruby). Su creador es Yukihiro Matsumoto conocido como “matz”. Es un lenguaje joven, 1993, presentado en 1995. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 17. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ ¿Que es Ruby? ´ Lenguaje de programacion orientado a objetos. Es software libre y open source (Licencias GPL y Ruby). Su creador es Yukihiro Matsumoto conocido como “matz”. Es un lenguaje joven, 1993, presentado en 1995. ´ Esta inspirado en los lenguajes favoritos de matz: Python, Perl, Smalltalk, Eiffel, Ada, Lisp. . . Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 18. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Matz Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 19. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 20. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı ˜ Disenado para facilitarle la vida al programador Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 21. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı Interpretado Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 22. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı Orientado a objetos. Todo son objetos. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 23. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı ´ Tipado dinamico. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 24. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı ´ Recolector de basura automagico No mas´ destructores Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 25. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı Manejo de excepciones Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 26. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı Expresiones regulares Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 27. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı Threads Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 28. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı ´ Amplia librer´a estandar ı Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 29. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı Monkey Patch ´ ´ Modificacion de objetos en tiempo de ejecucion Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 30. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı ´ Modificacion de clases previamente definidas Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 31. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı Mixins ´ Interfaces con implementacion Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 32. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı Metaprogramacion ´ Programas que hacen otro programas Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 33. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Caracter´sticas principales de Ruby ı Reflexividad Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 34. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ ¿Por que Ruby? ´ ´ Por todas sus fantasticas caracteristicas. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 35. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ ¿Por que Ruby? ´ ´ Por todas sus fantasticas caracteristicas. Porque tiene una gran comunidad. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 36. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ ¿Por que Ruby? ´ ´ Por todas sus fantasticas caracteristicas. Porque tiene una gran comunidad. ´ Porque viene de Japon. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 37. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ ¿Por que Ruby? ´ ´ Por todas sus fantasticas caracteristicas. Porque tiene una gran comunidad. ´ Porque viene de Japon. Porque Ruby y Rails molan. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 38. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ ¿Por que Ruby? ´ ´ Por todas sus fantasticas caracteristicas. Porque tiene una gran comunidad. ´ Porque viene de Japon. Porque Ruby y Rails molan. ´ ¿Necesitas mas razones? Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 39. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Making friends Consola + irb Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 40. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . Ruby con clase Clases Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 41. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 42. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org www.ruby-doc.org Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 43. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org www.ruby-doc.org www.apidock.com/ruby Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 44. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org www.ruby-doc.org www.apidock.com/ruby www.ruby-forum.com Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 45. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org www.ruby-doc.org www.apidock.com/ruby www.ruby-forum.com www.rubyinside.com Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 46. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org www.ruby-doc.org www.apidock.com/ruby www.ruby-forum.com www.rubyinside.com www.rubycentral.org/pickaxe Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 47. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org www.ruby-doc.org www.apidock.com/ruby www.ruby-forum.com www.rubyinside.com www.rubycentral.org/pickaxe www.rubyproblems.com Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 48. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org www.ruby-doc.org www.apidock.com/ruby www.ruby-forum.com www.rubyinside.com www.rubycentral.org/pickaxe www.rubyproblems.com delicious.com/ancorcruz/Ruby Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 49. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org www.ruby-doc.org www.apidock.com/ruby www.ruby-forum.com www.rubyinside.com www.rubycentral.org/pickaxe www.rubyproblems.com delicious.com/ancorcruz/Ruby www.google.com Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 50. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org www.ruby-doc.org www.apidock.com/ruby www.ruby-forum.com www.rubyinside.com www.rubycentral.org/pickaxe www.rubyproblems.com delicious.com/ancorcruz/Ruby www.google.com listas de correo. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 51. ´ ¿Que es Ruby? ´ Introduccion Caracter´sticas principales de Ruby ı Ruby ´ ¿Por que Ruby? Ruby on Rails Practiquemos con Ruby ´ Y despues de gatear. . . ´ Y despues de gatear. . . www.ruby-lang.org www.ruby-doc.org www.apidock.com/ruby www.ruby-forum.com www.rubyinside.com www.rubycentral.org/pickaxe www.rubyproblems.com delicious.com/ancorcruz/Ruby www.google.com listas de correo. Libros: The Ruby Way, Programming Ruby, . . . Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 52. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails ´ ¿Que es Rails? Framework Web. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 53. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails ´ ¿Que es Rails? Framework Web. ´ Esta escrito en Ruby. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 54. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails ´ ¿Que es Rails? Framework Web. ´ Esta escrito en Ruby. Sigue el paradigma de la arquitectura MVC. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 55. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails ´ ¿Que es Rails? Framework Web. ´ Esta escrito en Ruby. Sigue el paradigma de la arquitectura MVC. Es software libre y open source (Licencia MIT) Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 56. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails ´ ¿Que es Rails? Framework Web. ´ Esta escrito en Ruby. Sigue el paradigma de la arquitectura MVC. Es software libre y open source (Licencia MIT) Su creador es David Heinemeier Hansson. Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 57. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails Un poco de filosof´a de Rails ı Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 58. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails Filosofando DRY Don’t Repeat Yourself Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 59. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails Filosofando Convention over configuration Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 60. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails Filosofando ´ Maximizar la felicidad y la productividad de los desarrolladores Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 61. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails MVC Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 62. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails IDEs Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails
  • 63. ´ ¿Que es Ruby on Rails? ´ Introduccion Arquitectura Modelo-Vista-Controlador Ruby Entornos de desarrollo Ruby on Rails Ejemplo: ToDo on Rails ´ ¡¡Pasamos a la accion!! Ancor Cruz, contactar@ancorcruz.com CISLA 2010 on Rails