jotaf98
2/19/2008 11:07:00 PM
On 19 Fev, 21:45, "uschkinredsunsh...@gmx.de"
<uschkinredsunsh...@gmx.de> wrote:
>
> I wouldn't say that unit testing is a waste of time. But for home
> projects i don't use it either, but that can change in future.
> Currently i'm working with a 'design by contract' approach, which
> helps to eliminate bugs too.
My approach to unit testing is a bit different, and I've been doing it
(almost) involuntarily since I first learned to code. I write a few
disposable lines of code to test out a shady class before it actually
enters "production". Helps immensely with pointer-heavy algorithms,
but I end up doing it many times as a sanity check. Yeah test code
gets deleted in the end, but it's justified as I catch some bugs early
on, and design flaws too ("this is clunky").
Jotaf