From: Arno H. <aho...@in...> - 2000-11-03 23:12:09
|
> We have an extensive rewrite in OO as well, done by Jeff Dairiki. Have > you seen it? It has all the features (I think) of the 1.1.7 release plus > some improvements. Yes, Jeff has done some outstandig work within very short time. > Couple this with the problem that object systems can be much harder to > understand than procedural ones, and that gives me second thoughts about > introducing OO into PhpWiki. The problem I see with OO in phpwiki is this: most of the time we only have one instance per class - so what do we gain by using OO? What makes $data->function() better than function($data) ? In other cases like e.g. the iterator class in Jeff's branch OO can be very useful. And I guess in 1.3.x we will use OO to some extension where it makes sense but keep to the procedural approach otherwise. OO excels when you can take advantage of inheritance and other more sophisticated features. But those cases are hardly needed in phpwiki. Unless you can convince me otherwise I think a 100% OO approach has more cons than pros. /Arno |