Your SlideShare is downloading. ×
Introduction to JRuby
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Introduction to JRuby

723

Published on

Slides for the talk given at http://jugchennai.in/chennaijavasummit/.

Slides for the talk given at http://jugchennai.in/chennaijavasummit/.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
723
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. JRUBYA Better Java and A Better Ruby - by Vagmi Mudumbai
    • 2. Who am Ihttp://www.dharanasoft.comRailsPundithttp://www.railspundit.com
    • 3. I hack onFollow me @vagmi
    • 4. Dynamically TypedMyCollection<IMyInteface> myCollection = new MyCollection<IMyInterface>() my_collection = MyCollection.new Follow me @vagmi
    • 5. Multi Paradigm Language Follow me @vagmi
    • 6. Meta programming You just have to realize There is no spoon! Follow me @vagmi
    • 7. Talk is cheap. Show me the code.Follow me @vagmi
    • 8. Object Orientation5.class=> Fixnum class Sampleclass Sample def hello2 def hello puts “hello2” puts “hello” end end endend obj.hello2obj = Sample.newobj.hello Follow me @vagmi
    • 9. Object Orientation class << obj2 def hello3obj2 = Sample.new puts “hello3”obj2.hello1 endhello end=> nil obj2.hello3obj2.hello2 hello3hello2 => nil=> nil obj.hello3 # error occurs Follow me @vagmi
    • 10. Data Typesa = [1,2,3,”hello”,[‘a’,’b’,’c’]a << “another object” hsh = {}a[4] hsh = {“a”=>1, “b”=>2}=> “hello” hsh = {“asdf”=>1,2=>”asdf”}a[4] hsh[a] = “key can be anything”=>[‘a’,’b’,’c’] Follow me @vagmi
    • 11. Data Types“asdf”.object_id=>id1“asdf”.object_id=>id2 to the rescue Strings are mu table. Symbols :”asdf”.object_id => id3 :”asdf”.object_id => id3 :asdf.object_id => id3 Follow me @vagmi
    • 12. Blocks Ruby has no for statement Follow me @vagmi
    • 13. Blocks[1,2,3,4].each do |i| puts (i*2).to_s def measure_it(&block)end puts Time.now2 yield4 puts Time.now6 end8 Follow me @vagmi
    • 14. But why JRubyquartz-jruby http://blog.dharanasoft.com/2010/12/03/scheduling- jobs-with-jruby/ Follow me @vagmi
    • 15. Introducing Rails Follow me @vagmi
    • 16. Lets build a Rails App Follow me @vagmi
    • 17. Questions Follow me now @vagmi

    ×