August 25

A little late but I was pleased with the blog entry read by Stephan parent about the advantages of using object-oriented programming (OOP) in PHP. As I've learned about Java and PHP in the same time, I was able to compare the advantages of both languages ​​well together. On the one hand, the slight learning curve for PHP. On the other hand, Java, with its integrated object-orientation.

The learning curve of OOP is for developers who have started with procedural programming a bit harder and fun OOP makes it with a good IDE (like Eclipse). But one has understood the object-oriented place, and once internalized, one would never be without it. So it goes at least for me.

The most important are the concepts of OOP, such as:

  • Encapsulation of data
  • Heredity
  • Overloading
  • Polymorphism

After that, the syntax for OOP is the programming language, which is certainly getting used to in PHP (just think of __ construct () for a constructor), as in Java. Yet there is tutorial. This tutorial is the best deutschsrpachige Online edition of the book:

Professional Software Development with PHP 5
Object orientation. Design patterns. Modeling. Advanced database programming.

by Sebastian Bergmann.

But nothing works better than learning by doing . :-)

gklinkmann written by \ \ tags:

Add a comment

Yes, I would like to be notified about comments!