vitoco has asked for the wisdom of the Perl Monks concerning the following question:
Which of these is the best development approach?
- Write all the functionality of a module as objects, then write and export functions that internally creates an object and calls it's methods.
- Write all the exportable and internal functions or subroutines, then write code for an object and all the required methods as an interphase to the functions.
I'm thinking in the case of a brand new module, written from scratch, not a group of subroutines taken from personal libraries and put together in a .pm.
Thanks!
PD: Shouldn't this be posted in Meditations?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Modules exporting functions and objects at the same time.
by roboticus (Chancellor) on Sep 04, 2009 at 16:29 UTC | |
Re: Modules exporting functions and objects at the same time.
by SuicideJunkie (Vicar) on Sep 04, 2009 at 16:27 UTC | |
Re: Modules exporting functions and objects at the same time.
by ikegami (Patriarch) on Sep 04, 2009 at 17:22 UTC | |
Re: Modules exporting functions and objects at the same time.
by bluescreen (Friar) on Sep 04, 2009 at 17:28 UTC |
Back to
Seekers of Perl Wisdom