The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Ruby and Smalltalk

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
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Ruby and Smalltalk Posted: Jan 15, 2008 6:09 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Ruby and Smalltalk
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

I saw a few "Ruby vs. Smalltalk" comparisons over at LtU:

Ruby has mixins; Smalltalk does not. Mixins help much in design.
Ruby permits adding methods to individual objects; in Smalltalk, all methods reside in classes.
In Ruby, it is practical and somewhat useful to add methods dynamically; in Smalltalk, the practice is generally to treat the methods and classes as static.
Ruby offers powerful macros in class definitions; Smalltalk offers no macros at all.

Well, yes and no. Mixins are not part of Smalltalk, nor are macros - but you can add methods to individual objects. It's not commonly done, but it's pretty straightforward - grab the method dictionary of an object and plow away. I have no idea where the author gets the idea that Smalltalkers generally treat classes and methods as static; that's simply not part of the Smalltalk culture at all. As to loose methods - while blocks aren't exactly that, they sure are close - and if you look at the way the Smalltalk workspace works (which is also how the Cincom Smalltalk SSP implementation works), it's pretty easy to take loose methods and compile them on the fly.

A lot of the test of the post talks about the convenient syntax of Ruby for this, that , and the other thing - however, I think it's a positive benefit that Smalltalk has a minimal syntax, and does everything in the library. It makes it a lot easier to ramp up, IMHO, and makes for a more powerful language.

Technorati Tags: ,

Read: Ruby and Smalltalk

Topic: Ruby, Rails, OS X (Leopard), CSS Previous Topic   Next Topic Topic: Industry Misinterpretations Episode 70: Run Basic, Run!

Sponsored Links



Google
  Web Artima.com   

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