Ruby Tooling in NetBeans

Slides:



Advertisements
Similar presentations
Professional Toolkit V2.0 C:\Presentations - SmartCafe_Prof_V2.0 - bsc page 1 Professional Toolkit 2.0.
Advertisements

Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
Integrated Development Environments. Today We Will: Go over more advanced functionality of Eclipse. Break up into teams to work on presentation and final.
20-Jun-15 Eclipse. Most slides from: 2 About IDEs An IDE is an Integrated Development Environment.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
Enhancing Developer Productivity using Eclipse Presented by: Tom Sausner.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Creating a Console Application with Visual Studio
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
Ruby on Rails. What is Ruby on Rails? Ruby on Rails is an open source full-stack web framework. It is an alternative to PHP/MySQL. It can render templates,
ASP.NET 5 Visual Studio Code Bill Wolff July 8, 2015.
1. 2 What’s New in NetBeans IDE What is NetBeans IDE?  Ready to use out of the box  Support for latest Java specifications & standards  Other.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Introduction Purpose This course describes the process of installing the KPIT GNU toolchain on your PC. Objective Learn how easy it is to get information.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Active-HDL Interfaces Debugging C Code Course 10.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
LATTICE TECHNOLOGY, INC. For Version 10.0 and later XVL Web Master Tutorial For Version 10.0 and later.
Eclipse 24-Apr-17.
Eclipse. An IDE is an Integrated Development Environment Different IDEs meet different needs BlueJ, DrJava are designed as teaching tools Emphasis is.
WHAT IS SERVER SIDE SCRIPTING? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the.
NETBEANS DEBUGGER.  To create a breakpoint place the cursor at the desired location.  Go to the Run -> toogle line Breakpoint or Ctrl +F8. It creates.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Eclipse 27-Apr-17.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
1 Rails for the Ruby-Impaired John Paul Ashenfelter CTO/Transitionpoint.
XP Creating Web Pages with Microsoft Office
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Web Application Development with PHP in Netbeans 6.5 ● Angad Singh Campus Ambassador Tech Lead
NetBeans & Ruby David Botterill Software Engineer Global Technology Manager - Campus Ambassador Program Sun Microsystems, Inc.
NetBeans & Ruby -Enhancements for Web 2.0 and beyond Your Name Sun Campus Ambassador Your Address.
JRuby on Rails Presenter Name
C# Programming: From Problem Analysis to Program Design1 Visual Studio Configuration C# Programming: From Problem Analysis to Program Design 4th Edition.
JRuby on Rails Brian Leonard ブライアン レオナルド
Visual Web & AJAX with Netbeans 6.0 Your Name Sun Campus Ambassador Your Address.
Progress Apama Fundamentals
Dive Into® Visual Basic 2010 Express
Appendix A Barb Ericson Georgia Institute of Technology May 2006
CST 1101 Problem Solving Using Computers
Running a Forms Developer Application
Selenium and Selenium on Rails
Development with Eclipse
How to debug an application
Chapter 5 Scripting Language
Tutorial 10 Programming with JavaScript
ATS Application Programming: Java Programming
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Chapter 5 Scripting Language
Productivity Tools Extensions to NetBeans IDE that make life easier
Using Visual Studio with C#
Eclipse 20-Sep-18.
Web Development in Microsoft Visual Studio 2013
CIS 470 Mobile App Development
Understanding the Visual IDE
Using JDeveloper.
Chapter 15 Introduction to Rails.
8 6 MySQL Special Topics A Guide to MySQL.
Selenium Web Test Tool Training Using Ruby Language
Our Environment We will exercise on Microsoft Visual C++ v.6
Software Setup & Validation
CIS 470 Mobile App Development
Java Code Review with CheckStyle
Tutorial 8 Sharing, Integrating, and Analyzing Data
What’s New in Visual Studio
Workshop for Programming And Systems Management Teachers
CIS 694/EEC 693 Android Sensor Programming
Presentation transcript:

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

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

What is Ruby?

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.

What is JRuby?

An open source Java implementation of the Ruby language. It has an elegant syntax that is natural to read and easy to write.

What is Ruby on Rails?

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.

What is the NetBeans IDE?

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

Ruby Support in the NetBeans IDE: Everything you need in the Edit, Test, Debug Cycle

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. http://wiki.netbeans.org/wiki/view/RubyEditing

Hints Semantic syntax highlighting shows method calls, unused variables, etc. http://wiki.netbeans.org/wiki/view/RubyEditing

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. http://wiki.netbeans.org/wiki/view/RubyCodeTemplates Most TextMate snippets included

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) http://wiki.netbeans.org/wiki/view/RubyDebugging Get it?

Unit Testing Test:Unit RSpec AutoTest Supporting the built-in Test::Unit as well as RSpec and AutoTest http://wiki.netbeans.org/wiki/view/RubyTesting

Ruby Gem Manager View Installed Gems Update existing Gems Add new Gems

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

Version Control Subversion CVS Local History

Integrated Database Tooling View Data Execute SQL Command Design Queries

Miscellaneous Stuff.... Window Tricks Configuration

Plus, support for Rails

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.

Database Migrations

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>

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

RHTML Debugging Set Breakpoints in your RHTML View local variables Set watches Call stack Balloon Evaluations

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

Thank You! gregg.sporar@sun.com