Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment Yes, good comments are good, but (Score 1) 472

In my opinion, a two pronged approach of good commenting in the code and extensive testing make for a much more attractive package.

Is there some code that looks odd but accounts for edge case x? Write a simple comment saying as much, but write a test with the edge case in it. That way if someone hoses it, a test will fail.

You even have things like cucumber (http://cukes.info/) for ruby which creates documentation with the tests.

Slashdot Top Deals

Work continues in this area. -- DEC's SPR-Answering-Automaton

Working...