The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Sharing Common Code

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
Sharing Common Code Posted: Jun 25, 2007 12:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Sharing Common Code
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 asked this morning what the heck was up with this post; now I see that the commentary is actually an old article (2001) from Dr. Dobbs:

Code reuse, the most common kind of reuse, refers to the reuse of source code within sections of an application and potentially across multiple applications. At its best, code reuse is accomplished by sharing common classes or collections of functions and procedures (this is possible in C++, but not in Smalltalk or Java). At its worst, code reuse is accomplished by copying and then modifying existing code. A sad reality of our industry is that code copying is often the only form of reuse practiced by developers.

A Smalltalk class can be thought of (never mind namespaces for the moment) as a global object. Therefore, any class method is - wait for it - a globally accessible "function".

We could also define a block and stuff that in a globally accessible variable, which would give Dr. Dobbs the same thing. Worse, this is Scott Ambler - who I would have assumed would know better.

Technorati Tags:

Read: Sharing Common Code

Topic: Smalltalk Daily 6/21/07: Using Subcanvases Previous Topic   Next Topic Topic: More BottomFeeder Work

Sponsored Links



Google
  Web Artima.com   

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