Link Details

Link 5285 thumbnail
User 207929 avatar

By fallenrogue
via fallenrogue.com
Published: Oct 23 2006 / 14:44

A quick comparison of a simple task in both Ruby and C#.
  • 10
  • 0
  • 3202
  • 1127

Comments

Add your comment
User 205047 avatar

Lowell Heddings replied ago:

2 votes Vote down Vote up Reply

While everybody knows Ruby uses less code, this article doesn't properly demonstrate it.

The article uses ActiveRecord from the Rails framework to insert records, and doesn't use a comparable framework for C#

If the author had used a comparable framework for the C# version, or better yet, use an example that doesn't require a framework, then the comparison would be more valid.

User 111696 avatar

bloid replied ago:

1 votes Vote down Vote up Reply

There seems to be loads of these comparisons around at the moment...

Most of them seem to use either meanlingless metrics, or unfair comparisons

User 207929 avatar

fallenrogue replied ago:

0 votes Vote down Vote up Reply

Thanks for the feedback, guys. I actually mention both those points in the comparison. In fact, I mention that there is a C# implementation of ActiveRecord that could be used for a better framework comparison. The point (that I failed to make, I suppose) that I was trying to make is that Ruby's implementation code is very compact and elegant for a simple task when compared to the other language that I'm currently invested in: C#. Near the end of the article I mention that the actual vs. numbers are more like 5 vs 1, which admittedly is not colossal. Either way, I'm always trying to improve the quality of my articles and truly appreciate the honest feedback. Most sites just flame you and don't give any constructive criticism, but dzone constantly seems to inspire more intelligent conversations. Thanks again!

User 205047 avatar

Lowell Heddings replied ago:

1 votes Vote down Vote up Reply

I look forward to more of your articles in the future... I just subscribed to your blog.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (0)