Today I was reading a few blogs and questions on various forums. This made me thinking about writing some parial answers to this question: How to write a good application using Delphi?
- Separate as much as possible the user interface from the processing
- Encapsulate every processing in a class (or component)
- Use events to free your classes from things that can change
Instead, create a classes or components to encapsulate the items your program is managing and create methods to handle processing.
Of course, when you design classes or components, there are things that should not be done within the class, for example getting some runtime value, storing results, displaying warnings, and more. All those tasks can be done in line by triggering an event.
Follow me on Twitter
Follow me on LinkedIn
Follow me on Google+
Visit my website: http://www.overbyte.be