tcollier's comments

tcollier | 4 years ago | on: Clean Streets: People taking San Francisco’s trash into their own hands

I was a Patreon supporter of Clean Streets and was pleased with having cleaner streets in my neighborhood. Unfortunately, these guys just closed shop. Here is the email I received on Oct 23:

> Alas, Clean Streets is closing up shop.

> You may have noticed the falloff in times and quality the past couple weeks. [Redacted name] lost his main cleaner and has not been able to adequately replace him.

tcollier | 5 years ago | on: Solving Algorithmic Problems in Python with Pytest (2019)

The statistical approach definitely gives a developer more confidence in the correctness of a solution and guards against regressions. Though any test that checks the outcome of a random process against statistical measures is expected to fail occasionally.

For example, if the test flips the coin 1,000 times, there is better than a 99% chance that the outcome would result in 450 to 550 heads. So if you write the test using `450 <= heads <= 550`, you know that it will fail ~1% of the time. And if you expand the range to reduce the rate of false negatives, you have reduced the confidence the test is validating correctness.

Having said that, I still find statistical tests to be very helpful when building out code that uses randomness. However, these tests typically do not make it into the CI/CD pipeline.

page 1