Linked by John Collins on Wed 21st Apr 2004 06:42 UTC
General Development The purpose of this article is to give a novice programmer the basic idea of what OOP is, as implemented using PHP. Readers should have a basic knowledge of programming ie what variables are, variable types, basic methods of writing comments, and how to enter code into a text editor.
Permalink for comment
To read all comments associated with this story, please click here.
built for purpose
by valraven on Wed 21st Apr 2004 20:58 UTC

>With a class you have reduced the reusability of all the >functions ("methods") by locking them to a certain type of >data structure. This may, in the short term, make them easier >to use; but the lock-in nature dooms them to obscurity.

Isn't this like saying that it sucks that my
ford passenger door can't be used on my toyota?
You really think they should be reusable across
products?

The issues are the same in OO. At some scales in some
contexts reuse makes sense. It many others it does not.
This is not doom. This is the reality of things designed
for a purpose.