Difference between revisions of "Once and only once"
Jump to navigation
Jump to search
(New page: '''Once and only once''' is a rule of thumb in software development. A function should be defined in only one place, because it is easier to maintain that way. Even a few lines of code...) |
m (cat) |
||
| Line 1: | Line 1: | ||
'''Once and only once''' is a rule of thumb in [[software development]]. A function should be defined in only one place, because it is easier to maintain that way. Even a few lines of code or one complex formula is better wrapped into a method or subroutine. | '''Once and only once''' is a rule of thumb in [[software development]]. A function should be defined in only one place, because it is easier to maintain that way. Even a few lines of code or one complex formula is better wrapped into a method or subroutine. | ||
| + | [[Category:Software]] | ||
Revision as of 22:29, November 22, 2008
Once and only once is a rule of thumb in software development. A function should be defined in only one place, because it is easier to maintain that way. Even a few lines of code or one complex formula is better wrapped into a method or subroutine.