Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Ruby on Rails

No description
by

Mathijs Sterk

on 10 June 2011

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Ruby on Rails

Mathijs Sterk

www.itrp.com Ruby on Rails Ruby is... A dynamic, open source programming language
with a focus on simplicity and productivity.
It has an elegant syntax that is natural to read
and easy to write. Dynamic scripting language (like Perl) class HelloWorldApp {
public static void main(String[] args) {
String message = "Hello World!"
System.out.println(message);
}
} message = "Hello World!"
puts message Pure object oriented (like Smalltalk) Functional programming via closures (like Lisp) public static List<Employee> managers(List<Employee> employees) {
List<Employee> result = new ArrayList<Employee>();
for (Employee employee : employees) {
if (employee.isManager()) {
result.add(employee);
}
}
return result;
} def managers(employees)
employees.select{ |employee| employee.manager? }
end Intepreted (re)define on the fly Flexible and forgiving And much, much more... Use of mixins (single inheritance)
Regular expressions
Open Source
Comprehensive API
Well documented
etc Yukihiro “matz” Matsumoto "Ruby is simple in appearance, but is very complex inside, just like our human body" Rails is... An open-source web framework that's optimized for programmer happiness and sustainable productivity.

It lets you write beautiful code by favoring convention over configuration. Principles Convention over Configuration
TTD (Test Driven Design)
DRY (Don't repeat yourself)
YAGNI (You ain't gonna need it)
Opinionated Software
REST
MVC Test and Deploy Initial setup Fat Models Skinny Controllers Views Heroku (git/svn/...)
EngineYard (git)
Amazon Goodies Scopes
Environments
no foreign key constraints in DB
no multithreading
many, many, gems
rake David H. Hansson Ruby on Rails was extracted by David Heinemeier Hansson from his work on Basecamp, a project management tool by 37signals.

First released in 2005. http://ruby.railstutorial.org/chapters/beginning#sec:deploying http://railscasts.com/episodes/216-generators-in-rails-3 note: scaffolding is mainly for educational purposes Specs first Hack away ERB HAML Partials (new/edit) Style with Sass scope :old_school, where(:twitter => "") person.rb
Full transcript