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

Mark Wieder mwieder at ahsoftware.net
Mon Feb 20 13:13:16 CST 2006


Judy-

Monday, February 20, 2006, 10:16:02 AM, you wrote:

>> It's kind of like getting past the hurdle of writing your first
>> function. And why you would want to do that in the first place.

> Yeah, my programming binky is still firmly clenched between my teeth on
> this one @;-)

<g> Pretty much my same rules apply here: if I have a section of code
that I have to put in two places, it's fair game to be made into a
function. And if I have to put it in three places, I don't even have
to think about whether to do it. That way if you have to make a change
to the code you only have to make the change in one place.

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list