BT

Exploring IronRuby with a C# Perspective

| by Robert Bazinet Follow 0 Followers on Jul 25, 2008. Estimated reading time: 2 minutes |

Many developers who know a particular programming language and want to learn a second one, often find it the hardest language to learn but subsequent languages being easier.  Any developer who knows C# and has an interest in learning IronRuby can find a tutorial series on learning IronRuby based on knowledge of C# from CodeThinked.

CodeThinked is a web site run by Justin Etheredge who has set out to show developers how to write Ruby from equal C#.  The tutorial series currently has six parts but is ongoing and readers should continue to look for updates.  The first two parts give the basics of getting IronRuby setup and then running some applications with it and the remaining four parts get into the heart of the tutorials.

Getting IronRuby Up and Running

Getting IronRuby Up and Running gives a good walk-through on how to get the source code from IronRuby.com using SubVersion and proceed to build IronRuby from source using Visual Studio 2008.

Getting IronRuby built and run successfully has some possible issues associated with it and Justin handles all of the scenarios he came up against, explains what they are and how to get around them.

Running Applications in IronRuby

Running Applications in IronRuby gets the developer started with writing Ruby and running under IronRuby.  The tutorial starts off with everyone's favorite "HelloWorld" application and goes right into showing how to use the newly created class from other classes.

HelloWorld applications are always simple but give developers a way to see a running application with the littlest amount of work.   

Learning Ruby via IronRuby and C#

The tutorials start out with foundational information such as what it means to be a dynamic language.  Justin jumps right into comparing various elements of C# that we use everyday such as the class keyword, building classes in C# and showing how they appear in Ruby.  Various aspects of building classes such as getter and setters, different property types as well as class methods.

The tutorials progress into contrasting iterators such as C# foreach and for loops.  There is always more than one way to solve a problem in Ruby and Justin helps point out what is considered the expected way in Ruby.

All four of the core parts of the tutorial are posted now:

Justin is taking a careful and detailed approach to showing developers parallels between C# and Ruby, his tutorials are well-worth reading.  Later installments in this series on Justin's blog, CodeThinked.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT