Click here to Skip to main content
15,890,845 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionApplication efficiency? Pin
Neo1010122-Sep-12 22:54
Neo1010122-Sep-12 22:54 
AnswerRe: Application efficiency? Pin
Eddy Vluggen23-Sep-12 0:36
professionalEddy 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? Pin
Neo1010123-Sep-12 0:44
Neo1010123-Sep-12 0:44 
GeneralRe: Application efficiency? Pin
Eddy Vluggen23-Sep-12 0:52
professionalEddy Vluggen23-Sep-12 0:52 
GeneralRe: Application efficiency? Pin
Neo1010123-Sep-12 1:00
Neo1010123-Sep-12 1:00 
GeneralRe: Application efficiency? Pin
Eddy Vluggen23-Sep-12 1:21
professionalEddy Vluggen23-Sep-12 1:21 
GeneralRe: Application efficiency? Pin
jschell23-Sep-12 7:12
jschell23-Sep-12 7:12 
GeneralRe: Application efficiency? Pin
Pete O'Hanlon23-Sep-12 8:04
mvePete O'Hanlon23-Sep-12 8:04 
GeneralRe: Application efficiency? Pin
dojohansen10-Oct-12 4:15
dojohansen10-Oct-12 4:15 
GeneralRe: Application efficiency? Pin
dojohansen10-Oct-12 4:10
dojohansen10-Oct-12 4:10 
GeneralRe: Application efficiency? Pin
Eddy Vluggen10-Oct-12 8:30
professionalEddy Vluggen10-Oct-12 8:30 
GeneralRe: Application efficiency? Pin
dojohansen10-Oct-12 23:15
dojohansen10-Oct-12 23:15 
QuestionRe: Application efficiency? Pin
Eddy Vluggen10-Oct-12 23:49
professionalEddy Vluggen10-Oct-12 23:49 
AnswerRe: Application efficiency? Pin
dojohansen11-Oct-12 0:10
dojohansen11-Oct-12 0:10 
GeneralRe: Application efficiency? Pin
Eddy Vluggen11-Oct-12 0:41
professionalEddy Vluggen11-Oct-12 0:41 
GeneralRe: Application efficiency? Pin
jschell23-Sep-12 7:15
jschell23-Sep-12 7:15 
GeneralRe: Application efficiency? Pin
dojohansen10-Oct-12 3:28
dojohansen10-Oct-12 3:28 
AnswerRe: Application efficiency? Pin
jschell23-Sep-12 7:46
jschell23-Sep-12 7:46 
QuestionMultiple Versions Of Application Pin
Matt U.20-Sep-12 7:07
Matt U.20-Sep-12 7:07 
AnswerRe: Multiple Versions Of Application Pin
Pete O'Hanlon20-Sep-12 7:27
mvePete O'Hanlon20-Sep-12 7:27 
GeneralRe: Multiple Versions Of Application Pin
Matt U.21-Sep-12 8:10
Matt U.21-Sep-12 8:10 
AnswerRe: Multiple Versions Of Application Pin
jschell20-Sep-12 8:59
jschell20-Sep-12 8:59 
GeneralRe: Multiple Versions Of Application Pin
dojohansen10-Oct-12 4:59
dojohansen10-Oct-12 4:59 
AnswerRe: Multiple Versions Of Application Pin
Expert Coming20-Sep-12 14:20
Expert Coming20-Sep-12 14:20 
GeneralRe: Multiple Versions Of Application Pin
jschell21-Sep-12 10:30
jschell21-Sep-12 10:30 

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.