Ruby+rails
-
Upload
shuky-dvir -
Category
Documents
-
view
105 -
download
0
description
Transcript of Ruby+rails
Josh Dvir Founder @
h0ps://tooveo.com
Ruby On Rails Workshop
+
Ruby Philosophy
• “A programming language for human beings”. • Expressive code • Powerful expansion by Metaprogramming / FuncKonal Paradigm • Make programming more fun • Be producKve
Ruby Community One of most innovaKve and acKve today:
• Ruby on Rails
• TDD / BDD, ConfiguraKon Management
• A LOT of libraries that inspired other communiKes (Python, Go, Java, C# etc.)
• Has created other Virtual Machine implementaKons (default is MRI): • JRuby (runs on JVM) • Rubinius (wri0en in C++ with LLVM) • Maglev (wri0en in Smalltalk) • RubyMoKon (runs on iOS and OSX)
Ruby On Rails A framework to create web applicaKons.
• Ruby on Rails is a great example of opinionated so[ware. • ConvenKon over ConfiguraKon • Principle of Least Astonishment • KISS (Keep It Simple, Stupid) • DRY (Don’t Repeat Yourself)
Architecture:
Rails is a MVC (Model-‐View-‐Controller) framework. • Model: main business rules and persistence • View: presentaKon layer of data • Controller: a bridge between models and views, based on acKons.
Quick Example J
Hello.java
hello.rb
Hello.java
hello.rb
119 chars
19 chars
626% ProducKvity Gain
Let’s Start Code!