Matches in DBpedia 2014 for { <http://dbpedia.org/resource/Rule_of_three_(computer_programming)> ?p ?o. }
Showing items 1 to 26 of
26
with 100 items per page.
- Rule_of_three_(computer_programming) abstract "Rule of three is a code refactoring rule of thumb to decide when a replicated piece of code should be replaced by a new procedure. It states that the code can be copied once, but that when the same code is used three times, it should be extracted into a new procedure. The rule was introduced by Martin Fowler in Refactoring and attributed to Don Roberts.Duplication in programming is a bad practice because it makes the code harder to maintain. Triplication is worse because it makes it harder yet. When the rule encoded in a replicated piece of code changes, whoever maintains the code will have to change it in all places correctly. This process is error-prone and often leads to problems. If the code exists in only one place, then it can be easily changed there. This rule is typically only applied to a small number of lines of code, or even single lines of code[citation needed]. For example, if a program calls a function, and then calls it again when it fails, it is acceptable to have two call sites; however, if it is to be called five times before giving up, there should only be one call site inside a loop.As Charles Petzold puts it, "Three or more? use a for!"".
- Rule_of_three_(computer_programming) wikiPageExternalLink wiki?DontRepeatYourself.
- Rule_of_three_(computer_programming) wikiPageExternalLink wiki?OnceAndOnlyOnce.
- Rule_of_three_(computer_programming) wikiPageID "15267164".
- Rule_of_three_(computer_programming) wikiPageRevisionID "601042428".
- Rule_of_three_(computer_programming) hasPhotoCollection Rule_of_three_(computer_programming).
- Rule_of_three_(computer_programming) subject Category:Code_refactoring.
- Rule_of_three_(computer_programming) subject Category:Programming_rules_of_thumb.
- Rule_of_three_(computer_programming) type Abstraction100002137.
- Rule_of_three_(computer_programming) type Cognition100023271.
- Rule_of_three_(computer_programming) type Concept105835747.
- Rule_of_three_(computer_programming) type Content105809192.
- Rule_of_three_(computer_programming) type Guidepost105848541.
- Rule_of_three_(computer_programming) type Idea105833840.
- Rule_of_three_(computer_programming) type ProgrammingRulesOfThumb.
- Rule_of_three_(computer_programming) type PsychologicalFeature100023100.
- Rule_of_three_(computer_programming) type Rule105846054.
- Rule_of_three_(computer_programming) comment "Rule of three is a code refactoring rule of thumb to decide when a replicated piece of code should be replaced by a new procedure. It states that the code can be copied once, but that when the same code is used three times, it should be extracted into a new procedure. The rule was introduced by Martin Fowler in Refactoring and attributed to Don Roberts.Duplication in programming is a bad practice because it makes the code harder to maintain. Triplication is worse because it makes it harder yet.".
- Rule_of_three_(computer_programming) label "Rule of three (computer programming)".
- Rule_of_three_(computer_programming) label "三次法则 (程序设计)".
- Rule_of_three_(computer_programming) sameAs m.03hnmxr.
- Rule_of_three_(computer_programming) sameAs Q7378984.
- Rule_of_three_(computer_programming) sameAs Q7378984.
- Rule_of_three_(computer_programming) sameAs Rule_of_three_(computer_programming).
- Rule_of_three_(computer_programming) wasDerivedFrom Rule_of_three_(computer_programming)?oldid=601042428.
- Rule_of_three_(computer_programming) isPrimaryTopicOf Rule_of_three_(computer_programming).