in reply to Questions about sharing code
The one module that I should use more that I don't (and won't unless forced to) is File::Spec. I HATE the pseudo-OO interface with an absolute passion. Oh, I understand why it was written that way and I'm not sure I would've written it differently under the hood. But, the UI just sucks so badly that it hurts.
There are also a few modules on CPAN that I use a lot that provide an OO interface. This is because there is state information that needs to be preserved.
Yes - CGI is OO. The functional interface is an absolutely horrid and I refuse to use it.
The point is that you should provide a functional interface if they are side-effect-free functions. If there is data that needs to be preserved across function calls, then you should provide an object.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Questions about sharing code
by kyle (Abbot) on Nov 27, 2007 at 16:13 UTC | |
by dragonchild (Archbishop) on Nov 27, 2007 at 16:18 UTC | |
|
Re^2: Questions about sharing code
by bradcathey (Prior) on Nov 27, 2007 at 17:17 UTC | |
by dragonchild (Archbishop) on Nov 27, 2007 at 18:41 UTC | |
|
Re^2: Questions about sharing code
by bradcathey (Prior) on Nov 28, 2007 at 15:29 UTC | |
by dragonchild (Archbishop) on Nov 28, 2007 at 16:00 UTC | |
by tye (Sage) on Nov 28, 2007 at 17:28 UTC | |
by dragonchild (Archbishop) on Nov 28, 2007 at 17:42 UTC | |
by tye (Sage) on Nov 28, 2007 at 17:54 UTC | |
by bradcathey (Prior) on Nov 28, 2007 at 17:48 UTC |