Ray's playground

 

2012年3月26日

Factory Method(Chapter 4 of Pro Objective-C Design Patterns for iOS)

摘要: The abstract Product defines the interface of objects the factory method creates. TheConcreteProduct implements the Product interface. The Creator defines the factorymethod that returns an object of Product. It may also define a default implementation ofthe factory method that returns a default Con. 阅读全文

posted @ 2012-03-26 15:04 Ray Z 阅读(276) 评论(0) 推荐(0) 编辑

Item 35: Familiarize yourself with the language standard.(More Effective C++)

摘要: Familiarize yourself with the language standard. 阅读全文

posted @ 2012-03-26 14:07 Ray Z 阅读(231) 评论(0) 推荐(0) 编辑

Item 34: Understand how to combine C++ and C in the same program.(More Effective C++)

摘要: Make sure the C++ and C compilers produce compatible object files.Declare functions to be used by both languages extern "C".If at all possible, write main in C++.Always use delete with memory from new; always use free with memory from malloc.Limit what you pass between the two languages to 阅读全文

posted @ 2012-03-26 12:04 Ray Z 阅读(225) 评论(0) 推荐(0) 编辑

导航