Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Winning people over to better development practises

by simon.proctor (Vicar)
on Mar 14, 2006 at 10:15 UTC ( [id://536505]=note: print w/replies, xml ) Need Help??


in reply to Re: Winning people over to better development practises
in thread Winning people over to better development practises

Yeah I figured I was. However, I wanted to get everything down in first and see if I was missing the point or was simply off the mark by a few points.

Your method of understanding test suites is a good idea but sadly would not work where I am. My co-workers would simply make the change and then shotgun debug until it worked. It wouldn't even be a concern except when explaining why its taking so long to make the change.

I see your point about change but not about the test suite. After all, in our environment we need to prove it will work and it won't crash. But still - that is just my opinion :).

Thanks!
  • Comment on Re^2: Winning people over to better development practises

Replies are listed 'Best First'.
Re^3: Winning people over to better development practises
by dragonchild (Archbishop) on Mar 14, 2006 at 13:11 UTC
    Your method of understanding test suites is a good idea but sadly would not work where I am. My co-workers would simply make the change and then shotgun debug until it worked. It wouldn't even be a concern except when explaining why its taking so long to make the change.

    Take a look at the source code for CGI.pm. You can see it here. Then, tell me that again. :-)

    Seriously, this method has worked in the past. It's kinda my big gun when nothing else works.


    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
Re^3: Winning people over to better development practises
by Herkum (Parson) on Mar 15, 2006 at 17:43 UTC

    The point of Test suite is that it proves that it will work. If the test is not working a with a particular value( for example). Then you write a test to prove your point and then they will have to fix it. Once you have a test, you will always keep the test because that will be validation that any code changes that they implement will work.

    They way you are doing things, without a test suite, you only have two things which say your code works. Your co-worker says that it works and that your program does not crash. How do you know that it works correctly? Suppose your program puts a NULL value into database instead of ''? Your program may not crash but that does not mean it is doing the right thing.

    Think of it another way, if CPAN did not have any tests, do you think that Perl would be anywhere near where it is today? There would be no way of verifying if there was a bug with a particular version of Perl, or Linux, or a module. Your program would keep crashing and you would have no easy way to determine where you have a bug.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-18 06:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found