The Art of Delphi Programming – A common pattern seen in Delphi code is the “code inside an event handler” syndrome. Lines and lines of code are placed inside an event handler. Not enough, these event handlers are often called directly from other places in the code – just because the code inside it needs to be executed. Take that as a big sign of code smell! You know what? The event handler is not the right place for that code. Extract it into a separate method – or probably more of them. Name those methods so that the name describes what the code executed is supposed to do. (It is probably not doing ...
Visits by Source
Users who voted for this posting
Edwin | Dev of LIVEditor
Kyle A. Miller