Click here to Skip to main content
15,891,033 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: RS232 protocol Pin
Luc Pattyn9-Jun-09 5:38
sitebuilderLuc Pattyn9-Jun-09 5:38 
QuestionBest scenario Pin
mr.me30-May-09 20:15
mr.me30-May-09 20:15 
AnswerRe: Best scenario Pin
Eddy Vluggen8-Jul-09 0:27
professionalEddy Vluggen8-Jul-09 0:27 
GeneralData Entry with Linked Combos Pin
Brady Kelly30-May-09 7:15
Brady Kelly30-May-09 7:15 
GeneralRe: Data Entry with Linked Combos Pin
Jimmanuel1-Jun-09 4:53
Jimmanuel1-Jun-09 4:53 
QuestionA tagging system (like html), support on the model please Pin
Quake2Player29-May-09 16:52
Quake2Player29-May-09 16:52 
AnswerRe: A tagging system (like html), support on the model please Pin
Quake2Player29-May-09 16:58
Quake2Player29-May-09 16:58 
QuestionParameters Pin
CodingYoshi29-May-09 7:11
CodingYoshi29-May-09 7:11 
If one or more private methods of a class need a variable to perform some operation on, should one methods pass it to the other as parameters or should we make the parameter a private member of the class so both methods can access it?

If we make it a class level variable then it will exist for the lifetime of the object. If we do not need it for the lifetime of the object, we are wasting resources.

If we do not make it a class level variable then we have to pass it around to methods which need it. I am not sure what the disadvantage is here.

If the class has 7 methods and 5 of them need the variable then we will pass it around to all these methods. If class level, then we will not need to pass it but it will exist for the lifetime of the object.

Should it depend on how many different methods need the variable or should it depend on whether we need its existence for the lifetime of the object?

What are your opinions? Any conventions?

CodingYoshi

Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07

AnswerRe: Parameters Pin
Luc Pattyn29-May-09 8:45
sitebuilderLuc Pattyn29-May-09 8:45 
Questionlooking for a design pattern Pin
NaNg1524129-May-09 3:38
NaNg1524129-May-09 3:38 
AnswerRe: looking for a design pattern Pin
CodingYoshi29-May-09 8:22
CodingYoshi29-May-09 8:22 
GeneralRe: looking for a design pattern Pin
NaNg1524129-May-09 11:27
NaNg1524129-May-09 11:27 
GeneralRe: looking for a design pattern Pin
CodingYoshi1-Jun-09 4:13
CodingYoshi1-Jun-09 4:13 
AnswerRe: looking for a design pattern Pin
Keld Ølykke8-Jun-09 23:30
Keld Ølykke8-Jun-09 23:30 
QuestionRequirements, SRS, Validation, Verification - - - - oh my god [modified] Pin
Frygreen24-May-09 6:39
Frygreen24-May-09 6:39 
AnswerRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
CodingYoshi27-May-09 3:23
CodingYoshi27-May-09 3:23 
AnswerRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Robin_Roy23-Jul-09 16:11
Robin_Roy23-Jul-09 16:11 
GeneralRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Frygreen24-Jul-09 9:15
Frygreen24-Jul-09 9:15 
GeneralRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Robin_Roy26-Jul-09 17:40
Robin_Roy26-Jul-09 17:40 
GeneralRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Frygreen27-Jul-09 7:42
Frygreen27-Jul-09 7:42 
GeneralRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Robin_Roy27-Jul-09 16:43
Robin_Roy27-Jul-09 16:43 
GeneralRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Frygreen7-Oct-09 6:45
Frygreen7-Oct-09 6:45 
QuestionSaving Business Objects Pin
CodingYoshi20-May-09 7:44
CodingYoshi20-May-09 7:44 
AnswerRe: Saving Business Objects Pin
Luc Pattyn20-May-09 8:22
sitebuilderLuc Pattyn20-May-09 8:22 
GeneralRe: Saving Business Objects Pin
CodingYoshi20-May-09 8:59
CodingYoshi20-May-09 8:59 

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.