Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Moose based logging question

by RichardK (Priest)
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.


Comment on Re: Moose based logging question
Re^2: Moose based logging question
by jandrew (Hermit) 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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074123]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-12-27 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls