The Arcive of vBulletin Modifications Site. |
|
|
Documentation is King
Always document your code. There are no excuses. I strongly recommend using PHPDoc format which is essentially the same as popular Javadoc. A sample (a vBMS port I'm working on): PHP Code:
|
|
#2
|
|||
|
|||
|
Quote:
<!-- Comment --> looks ugly. I would rather do //comment //comment |
|
#3
|
||||
|
||||
|
For templates, if really necessary, I would keep documentation of changes in a seperate file. <!-- Comments --> a) looks ugly, as you said yourself. b) can give a potential hacker more information than I'd like to share. c) increases load times.
|
|
#4
|
|||
|
|||
|
Quote:
|
![]() |
|
|