Click here to Skip to main content

Design and Architecture

 
AnswerRe: Any good sofwtare design software? PinmemberDavid Skelly12-Jan-11 23:23 
AnswerRe: Any good sofwtare design software? PinmemberStefan634-Feb-11 1:43 
QuestionNeed Design Ideas PinmemberKevin Marois12-Jan-11 11:41 
AnswerRe: Need Design Ideas PinmvpPete O'Hanlon12-Jan-11 22:24 
AnswerRe: Need Design Ideas PinmemberGParkings2-Sep-11 3:40 
QuestionApplication design code samples PinmemberChesnokov Yuriy12-Jan-11 5:29 
AnswerRe: Application design code samples PinmemberEddy Vluggen12-Jan-11 5:52 
AnswerRe: Application design code samples PinmemberKevin Marois12-Jan-11 6:54 
QuestionSCRUM PinmemberCivic0610-Jan-11 10:44 
AnswerRe: SCRUM PinmemberRags151210-Jan-11 18:47 
GeneralRe: SCRUM PinmemberCivic0611-Jan-11 3:10 
GeneralRe: SCRUM PinmemberRags151211-Jan-11 19:54 
GeneralRe: SCRUM PinmemberRaviSant17-Jan-11 22:57 
QuestionObject heuristic PinmemberLeslie Sanford5-Jan-11 12:35 
Is there a design heuristic in object oriented programming that states that an object shouldn't send messages to objects it creates?
 
Is one of these "better"?
 
class AnotherClass
{
public:
    AnotherClass(SomeClass *obj)
    {
        this->obj = obj;
        this->obj->DoStuff();
    }
 
    // Rest of implementation....
};
 
SomeClass *obj1 = new SomeClass;
AnotherClass *obj2 = new AnotherClass(obj1);
 
vs.
 
class AnotherClass
{
public:
    AnotherClass()
    {
        obj = new SomeClass;
        obj->DoStuff();
    }
 
    // Rest of implementation....
};
 
AnotherClass *obj = new AnotherClass();
 
I have a vague memory of reading somewhere that the first version is a better design, but I can't remember why. I haven't found anything Googling.
AnswerRe: Object heuristic PinmvpLuc Pattyn5-Jan-11 14:06 
GeneralRe: Object heuristic PinmemberLeslie Sanford5-Jan-11 14:51 
GeneralRe: Object heuristic PinmvpLuc Pattyn5-Jan-11 15:06 
AnswerRe: Object heuristic Pinmemberpaul_717-Jan-11 2:24 
QuestionDatabase Code PinmemberLeslie Sanford5-Jan-11 6:46 
AnswerRe: Database Code Pinmemberdasblinkenlight12-Jan-11 12:42 
QuestionMatching between product and customer personal information PinmemberYanshof3-Jan-11 21:07 
AnswerRe: Matching between product and customer personal information Pinmemberdasblinkenlight13-Jan-11 7:24 
QuestionNeed guidance on designing and preparing MCPD PinmemberRags15123-Jan-11 8:11 
AnswerRe: Need guidance on designing and preparing MCPD PinmvpRichard MacCutchan4-Jan-11 6:36 
GeneralRe: Need guidance on designing and preparing MCPD PinmemberRags15124-Jan-11 18:21 
GeneralRe: Need guidance on designing and preparing MCPD PinmvpRichard MacCutchan4-Jan-11 22:39 
QuestionPossible inefficiency in post-increment FOR loop? PinmemberXpnctoc30-Dec-10 16:12 
AnswerRe: Possible inefficiency in post-increment FOR loop? PinmvpRichard MacCutchan31-Dec-10 0:05 
AnswerRe: Possible inefficiency in post-increment FOR loop? PinmvpLuc Pattyn31-Dec-10 0:37 
GeneralRe: Possible inefficiency in post-increment FOR loop? Pinmemberfat_boy31-Dec-10 3:12 
AnswerRe: Possible inefficiency in post-increment FOR loop? Pinmemberfat_boy31-Dec-10 3:13 
AnswerRe: Possible inefficiency in post-increment FOR loop? PinmemberPeter_in_27804-Jan-11 19:21 
AnswerRe: Possible inefficiency in post-increment FOR loop? Pinmemberdasblinkenlight13-Jan-11 3:18 
QuestionDiagramming? Pinmemberdawmail33328-Dec-10 23:48 
AnswerRe: Diagramming? Pinmemberfat_boy31-Dec-10 3:18 
QuestionDeveloping to try to make a difference? PinmemberTodd Baxter28-Dec-10 4:16 
AnswerRe: Developing to try to make a difference? PinmvpPete O'Hanlon28-Dec-10 4:27 
GeneralRe: Developing to try to make a difference? PinmemberTodd Baxter28-Dec-10 6:06 
GeneralRe: Developing to try to make a difference? Pinmemberjk chan28-Dec-10 22:49 
GeneralRe: Developing to try to make a difference? PinmemberTodd Baxter29-Dec-10 4:15 
GeneralRe: Developing to try to make a difference? Pinmemberjk chan29-Dec-10 5:01 
AnswerRe: Developing to try to make a difference? [modified] PingroupRobert Croll4-Jan-11 4:24 
GeneralRe: Developing to try to make a difference? PinmemberTodd Baxter4-Jan-11 6:04 
GeneralRe: Developing to try to make a difference? PingroupRobert Croll4-Jan-11 7:21 
GeneralRe: Developing to try to make a difference? PinmemberTodd Baxter4-Jan-11 7:44 
GeneralRe: Developing to try to make a difference? PingroupRobert Croll4-Jan-11 8:29 
GeneralRe: Developing to try to make a difference? PinmemberMycroft Holmes13-Jan-11 13:16 
GeneralRe: Developing to try to make a difference? PinmemberTodd Baxter17-Jan-11 3:37 
GeneralRe: Developing to try to make a difference? PinmemberTodd Baxter17-Jan-11 5:08 
QuestionHelp: Which design method should I use for this particular case? Pinmemberxyzsnl27-Dec-10 3:44 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 17 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid