Download presentation
Presentation is loading. Please wait.
1
JRuby on Rails Brian Leonard ブライアン レオナルド bleonard@sun.com
2
2 Agenda ● What is Ruby ● What is Rails ● What is JRuby ● What is JRuby on Rails ● What is NetBeans Ruby IDE
3
3 What is Ruby?
4
4 ● Object-oriented ● Dynamically typed ● Extensible via Ruby Gems – Very active community – Wide range of applications ● Created by Yukihiro “Matz” Matsumoto ● Released in 1995 ● Jumped in popularity in 1996
5
5 Some Cool Things...
6
6 EVERYTING is an object
7
7 Methods can be added on the fly
8
8 Even missing methods can be handled.
9
9 class Blog attr_accessor :title def initialize( title ) @title = title end def Blog.method_added( name ) puts "#{name} method added" end def method_missing( method ) puts "There is no #{method} method, but I could create one if you like." end
10
10 Ruby Language Demo
11
11 What is ?
12
12
13
13 ● Metaprogramming ● Active Record ● Convention over configuration ● Scaffolding ● Easy Ajax ● Rapid feedback loop
14
14 What is ?
15
15 Open source Java implementation of the Ruby language
16
16 What is ? on
17
17 Simply a Rails application running on JRuby
18
18 What is NetBeans Ruby IDE?
19
19 An Integrated Development Environment for Ruby
20
20 EVERYTHING you need in the Edit, Test, Debug Cycle
21
21 Powerful Code Editor ● Syntax highlighting ● Code-completion ● In-place API documentation ● Mark occurrences ● Go to declaration ● Instant Rename
22
22 Live Code Templates bt belongs_to :object Most TextMate snippets included
23
23 Source Level Debugging! ● Stepping ● Breakpoints ● Local Variables ● Call Stack ● Threads ● Watches ● Balloon-Evaluation Get it?
24
24 Unit Testing ● Test:Unit ● RSpec ● AutoTest
25
25 Ruby Gem Manager ● View Installed Gems ● Update existing Gems ● Add new Gems
26
26 IRB irb(main):001:0> Welcome to the JRuby IRB Console 'Ruby'.length => 4 irb(main):002:0>
27
27 Version Control ● Subversion ● CVS ● Local History
28
28 Integrated Database Tooling ● View Data ● Execute SQL Command ● Design Queries
29
29 Plus, support for Rails
30
30 Project and Code Generators ● Generate Models, Controllers... ● Skip or Overwrite existing files ● Preview Only Option ● Usage provided in dialog
31
31 Database Migrations
32
32 RHTML Editing Syntax highlighting Code completion Goto Action/View
33
33 Server Integration ● WEBrick / Mongrel automatically started ● Server console window
34
34 RHTML Debugging ● Set Breakpoints in your RHTML ● View local variables ● Set watches ● Call stack ● Balloon Evaluations
35
35 Demo - Agile Development of the Plugin Portal
36
36 Conclusion You can take advantage of the agility of Ruby and Rails while continuing to leverage your investment in Java
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.