原著介绍:<<高级PHP 模式,框架,测试和其他>>

jackxiang 2009-9-20 19:16 | |
原名:<<Pro PHP Patterns, Frameworks, Testing and More>>
作者:Kevin MCArthur
出版者: APress,Mar 24,2008。
页数:349页。
------------------------------------------

难度指数:中-高级。

推荐指数:(推荐指数分级:0-最低级;5-最高级)

内容祥略 -- 指书本内容对论述领域的覆盖面和深入程度
实用性 -- 指书本内容能否直接用在项目上
重要性 -- 指书本内容对适用读者的参考程度和启发程度
独创性 -- 指书本论述的内容是否独创的,或之前没有同类型的书
写作风格 -- 指语言的流畅性,条理性,易读性。是否突出重点,难点,有没有介绍深入的学习材料,等。

-- 内容祥略:3 (主要覆盖了OOP的高级概念和应用介绍。)
-- 实用性: 4 (实践性强,很容易将其原理用到项目上)
-- 重要性: 3 (对企业开发和大项目开发有帮助。也可以作为学习OOP的高级内容的材料。)
-- 独创性: 5  (论述的深度比较深,主要面对有OOP经验的PHPERE。目前国内还没有同类型的书)
-- 写作风格:4  (使用语言正规,风格正统。)

(注:难度指数和推荐指数是依照本人的认识来确定,通过细分推荐指数来尽量保持其客观性)
=======================================================

目录:

第一部分 OOP和模式 (OOP and Patterns)

1.抽象类,接口,和合约编程(Abstract Classes, Interfaces, and Programming by Contract)
◦抽象类 (Abstract Classes)
◦接口 (Interfaces)
◦instanceof 操作器 (The instanceof Operator)
◦合约编程 (Programming by Contract)
◦小结 (Just the Facts)

2.静态变量,成员,和方法 (Static Variables, Members, and Methods)
◦静态变量 (Static Variables)
◦类中的静态用法 (Static Usage in Classes)
◦静态方法讨论 (The Static Debate)
◦小结 (Just the Facts)

3.单一模式和工厂模式 (Singleton and Factory Patterns)
◦责任制和单一模式 (Responsibility and the Singleton Pattern)
◦工厂模式 (The Factory Pattern)
◦小结 (Just the Facts)

4.异常 (Exceptions)
◦异常的实施 (Implementing Exceptions)
◦异常日志 (Logging Exceptions)
◦异常负荷 (Exception Overhead)
◦错误代码 (Error Coding)
◦类型暗示和异常 (Type Hinting and Exceptions)
◦异常的再抛出(Rethrowing Exceptions)
◦小结 (Just the Facts)

