l r u g - jruby
TRANSCRIPT
![Page 1: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/1.jpg)
NetBeansA Ruby IDE written in <cough>Java<cough>
and why the entire Ruby/Java thing is important.
![Page 2: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/2.jpg)
But who is he?
• Dj Walker-Morgan, JAFID*
• Used Java since Java 1.0
• Currently using Ruby on Rails and Java
www.codepope.com
* Geeky reference may contain Blue Thunder
![Page 3: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/3.jpg)
NetBeans for Java
• Java IDE
• Built in standard Java
• Open Sourced (GPL2 soon)
• The IDE that Sun sponsor
• Also reusable as an application platform
• Chock full o’functionality
![Page 4: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/4.jpg)
NetBeans is chock full o’functionality
• Version control (Subversion, CVS, others)
• Refactoring
• J2EE, JSP/JSF, Glassfish, JavaDB, UML
• Matisse Swing GUI Builder
• Profiling
• J2ME development tools
![Page 5: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/5.jpg)
Ruby - Java’s best friend?
• Ruby is compelling
• Rails has kicked off a trend for Java framework developers to rethink their approaches....
• Why not skip that and go straight to the source?
![Page 6: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/6.jpg)
Java - Ruby’s best friend?
• jRuby
• Gateway to all the enterprise libraries
• Deployability onto Java application servers
• Ruby->JVM byte code compiler
• Offers big performance gains
• Coming soon (http://headius.blogspot.com/2007/09/compiler-is-complete.html)
![Page 7: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/7.jpg)
NetBeans for Ruby and RoR
• Officially arrives as part of NetBeans 6
• Available now in beta (and daily) builds and standalone Ruby version
![Page 8: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/8.jpg)
For Ruby Applications
• Full editor support
• Code completion with documentation
• Refactoring
• Shortcuts
![Page 9: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/9.jpg)
NetBeans knows Ruby
• Debugging
• Classic or fast debugger
• Manages RubyGems
• Can use jRuby or native Ruby
![Page 10: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/10.jpg)
For Ruby On Rails
• Project creation
• Database migration
• RHTML editing with code completion
![Page 11: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/11.jpg)
NetBeans knows RoR
• Integrates with the underlying command line tools including Rake
• Shows an organised project view
• Knows about the relations of controllers and views, controllers/models and tests
![Page 12: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/12.jpg)
Let’s Make A Rails App...
![Page 13: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/13.jpg)
Taa...Daa.... TODO: Add Glamourous Assistant
![Page 14: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/14.jpg)
Let’s Make A Model
![Page 15: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/15.jpg)
Lets Make a Controller
![Page 16: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/16.jpg)
Code completion and live documentation
![Page 17: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/17.jpg)
Renamfactoring
• Inline renaming
• A quicker way to tidy up localised code
• Switches to general refactoring if not local
• with a very very very important preview
Control/⌘-R
Control/⌘-R
![Page 18: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/18.jpg)
Navigation on Rails
• Context sensitive
• From View to Action
• From Controller or Model to Test
• From partial reference to partial
• Through any symbol
• with documentation preview
![Page 19: L R U G - JRuby](https://reader034.vdocument.in/reader034/viewer/2022052410/5555ab89d8b42a52568b4926/html5/thumbnails/19.jpg)
Wrapping Up
• NetBeans rocks with Java
• Rocks even more with Ruby on Rails
• It’s cheaper than TextMate :-)
• It runs on Windows too
• And Linux and Solaris and....
• http://www.netbeans.org/