Solving a Tricky Email Invoicing BugHow I traversed library code, programming language implementations, and operating system updates to solve a critical email invoicing issue.
2024
Potential impacts of the xz attack on new open-source contributorsIn the wake of the trust-breaking xz attack, I want to encourage hopeful first-time open-source software contributors to (1) demonstrate increased empathy for maintainers and (2) exemplify patience and kindness throughout the contribution process.
Finding Python performance problemsWhen a Python program is running too slowly, use a profiler to measure which parts of the code are hurting performance the most.
Measure Code Performance with cProfile Start by writing a decorator which will add profiling metrics to the decorated function:
Creating a custom Vue component library with Storybook and VitestMany developers are familiar with using a component library (e.g. Vuetify, Quasar, PrimeVue, etc.), but there comes a time when it’s useful to create your own.
Multiple projects which should share custom components. A large project which is hard to test. This comprehensive, step-by-step guide1 will take you from a new, empty folder all the way to a fully-functional component library with robust automated testing tools which follow software engineering best practices. The techniques described here are neither theoretical nor a mere “proof-of-concept” – they have been used successfully in critical production applications.
2023
Automatically merging trusted pull requests on GitHubYou can increase development velocity by automatically merging pull requests from individuals or bots you trust. Here’s how…
Enable Allow auto-merge pull requests in repository settings The default settings for GitHub repositories block auto-merging any Pull Requests. This is a beneficial security measure which makes it harder for untrusted actors to integrate malicious code into your repository.
Unit Tests: How to Fix a Lamp Without Bulldozing Your Hometown A Short Story of Debugging Desperation In 97 Things Every Programmer Should Know, Thomas Guest recounts a moment when he had identified a problematic piece of code in a large application, but had lost hours in recompilation time trying to experiment with the erring edge case.