Samuel Ko
Full-stack software engineer with a background in accounting. I enjoy turning complex business and financial problems into clean, reliable software, and I write here about what I learn along the way.
Blog
Health Check for MySQL in a Docker Container
Why
mysqladmin pingis not a reliable Docker health check for MySQL, and a better alternative.The Bug That Almost Made It to Production
A small refactor hidden in a big pull request, a disabled E2E test, and how the bug was caught just before release.
Table-Driven Testing in Typescript
Running many sets of input through the same test with Jest
it.each: benefits, limitations and a bad example.Review your own pull request (PR)
Why reviewing your own pull request before asking others makes it easier to approve, and what to check.
An interesting observation on C# code coverage
How a C# test suite can keep 100% coverage after losing test cases, and why coverage is an indicator, not a metric.