Click here to Skip to main content

Design and Architecture

GeneralRe: C++ GUI Framework PinmemberKosta Cherry26-Sep-12 5:48 
GeneralRe: C++ GUI Framework Pinmember.Shoaib30-Sep-12 23:26 
GeneralRe: C++ GUI Framework PinmemberEddy Vluggen1-Oct-12 1:18 
QuestionOO Algorithms Tutorial? Pinmembereddieangel25-Sep-12 6:59 
AnswerRe: OO Algorithms Tutorial? PinmemberRavi Bhavnani25-Sep-12 7:15 
AnswerRe: OO Algorithms Tutorial? PinmemberBernhard Hiller25-Sep-12 23:01 
QuestionApplication efficiency? PinmemberCsTreval22-Sep-12 22:54 
AnswerRe: Application efficiency? PinmemberEddy Vluggen23-Sep-12 0:36 
CsTreval wrote:
Where in the code do I best put object creation (stateful objects) and where not?
"As required".
CsTreval wrote:
Creation of objects is costly
No, it's not! This is an incomplete statement, and a fallacy; you can create a huge amount of objects, and very quickly. Creating huge objects in a loop, that is inefficient. The statement should be "do not create costly objects in a tight loop".
CsTreval wrote:
and should not be sitting in your code everywhere.
Decompile the Button class using ILSpy or something similar. You'll see efficient code, without a centralized factory. Objects should NOT come from one location, one uses a factory ONLY if appropriate. The "new" keyword isn't there just for the looks of things.
CsTreval wrote:
The strangest thing I heard is 'an app is not supposed to have state.
Too much monkey business, I'd be walking out on this statement.
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

GeneralRe: Application efficiency? PinmemberCsTreval23-Sep-12 0:44 
GeneralRe: Application efficiency? PinmemberEddy Vluggen23-Sep-12 0:52 
GeneralRe: Application efficiency? [modified] PinmemberCsTreval23-Sep-12 1:00 
GeneralRe: Application efficiency? PinmemberEddy Vluggen23-Sep-12 1:21 
GeneralRe: Application efficiency? Pinmemberjschell23-Sep-12 7:12 
GeneralRe: Application efficiency? PinprotectorPete O'Hanlon23-Sep-12 8:04 
GeneralRe: Application efficiency? Pinmemberdojohansen10-Oct-12 4:15 
GeneralRe: Application efficiency? Pinmemberdojohansen10-Oct-12 4:10 
GeneralRe: Application efficiency? PinmemberEddy Vluggen10-Oct-12 8:30 
GeneralRe: Application efficiency? Pinmemberdojohansen10-Oct-12 23:15 
QuestionRe: Application efficiency? PinmemberEddy Vluggen10-Oct-12 23:49 
AnswerRe: Application efficiency? Pinmemberdojohansen11-Oct-12 0:10 
GeneralRe: Application efficiency? PinmemberEddy Vluggen11-Oct-12 0:41 
GeneralRe: Application efficiency? Pinmemberjschell23-Sep-12 7:15 
GeneralRe: Application efficiency? Pinmemberdojohansen10-Oct-12 3:28 
AnswerRe: Application efficiency? Pinmemberjschell23-Sep-12 7:46 
QuestionMultiple Versions Of Application PinmemberMatt U.20-Sep-12 7:07 

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.140926.1 | Last Updated 1 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid