home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18718 < prev    next >
Encoding:
Text File  |  1993-01-05  |  2.0 KB  |  44 lines

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