Shannon -jj Behrens wrote:
> Both Leon and I put code
> readability on the top of our priority list.
This is way off topic but I've been wondering about
the way the code is laid out and if there was something
that factored into your thought process that I'm not
aware of ... or what. I see this alot:
if ($continue)
{
blah blah
if (error condition)
{
$continue = FALSE;
}
}
...
...over and over. I'm wondering if there was some
reason that's not occurring to me as to why you would
go to such lengths to avoid using more functions? I
have come to favor functions so much that even in the
simple case I'll use:
function doit()
{
blah blah
if (error condition)
{
return(FALSE);
}
...
}
doit();
I've rewritten several pages like this and it helps
the readability, reduces the levels of indention,
allows for exhaustive error checking, and still reduces
the amount of code. Would it be valuable or appreciated
to contribute these kinds of changes?
I've also found that a function that does a single SQL
query and returns a single field from the first result
row (with all error checking) provides a huge benefit
in simplifying and reducing the code.
--
Paul Chamberlain, [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]