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

May 2025

S M T W T F S
    123
45678910
11121314 151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags