All is darkness, chaos and the fog of war. Fires burn bright and wane as energy dissipates into entropy. The dark and cold settle in, and the ties that bind fail. And all crumbles. And all is still.
All is darkness, chaos and the fog of war. Fires burn bright and wane as energy dissipates into entropy. The dark and cold settle in, and the ties that bind fail. And all crumbles. And all is still.
Isn't the whole point of doing architecture to make something that is _easy_ to build, _easy_ to test, _easy_ to ship?
Why did you make choices that made it harder?
Isn't the whole point of doing architecture to make something that is _easy_ to build, _easy_ to test, _easy_ to ship?
Why did you make choices that made it harder?
But if you want to give yourself some self care do this one thing: most functions that need to know what the "current time" is should be getting that current time from their caller.
`new Date()` is a smell.
But if you want to give yourself some self care do this one thing: most functions that need to know what the "current time" is should be getting that current time from their caller.
`new Date()` is a smell.
I'm rejecting PRs that spy on the function that performs the specific side effect you want to assert on from now on.
I'm rejecting PRs that spy on the function that performs the specific side effect you want to assert on from now on.
If running all your tests is annoying, get mad!
If a test is flaky, delete it! Version control has the history if you want to bring it back.
If your code is hard to test, fix your code!
If running all your tests is annoying, get mad!
If a test is flaky, delete it! Version control has the history if you want to bring it back.
If your code is hard to test, fix your code!
Make your tests faster.
"Oh but there's fewer flakes in CI"
Make your tests less flaky.
A test suite you can only get to pass by smacking it with the right magic want the right number of times in the right room is a useless test suite.
Make your tests faster.
"Oh but there's fewer flakes in CI"
Make your tests less flaky.
A test suite you can only get to pass by smacking it with the right magic want the right number of times in the right room is a useless test suite.