Ruby Tooling in NetBeans

bravesnailsSoftware and s/w Development

Jun 7, 2012 (5 years and 2 months ago)

494 views

Ruby Tooling in
NetBeans
Gregg Sporar
gregg.sporar@sun.com
2
Agenda

What is
Ruby?

What is
JRuby?

What is
Ruby on Rails?

What is the
NetBeans IDE?

Ruby Support in NetBeans IDE

Ruby on Rails Support in NetBeans IDE
3
What
is
Ruby?

4

A dynamic,
open source

programming language with a
focus on simplicity and
productivity.
5
What
is
JRuby?

6

An
open source

Java

implementation of the
Ruby

language.
7
What
is
Ruby on Rails?

8

An
open source
web framework
that's optimized for programmer
happiness and sustainable
productivity.
9
What
is the
NetBeans
IDE?

10
An
open source

Integrated Development
Environment
that includes JRuby
and
support for
Ruby
and
Ruby On Rails
11
Ruby Support in the NetBeans IDE:
Everything
you need
in the
Edit,
Test,
Debug
Cycle

12
Powerful Code Editor

Code-completion

In-place API documentation

Syntax
highlighting

Mark
occurrences

Go to
declaration

Instant
Rename
13
Hints
14
Live Code Templates
ife<tab>
if

condition
else
end
Most TextMate snippets included
15
Source Level Debugging!

Stepping

Breakpoints

Local Variables

Call Stack

Threads

Watches

Balloon-Evaluation
Get it?
16
Unit Testing

Test:Unit

RSpec

AutoTest
17
Ruby Gem Manager

View Installed Gems

Update existing Gems

Add new Gems
18
IRB
irb(main):001:0>
Welcome to the JRuby IRB Console
'Ruby'.length
=> 4
irb(main):002:0>
19
Version Control

Subversion

CVS

Local History
20
Integrated Database Tooling

View Data

Execute SQL Command

Design Queries
21
Miscellaneous Stuff....

Window Tricks

Configuration
22
Plus, support for
Rails

23
Project and Code Generators

Generate Models, Controllers ...

Skip or Overwrite existing files

Preview Only Option

Usage provided in dialog
24
Database Migrations
25
RHTML Editing
<li>
Syntax highlighting
</li>
<li>
Code completion
</li>
<li>
Goto Action/View
</li>
26
Server Integration

WEBrick automatically started

Server console window

Mongrel also supported
27
RHTML Debugging

Set Breakpoints in your RHTML

View local variables

Set watches

Call stack

Balloon Evaluations
28
Resources

http://www.netbeans.org/

http://www.netbeans.org/ruby/

http://wiki.netbeans.org/wiki/view/Ruby

http://www.netbeans.org/kb/60/ruby/index.html
29
30
Thank You!
gregg.sporar@sun.com