Click here to Skip to main content
15,887,027 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Instance vs Static + Option Pin
Member 9614-May-08 8:37
Member 9614-May-08 8:37 
GeneralRe: Instance vs Static + Option Pin
Brady Kelly14-May-08 10:23
Brady Kelly14-May-08 10:23 
AnswerRe: Instance vs Static + Option Pin
Ed.Poore15-May-08 21:35
Ed.Poore15-May-08 21:35 
AnswerRe: Instance vs Static + Option Pin
Megidolaon11-Jun-08 3:57
Megidolaon11-Jun-08 3:57 
QuestionFunction Extraction \ Refactoring Pin
Ray Cassick30-Apr-08 19:42
Ray Cassick30-Apr-08 19:42 
AnswerRe: Function Extraction \ Refactoring Pin
Zoltan Balazs30-Apr-08 20:15
Zoltan Balazs30-Apr-08 20:15 
GeneralRe: Function Extraction \ Refactoring Pin
Megidolaon11-Jun-08 4:01
Megidolaon11-Jun-08 4:01 
AnswerRe: Function Extraction \ Refactoring Pin
Big Daddy Farang1-May-08 12:19
Big Daddy Farang1-May-08 12:19 
I'm not sure if it's consensus or not, but there is the rule of three:

From Wikipedia, the free encyclopedia

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 you are allowed to copy and paste the code once, but that when the same code is replicated 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. 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.


Curiously enough, three is also how many licks it takes to get to the center of a Tootsie Pop.

BDF

A learned fool is more a fool than an ignorant fool.
-- Moliere

AnswerRe: Function Extraction \ Refactoring Pin
Luc Pattyn1-May-08 12:54
sitebuilderLuc Pattyn1-May-08 12:54 
AnswerRe: Function Extraction \ Refactoring Pin
peterchen10-May-08 23:02
peterchen10-May-08 23:02 
GeneralObject Oriented Data Marshalling Pin
Adam Jasper29-Apr-08 3:37
Adam Jasper29-Apr-08 3:37 
GeneralRe: Object Oriented Data Marshalling Pin
R. Giskard Reventlov29-Apr-08 21:40
R. Giskard Reventlov29-Apr-08 21:40 
GeneralRe: Object Oriented Data Marshalling Pin
Adam Jasper29-Apr-08 22:34
Adam Jasper29-Apr-08 22:34 
GeneralRe: Object Oriented Data Marshalling Pin
led mike30-Apr-08 4:24
led mike30-Apr-08 4:24 
GeneralRe: Object Oriented Data Marshalling Pin
Adam Jasper30-Apr-08 4:32
Adam Jasper30-Apr-08 4:32 
GeneralRe: Object Oriented Data Marshalling Pin
led mike30-Apr-08 5:04
led mike30-Apr-08 5:04 
GeneralRe: Object Oriented Data Marshalling Pin
Adam Jasper30-Apr-08 5:38
Adam Jasper30-Apr-08 5:38 
GeneralRe: Object Oriented Data Marshalling Pin
led mike30-Apr-08 7:31
led mike30-Apr-08 7:31 
GeneralRe: Object Oriented Data Marshalling Pin
Adam Jasper30-Apr-08 23:01
Adam Jasper30-Apr-08 23:01 
GeneralRe: Object Oriented Data Marshalling Pin
R. Giskard Reventlov30-Apr-08 4:32
R. Giskard Reventlov30-Apr-08 4:32 
GeneralRe: Object Oriented Data Marshalling Pin
led mike30-Apr-08 4:52
led mike30-Apr-08 4:52 
GeneralRe: Object Oriented Data Marshalling Pin
R. Giskard Reventlov30-Apr-08 21:16
R. Giskard Reventlov30-Apr-08 21:16 
GeneralRe: Object Oriented Data Marshalling Pin
Leslie Sanford8-May-08 18:23
Leslie Sanford8-May-08 18:23 
GeneralRe: Object Oriented Data Marshalling Pin
Adam Jasper8-May-08 22:11
Adam Jasper8-May-08 22:11 
GeneralRe: Object Oriented Data Marshalling Pin
Leslie Sanford9-May-08 6:31
Leslie Sanford9-May-08 6:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.