> This is where a good dose of design patterns come into play.   I
> better dust of my Gang-of-Four book.  Oh and for those
> interested, try the "Head First Design Patterns" book.  Very
> different style, but excellent.

See the table at the bottom of the page:
http://www.dofactory.com/Patterns/Patterns.aspx
Click each one to see a diagram (UML it was if I remember well) of each
pattern

Ignore any code (it's for VB.net and C#) or adapt to Object Pascal

> > You are right however, oop is the way to go and build a strong
> > framework of business classes, combined with an OPF and a good
> > solution to link the business classes to the UI. I've seen a lot of
> > bad code written in Delphi, no tests and validations that
> were mixed
> > directly with the UI code, completely unmaintainable.
>
> Yeah, I once had to maintain the Capacity Planning section of
> that UK accounting package. It has been through the hands of
> quite a few developers over the years and each developer
> seems to have decided to apply their own style of coding.  I
> was quite surprised to find a section actually using OOP and
> it was a breeze to extend compared to the rest of the system.

Speaking of coding style etc., Architect version of IDEs like VS.net (see
VS.net Team System) have ways for an s/w architect to define coding styles,
templates etc. and force programmers to use those. Also there's a nice
powertoy download for VS.net 2005, called "Best Practices Analyzer" (it's
similar to database best practice analyzer tool that MS have), would be nice
to have such a thing in the IDE (if it's easily configurable [or at least
programmable] to add more checks for best practices)

----------------
George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _____  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 7/12/2006 11:18:56 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to