How to Write enterprise class code in PHP?

8 views
Skip to first unread message

PHP Expert

unread,
May 12, 2009, 9:00:44 PM5/12/09
to PHP Hacks
Many people assume incorrectly that open source languages like PHP are
not suitable for serious applications. The reason for this
misconception lies with the coder’s discipline rather than any
inadequacies of the language.

Most PHP coders are used to building small applications and hence miss
out some simple yet crucial guidelines needed for serious enterprise
class applications.

Let us look at it this way:

Typical web based applications on static sites are small.

Let us say you can write 25 lines of code in an hour. Say, your
typical web application (a complex form) has 50 lines. Now, assume
that you did not plan well and hence had to write 50% extra code. Your
new code has 75 lines and takes an extra hour. Neither the length of
the code nor the extra time is objectionable.

But, typically enterprise applications are much larger. Average
enterprise application has 50,000 lines of code. Now, if you are as
bad as you were before, you will write 25,000 lines of extra code!
Well, the 1000 extra hours is a lot of cost and further maintenance is
that much more taxing.

This is why planning and adhering to coding guidelines and standards
are crucial in enterprise application development.

So we will discuss the aspects you must consider in planning, and will
provide simple tips, guidelines and best practices that will help you
write enterprise level code in PHP efficiently. To know more please
visit our blog at http://www.celeroo.com/blog/2009/02/writing-enterprise-class-code-in-php-2/
Reply all
Reply to author
Forward
0 new messages