Comment

Comment by eckyptang

They do.

I tend not to write oodles of test cases up front in favour of simple scenario based tests applied later on. I add pre/post/invariant-condition checks in the code as I write it. It is tested incrementally by hand.

The condition checks prevent the what if's and tell you why something broke. The scenario tests ensure that it does what is asked of it.

I rarely get bugs raised against my code (7 this year out of about 112,000 lines of c# written). Not bad!

parent eckyptang 14 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton