Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Moose based logging question

by RichardK (Parson)
on Feb 09, 2014 at 14:39 UTC ( #1074123=note: print w/replies, xml ) Need Help??

in reply to Moose based logging question

I'd recommend following Test-driven_development instead. Then when you've made a change you _know_ that the code still works properly because it passes the test suite. That's far far easier then grovelling through log files trying to work out what's gone wrong and has no runtime overhead.

Personally, I find test driven development the most productive way to write code, and Test::Simple / Test::More are very easy to work with.

Replies are listed 'Best First'.
Re^2: Moose based logging question
by jandrew (Chaplain) on Feb 09, 2014 at 19:07 UTC

    I'm not sure if you read the readmore section of my posting but I am familiar with the three links you provided and have used both of the test modules that you posted. I do write tests for code deliverables that I am working on.

    The piece of development I am referencing is the unforeseen element of code performance in as-yet unguessed circumstances. This often occurs when I combine an old package with some new package to fulfill an additional requirement that was not initially identified during the development of the old package. Another case is when an old package is fed an unforeseen corner case set of data. I know there is a whole science for creating these corner cases for test including Devel::Cover however I am generally lucky to get time to get basic tests in place before other functionality is required. When I find a bug I write a test so the bug won't come back but if I don't know about the bug in advance I move on.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074123]
[shmem]: unbelievable success!

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2018-04-20 22:41 GMT
Find Nodes?
    Voting Booth?