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.
RE: Maybe I'm Clueless
by Lumbergh on Wed 21st Apr 2004 17:49 UTC

You're not clueless. I've never done PHP, but I've done a lot of C++ and quite a bit of C#....a little Java. OOP has it's uses but it's been oversold - especially it's reusability in comparison to procedural code.

In reality not everything has to be in a class, but could just as easily be a standalone function in a particular namespace to avoid namespace collisions. I like how c# v2.0 will introduce static classes so you don't have to prefix all your variables and functions with static in the class, but I still don't see why you can't have a standalone function in a particular namespace. Maybe it's a compiler issue. I don't know