in reply to Writing general code: real world example - and doubts!
my question is: do I really need all this?
That's a good question! What seems like the most natural way for the code that uses this code to work?
The best way I've found to design an interface is to use it for a while, then to think really hard about what's easy and what's difficult and what might be clearer to read and to understand and to discourage bugs.
I suspect that this code is more complicated than it needs to be, and I suspect that if you went with your first inclination and stayed open to modifying it a bit as you use it more, you'll find the right design.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Writing general code: real world example - and doubts!
by polettix (Vicar) on Apr 05, 2005 at 09:10 UTC | |
by adrianh (Chancellor) on Apr 06, 2005 at 09:29 UTC |