Hacker News new | past | comments | ask | show | jobs | submit login

This is why I like using a randomized framework such as QuickCheck (or its derivatives in non-Haskell languages, such as Java) along with typical unit testing. It's often easier to write than tedious unit tests, and it can catch a lot of funny corner cases you don't even think to test.

Of course, this still isn't a guarantee. But it does make me feel better about my code.




I love QuickCheck. It might be a little hard to do for Tetris.


Definitely true, but with enough abstraction to small, composable, pure functions, you can get pretty far.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: