Ruby on Rails -- czy warto?

Post on 24-Jun-2015

1.334 views 0 download

Transcript of Ruby on Rails -- czy warto?

Ruby on Rails – czy warto?

Piotr Macukpiotr@konfeo.com

O mnie

● Programowanie ~ 20 lat (8 + 12) ● Linux ~ 13 lat ● Web development ~ 11 lat ● Perl, PHP, Python ~ 5 lat ● Ruby (on Rails) ~ 6 lat

Ruby

● Język skryptowy● Yukihiro Matsumoto (Matz)● Pierwsze wydanie w 1995 roku● Open source (GPL, Ruby)● Ruby = Lisp + Perl + Smalltalk + Python + ... ● Prosta i naturalna składnia● Szybkość i wygoda tworzenia

Ruby – szczegóły

● Wszystko jest obiektem● Wszystko posiada wartość● Wbudowane wyrażenia regularne● Symbole● Metody ? i ! ● Bloki● Iteratory● Otwarte klasy● Mixins

Ruby – obiekt i wartość

Ruby – regexp, symbole, ? i !

Ruby – bloki, iteratory, klasy

Ruby on Rails

● Web framework● David Heinemeier Hansson● Stworzony w 2003 roku● Open source (MIT)● Szybkość i wygoda tworzenia● Wydajność programisty● DRY (Don't Repeat Yourself)● Convention Over Configuration● Plugins, gems, bundler● Konsola

Rails – szczegóły● Model View Controller● ActiveRecord● Javascript / database agnostic● Generatory● Migracje● TDD/BDD● ActionMailer● develpment/test/production● I18n

Rails – ActiveRecord● Associations● Validations● Callbacks● Queries● Observers

Rails – ActiveRecord

Rails – ActiveRecord

Rails – ActiveRecord

Rails – Migracje

Rails – ActionMailer

Subiektywne podsumowanie

● Bycie lepszym programistą● Skupienie się na logice biznesowej● Szybsze, przyjemniejsze i tańsze

tworzenie i utrzymanie systemów● Dużo naśladowców Railsów

Linki

● http://www.ruby-lang.org/● http://rubyonrails.org/● http://guides.rubyonrails.org/

Ruby on rails – czy warto?

vs ...

Pytania

?

Dziękuję za uwagę :)

Piotr Macukpiotr@konfeo.com