The reason I am being so weird at the moment (see last post) is the nature of the project I am working on. I am currently moving a collection of community web sites from one host to another. The sites average from 20,000 - 30,000 page views a day. At currently market rates, the site would have to have about 300,000 page views per day to generate enough revenue for one minimum wage job. IMHO, The sites are still valuable as they provide a community service. The sites provide people in the community who would otherwise not be heard a venue to list their site.
My orginal market plan for Community Color was to pound out a quick prototype site hosted on a discount web server, get market feedback, then write a "real" application in Java. PHP is the ideal prototyping language. It is quick, dirty and easy to support. Now, the first iteration of the program was a quick and dirty prototype. For a variety of reasons, I wrote the prototype as a collection of procedures, and not with object oriented programming techniques. I can feel people trembling ... the horror, the horror.
Writing Object Oriented style code is considered best practices.
I feel the intellectual elite of the programming world snubbing up their collective noses at the idea of someone intentionally designing a web site with old style programming techniques. The horror, the horror.
Anyway, during my current move, I am upgrading from PHP 4 to PHP 5. During the move, I thought I would upgrade from procedures to objects.
Guess what? I am finding that I like the procedural style code better.
Best practices dictates that all computer programs must be written in object form.
I find myself wanting to tell the world why I don't think object oriented programming is the right solution for all applications. In my opinion, oop is not the right solution for web based programs written in a scripted language.
IMHO, the sentiment that object oriented programming is the best solution for all programming problems is an unwarranted absolutist statement. For that matter, as I look back on the evolution of programming, I think that the overemphasis of object oriented design is a cause for many buggy programs that exist today.
I believe that the programming world is best served by a diversity of programming lanugages and programming styles.
Since programming techniques have an affect on society at large, I think that this is a topic that people outside the programming world would find interesting.
I am being weird because I am thinking about how one would make my case to the world.
PHP is a programming language that is immediately available to new programmers. A run of the mill, internet savy computer user can learn PHP 5 and start using it to add functionality to a web site within hours. It is a programming language that I would encourage casual internet.
I think it would be fun to present the case for procedural v. oo programming in a structure that encourages internet users to learn PHP and HTML.
Several years ago, I pounded out a quick and dirty syllabus for a class on PHP. This was a quick seven part tutorial for a general audience. The course was written for HTML 2.0 (old style HTML). I was thinking of writing a new tutorial for PHP 5 and DHTML.