Re: 3-D Programming Logic
by "Rossi Designs" <webmaster(at)rossidesigns.net>
|
Date: |
Sat, 15 Apr 2000 22:38:18 -0400 |
To: |
<hwg-techniques(at)mail.hwg.org>, "Ben Ocean" <beno(at)cnw.com> |
References: |
brightmail |
|
todo: View
Thread,
Original
|
|
It sounds like more of a boolean logic problem than a PHP problem. Rethink
what you are testing for in your conditionals. I rarely use "else if"
Rossi Designs
PO Box 1084
Holly Hill, FL 32125-1084
Phone : (904) 226-8979
URL : http://rossidesigns.net
----- Original Message -----
From: Ben Ocean <beno(at)cnw.com>
To: <hwg-techniques(at)mail.hwg.org>
Sent: Saturday, April 15, 2000 9:11 PM
Subject: 3-D Programming Logic
| Hi, all:
|
| I'm doing quite well with my first programming project in PHP/MySQL.
Thanks
| to all that recommended this path: I find it quite easy and intuitive.
| However, I've noticed a flaw in basic programming PHP logic that I believe
| is fundamental to all programming logic. The logic is 2-dimensional.
| Example: I've programmed my search engine according to nested *IF*
| statements. I have 3 variables for which I am testing. As a result, after
| testing through 3 nested *IF* statements, I still have to go back and test
| for other possible combinations, and, of course, have to be careful to not
| erase the results I may have garnered before testing for the conditions
| that are outside of the nested *IF* statements. This, of course, is
| unnecessarily redundant, and therefore bespeaks a basic flaw in
programming
| logic.
|
| This flaw is inherent in the fact that current programming logic is
| 2-dimensional. The *IF* *THEN* *ELSEIF* logic needs another alternative.
| When I have 3 nested *IF* statements, there needs to be an alternative
path
| that allows for not satisfying the 2nd statement but satisfying the 1st
and
| 3rd. This would do away with the aforementioned redundancy.
|
| Is there such a language? Such a language would be 3-dimensional by
nature.
| The mind, of course, works this way. Is anyone working on such a language?
TIA,
| BenO
|
|
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA