As coders, ideally, we work to automate drudgery (the qualification is necessary because we’ve all encountered systems that have clearly been written to make everyone’s lives worse rather than better). In doing so, though, we must often endure our own parade of tedious tasks. While standards make for better, more interoperable code, for example, the need for compliance adds yet another layer of effort to our development routines. And that’s before we hunt for misspelled variables, loose method signatures, and all manner of other bug magnets. This chapter will cover the PHP Standards Recommendation, focussing in particular on the PSR standards for coding style and autoloading.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Refactoring and Standards Tools

  • Matt Zandstra

摘要

As coders, ideally, we work to automate drudgery (the qualification is necessary because we’ve all encountered systems that have clearly been written to make everyone’s lives worse rather than better). In doing so, though, we must often endure our own parade of tedious tasks. While standards make for better, more interoperable code, for example, the need for compliance adds yet another layer of effort to our development routines. And that’s before we hunt for misspelled variables, loose method signatures, and all manner of other bug magnets. This chapter will cover the PHP Standards Recommendation, focussing in particular on the PSR standards for coding style and autoloading.