Vote UpVote

When, What, Why!

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 ...
Favorite? Off-Topic? Uwe Raabe @ 2013-03-24 19:05


Visits: 1495
Votes: 8
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Edwin | Dev of LIVEditor
Kyle A. Miller
Mohammed Nasman
Neville Cook
Ph. B.
Rob McDonell
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)