Deep in Software with Hugo
Archives
Search
Subscribe
How to clear module imports in Node.js
October 28, 2025
Peer under the hood of the Node.js module systems to understand how we can force modules to be re-evaluated. Node.js supports two primary module systems:...
Taming Timezones in JS: parseZone
October 21, 2025
Last week we shared the getISOTimezoneOffset magic dust which is a ~30 line function to extract a timezone offset gracefully. Now the bulk of our parseZone...
Taming Timezones in JS: extracting TZ offset
October 14, 2025
Part 2 of timezone-aware parsing in JavaScript with @date-fns/tz, the native JS Date() constructor and a little bit of magic dust. JavaScript Date-time ISO...
Taming Timezones in JS
October 7, 2025
One of the last pieces of work I completed at my previous workplace was to migrate a core system from moment to date-fns, vanilla Date manipulation &...
Advanced TypeScript #7: exhaustive switch with never
September 30, 2025
Here’s part 7 of 7 of the Advanced TypeScript series, where I share TypeScript patterns I’ve encountered in enterprise grade applications. 7. Exhaustive...
Advanced TypeScript #6: reverse map enums
September 23, 2025
Here’s part 6 of 7 of the Advanced TypeScript series, where I share TypeScript patterns I’ve encountered in enterprise grade applications. 6. Enum values to...
Advanced TypeScript #5: Simulating tuples
September 16, 2025
Here’s part 5 of 7 of the Advanced TypeScript series, where I share TypeScript patterns I’ve encountered in enterprise grade applications. 5. Simulating...
Advanced TypeScript #4: loops in types
September 9, 2025
Welcome to the 100th (yay! 🎉) Edition of the Code with Hugo newsletter. Here’s part 4 of 7 of the Advanced TypeScript series, where I share TypeScript...
Advanced TypeScript #3: Include/Exclude from union
September 2, 2025
Here’s part 3 of 7 of the Advanced TypeScript series, where I share TypeScript patterns I’ve encountered in enterprise grade applications. 3. Include/Exclude...
Advanced TypeScript #2: Omit/Pick from type
August 5, 2025
Here’s part 2 of 7 of the Advanced TypeScript series, where I share TypeScript patterns I’ve encountered in enterprise grade applications. Tips 3 to 7 (or...
Advanced TypeScript #1: enum to union
July 29, 2025
Welcome to the 97th Edition of the Code with Hugo newsletter. What follows is 1/7 entries about TypeScript patterns I’ve encountered recently. You can find...
codewithhugo@next
December 4, 2024
Welcome to the 96th Edition of the Code with Hugo newsletter. A lot has happened since I was regularly sending this out. This is still a place to learn about...
codewithhugo@next
December 2, 2024
Welcome to the 96th Edition of the Code with Hugo newsletter. A lot has happened since I was regularly sending this out. This is still a place to learn about...
GitHub & Git Tricks - #95 Code with Hugo - Feb 27th 2024
February 27, 2024
Welcome to the 95th Edition of the Code with Hugo newsletter. Here are 3 links I think are worth your time this week, Set the git and GitHub CLI editor to...
Node.js Test Runner - #94 Code with Hugo - Feb 20th 2024
February 20, 2024
Welcome to the 94th Edition of the Code with Hugo newsletter after a long hiatus, the last issue was in 2021. Here are 3 links I think are worth your time...
Code with Hugo #93 - Mar 2nd 2021
March 2, 2021
Welcome to the 93th Edition of the Code with Hugo newsletter about JavaScript, Node.js & Enterprise patterns. Here are 3 links I think are worth your time...
Cypress Scroll Assertions - Code with Hugo - Feb 9th 2021
February 9, 2021
Welcome to the 92nd Edition of the Code with Hugo newsletter about JavaScript, Node.js & Enterprise patterns. Here are 3 links I think are worth your time...
What the "?." is Optional Chaining? - Code with Hugo - Nov 10th 2020
November 10, 2020
Welcome to the 91st Edition of the Code with Hugo newsletter about JavaScript, Node.js & Enterprise patterns. Here are 3 links I think are worth your time...
Magic Data URLs - Code with Hugo - Oct 27th 2020
October 27, 2020
Welcome to the 90th Edition of the Code with Hugo newsletter about JavaScript, Node.js & Enterprise patterns. Here are 3 links I think are worth your time...
Disable an Anchor Tag - Code with Hugo - Aug 18th 2020
August 18, 2020
Welcome to the 89th Edition of the Code with Hugo newsletter about JavaScript, Node.js & Enterprise patterns. Here are 3 links I think are worth your time...
Older archives