Post on 13-Jan-2015
description
Practical IronRuby Shay Friedman
shay@ironshay.com
http://IronShay.com
@ironshay
http://www.flickr.com/photos/joanna8555/3793432521/ CC BY-SA 2.0
DADA OOOO OUW
http://www.flickr.com/photos/mastermaq/1429421322/ CC BY-SA 2.0
http://www.flickr.com/photos/anasantos/3831899106/ http://www.flickr.com/photos/aresauburnphotos/1121058121/ http://www.flickr.com/photos/zooboing/4116010919/
I see a lot of stars! I see bazillion stars!
http://www.flickr.com/photos/solarnu/1128993772/
Practical IronRuby
Shay Friedman Dynamic Languages Leader
shay@ironshay.com http://IronShay.com
@ironshay
Agenda • Hello, IronRuby!
• Use Cases
• Getting Started
• Q&A
• Summary
Hello, IronRuby! • Microsoft’s Ruby implementation
• Provides integration between Ruby and .NET code
Hello, IronRuby!
DLR CLR
BLR
ALR
Hello, IronRuby!
DLR CLR
Writing POCs • Powerful and permissive syntax
• REPL
Writing Domain Specific Languages
<ShoppingList> <ShoppingListItem Product="Peanuts" Grams="3000"/> <ShoppingListItem Product="Cheese" Grams="100"/> <ShoppingListItem Product="Snacks" Grams="2000"/> </ShoppingList>
list = ShoppingList.new list.buy 3.kilograms.of(Peanuts) list.buy 100.grams.of(Cheese) list.buy 2.kilograms.of(Snacks)
Testing .NET Code
Various different testing frameworks
+
Powerful syntax
+
Full integration with .NET code
Testing .NET Code – the Code
Testing .NET Code - RSpec
Testing .NET Code - Cucumber
Testing .NET Code - More • RSpec
• Cucmber
• Shoulda
• Test::Unit
• Test-spec
• Riot
• Protest
• Stories
• Lemon
• Bacon
• Contest
• Steak
• Coulda
• Testy
• Micronaut
• Zebra
• Minitest/unit
• Dfect
• QED
Testing .NET Code
Silverlight • Silverlight 2 and above supports DLR languages
• Gestalt – “IronRuby in the Browser”
Some More… • Extending .NET applications
o http://bit.ly/ExtendWithIronRuby
• Rack (albacore)
o http://bit.ly/RackWithIronRuby
• Ruby on Rails
o Friday, 13:40: “Riding IronRuby on Rails”
Getting Started • Official site: http://IronRuby.net
• Read
o http://IronShay.com
o IronRuby Unleashed
• Ask questions
o Mailing list:
http://www.ruby-forum.com/forum/34
o Twitter: use the #ironruby hashtag
• Contact me
o Twitter: @ironshay
o Mail: shay@ironshay.com
Q & A
Summary • The “magic”
• Use cases
o POCs
o DSLs
o Testing
o Silverlight (Gestalt and Windows Phone 7)
o More…
• Getting started
Thank You!
Shay Friedman shay@ironshay.com
http://IronShay.com
@ironshay