in reply to Re^4: Should Modules Do I/O?
in thread Should Modules Do I/O?
As you acknowledge, these three interfaces can be implemented using eachother.
I did not acknowledge that--I flat out contradicted it.
Neither of the other two interfaces can be easily wrapped to provide each other, nor that which I described.
And I'm not sure how you came to that reading from my post?
Nobody is suggesting that the OP should make one and only one interface available, except you (unless I am misunderstanding your position).
You are not misunderstanding my position. I think that a single flexible interface is prefereable to multiple overlapping interfaces. Adding bloat to a module is detrimental rather than value-add IMO.
If there are common usage scenarios that would benefit from a simpler interface, these should be provided through a separate package that wraps the flexible interface in the same way that LWP::Simple wrap LWP::Useragent and XML::Simple wraps either XML::Parser or XML::SAX.
I'm not into deeply nested hierachies, but two levels strikes a good balance between depth and breadth at all levels.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Should Modules Do I/O?
by Mugatu (Monk) on Mar 18, 2005 at 22:17 UTC |