Download presentation
Presentation is loading. Please wait.
1
Ruby Tooling in NetBeans
Gregg Sporar
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
It has an elegant syntax that is natural to read and easy to write.
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.
5
What is JRuby?
6
An open source Java implementation of the Ruby language.
It has an elegant syntax that is natural to read and easy to write.
7
What is Ruby on Rails?
8
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.
9
What is the NetBeans IDE?
10
Integrated Development Environment that includes JRuby and support for
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 Semantic syntax highlighting shows method calls, unused variables, etc.
13
Hints Semantic syntax highlighting shows method calls, unused variables, etc.
14
Live Code Templates ife<tab> if condition else end
Abbreviations that expand into snippets of code when the Tab key is pressed after typing the snippet name in the editor. Most of the TextMate snippets have been converted into NetBeans code teampates. Most TextMate snippets included
15
Source Level Debugging!
Stepping Breakpoints Local Variables Call Stack Threads Watches Balloon-Evaluation Stepping, breakpoints, local variables, call stack, threads, watches, baloon-evaluation (hover the mouse over symbols in the editor to see their current value) Get it?
16
Unit Testing Test:Unit RSpec AutoTest
Supporting the built-in Test::Unit as well as RSpec and AutoTest
17
Ruby Gem Manager View Installed Gems Update existing Gems Add new Gems
18
Welcome to the JRuby IRB Console
irb(main):001:0> 'Ruby'.length => 4 irb(main):002:0> Interactive Ruby lets you interact with Ruby directly
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 Choose what to generate and how to deal with conflicts Usage for each generator is displayed right there in the dialog The output of the code generator is shown in the Output window. The output is also process such that you can click directly on created files, skipped files, and so on to bring them up in the source editor.
24
Database Migrations
25
RHTML Editing <li>Syntax highlighting</li>
<li>Code completion</li> You get highlighting of both the HTML and the RHTML directives, as well as the embedded Ruby code. You can jump between actions and views using the “Goto Action/View” item, which is available in the context menu for both Ruby and RHTML files, as well as bound to Ctrl-Shift-A (Command-Shift-A on the Mac). <li>Goto Action/View</li>
26
Server Integration WEBrick automatically started Server console window
Mongrel also supported WEBrick, the built-in Ruby web server, is automatically started when the project is Run (if not already running). The WEBrick console window shows the output of the web server. It will list the requests as they are processed. You can use the Mongrel server as well; just install it via the Gem Manager With Rails, there is no deployment step – the application is deployed in place. If you hit Run File, NetBeans will try to open the browser on a more specific page; for example, the page corresponding to the controller you are editing
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/
30
Thank You!
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.