Re: What do you think about the code?
- From: Frederick Gotham <fgothamNO@xxxxxxxx>
- Date: Sat, 01 Jul 2006 20:35:55 GMT
Ian Collins posted:
I agree 100% with Richard's comments, the cleaner the code structure,
the easier it is to refactor. That's why my last team banned goto
outright.
I find "goto" necessary when I have nested loops, for example:
while ( expr1 )
{
while ( expr2 )
{
while ( expr3 )
{
goto OUT_OF_ALL_LOOPS;
}
}
}
OUT_OF_ALL_LOOPS: ;
In my own humble opinion, I think it's childish to outright ban something
when it comes to computer programming -- I feel it gives an air of
inconfidence in one's competence.
--
Frederick Gotham
.
- Follow-Ups:
- Re: What do you think about the code?
- From: Ian Collins
- Re: What do you think about the code?
- From: Richard Heathfield
- Re: What do you think about the code?
- From: Andrew Poelstra
- Re: What do you think about the code?
- References:
- Re: What do you think about the code?
- From: Richard Heathfield
- Re: What do you think about the code?
- From: Andrew Poelstra
- Re: What do you think about the code?
- From: Ian Collins
- Re: What do you think about the code?
- Prev by Date: Re: What do you think about the code?
- Next by Date: Re: Greatest number divisible by Y
- Previous by thread: Re: What do you think about the code?
- Next by thread: Re: What do you think about the code?
- Index(es):
Relevant Pages
|