in reply to Re: Help me avoid writing C Programs in Perl for a living
in thread Help me avoid writing C Programs in Perl for a living
* You can write code that simply won't work if it's misused.
* You can write Code with pluggable log points and business logic that becomes easy to test and manipulate with configuration instead of code hacks.
* ... allow you to write code boldly and quickly because you'll have the baseline correct behavior known.
As for test driven development, we are moving towards that. In fact I am co-pointing that study group. One of my basic precepts is going to be: If there's not a test for it, that code shouldn't exist. So if you write your own accessors, you need to write test for all your accessors. OTOH, if something like Moose is setting up your accessors in declarative style, then it becomes a question of: is Moose correct? Unfortunately, getting to the place of test-driven development, is going to be a very long road--we have 7 different systems, and hardly any shared code between them. On top of which, time for developing tests is allocated along with the time needed for bugfixes and adding new functionality.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Help me avoid writing C Programs in Perl for a living
by stvn (Monsignor) on Mar 25, 2010 at 22:09 UTC |