Which are the well written open source programs?
haasted: I once added some custom functionality to MediaWiki, and was very pleasantly surprised by the codebase's organization and the readability of the code.