Tag: code
All the articles with the tag "code".
The Invariant Pattern - Cleaner TypeScript with Assertion Functions
Posted on:August 20, 2025How the invariant pattern can eliminate endless null checks and make your TypeScript code more readable and type-safe.
Managing Default Code Editors on macOS
Posted on:August 13, 2025A simple bash script to quickly switch default file associations when jumping between code editors like VSCode, Cursor, and Windsurf.
Bulk Image Conversion to WebP with a Simple Zsh Function
Posted on:August 8, 2025A practical Zsh function to batch convert images to WebP format with ImageMagick.
Efficient API Polling in Redux RTK Query with EtagCacher
Posted on:March 22, 2024How to build a reusable caching utility that optimises API requests through ETag tracking and smart polling strategies.
Conditionally run GitHub Actions based on PR labels
Posted on:November 18, 2023Enhancing GitHub Actions with conditional job execution, based on PR labels.
Merging Coverage from Jest and Cypress
Posted on:September 19, 2023How to unify unit and E2E test coverage into a single report. Solving inconsistency issues between SWC (Next.js/Jest) and Babel (Cypress).
dependencies vs devDependencies
Posted on:November 7, 2019npm or yarn, the dilemma is always the same, is this a dependency or a dev dependency?
Git: How to delete all the merged branches
Posted on:February 18, 2016How to delete all the merged branches.
Git: How to get all the changes on a branch
Posted on:July 27, 2015How to get all the changes on a branch.
W3C Validation with Gulp
Posted on:April 1, 2015How to validate your code with Gulp