These are notes about things it would be nice to do to the code to make it easier for developers to either understand or work with. It's also a place to put things worth remembering related to development, but otherwise difficult to categorize. See also: Known Issues and Warts.

HTMLPresenter



Despite my (cdent) hopes, HTMLPresenter is just kind of messy and awkward. Not necessarily in concept but in implementation. The code is hard to test and fiddly to extend. However since it is middleware, it should be easy to fix.

tiddlyweb.web.handler.tiddler



Is too long and has methods that are too long.

tiddlyweb.web.handler



The root page is too static and too lame.

duplication in recipe and bag handling



A lot of the code for handling web requests for recipes and bags (themselves, not the tiddlers) is very similar. Some of this has been corrected in 1.1.x.

tiddlyweb.config



It might make sense for config to be a class, not a dict.

wsgiref.validate



TiddlyWeb does not pass wsgiref.validate, because it prefers for applications to return an iterator that has a close() method on it. Generators have these, but lists do not. TiddlyWeb currently returns lists. Switching to generators as much as possible would be wise but may not be wise prior to 1.0