Switch versus if/then/else ( was: Main menu puzzle, Klaus)

Judy Perry jperryl at ecs.fullerton.edu
Sun Feb 19 01:27:28 EST 2006


Yes, indeed.

It is the difference between a seasoned programmer and a
novice/non-programmer.  The former is able to see the whole as a pattern
that is already understood, allowing one to focus on whatever the problem
is at hand.

The latter, however, has to parse each and every word to look-up what it
is/means/does, because the pattern/metaphor/language is not already
understood.

For the novice/non-programmer, there IS no difference between how they
think in everyday terms and how they "read code".

Judy

On Sun, 19 Feb 2006, Scott Kane wrote:

> > Yes, but do you think in these terms in day-to-day life?
>
> No.  But (apart from some languages that optimize due to the
> use of case statements - not sure if Rev does) it is a heck
> of a lot easier to read code later in a case statement (in
> Rev a Switch) than it is to read if/then/else in complex
> code structures.




More information about the use-livecode mailing list