Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
AnswerRe: The Switch Statement Pin
Wendelius13-Oct-08 8:41
mentorWendelius13-Oct-08 8:41 
AnswerRe: The Switch Statement Pin
PIEBALDconsult13-Oct-08 8:44
mvePIEBALDconsult13-Oct-08 8:44 
GeneralRe: The Switch Statement Pin
Guffa13-Oct-08 11:42
Guffa13-Oct-08 11:42 
GeneralRe: The Switch Statement Pin
PIEBALDconsult13-Oct-08 16:04
mvePIEBALDconsult13-Oct-08 16:04 
AnswerRe: The Switch Statement - Quality Anyone? Pin
carbon_golem13-Oct-08 10:05
carbon_golem13-Oct-08 10:05 
GeneralRe: The Switch Statement - Quality Anyone? Pin
led mike13-Oct-08 10:08
led mike13-Oct-08 10:08 
GeneralRe: The Switch Statement - Quality Anyone? Pin
#realJSOP13-Oct-08 10:57
professional#realJSOP13-Oct-08 10:57 
AnswerRe: The Switch Statement [modified] Pin
led mike13-Oct-08 10:06
led mike13-Oct-08 10:06 
Jammer wrote:
What do other folks think of this?

It's not Object Oriented and the following is a section of my own notes to myself (quotes ) from Kent Becks book "Implementation Patterns"
<w:worddocument xmlns:w="#unknown"><w:punctuationkerning><w:validateagainstschemas><w:compatibility><w:breakwrappedtables><w:snaptogridincell><w:wraptextwithpunct>
<p class="MsoNormal">Conditional (page 36)</p><p class="MsoNormal">If/then and switch statements are the simplest form of
instance –specific behavior….</p><p class="MsoNormal">The more paths through a program the less likely the program
is to be correct….The proliferation of conditionals reduces reliability….This
problem is compounded when conditionals are duplicated.</p>

<p class="MsoNormal">These problems can all be eliminated by converting the
conditional logic to messages, either with subclasses or delegation.</p>


Last modified: 5hrs 28mins after originally posted --


led mike

GeneralRe: The Switch Statement Pin
Mark Salsbery13-Oct-08 11:55
Mark Salsbery13-Oct-08 11:55 
GeneralRe: The Switch Statement Pin
led mike13-Oct-08 15:36
led mike13-Oct-08 15:36 
AnswerRe: The Switch Statement Pin
#realJSOP13-Oct-08 10:54
professional#realJSOP13-Oct-08 10:54 
GeneralRe: The Switch Statement Pin
Jammer13-Oct-08 11:01
Jammer13-Oct-08 11:01 
AnswerRe: The Switch Statement Pin
Guffa13-Oct-08 11:39
Guffa13-Oct-08 11:39 
AnswerRe: The Switch Statement Pin
Colin Angus Mackay13-Oct-08 12:05
Colin Angus Mackay13-Oct-08 12:05 
AnswerRe: The Switch Statement Pin
N a v a n e e t h13-Oct-08 16:07
N a v a n e e t h13-Oct-08 16:07 
QuestionThe GetDetailsOf() Method Pin
Ankit Rajpoot13-Oct-08 7:02
Ankit Rajpoot13-Oct-08 7:02 
AnswerRe: The GetDetailsOf() Method Pin
Dave Kreskowiak13-Oct-08 7:25
mveDave Kreskowiak13-Oct-08 7:25 
GeneralRe: The GetDetailsOf() Method Pin
Ankit Rajpoot13-Oct-08 7:30
Ankit Rajpoot13-Oct-08 7:30 
GeneralRe: The GetDetailsOf() Method Pin
Dave Kreskowiak13-Oct-08 9:07
mveDave Kreskowiak13-Oct-08 9:07 
Questionsave pdf on disk [modified] Pin
teddddddddddd13-Oct-08 5:11
teddddddddddd13-Oct-08 5:11 
Question.NET Remoting doesn't work with windows service but does with console application Pin
MegaBlasterX13-Oct-08 5:07
MegaBlasterX13-Oct-08 5:07 
AnswerRe: .NET Remoting doesn't work with windows service but does with console application Pin
Pedram Behroozi13-Oct-08 8:32
Pedram Behroozi13-Oct-08 8:32 
GeneralRe: .NET Remoting doesn't work with windows service but does with console application Pin
MegaBlasterX13-Oct-08 21:23
MegaBlasterX13-Oct-08 21:23 
GeneralRe: .NET Remoting doesn't work with windows service but does with console application Pin
DaveyM6913-Oct-08 23:43
professionalDaveyM6913-Oct-08 23:43 
GeneralRe: .NET Remoting doesn't work with windows service but does with console application Pin
Pedram Behroozi14-Oct-08 1:33
Pedram Behroozi14-Oct-08 1:33 

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.