practical ironruby

Post on 13-Jan-2015

2.039 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

IronRuby has been around for a while. This presentation is about the practical uses of IronRuby. It contains several different use cases that you can immediately go and use to enhance your everyday work.

TRANSCRIPT

Practical IronRuby Shay Friedman

shay@ironshay.com

http://IronShay.com

@ironshay

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

top related