home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- From: nikki@trmphrst.demon.co.uk (Nikki Locke)
- Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
- Subject: Re: feedback wanted on appropriate OOPL
- Reply-To: nikki@trmphrst.demon.co.uk
- References: <1992Dec30.171527.3534@informix.com> <1992Dec28.173620.14793@microsoft.com> <1992Dec29.011354.5929@informix.com>
- Distribution: world
- X-Mailer: cppnews $Revision: 1.30 $
- Organization: Trumphurst Ltd.
- Lines: 29
- Date: Tue, 5 Jan 1993 17:08:30 +0000
- Message-ID: <726278910snx@trmphrst.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- In article <1992Dec30.171527.3534@informix.com> cshaver@informix.com (Craig Shaver) writes:
- > Would anyone care to comment on style differences between C++ and
- > Smalltalk? I have seen postings that claim you must approach
- > design differently using C++ rather than Smalltalk. I happen to
- > believe that Smalltalk has some good things that the C++ community
- > should look at.
-
- The classic example of style differences between C++ and Smalltalk is the
- typical Smalltalk programmers natural tendency to use heterogenous
- collections. This is not (usually) good C++ style.
-
- [ The following deliberately controversial paragraph should be taken with
- a large pinch of salt, and a few smileys :-]
-
- When Smalltalk programmers start using C++, they often write some kind of
- run-time type identification system in C++ (a base class called "Object"
- is usually a dead giveaway :-). They then rapidly progress to a tree
- structured class heirarchy, with heterogenous collections (look for lots
- of switch statements :-). If they are VERY good, they will actually start
- producing production code (rather than their re-write of the basic
- Smalltalk tools they think they need) within the first 6 months, but
- probably not.
-
- I haven't experienced C++ programmers using Smalltalk, but I expect they
- have equal difficulty.
-
- --
- Nikki Locke,Trumphurst Ltd.(PC and Unix consultancy) nikki@trmphrst.demon.co.uk
- trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
-