Click here to Skip to main content
12,695,624 members (27,414 online)

Design and Architecture

 
GeneralRe: C++ GUI Framework Pin
Kosta Cherry26-Sep-12 6:48
memberKosta Cherry26-Sep-12 6:48 
GeneralRe: C++ GUI Framework Pin
.Shoaib1-Oct-12 0:26
member.Shoaib1-Oct-12 0:26 
GeneralRe: C++ GUI Framework Pin
Eddy Vluggen1-Oct-12 2:18
memberEddy Vluggen1-Oct-12 2:18 
QuestionOO Algorithms Tutorial? Pin
eddieangel25-Sep-12 7:59
membereddieangel25-Sep-12 7:59 
AnswerRe: OO Algorithms Tutorial? Pin
Ravi Bhavnani25-Sep-12 8:15
memberRavi Bhavnani25-Sep-12 8:15 
AnswerRe: OO Algorithms Tutorial? Pin
Bernhard Hiller26-Sep-12 0:01
memberBernhard Hiller26-Sep-12 0:01 
QuestionApplication efficiency? Pin
CsTreval22-Sep-12 23:54
memberCsTreval22-Sep-12 23:54 
AnswerRe: Application efficiency? Pin
Eddy Vluggen23-Sep-12 1:36
memberEddy Vluggen23-Sep-12 1: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? Pin
CsTreval23-Sep-12 1:44
memberCsTreval23-Sep-12 1:44 
GeneralRe: Application efficiency? Pin
Eddy Vluggen23-Sep-12 1:52
memberEddy Vluggen23-Sep-12 1:52 
GeneralRe: Application efficiency? Pin
CsTreval23-Sep-12 2:00
memberCsTreval23-Sep-12 2:00 
GeneralRe: Application efficiency? Pin
Eddy Vluggen23-Sep-12 2:21
memberEddy Vluggen23-Sep-12 2:21 
GeneralRe: Application efficiency? Pin
jschell23-Sep-12 8:12
memberjschell23-Sep-12 8:12 
GeneralRe: Application efficiency? Pin
Pete O'Hanlon23-Sep-12 9:04
protectorPete O'Hanlon23-Sep-12 9:04 
GeneralRe: Application efficiency? Pin
dojohansen10-Oct-12 5:15
memberdojohansen10-Oct-12 5:15 
GeneralRe: Application efficiency? Pin
dojohansen10-Oct-12 5:10
memberdojohansen10-Oct-12 5:10 
GeneralRe: Application efficiency? Pin
Eddy Vluggen10-Oct-12 9:30
memberEddy Vluggen10-Oct-12 9:30 
GeneralRe: Application efficiency? Pin
dojohansen11-Oct-12 0:15
memberdojohansen11-Oct-12 0:15 
QuestionRe: Application efficiency? Pin
Eddy Vluggen11-Oct-12 0:49
memberEddy Vluggen11-Oct-12 0:49 
AnswerRe: Application efficiency? Pin
dojohansen11-Oct-12 1:10
memberdojohansen11-Oct-12 1:10 
GeneralRe: Application efficiency? Pin
Eddy Vluggen11-Oct-12 1:41
memberEddy Vluggen11-Oct-12 1:41 
GeneralRe: Application efficiency? Pin
jschell23-Sep-12 8:15
memberjschell23-Sep-12 8:15 
GeneralRe: Application efficiency? Pin
dojohansen10-Oct-12 4:28
memberdojohansen10-Oct-12 4:28 
AnswerRe: Application efficiency? Pin
jschell23-Sep-12 8:46
memberjschell23-Sep-12 8:46 
QuestionMultiple Versions Of Application Pin
Matt U.20-Sep-12 8:07
memberMatt U.20-Sep-12 8:07 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 18 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid