Samuel Sjöberg's weblog

Skip to navigation

Refactoring the weblog

I started to refactor the weblog a couple of days ago. The reason for doing this is to clean up the mess and switch to a clean OOP approach. The blog will still be written in PHP 4, but for my purposes, the OO capabilities of version 4 is sufficient.

What I've done (or plan to do) is this.

The way I write classes in PHP is similar to how I write them in Java. This means I am using easy-to-understand (i.e., long) function names, getters and setters and camel-case variables and functions. The approach is in turn based on the one I used when developing www.ntk.umu.se, but takes it one step further by introducing more real OOP. In NTK, I simply used static classes to have a namespace in which functions was group.

It still remains to see when the refactoring is completed. These kind of projects tend to grow and grow and grow...

Pages linking to this entry

Pingback is enabled on all archived entries. Read more about pingback in the Pingback 1.0 Specification.

About this post

Created 15th August 2006 02:40 CET. Filed under PHP.

0 Comments
0 Pingbacks