Click here to Skip to main content
15,888,113 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Composition/Aggregation law of demeter Pin
Pete O'Hanlon8-Mar-10 1:36
mvePete O'Hanlon8-Mar-10 1:36 
AnswerRe: Composition/Aggregation law of demeter Pin
DiiJAY8-Mar-10 6:08
DiiJAY8-Mar-10 6:08 
GeneralRe: Composition/Aggregation law of demeter Pin
Jonathan Davies8-Mar-10 6:26
Jonathan Davies8-Mar-10 6:26 
GeneralRe: Composition/Aggregation law of demeter Pin
DiiJAY8-Mar-10 6:47
DiiJAY8-Mar-10 6:47 
GeneralRe: Composition/Aggregation law of demeter Pin
Jonathan Davies8-Mar-10 7:22
Jonathan Davies8-Mar-10 7:22 
GeneralRe: Composition/Aggregation law of demeter Pin
DiiJAY8-Mar-10 9:26
DiiJAY8-Mar-10 9:26 
GeneralRe: Composition/Aggregation law of demeter Pin
Jonathan Davies8-Mar-10 10:01
Jonathan Davies8-Mar-10 10:01 
GeneralRe: Composition/Aggregation law of demeter Pin
David Skelly8-Mar-10 22:24
David Skelly8-Mar-10 22:24 
All very true and all good advice. However, the danger is that your Computer interface is going to become very bloated. Consider that a computer contains not just a motherboard and one or more CPUs, but also hard drives, a USB bus (plus any USB devices which may or may not be connected), a floppy drive (if your computer is as old as mine), a graphics card, a network card, a sound card, RAM, etc. etc. etc. (I'm sure you can think of a few more components.)

Exposing every possible operation for every possible component through the Computer class interface leads to a very unwieldy design. The danger is that your Computer class becomes a sort of "god" object which tries to do everything and be all things to all men.

There are no hard and fast rules for object design. There is a certain amount of give and take to end up with the best solution, balancing one consideration against another.
GeneralRe: Composition/Aggregation law of demeter [modified] Pin
Jonathan Davies8-Mar-10 23:35
Jonathan Davies8-Mar-10 23:35 
QuestionWhat do you think? Pin
Megidolaon5-Mar-10 9:02
Megidolaon5-Mar-10 9:02 
AnswerRe: What do you think? Pin
Pete O'Hanlon5-Mar-10 10:24
mvePete O'Hanlon5-Mar-10 10:24 
AnswerRe: What do you think? Pin
Jonathan Davies8-Mar-10 1:25
Jonathan Davies8-Mar-10 1:25 
QuestionWhat is System Architecture Diagram Pin
meeram39524-Feb-10 21:48
meeram39524-Feb-10 21:48 
AnswerRe: What is System Architecture Diagram Pin
R. Giskard Reventlov24-Feb-10 22:05
R. Giskard Reventlov24-Feb-10 22:05 
QuestionEnterprise Application Blocks for .Net Pin
meeram39522-Feb-10 22:09
meeram39522-Feb-10 22:09 
AnswerRe: Enterprise Application Blocks for .Net Pin
Richard MacCutchan22-Feb-10 22:36
mveRichard MacCutchan22-Feb-10 22:36 
QuestionInternet Firewall Pin
Abhirami vijayan21-Feb-10 18:32
Abhirami vijayan21-Feb-10 18:32 
AnswerRe: Internet Firewall Pin
Richard MacCutchan21-Feb-10 22:03
mveRichard MacCutchan21-Feb-10 22:03 
QuestionSystem life cycle help Pin
venomation12-Feb-10 1:58
venomation12-Feb-10 1:58 
AnswerRe: System life cycle help Pin
venomation7-May-10 16:58
venomation7-May-10 16:58 
QuestionFree UML Tools for download and install Pin
meeram3957-Feb-10 22:59
meeram3957-Feb-10 22:59 
AnswerRe: Free UML Tools for download and install Pin
Pete O'Hanlon7-Feb-10 23:24
mvePete O'Hanlon7-Feb-10 23:24 
GeneralRe: Free UML Tools for download and install Pin
meeram3957-Feb-10 23:31
meeram3957-Feb-10 23:31 
GeneralRe: Free UML Tools for download and install Pin
Pete O'Hanlon8-Feb-10 0:08
mvePete O'Hanlon8-Feb-10 0:08 
AnswerRe: Free UML Tools for download and install Pin
venomation12-Feb-10 1:55
venomation12-Feb-10 1:55 

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.