Deep in Software with Hugo
Archives
Search
Subscribe
ES6 Array Unique/Dedupe with Sets - Code with Hugo - Aug 20th 2019
August 20, 2019
Hot off the press JavaScript ES6 Array remove duplicates/get unique values in-depth with Set and spread/iterables: With ES6, more developers should be...
Add Diagrams to your blog posts with Mermaid JS - Code with Hugo - August 13th 2019
August 13, 2019
Hot off the press Add Diagrams to your Jekyll/Hugo/Gatsby blog with Mermaid JS: The following post will go through how to integrate Mermaid JS, a “simple...
Monorepos with Yarn Workspaces - Code with Hugo - Aug 6th 2019
August 6, 2019
Hot off the press Yarn Workspaces: monorepo management without Lerna for applications and coding examples: How to use Yarn Workspaces to manage...
Mocking Full and Partial Imports with Jest - Code with Hugo - Jul 30th 2019
July 30, 2019
Hot off the press Jest Full and Partial Mock/Spy of CommonJS and ES6 Module Imports: The example repository is available at github.com/HugoDF/mock-spy-...
Jest .toHaveBeenCalled Assertions - Code with Hugo - Jul 23rd 2019
July 23, 2019
Hot off the press Jest assert over single or specific argument/parameters with .toHaveBeenCalledWith and expect.anything(): With Jest it’s possible to assert...
Mocking CommonJS/ESM Imports with Jest - Code with Hugo - Jul 16th 2019
July 16, 2019
Hot off the press github.com/HugoDF/mock-spy-module-import - (Work in Progress) JavaScript import/require module testing do's and don'ts with Jest If you...
Search With Lunr - Code with Hugo - Jul 2nd 2019
July 2, 2019
Hot off the press Add Search to a Hugo site with Lunr.js and Node.js: Hugo “The world’s fastest framework for building websites” is a great option for...
JavaScript Type Check Guide - Code with Hugo - Jun 25th 2019
June 25, 2019
Hot off the press JavaScript Data Type Check Cheatsheet: Common JavaScript data type checks, pitfalls and idiomatic workarounds. If you missed it Avoiding...
Tailwind CSS First Impressions and Cli Setup - Code with Hugo - Jun 18th 2019
June 18, 2019
Hot off the press Tailwind CSS 1.x impressions, development and production setup for static sites with Tailwind CLI and PurgeCSS CLI: Tailwind CSS is “a...
Jest Exclude Files Functions Statements - Code with Hugo - Jun 11th 2019
June 11, 2019
Hot off the press Jest exclude file/function/statement from test coverage: In computer science, test coverage is a measure used to describe the degree to...
Netlify Lambda Pocket Integration - Code with Hugo - Jun 4th 2019
June 4, 2019
Hot off the press Super-powered newsletter content with Pocket and Netlify Lambda: An example Netlify Lambda to fetch all “newsletter” posts from Pocket. The...
Date.now Mocking in Jest - Code with Hugo - May 28th 2019
May 28, 2019
Hot off the press Mocking/stubbing the current Date in Jest tests: How to mock accessing the current date in Jest. I’ve been adding a few more Netlify...
JS Recursion in Production - Code with Hugo - May 20th 2019
May 20, 2019
Recursion in JavaScript has a special place in my career as a developer and as a content creator. Recursion is a very powerful tool that can solve seemingly...
Express.js Tricks Extended - Code with Hugo - May 13th 2019
May 13, 2019
An update to the Express built-in body-parsing middleware post to fix my misinterpretations, add some structure and show how to parse urlencoded bodies. Hot...
Assert over specific mock call parameters with Jest - Code with Hugo - Apr 29th 2019
April 29, 2019
Hot off the press Jest assert over single or specific argument/parameters with .toHaveBeenCalledWith and expect.anything(): With Jest it’s possible to assert...
Node.js REST API Setup with Express, Postgres and Docker - Code with Hugo - Apr 24th 2019
April 24, 2019
Happy Easter-delayed newsletter 🐣 Hot off the press An enterprise-style Node.js REST API setup with Docker Compose, Express and Postgres: The why and how of...
Add Days to a JS Date - Code with Hugo - Apr 15th 2019
April 15, 2019
Hot off the press Add days to a JavaScript Date: Despite the JavaScript Date warts, it’s straightforward to add days to a date in JavaScript. Here's a post...
Auto publish your scheduled blog posts on JAMstack + Netlify - Code with Hugo - Apr 8th 2019
April 8, 2019
Hot off the press Auto-publish future posts with JAMstack on Netlify and CircleCI 2.0 scheduled jobs: Static site generators like Hugo, Jekyll, Hexo, Gatsby...
Enable your CDN on Netlify - Code with Hugo - Apr 1st 2019
April 1, 2019
Hot off the press Enable CDN (Cloudflare) caching for your Netlify site: Netlify likes it when you use their CDN, but if you’ve got Cloudflare in front, you...
Local HTTPS with Docker - Code with Hugo - Mar 25th 2019
March 25, 2019
This week is Local HTTPS, why and how (Docker) edition. Hot off the press The post: Docker Compose Local HTTPS with nginx or Caddy The GitHub repo for local...
Newer archives
Older archives