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

Design and Architecture

 
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 
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 
I'm a C#.Net programmer and what I like to do is separate classes that only hold data and those that have functionality.

I like that architecture because it's clear cut and I can immediately find any data or method and don't have to think long about it or search around where some method is.

I think it's a good approach for multitier architecture, so when I'd change the database I wouldn't have to change all classes but only the ones that handle db connection.

On the other hand I'm not quite sure if that's really object oriented programming.

For example I need to read some data about hotels out of a db, edit it and write it back. I'd have a hotel class and a dbconnection class.
The hotel class only holds data like rooms, prices, etc. without any methods (except for a deep copy method I add to all my classes) and dbconnection class has all the methods.
I can't really see the advantage of adding the methods for connecting to the db to the hotel class, but that would be actual oop, while I'm doing something close to procedural programming or?
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 
Question[Object design]Plenty of timed events to synchrnize. How to ? :-) Pin
Member 46920042-Feb-10 15:11
Member 46920042-Feb-10 15:11 
QuestionHow the communication between three layers is happening? Pin
meeram39529-Jan-10 18:45
meeram39529-Jan-10 18:45 

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.