5.PHP6中有哪些变化 (What's New in PHP 6)
◦安装PHP (PHP Installation)
◦PHP中的Unicode码(Unicode in PHP 6)
◦命名空间 (Namespaces)
◦静态的迟绑定 (Late Static Binding)
◦变化的静态方法 (Dynamic Static Methods)
◦三元指定简略法 (Ternary Assignment Shorthand (ifsetor))
◦XMLWriter 类 (XMLWriter Class)
◦小结 (Just the Facts)

第二部分 测试和文档 (Testing and Documentation)

1.文档和编程规范 (Documentation and Coding Conventions)
◦编程规范 (Coding Conventions)
◦PHP评论和 (PHP Comments and Lexing)
◦PHPDoc (PHPDoc)
◦DocBook (DocBook)
◦小结 (Just the Facts)

2.API反射 (Reflection API)
◦API反射介绍 (Introducing the Reflection API)
◦基於反射的文档数据解析 (Parsing Reflection-Based Documentation Data)
◦API反射扩展 (Extending the Reflection API)
◦小结 (Just the Facts)

3.测试,部署,和持续整合 (Testing, Deployment, and Continuous Integration)
◦Subversion 版本控制 (Subversion for Version Control)
◦PHPUnit 用于单元测试 (PHPUnit for Unit Testing)
◦Phing 用于部署 (Phing for Deployment)
◦Xinc,持续整合服务器 (Xinc, the Continuous Integration Server)
◦Xdebug 用于查错 (Xdebug for Debugging)
◦小结 (Just the Facts)

第三部分 标准PHP库 (SPL)

1.SPL介绍 (Introduction to SPL)
◦SPL 基础 (SPL Fundamentals)
◦遍历器 (Iterators)
◦数组重载 (Array Overloading)
◦观测器模式 (The Observer Pattern)
◦序列化 (Serialization)
◦SPL 自动装载 (SPL Autoloading)
◦对象证实 (Object Identification)
◦小结 (Just the Facts)

2.SPL遍历方法 (SPL Iterators)
◦遍历器接口和遍历器 (Iterator Interfaces and Iterators)
◦在真实项目中贯彻遍历器 (Real-World Iterator Implementations)
◦小结 (Just the Facts)

3.SPL文件和目录处理方法 (SPL File and Directory Handling)
◦文件和目录信息 (File and Directory Information)
◦目录的遍历 (Iteration of Directories)
◦SPL 文件对象操作器 (SPL File Object Operations)
◦小结 (Just the Facts)

4.SPL数组重载方法 (SPL Array Overloading)
◦ArrayAccess 介绍 (Introducing ArrayAccess)
◦ArrayObject 介绍 (Introducing ArrayObject)
◦SPL 购物车的建造 (Building an SPL Shopping Cart)
◦把对象当作键 (Using Objects As Keys)
◦小结 (Just the Facts)

5.SPL异常 (SPL Exceptions)
◦逻辑异常 (Logic Exceptions)
◦编译异常 (Runtime Exceptions)
◦调用不良函数与方法异常 (Bad Function and Method Call Exceptions)
◦领域异常 (Domain Exceptions)
◦范围异常 (Range Exceptions)
◦参数无效异常 (Invalid Argument Exceptions)
◦长度异常 (Length Exceptions)
◦溢出异常 (Overflow Exceptions)
◦不足异常 (Underflow Exceptions)
◦小结 (Just the Facts)

第四部分 MVC模式

1.MVC架构 (MVC Architecture)
◦为什么要用MVC? (Why Use MVC?)
◦MVC应用概述 (MVC Application Layout)
■从Web服务的角度来看 (From the Web Server)
■行动和控制器 (Actions and Controllers)
■模型 (Models)
■视图 (Views)

◦MVC 框架的选择条件 (Criteria for Choosing an MVC Framework)
■MVC 框架的架构 (Architecture of the MVC Framework.)
■MVC 框架文档 (MVC Framework Documentation)
■MVC 框架社区 (MVC Framework Community)
■MVC 框架支持 (MVC Framework Support)
■MVC 框架的可变性 (MVC Framework Flexibility)

◦建立自己的MVC 框架 (Roll Your Own MVC Framework)
■设立虚拟主机 (Setting Up a Virtual Host)
■创建MVC 框架 (Creating an MVC Framework)

◦小结 (Just the Facts)

2.Zend Framework 介绍 (Introduction to the Zend Framework)
◦建立Zend Framework (Setting Up the Zend Framework)
◦控制器,视图,模型的创建 (Creating Controllers, Views, and Models)
◦增加功能 (Adding Functionality)
◦小结 (Just the Facts)

3.Zend Framework 高级特征 (Advanced Zend Framework)
◦配置文件管理 (Managing Configuration Files)
◦全址视图变量设定 (Setting Site-Wide View Variables)
◦对象分享 (Sharing Objects)
◦错误处理 (Error Handling)
◦日志应用 (Application Logging)
◦缓存 (Caching)
◦用户鉴证 (Authorizing Users)
◦在PHP中使用JSON (Using JSON with PHP)
◦路径设定 (Customizing Routes)
◦会话管理 (Managing Sessions)
◦发送邮件 (Sending Mail)
◦创造PDF文件 (Creating PDF Files)
◦整合Web服务(Integrating with Web Services)
◦小结 (Just the Facts)

4.Zend Framework 应用 (The Zend Framework Applied)
◦建立模块和模型 (Module and Model Setup)
◦需要循环 (The Request Cycle)
◦插件的创建 (Creating Plug-ins)
◦协助器的创建 (Creating Helpers)
◦进程控制的实施 (Implementing Access Control)
◦两步法视图的使用 (Using a Two-Step View)
◦小结 (Just the Facts)

第五部分 Web 2.0

1.Ajax 和 JSON 介绍 (Ajax and JSON)
◦JSON 和 PHP (JSON and PHP)
◦JSON 和 Javascrīpt (JSON and Javascrīpt)
◦Ajax 项目介绍 (Some Ajax Projects)
◦小结 (Just the Facts)

2.SOAP的Web服务介绍 (Introduction to Web Services with SOAP)
◦PHP Web服务架构介绍 (Introduction to the PHP Web Services Architecture)
◦WSDL 介绍 (Introduction to WSDL)
◦SOAP 介绍 (Introduction to SOAP)
◦使用PHP SOAP 扩展 (Using the PHP SOAP Extension)
◦实际例子 (A Real-World Example)
◦小结 (Just the Facts)

3.高级Web服务介绍 (Advanced Web Services)
◦复杂类型 (Complex Types)
◦鉴证 (Authentication)
◦会话 (Sessions)
◦对象 和 持续 (Objects and Persistence)
◦二进制数据传送 (Binary Data Transmission)
◦小结 (Just the Facts)

4.证书鉴证 (Certificate Authentication)
◦公匙构造的安全性 (Public Key Infrastructure Security)
◦建立客户端证书鉴证(Setting Up Client Certificate Authentication)
◦PHP 鉴证控制 (PHP Authentication Control)
◦小结 (Just the Facts)

索引 (INDEX)
--------------------------------------------------------
原书介绍:

过去十年来,PHP已经变成了羽毛丰满的OOP语言了。现在越来越多的企业使用PHP,因为现在PHP既易学,功能又强大。

此书为你介绍了很多工作中会遇到的事情,比如,深入理解OOP概念,框架的使用,系统的高级应用,等等。

这是一个高级论题的书。材料都是精心挑选的。读者应该已经对PHP和HTTP有很强的了解。如果你觉得自己是中-高级水平的人,这本书就是为你所写的。

=========================================================
我的介绍:

此书给我的第一印象是新--因为是刚发行就拿到了,呵呵。看完后的感觉还是新--因为内容很新。

如果把PHP的知识从初级到高级,从旧到新排列好,此书作者在中间恰好一刀两断,把前面的一段扔掉,把后面的一段留了下来。此书一开始就是什么抽象类,接口,静态变量,模式,等等,全是OOP的高级概念。

第一部分主要讨论了OOP的高级概念,其中异常部分讲的比较深入,PHP6的介绍则是独创性的。(PHP6正式版还没出来呢。)

第二部分讨论了做大项目时的一些要素,包括编程规范,测试和文档。第三部分深入讨论了SPL,也主要是用于做一些大项目的。

第四部分讨论了如何建立基於MVC模式的框架,并以Zend Framework为例,作了介绍。我对这部分比较感兴趣,可惜Zend Framework的内容太重了点。

第五部分则是讲了在创造Web2。0应用时会用到的一些技术,如:AJAX/JSON, SOAP,Web Servers,用户验证证书,等等。

所有这些概念的讨论都带有例子讲述,因此实用性还是很强的,使用的语言则是比较正规,相对而言也比较沉闷,如果不是工作需要,或是个人对某方面内容很有兴趣,能把书从头看到未的看完(即使是中文),我还是满佩服的。不过,作者好像也知道这点,所以在写作上,各章之间还是比较独立的,方便跳跃阅读。

总而言之,这本书覆盖了PHP OOP语言应用上高级内容,以及一些应用,如使用框架,SPL,测试,异常处理,Web Servers,等等。 而这些应用主要是偏向于大项目和企业级应用的。讲述的内容比较深,我感觉,学习或使用OO小於一年的同学,看这本书可能会感到吃力。但如果你要做大项目,这本书是一本很好的学习材料。

作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/1979/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!


最后编辑: jackxiang 编辑于2009-9-20 19:16
评论列表
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]