[pmwiki-users] Unifying variables, attributes, properties, part 2 (attributes)

Mikael Nilsson mini at nada.kth.se
Thu Dec 15 15:04:24 CST 2005


tor 2005-12-15 klockan 14:43 -0600 skrev Patrick R. Michaud:
> 
> But ultimately I've rejected an OO approach for PmWiki's core
> (except for page storage [*]) simply because I think OO raises the 
> knowledge bar a little too high for people who might want to 
> customize and extend PmWiki.  Yes, this choice may forego some 
> elegance and code re-use, but I think having some accessibility 
> to the novice programmer (and perhaps even non-programmer)
> is important.  

This relates to one of my principles, which can be summarized as:

1. Code infrastructure in something that creates infrastructure. You
need type-safety, very good error handling, etc. Java is one example,
but OO in general does this well.

2. Anything close to the surface needs to be scriptable, hackable with
short roundtrip.

The only core infrastructure of pmwiki is the pagestore. Possibly also
the property handling in the future, and maybe pagelist. Well, I don't
know the internals, but something like that. The rest of pmwiki is
modifiable, hackable, and needs a moredirect approach than the
structured OO model.

That's why I think pmwiki is actually beautiful - it's a well-designed
hack :-) (Not meant in a negative way!!!)

/Mikael

-- 
Plus ça change, plus c'est la même chose





More information about the pmwiki-users mailing list