1->Programming Practices(飞凤预定)
时间:2006-03-27
来源:互联网
LEARNING A NEW TECHNIQUE means adopting new practices. This chapter introduces, or perhaps
reinforces, several practices that you’ll likely find very useful as you implement design patterns
in your code.
Many of the practices summarized here are worthy of an individual chapter, even an entire book.
You should consider this chapter an introduction to pattern-related practices with a PHP spin and
look at the references listed throughout to investigate a topic further.
Testing Your Code
Probably no other coding practice is as important as testing your code. With good testing comes great
freedom.
At first, that “motto” might strike you as counter-intuitive. If anything, you might assert, testing
seems an impediment to freedom. To the contrary: if you can run tests that completely exercise your
software’s public interface, you can change the internals of your implementation without changing (or
1
Programming
Practices
reinforces, several practices that you’ll likely find very useful as you implement design patterns
in your code.
Many of the practices summarized here are worthy of an individual chapter, even an entire book.
You should consider this chapter an introduction to pattern-related practices with a PHP spin and
look at the references listed throughout to investigate a topic further.
Testing Your Code
Probably no other coding practice is as important as testing your code. With good testing comes great
freedom.
At first, that “motto” might strike you as counter-intuitive. If anything, you might assert, testing
seems an impediment to freedom. To the contrary: if you can run tests that completely exercise your
software’s public interface, you can change the internals of your implementation without changing (or
1
Programming
Practices
作者: PHPChina 发布时间: 2006-03-26
第一章我要了。
管理员,我给你发短信了,呵呵^-^
管理员,我给你发短信了,呵呵^-^
作者: carra 发布时间: 2006-03-28
...
作者: Bantu 发布时间: 2006-03-28
这章我翻译完毕了。
呵呵,没有校验。
呵呵,没有校验。
作者: feifengxlq 发布时间: 2006-05-10
收到!进入校验。
就差16章了!!!
就差16章了!!!
作者: PHPChina 发布时间: 2006-05-13
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28