September 2009
6 posts
4 tags
[note] PHP OOP - Objects and Design
Chapter 6 - “PHP Objects, Patterns, and Practice - 2nd”
Design Basics: how object-oriented design differs from procedural code.
Class scope: How to decide what to include in a class
Encapsulation: Hiding implementation and data behind a class’s interface.
Polymorphism: Using a common super-type to allow transparent substitution of specialised subtypes at runtime.
Defining code design:...
1 tag
Tính quyết đoán (2) - Học cách nói không
Quyết đoán không chỉ là nói CÓ một cách thẳng thắn và nhanh chóng khi cơ hội đến, mà còn phải biết nói KHÔNG khi cần thiết.
———————————————————————————————-
Học cách nói “không” - How to say NO -...
1 tag
Tính quyết đoán
Đã bao giờ bạn chần chừ, dù biết sai mà vẫn làm, biết không nên mà vẫn ko thể nói KHÔNG? Để rồi sau đó thấy hối tiếc tại sao mình lại thiếu quyết đoán đến vậy?
Đã bao giờ bạn hì hục lên kế hoạch cho tương lai, đầy tham vọng, nhưng lại chẳng bao giờ đủ kiên định, hay kỷ luật để duy trì kế hoạch đó?……
Nếu trường hợp đó, hãy rèn luyện để vượt qua những giới hạn đó của bản thân. Hai đức...
2 tags
PHP OOP - Object tools
This note is taken when reading Chapter5 - “PHP Objects, Patterns, and Practice - 2nd”. The purpose is for Quick Reference.
Looking for class
boolean class_exists($classname); $myObj= new $classname(); boolean file_exists($filename); String[] get_declared_classes();
Learning about an object or class
String get_class($object); boolean ($object instanceof Class_Name) => $object...
1 tag
Adobe Flash Platform
Read more:
http://www.adobe.com/flashplatform/pdfs/platform_at_a_glance.pdf
http://stackoverflow.com/questions/59083/what-is-adobe-flex-is-it-just-flash-ii
August 2009
18 posts
2 tags
PHP OOP Concept - Advance features
[This note is taken when reading “PHP Objects, Patterns and Practice, 2nd edition“]
++ Static methods and properties: Accessing data and funtionality through classes rather than objects. Static methods are functions with class scope. They only can access to static properties, not to other normal properties. If you change a static property, all instances of that class are able to access the new...