JAX07: Why is everybody interested in Ruby On Rails

Concepts:

  • Not a single line of xml.
  • Convention over Configuration
  • Instant feedback
  • Scaffolding (Gerüst)
  • Testing right in the Framework
  • DRY (Don’t repeat yourself) (e.g. Database->Models)
  • AJAX, REST Support
  • Opinionated Software
  • Parts
  • „ActiveRecord“
    DRY O/R mapping framework
  • ActionPack
    View via templates
    Controller (Routing, Caching, manages helper modules, sessions)

Building a rails application:

  • Scaffolding
  • Generate a model

Every Object has a method „methodMissing“ and Active Record uses this to support DRY

Rails URI
/product/show
/controller/action

„Scaffolding just holds the other stuff up until you can replace it.“

DB Changes are instantly picked up, even if you change those in sql explorer or other tools

Rails is a DSL (Domain specific language)
I18N not really available yet

Scaffolding dynamic or static(user customizable)

View Temmplates (Mix of HTML and Ruby)

ActiveRecord Realtionsships
ActiveRecord is the largest part of Rails

Tests:
unit, functional, integration
on db or fixtures(db is setup like the fixture sets before every test)

JRuby
Rails integration plugin in ruby installieren
ActiveRecord Bridge

Book:
Rails for Java Developers

Referent:
nealford.com
memeagora.blogspot.com

Advertisements



    Kommentar verfassen

    Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

    WordPress.com-Logo

    Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

    Twitter-Bild

    Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

    Facebook-Foto

    Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

    Google+ Foto

    Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

    Verbinde mit %s



%d Bloggern gefällt das: