Refactorings Of UseMod

ProWiki | RecentChanges | Preferences

For those who know UseModWiki? well, it's worth noting that I had to refactor some of it. UseMod? is distressingly dependent upon global variables, which make it very difficult to deal with multiple pages in memory at once. But ProWiki requires multiple pages at once, for display templates if nothing else.

So I've done the very beginnings of the refactoring that UseMod? desperately needs. For now, I have main refactored the OpenFoo?() and CreateFoo?() methods -- in most cases, there is now a FetchFoo?() method under the hood, which uses local variables instead of globals. This allows me to use those Fetch methods when I need a page for something else.

In the long run, this codebase desperately wants to be heavily refactored, to be a bit more OO and a lot less dependent on the globals. That's a very large project, and I'm not undertaking it now, but I might do it someday if I get frustrated.


ProWiki | RecentChanges | Preferences
This page is read-only | View other revisions | View source of this page
Last edited August 23, 2004 10:34 pm by h0008023f8530.ne.client2.attbi.com
Search:
Edit: