practical ironruby

25
Practical IronRuby Shay Friedman [email protected] http://IronShay.com @ironshay

Upload: shay-friedman

Post on 13-Jan-2015

2.039 views

Category:

Technology


0 download

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

Page 1: Practical IronRuby

Practical IronRuby Shay Friedman

[email protected]

http://IronShay.com

@ironshay

Page 6: Practical IronRuby

Practical IronRuby

Shay Friedman Dynamic Languages Leader

[email protected] http://IronShay.com

@ironshay

Page 7: Practical IronRuby
Page 8: Practical IronRuby

Agenda • Hello, IronRuby!

• Use Cases

• Getting Started

• Q&A

• Summary

Page 9: Practical IronRuby

Hello, IronRuby! • Microsoft’s Ruby implementation

• Provides integration between Ruby and .NET code

Page 10: Practical IronRuby

Hello, IronRuby!

DLR CLR

BLR

ALR

Page 11: Practical IronRuby

Hello, IronRuby!

DLR CLR

Page 12: Practical IronRuby

Writing POCs • Powerful and permissive syntax

• REPL

Page 13: Practical IronRuby

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)

Page 14: Practical IronRuby

Testing .NET Code

Various different testing frameworks

+

Powerful syntax

+

Full integration with .NET code

Page 15: Practical IronRuby

Testing .NET Code – the Code

Page 16: Practical IronRuby

Testing .NET Code - RSpec

Page 17: Practical IronRuby

Testing .NET Code - Cucumber

Page 18: Practical IronRuby

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

Page 19: Practical IronRuby

Testing .NET Code

Page 20: Practical IronRuby

Silverlight • Silverlight 2 and above supports DLR languages

• Gestalt – “IronRuby in the Browser”

Page 21: Practical IronRuby

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”

Page 22: Practical IronRuby

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: [email protected]

Page 23: Practical IronRuby

Q & A

Page 24: Practical IronRuby

Summary • The “magic”

• Use cases

o POCs

o DSLs

o Testing

o Silverlight (Gestalt and Windows Phone 7)

o More…

• Getting started

Page 25: Practical IronRuby

Thank You!

Shay Friedman [email protected]

http://IronShay.com

@ironshay