The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Compiling in Vain

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Obie Fernandez

Posts: 608
Nickname: obie
Registered: Aug, 2005

Obie Fernandez is a Technologist for ThoughtWorks
Compiling in Vain Posted: Sep 27, 2005 4:53 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Obie Fernandez.
Original Post: Compiling in Vain
Feed Title: Obie On Rails (Has It Been 9 Years Already?)
Feed URL: http://jroller.com/obie/feed/entries/rss
Feed Description: Obie Fernandez talks about life as a technologist, mostly as ramblings about software development and consulting. Nowadays it's pretty much all about Ruby and Ruby on Rails.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Obie Fernandez
Latest Posts From Obie On Rails (Has It Been 9 Years Already?)

Advertisement

The lack of static typing in Ruby tends to make some C++/Java people kind of crazy, so I just had to repost this gem from Rob Rypka on the ruby-lang mailing list:

It seems to me that typed variables and compilers give programmers a false sense of security about their code. Once you get the darn thing to compile, you feel like you've accomplished something, where all you've really done is satisfy the compiler - the semantics of what you've actually done are a whole 'nother can of worms (type conversion usually has a part in this).

Once you start coding in Ruby, you'll find it's pretty easy to catch those spelling/type mismatching mistakes. If you add a string and an integer, you get an error (unlike JavaScript, where "2" + 2 = "22"), so you still have to explicitly convert data (using #to_s) if the behavior is undefined (you could also define the behavior if you like). You skip the entire compilation step, so you are evaluating both proper syntax and semantics at the same time.

Bottom line: Not having typed variables or static checking really isn't that bad, and the dynamic nature of Ruby is really that good.

Read: Compiling in Vain

Topic: People to Snub in San Diego Previous Topic   Next Topic Topic: Advent Children

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use