jducoeur: (Default)
[personal profile] jducoeur
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:
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)
From: [identity profile] metahacker.livejournal.com
Heh. Hurray for good design and frequent updates to that design done right.

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.

Profile

jducoeur: (Default)
jducoeur

June 2025

S M T W T F S
12 34567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags