The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Perception Versus Reality

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
Perception Versus Reality Posted: Apr 11, 2006 11:05 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Perception Versus Reality
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

Mike Austin points out an interesting issue surrounding the learning of Smalltalk - the perceived irregularity of the syntax. As is pointed out in his comments, it's not irregular syntax, but the consistency of the object model that's at work. However, Mike has a point in terms of how newbies see things:

In one aspect, Smalltalk is a very small and elegant language. But I find there are some hidden intricacies when you actually use it. One example is the difference between using the messages whileTrue: and ifTrue:. whileTrue: expects a Block, while ifTrue: expects a Boolean. In the following, at first glance it's not understood why one uses square brackets and the other parenthesis:


[count < 10] whileTrue: [count := count + 1]
(count < 10) ifTrue: [count := count + 1]

Once you understand that the control messages are just that - messages, not operators - it makes sense. I can see Mike's point though - to a person just learning Smalltalk, that might be seen as confusing. I'll have to think on this.

Read: Perception Versus Reality

Topic: The "Magic" of Smalltalk Previous Topic   Next Topic Topic: Running VW/Bf on Linux

Sponsored Links



Google
  Web Artima.com   

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