logo       

Re: Concrete classes... multiple users: msg#00086

Subject: Re: Concrete classes... multiple users
On Sat, Oct 27, 2007 at 09:51:52PM -0400, John Almberg wrote:
> Hi Ron,
> 
> In a nutshell, I have an application that needs to read Items from a  
> database.
> 
> I recently discovered that in Smalltalk classes are real objects.  
> This struck me as cool, so when I was deciding how to instantiate  
> these Items, I thought, hey I'll use the class object as a factory  
> (actually, I think it's more of an adapter pattern, but...)
> 

<snip>

> So, I think it was a case of falling in love with a cool feature, and  
> then mis-applying it, just because it was dying to be used.

On the contrary, it sounds to me like you approached the problem in
exactly the right way. You correctly observed that classes can serve
as factories, so there was no need to invent something new for that
purpose. You used that understanding to implement a simple solution
that worked well, and when you encounted a need to support additional
complexity, you refactored your system to do so. Well done.

One of the things that makes Smalltalk an enjoyable environment is
that it does not force you to completely understand a problem before
you get started solving it. You can start simply and move things around
later on as you improve your understanding and discover your mistakes.

> Hope this explains it... I'm afraid I don't always get the jargon  
> right, but that's why I'm a newbie, I guess!

If you like to think in terms of design patterns, "Smalltalk Best
Practice Patterns" by Kent Beck is a very useful guide.

Dave


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe