JRuby - Java version of Ruby

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    JRuby - Java version of Ruby - Presentation Transcript

    1. JRuby: The power of Java and Ruby - by Uday Bhaskar Sr., Java Programmer Olive Technology uday@olivetech.com http://udaiibhaskar.blogspot.com
    2. JRuby: The power of Java and Ruby Agenda Introduction to Ruby What is JRuby JRuby on Rails JRuby on Netbeans Where To Go
    3. JRuby: The power of Java and Ruby Introduction to Ruby • Created by Yukihiro “Matz” Matsumoto >Started around 1993, about the same time as Java • What is a scripting language? >No compilation unit puts “Hello world” >Specialized syntax subject.gsub(/before/, \"after\") >Maybe dynamic typing /duck typing • Design to put the “fun” back into programming
    4. JRuby: The power of Java and Ruby A Typical Ruby Class class Person attr_accessor :fname, :lname def initialize(fname, lname) @fname = fname @lname = lname end def to_s @lname + \", \" + @fname end end
    5. JRuby: The power of Java and Ruby What is Ruby on Rails • Main web framework for Ruby • Scaffolding • Metaprogramming • Convention over configuration • Web development that doesn’t hurt • High productivity >Less code to write >No deployment >Easy to learn
    6. JRuby: The power of Java and Ruby Comparison of Rails and Struts Stack • Tomcat servlet container • Struts Web application framework • Hibernate persistence framework
    7. JRuby: The power of Java and Ruby Ruby/Java • Ruby language is different from Java • Ruby platform is different from Java • How can Java developers benefit?
    8. JRuby: The power of Java and Ruby What is JRuby? • Implementation of Ruby written in Java • Compatible with Ruby 1.8.6 http://jruby.codehaus.org/ • Enables use of Java code in Ruby • Easier deployment • More libraries • More platforms, OpenSource • “Itʼs just Ruby”
    9. JRuby: The power of Java and Ruby JRuby Demo Java: VoiceManager vm = VoiceManager.getInstance(); Voice voice = vm.getVoice(\"kevin16\"); voice.allocate(); voice.speak(jTextArea1.getText()); voice.deallocate(); Ruby: require 'java' vm = com.sun.speech.freetts.VoiceManager.getInstance() voice = vm.getVoice(\"kevin16\") voice.allocate() voice.speak(\"Calling Java code from Ruby\") voice.deallocate()
    10. JRuby: The power of Java and Ruby JRuby/Ruby on Rails Demo I am using “Netbeans IDE” for this Demo
    11. JRuby: The power of Java and Ruby Questions “Good Question!” means I don’t have an answer :-)
    12. JRuby: The power of Java and Ruby Where to go for Ruby information • Online material: • http://jruby.codehaus.org/ • http://rubyonrails.org/ • Rails screencast(s) • Planet Ruby on Rails
    13. Thank You - by Uday Bhaskar Sr., Java Programmer Olive InfoServices uday@olivetech.com http://udaiibhaskar.blogspot.com

    + Uday BhaskarUday Bhaskar, 9 months ago

    custom

    582 views, 0 favs, 2 embeds more stats

    Presentation at Olive on Ruby and JRuby... Demo cov more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 582
      • 568 on SlideShare
      • 14 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds
    • 13 views on http://udaiibhaskar.blogspot.com
    • 1 views on http://draft.blogger.com

    more

    All embeds
    • 13 views on http://udaiibhaskar.blogspot.com
    • 1 views on http://draft.blogger.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories