The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Missing the Environment?

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
Missing the Environment? Posted: Jan 2, 2008 4:47 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Missing the Environment?
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 think Dare Obasanjo missed the entire point of Smalltalk. Here he explains his (brief) exposure to Smalltalk in college:


"A subclass of Employee that adds protocol needed for 
          employees with salaries"

       Employee subclass: #SalariedEmployee
          instanceVariableNames:  'position salary'
          classVariableNames: ' '
          poolDictionaries: ' ' !

       ! SalariedEmployee publicMethods !

          position: aString 
             position := aString !
          position 
             ^position !
          salary: n 
             salary := n !
          salary 
             ^salary ! !

In the example above, there is a method called salary() that takes a parameter n whose type we don't know. n could be a string, an integer or a floating point number. If you are using the SalariedEmployee class in your code and want to set the employee's salary, the only way to find out what to pass in is to grep through the code and find out how the method is being used by others. You can imagine how frustrating it gets when every time you want to perform a basic task like perform a Web request you have to grep around trying to figure out if the url parameter you pass to the Http classes is a string, a Uri class or some oter random thing you haven't encountered yet.

To start with the obvious: Grep? Anyone who actually used the Smalltalk environment for longer than a second or two would know about Senders/Receivers. With Smalltalk, the medium (the image) is the message.

Further down in his post, it's clear that his usage of Python has sold him on the value of dynamic languages - what he missed with Smalltalk was the environment. Squeak (especially the older versions) could be hard to warm up to, but all the basic Smalltalk power is right there - I'd love to know how Dare ended up grepping source files instead of using the browser.

Technorati Tags:

Read: Missing the Environment?

Topic: SD Times on 6th Sense Analytics' New Attribution Engine Previous Topic   Next Topic Topic: Stupid Ideas in Selling

Sponsored Links



Google
  Web Artima.com   

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