|
Posted by Michael Fesser on 11/01/07 17:52
..oO(Rik Wasmus)
>On Thu, 01 Nov 2007 13:15:13 +0100, Philluminati
><Phillip.Ross.Taylor@gmail.com> wrote:
>
>> How do you document the code if I may ask? with #comments around the
>> variable? Do you then have to go traipsing through the .php files to
>> find it's original meaning?
>
>Normally, I use phpDocumentor.... Comments inline, generate documentation
> from them on changes. http://www.phpdoc.org
These comments and their special tags can also be used by IDEs like
Eclipse for "IntelliSense" code hints.
>> I think this was the original reason for
>> Hungarian notation. Now I might just be dinosaur but is it much of a
>> problem or do you learn to get along fine without types?
>
>PHP's advantage and disadvantage is variable types. One learns to deal
>with it with either loose matching, or casting/strict comparisons. In
>class methods starting with PHP 5 you can specify an argument has to be
>(derived from) a particular object, that's about it.
It also works for arrays.
Micha
[Back to original message]
|