Re: Coding techniques


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]

Posted by Rbrrneck on October 15, 2002 at 22:27:20:

In Reply to: Coding techniques posted by Jodell Bumatai p12258 on October 15, 2002 at 01:54:33:

: How do you plan out source code so that you can design the code with separate and possibly re-usable units?

: In design time, how to you know when you should use a unit or form for code vs. adding to the same unit or form?

If you're writing small apps , separating units and re-using really doesn't pay off because there's more work to be done to separate the units then to write the whole app!
If you're writing huge apps I suggest you create a new folder and copy all the units that you plan to use more than once, and put them in Delphi's repository, when I write large apps I use a lot of invisible components,the main components are panels, they're like forms in a form, if you want your units to be usable by other non Delphi developers you should write dynamic link library's. They are mostly used for storing various procedures and functions that are used by multiple programs.They're a litle clumsy with forms, but Delphi's BPL files are perfect for all kinds of external procedures/functions/forms/dialogs in Delphi apps..


Related Articles and Replies:


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]