http://www.softwarefreedomday.org
Pengenalan Framework Ruby On Rails Menggunakan Netbeans 6.1 Image by ecstaticist
Agi Putra Kharisma http://unwrittencode.blogspot.com agi.banget@gmail.com http://unwrittencode.blogspot.com
? ? On
Ruby is designed to make programmers happy Yukihiro Matsumoto (Matz) – Ruby Creator Object Oriented Everything Is An Object (except code block) Dynamic Language Classes Are Always Open ......
10.times {puts 'Saya tidak akan mengulanginya lagi'} Photo by oskay puts 'Hello World' 10.times {puts 'Saya tidak akan mengulanginya lagi'} nilai.lulus unless nilai.include? “E”
Class Method class Mahasiswa def kuliah #... end def isi_krs
http://www.rubyonrails.com
A bunch of stuff that makes web developers happy! Photo by Roo Reynolds David Heinemeier Hansson (DHH) – Rails Creator An integrated stack of web-application frameworks. An open-source web framework for developing database-backed web applications. A Domain Specific Language (DSL) for developing database-backed web application
Convention Over Configuration
Don't Repeat Yourself (DRY)
Model View Controller (MVC)
MVC WEB BROWSER Database MODEL CONTROLLER VIEW route.rb ... def index UsersController index.html.erb ... def index @user = User.find(:all) respond_to do |format| format.html format.xml end <html> ... <h1>title</h1> <p>body</p> </html>
ActiveRecord posts Object Relational Mapper class Post < ActiveRecord::Base end SELECT * FROM posts WHERE id = 1; @post = Post.find_by_id(1)
www.netbeans.org
Demo Membuat aplikasi CRUD sederhana Create Read Update Delete
Pertanyaan?