Introduzione a Ruby On Rails - Presentation Transcript
Lo sviluppo agile di
applicazioni web
(su database Oracle)
Conferenza Annuale OUGIT
Parma – 1 dicembre 2006
Luca Mearelli
Ruby on Rails
Perchè? Come? Cosa?
Perchè?
Motivazione Produttività
Troppa \"Enterprise\"
Liberare le Buone Idee
Come?
Predire il futuro è per gli oracoli
Distillato da un servizio reale
È l'unico modo di creare un framework
Occorre provare le API sul campo
Principi
Less Is More
Don't Repeat Yourself
Convention Over Configuration
Constraints Are Liberating
Flexibility Is Overrated
Ruby !?!
Tutto è un oggetto
Espressività dei blocchi
Introspezione
Estensione a runtime
Librerie ricche
Cosa?
Un ambiente per la creazione di applicazioni
web
Una soluzione completa per un problema
Focalizzata sugli obiettivi non sui mezzi
Non una singola grossa innovazione
Infrastruttura NON Business Logic
Integrato
Dalle pagine al database
un linguaggio solo per tutti i livelli
si prende cura dei piccoli particolari
Model View Controller
(completo!)
Un insieme di
Domain Specific Language(s)
ActiveRecord
ORM che implementa il pattern ActiveRecord
ActionPack
Controllo del flusso e gestione delle viste (il VC nel MVC).
ActionMailer
Gestione delle email (invio, ricezione, test)
ActionWebService
Supporto per i Web service.
ActiveSupport
Utility di supporto del framework.
Plugins
wget http://myhost/guestbook/index
POST su http://myhost/guestbook/sign con parametri
Views
Capistrano
Il risultato
\"Most web frameworks force the developer to focus on the needs of the
framework. You spend your time configuring X, or interfacing between
Y and Z. Rails isn't like that. With Rails you focus on delivering value
to your users. Everything else just gets taken care of. Rails finally
brings agility to the web.\"
Dave Thomas
\"Rails has become a standard to which even well-established tools are
comparing themselves to.\"
Martin Fowler, Autore di Refactoring, PoEAA, XP Explained
\"Ruby on Rails is a breakthrough in lowering the barriers of entry to
programming. Powerful web applications that formerly might have taken
weeks or months to develop can be produced in a matter of days.\"
Tim O'Reilly, Fondatore di O'Reilly Media
\"Rails is the most well thought-out web development framework I've ever
used. And that's in a decade of doing web applications for a living.
I've built my own frameworks, helped develop the Servlet API, and have
created more than a few web servers from scratch. Nobody has done it
like this before.“
… bello ma?
Issues (reali)
Bind variables in oracle
Integration o legacy databases
Deploy su windows / IIS
Accettazione in ambienti enterprise
Non-Issues
Scalabilità (shared nothing)
I18N (Globalize plugin, rails 1.2)
Integrazione con J2EE (Jruby!)
Curva di apprendimento (e Java ?!)
Strategie di adozione
Progetti interni
Prototipazione
Nuove applicazioni
Sul Web
http://gettingreal.37signals.com/
http://rubyonrails.com
http://peepcode.com
http://www.therubymine.com/
http://google.com
Libri
Agile Web Development with Rails
Dave Thomas, David Heinmeir Hansson (The Pragmatic Programmers)
Rails Recipes
Chad Fowler (The Pragmatic Programmers)
Ruby for Rails
David A. Black (Manning)
RJS Templates for Rails
Cody Fauser (O'Reilly)
0 comments
Post a comment