Re: Inspiration for a Tombstone.
| From: | Colin Guthrie | Date: | Sat, 28 Jun 2008 13:44:35 +0000 |
| Subject: | Re: Inspiration for a Tombstone. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276093@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
I will never do it... it looks ugly,Only if you're not used to it. IMO this is how it should be taught in all the books and guides etc. If that was the case, the other way round would be ugly :)
especially when performing multiple if comparisons on the variable.Perhaps, but it's still not as ugly as a hideous error gone undetected which accidentally deletes all your customers' data.
Additionally, using a little red to highlight the assignment operator but not the comparison operator works just as well. Make machines work for you, not the other way around.Well whatever floats your boat. :) Personally, editor configuration is all well and good, but if you work in a team and regularly edit other peoples' code (and as such they use other editors with other configurations) and some people are colour blind etc. so can't use red and other colours so easily, editor configuration will never replace habits like this which use the language itself to ensure better QA. But each to their own! Col