Click here to Skip to main content
15,880,503 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionCodeProject Infrastructure Pin
CodeHawkz18-Feb-14 12:34
CodeHawkz18-Feb-14 12:34 
AnswerRe: CodeProject Infrastructure Pin
Richard MacCutchan18-Feb-14 22:30
mveRichard MacCutchan18-Feb-14 22:30 
GeneralRe: CodeProject Infrastructure Pin
CodeHawkz19-Feb-14 6:47
CodeHawkz19-Feb-14 6:47 
AnswerRe: CodeProject Infrastructure Pin
thatraja18-Feb-14 23:56
professionalthatraja18-Feb-14 23:56 
GeneralRe: CodeProject Infrastructure Pin
CodeHawkz19-Feb-14 6:50
CodeHawkz19-Feb-14 6:50 
GeneralRe: CodeProject Infrastructure Pin
thatraja19-Feb-14 7:07
professionalthatraja19-Feb-14 7:07 
GeneralRe: CodeProject Infrastructure Pin
CodeHawkz19-Feb-14 7:42
CodeHawkz19-Feb-14 7:42 
QuestionMultiple methods vs Single method with enum Pin
Harley L. Pebley18-Feb-14 7:51
Harley L. Pebley18-Feb-14 7:51 
Over the years I seem to go back and forth over what I prefer regarding multiple method names vs a single method with a discrimination parameter.

Sometimes I prefer multiple, similar methods:
LogError(sometext)
LogWarning(sometext)

And other times I see it more as a single method with an enumerated parameter:
Log(type, sometext)

It seems pretty subjective as to what conveys intent best and makes using the class easier.

Any opinions? (Particularly interested in thoughts that contain an objective reason. I already have subjective thoughts that keep varying over time. Big Grin | :-D )

Thanks.
AnswerRe: Multiple methods vs Single method with enum Pin
jschell18-Feb-14 9:07
jschell18-Feb-14 9:07 
GeneralRe: Multiple methods vs Single method with enum Pin
Harley L. Pebley19-Feb-14 5:21
Harley L. Pebley19-Feb-14 5:21 
GeneralRe: Multiple methods vs Single method with enum Pin
jschell20-Feb-14 8:12
jschell20-Feb-14 8:12 
GeneralRe: Multiple methods vs Single method with enum Pin
Harley L. Pebley20-Feb-14 9:53
Harley L. Pebley20-Feb-14 9:53 
GeneralRe: Multiple methods vs Single method with enum Pin
jschell21-Feb-14 9:05
jschell21-Feb-14 9:05 
GeneralRe: Multiple methods vs Single method with enum Pin
Harley L. Pebley21-Feb-14 9:54
Harley L. Pebley21-Feb-14 9:54 
AnswerRe: Multiple methods vs Single method with enum Pin
Bernhard Hiller18-Feb-14 21:34
Bernhard Hiller18-Feb-14 21:34 
GeneralRe: Multiple methods vs Single method with enum Pin
Eddy Vluggen19-Feb-14 0:32
professionalEddy Vluggen19-Feb-14 0:32 
GeneralRe: Multiple methods vs Single method with enum Pin
Harley L. Pebley19-Feb-14 5:26
Harley L. Pebley19-Feb-14 5:26 
GeneralRe: Multiple methods vs Single method with enum Pin
Eddy Vluggen19-Feb-14 7:35
professionalEddy Vluggen19-Feb-14 7:35 
GeneralRe: Multiple methods vs Single method with enum Pin
Harley L. Pebley20-Feb-14 5:31
Harley L. Pebley20-Feb-14 5:31 
GeneralRe: Multiple methods vs Single method with enum Pin
Eddy Vluggen20-Feb-14 8:53
professionalEddy Vluggen20-Feb-14 8:53 
GeneralRe: Multiple methods vs Single method with enum Pin
Harley L. Pebley19-Feb-14 5:23
Harley L. Pebley19-Feb-14 5:23 
AnswerRe: Multiple methods vs Single method with enum Pin
Keld Ølykke4-Mar-14 19:13
Keld Ølykke4-Mar-14 19:13 
GeneralRe: Multiple methods vs Single method with enum Pin
Harley L. Pebley6-Mar-14 9:27
Harley L. Pebley6-Mar-14 9:27 
QuestionCMS Structure for Project Collaboration. Pin
Brady Kelly14-Feb-14 22:23
Brady Kelly14-Feb-14 22:23 
AnswerRe: CMS Structure for Project Collaboration. Pin
Ahmed Bensaid26-Feb-14 23:45
professionalAhmed Bensaid26-Feb-14 23:45 

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.