Five Good Programming Habits in PHP | Linux Today

Five Good Programming Habits in PHP

Written By
Web Webster
Web Webster
Dec 9, 2008

[ Thanks to jmalasko for this link.
]

“Depending on whom you ask, the difference between a
good developer and an excellent developer, in terms of
productivity, is a factor of 10 to 20. An excellent developer is
more productive because of his experience and good habits. When
poor programming habits sneak into your code, they’re a drain on
productivity. This article demonstrates some good programming
habits that can make you a better programmer.

“In addition to enabling you to build code more productively,
these habits can help you build code sustainable for an
application’s lifetime. Any code you write is likely to spend most
of its lifetime in maintenance; application maintenance is a large
expense. Establishing good coding habits will enhance design
factors like modularity, and your code will be easier to understand
and, thus, easier and cheaper to maintain.

“Bad coding habits seem to accompany defects in code and can
cause code to be difficult to change without introducing new
defects. The following five good habits, when applied to your PHP
code, will help you avoid these pitfalls:”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.