Initial thoughts on class design of 0.10

Dec 26, 2010 at 8:08 PM

0. FogBugz class should really be FogBugzConn which should just handle connection requests. It should not know anything about creating a case.
1. Creating case should be a separate class which takes FogBugz connection object.
2. For dealing with all the xml related stuff, for ex. extracting tag values, we should really have a separate singleton class. That way if in future anytime FogBugz decide to change xml element names then we will know which exact one place we have to make changes to.
3. Similarly for creating all the urls we again should have another singleton class that just deals with all the url creation related stuff. (Same reason as above)