Last comments

July 2010
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Categories

Syndicate this blog XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 1

Ridin' the Rails

I don't know if you've been living under a rock, but if you have, you might not have heard about Ruby on Rails. For you under-rock dwellers, Ruby on Rails is a web application framework using the scripting language Ruby. Since I knew virtually nothing about it, other than what it was, I decided to download Ruby and start riding the rails.

First impressions: wow. Just a few lines of code, and I've got a complete, albeit ugly, web application with database interactivity and everything. Now, I'm a complete newbie with Ruby, so I haven't been able to really write anything I'd want to publish, but it piqued my curiosity enough to buy the book Agile Web Development With Rails. One thing I notice with the language is how much it's different from what I'm used to. I'm mainly a C# kinda guy, and have done a fair amount of PHP, ColdFusion, VB, and ASP classic. Ruby is kinda foreign to me. And I'm not just talking syntax, I mean logically foreign. For instance in C# I might write something like this:

if (foo == 5){
System.WriteLine("bar");
}

In Ruby, I could write the same thing like this:

puts "bar" if foo == 5

or

if foo == 5 puts "bar"

That's just one of the examples that stood out to me. Ruby is, however, fully object oriented, which I am familiar with, and I fell comfortable that it should be able to get up to speed fairly quickly. It also claims to have very powerful string manipulation capabilities, and can certainly be used for other purposes than web development (I actually have a Ruby IDE written entirely in Ruby).

The Rails framework itself reminds me a little of the old Fusebox framework, but there are major differences. The Rails framework give you a complete skeleton application from the start, and actually has functionality, not just a theory of how to structure an application.

I mainly posted this to get your guys impression on Ruby and Rails if you've ever had a chance to experiment and what you think about it. A major reason I'm interested in it is to expand my knowledge to something modern yet non-proprietary. I even hear there is a Ruby.NET in development. Interesting stuff. . .

Give me your comments. I'll post more about Ruby in the future.

Permalink 04/14/06, 10:32:55 pm, by Casey Email , 387 words, 82 views
Categories: Computers, Programming , 2 comments

Comments, Pingbacks:

Comment from: buster [Visitor] · http://www.bustercollings.com
certainly sounds interesting... if i wasn't neck deep in .Net transition at work i'd try and play with it a little bit. who knows maybe i'll get some time to tinker... until then i'll appreciate anything you continue to post about it!
PermalinkPermalink 04/17/06 @ 10:01
Comment from: tim [Visitor] · http://www.timtipton.com
i want to learn this, in a bad way. I will learn this when you teach me. Thanks.
PermalinkPermalink 04/24/06 @ 16:55

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Previous post: Apple WhoreNext post: Catching Up