xoops forums

Mamba

Moderator
Posted on: 2011/5/21 4:38
Mamba
Mamba (Show more)
Moderator
Posts: 10750
Since: 2004/4/23
#1

PHP Quality Assurance

What tools and processes do you use to improve quality of your PHP code?

What are the Best Practices?

On XOOPS we've tried to promote some of them:

- PHP CodeSniffer

- Selenium IDE

- FirePHP/FireBug

What are others that you use and recommend?

Please share your experiences, so we can come up with a standard set of tools/processes for XOOPS...

phppp

XOOPS Contributor
Posted on: 2011/5/22 9:05
phppp
phppp (Show more)
XOOPS Contributor
Posts: 2857
Since: 2004/1/25
#2

Re: PHP Quality Assurance

Just an advice, it is good for people who are learning and practicing PHP to pay attention to quality, standards and relevant tools, but should take Xoops Engine code as sandbox, not the legacy XOOPS 2 code.

redheadedrod

Home away from home
Posted on: 2011/5/22 13:59
redheadedrod
redheadedrod (Show more)
Home away from home
Posts: 1296
Since: 2008/2/26
#3

Re: PHP Quality Assurance

While developers should get ready for X3 by reading up on Zend Framework and such until there is currently little documentation on the specifics of X3 at this time and it is atleast 6 months out before it is production ready. So I know I won't be spending much time developing for it until it is in Beta form and even then I will still be programming for X2 first because it will take time to build up support for X3. Of course full documentation would help with this but I think I have beaten that horse a few times already.

But regardless of use, the tools would be good to learn to use for ANY project...

It would also be a good idea to read up on the Zend framework and coding practice not only in preparation for X3 but it just makes sense in general.

It would also be a very good idea to learn about OOP programming and how it works. Alot of xoops modules use very little OOP programming and this can reduce alot of the coding errors I have seen. I realize alot of the modules were written for PHP4 and need to be updated to PHP5 but using OOP should be considered for any new projects. And is something I am looking to convert alot of the older modules into to bring them up to date.

Rodney