6
votes
Vote UpVote

Delphi Pretty Good Practices #5 – Don’t Use Literals

Nick Hodges – If there is a bedrock, bottom line, everyone-should-follow-it-all-the-time rule in programming it is “The DRY Principle” – Don’t Repeat Yourself.  This simple rule states that you should write code once and only once, and that you shouldn’t allow the same code to be used all over the place.  Or, as the Wikipedia article deftly states: "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system."  Put more simply, it means that you shouldn’t have the same thing repeated all over your code, but that you should create a single ...
Favorite? Off-Topic? Nick Hodges @ 2010-06-09 20:03

Statistics

Visits: 1288
Votes: 6
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Barton_Stano
Jim McKeeth
Ravaut123
Sergio
Sorcerer
TDelphiHobbyist
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

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