Building a PTO Calculator CLI in PHP
How I designed and built a flexible command-line tool for calculating remaining paid time off — with support for accrual policies, German public holidays, part-time workloads, and carry-over caps.
All of my long-form thoughts on programming, leadership, product design, and more, collected in chronological order.
How I designed and built a flexible command-line tool for calculating remaining paid time off — with support for accrual policies, German public holidays, part-time workloads, and carry-over caps.
The Gilded Rose Kata hands you a tangled legacy method and asks you to add a feature without breaking anything. Here is the problem, the constraints, and how I solved it with the Strategy pattern in PHP 8.