Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
AnswerRe: Data transfer between two computer over the internet Pin
Pedram Behroozi13-Oct-08 11:06
Pedram Behroozi13-Oct-08 11:06 
AnswerRe: Data transfer between two computer over the internet Pin
Ashfield13-Oct-08 22:56
Ashfield13-Oct-08 22:56 
QuestionThe Switch Statement Pin
Jammer13-Oct-08 8:15
Jammer13-Oct-08 8:15 
AnswerRe: The Switch Statement Pin
Anthony Mushrow13-Oct-08 8:22
professionalAnthony Mushrow13-Oct-08 8:22 
GeneralRe: The Switch Statement Pin
Jammer13-Oct-08 8:28
Jammer13-Oct-08 8:28 
AnswerRe: The Switch Statement Pin
Pete O'Hanlon13-Oct-08 8:31
mvePete O'Hanlon13-Oct-08 8:31 
GeneralRe: The Switch Statement Pin
Jammer13-Oct-08 8:44
Jammer13-Oct-08 8:44 
GeneralRe: The Switch Statement Pin
Jakob Olsen14-Oct-08 1:05
Jakob Olsen14-Oct-08 1:05 
AnswerRe: The Switch Statement Pin
Mark Salsbery13-Oct-08 8:34
Mark Salsbery13-Oct-08 8:34 
GeneralRe: The Switch Statement Pin
Jammer13-Oct-08 8:43
Jammer13-Oct-08 8:43 
GeneralRe: The Switch Statement Pin
Mark Salsbery13-Oct-08 9:15
Mark Salsbery13-Oct-08 9:15 
GeneralRe: The Switch Statement Pin
Jammer13-Oct-08 9:18
Jammer13-Oct-08 9:18 
GeneralRe: The Switch Statement Pin
Mark Salsbery13-Oct-08 9:22
Mark Salsbery13-Oct-08 9:22 
GeneralRe: The Switch Statement Pin
Jammer13-Oct-08 9:26
Jammer13-Oct-08 9:26 
GeneralRe: The Switch Statement Pin
Vengatachalapathy Palanivel13-Oct-08 19:05
Vengatachalapathy Palanivel13-Oct-08 19:05 
GeneralRe: The Switch Statement Pin
Mark Salsbery13-Oct-08 20:23
Mark Salsbery13-Oct-08 20:23 
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 

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.