My least favorite programming experience is when a Heisenbug semi-surfaced by my unit tests is actually just an artifact of them. That's a shitty test.
-
Show this thread
-
@dhh had this thing a LONG time ago about how you shouldn't smuggle magic into tests. I always followed that because experience suggested it was a good policy. Today is a painful reminder for me about how "just this once" usually isn't a great idea.1 reply 0 retweets 4 likesShow this thread -
Replying to @generativist @dhh
Make sure you’re unit test framework has a shuffle function and use it.
2 replies 0 retweets 1 like
Oh yes, had that fun experience before too. For simulation code, I had to fuzz/property check/whatever you want to call it a lot, so I wrote this a while back. Really need to clean it up though.https://github.com/jbn/pytest-caprng …
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.