tods5eshoes
Ununokt
Dołączył: 23 Lut 2011
Posty: 18577
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: England
|
Wysłany: Pon 19:07, 14 Mar 2011 Temat postu: mbt voi 5002 |
|
|
Object Oriented Programming - PHP and Drupal
As all the OOP languages use CLASS or similar data structures for Object Oriented Programming, we have considered that without a "CLASS",[link widoczny dla zalogowanych], OOP is not possible.
Object oriented programming (OOP) is quickly taking place over the traditional procedure oriented programming (POP). Programming languages like C# and Java are successful because of OOPs Power.
After gone through the code of "Drupal" - One of the most popular open sources content management system and framework built with PHP language, summary is - Drupal doesn��t use a single Class in its code base. Whole Drupal code base is based on just functions. As PHP,[link widoczny dla zalogowanych], with which programming language Drupal itself is built, is also implementing many powerful OPP features, but Drupal is not using these features.
Actually, the OOP concept is not based on uses of data structures like CLASS. It is based on the fundamentals of features like Objects, Abstraction,[link widoczny dla zalogowanych], Encapsulation, Polymorphism, Inheritance etc. If these fundamental features are included in programming then it can be considered in OOP.
There is no keyword 'class' in Drupal code. Drupal is as non-OOP as many programmers do. But that is not true. Drupal doesn��t contain any class like data structure; still it is still Object Oriented.
Drupal covers all these features without classes. Power of Drupal is hardly depends on this programming structure only. The way,[link widoczny dla zalogowanych], how the hook system has been implemented in Drupal would never been possible with the use of Classes.
See more details about how Drupal implements Object Oriented Programming (OOP) without using Classes, visit: http: //api. drupal. org
See More Articles: - http: //www. offshoresoftwaredevelopmentindia. com/blog
About OffshoreSoftwareDevelopmentIndia. com
Offshore Software Development India offers to Php development,. Net Development, programming, search engine optimization, web Design, Web Development, Content Management, B2B B2C Portal, Software Development article, news and information | Offshore Software Development in Ahmedabad, Gujarat India.
Visit our website: - http: //www. offshoresoftwaredevelopmentindia. com
Resources: - http: //www. offshoresoftwaredevelopmentindia. com/blog/2008/06/04/object-oriented-programming-oop-without-classes/
Topics related articles:
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
Post został pochwalony 0 razy
|
|