Re: Looking for a way to convert dec to bin

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The real question is: would you know one if you saw one. I've seen all
KINDS of code that doesn't use Exit For/Exit Do, and I've seen several
places that recommend you don't use multiple Exit Subs, but you don't tend
to notice when someone DOESN'T use these techniques; you most definitely
notice it when they do. To me, they stand out just as much as any GOTO.

But that aside, when we started this whole tangent, I said that my second
language was Pascal, and that it had affected my programming practices
immensely...were you expecting anything less than structured programming?
What's more, the use of Goto is STILL considered taboo in almost all modern
languages, so to some extent, all programmers follow structured
programming...it's just a matter of degree.

Finally, I don't know that I'd call myself a zealot. I don't push my
programming style on anybody else; it's simply what I practice for myself.



Rob


"Bob O`Bob" <filterbob@xxxxxxxxxxxxxxx> wrote in message
news:uzaezNsYHHA.1216@xxxxxxxxxxxxxxxxxxxxxxx
Robert Morley wrote:

I don't like Exit For/Exit Do because you can get out of the loop without
having satisfied the conditions for getting out of the loop. It might be
appropriate if you're dealing with something like an error condition, but
the only way out of 99% of my loops is to have satisfied their
conditions. I realize that not everyone thinks this bay, but to me,
having one or more Exit For's in addition to the loop condition is like
having two or more Exit Sub's in the same Sub...it's perfectly legit, but
in my books, it's bad form.


I see OOP zealots now and then these days, but it's been a decade, or
perhaps even two, since I've noticed a structured programming zealot.



Bob
--


.



Relevant Pages

  • Re: Infinite Loops and Explicit Exits
    ... a method of evaluation which enabled people knowledgeable about film, ... While both programming and movies are evolutionary, ... The only compiler that has EXIT PERFORM in out-of-line in Chuck's ... > END-IF ...
    (comp.lang.cobol)
  • Re: Idiom wanted: do-while
    ... > the enclosing loop and its target is defined by that structure. ... structured programming definition -- every block of code has one entry point ... Break statements clearly violate the "one exit point" ...
    (comp.lang.ruby)
  • Re: CASE...ENCASE Query...
    ... EXIT REPEAT ... a loop even when inside a nested loop of a different kind. ... That is extremely poor programming practice. ... as you are asking for new keywords ...
    (comp.sys.acorn.programmer)
  • Re: CASE...ENCASE Query...
    ... EXIT REPEAT ... a loop even when inside a nested loop of a different kind. ... That is extremely poor programming practice. ... Wouldn't be better to get rid of the following useless keywords ...
    (comp.sys.acorn.programmer)
  • Re: When it will be freed?
    ... easier to understand with multiple return (or exit()) points. ... I liked a sig I saw recently about goto - something like "I tell my ... goto in C programming, unless it was for expository reasons. ...
    (comp.lang.c)