News for hackers. Stuff that matters.
Re:Wrapping An OO module in a procedural API using Exporter:... by f00li5h on Wednesday November 03, 2010 @07:39PM (#1866955)
I chose the logging because, log objects generally do not need to keep a lot of state, and mentioned OO being "An idiom in which you capture behavior along with state" but perhaps I could have expanded on it further.

If you don't like blessing refs yourself, use a module to hide the boring repetitive parts like you would with any other problem...

I'm pretty sure perl5's OO falls into the simplest-thing-that-could-possibly-work category, and obeys the "Rule of Separation: Separate policy from mechanism"

There are no comments on this comment yet.