SitePoint PHP Blog: Good and Bad PHP Code

May 29th, 2007 | Filed under PHP

在 SitePoint 的 PHP Blog,看到了 Kevin Yank 展示的一些自己的想法,关于 PHP 代码的好坏。

When interviewing a PHP developer candidate for a job at SitePoint, there is one question that I almost always ask, because their answer tells me so much about the kind of programmer they are. Here’s the question: “In your mind, what are the differences between good PHP code and bad PHP code?”

他给一些样例代码展示了如何在诸如结构,连贯性,安全性和可移植性等方面够建的好的 PHP 脚本。

Comments are closed.