![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Refactoring is a pain in the ass, and even with a good test suite it's kind of scary to rip apart the most central functions in the system.
But man, now that I'm done it is delightful to be able to add just one line to the JabberManager:
But man, now that I'm done it is delightful to be able to add just one line to the JabberManager:
m_ConvMgr.createConversation(sender, null, text, -1);
and *poof*, you can now start simple conversations directly from IM, just as you can from the Web page. Makes the whole process worthwhile...
(no subject)
Date: 2008-07-03 01:56 am (UTC)I recall a similar incident, where I started writing something trivial in a fairly over-engineered fashion, and my collaborator complained...until, as with the above example, we were able to add entirely new functionality just by adding a subclass with one new method and it all magically worked.