Do everything in Java…

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 5 06:29:10 PST 2014


On Friday, 5 December 2014 at 11:53:11 UTC, Chris wrote:
> and stuff like this. Stupid? Unprofessional? I don't know. It 
> works. I once started to write unit tests only to find out that 
> indeed they don't catch bugs, because you only put into unit 
> tests what you know (or expect) at a given moment (just like 
> the old writefln()). The bugs I, or other people, discover 
> later would usually not be caught by unit tests simply because 
> you write for your own expectations at a given moment and don't 
> realize that there are millions of other ways to go astray.

The code can still break even if those expectations are met. Of 
course tests catch only regressions, not all possible sorts of 
bugs. And when they do, it's really fascinating.


More information about the Digitalmars-d mailing list