Add Days to a JS Date - Code with Hugo - Apr 15th 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 depicting a 3-line utility function.
If you missed it
I've been able to save 30GB+ of bandwidth by enabling CloudFlare in front of Netlify
https://twitter.com/hugo__df/status/1117508583506288647
See how I did that with: Enable CDN (Cloudflare) caching for your Netlify site, this post goes through how to reduce the amount of static assets served through Netlify by leveraging a CDN (Content Delivery Network) like Cloudflare.
From AngularJS to Vue.js, CommonJS and Jest
Auto-publish future posts with JAMstack on Netlify and CircleCI 2.0 scheduled jobs: Static site generators like Hugo, Jekyll, Hexo, Gatsby or other JAMstack alternative are a great option to run your blog on.
From the web
How we do Vue: one year later - Jacob Schatz - GitLab, GitLab is one of the leading Vue.js users, here's a post on their learning on year into the journey from 2 years ago. The lessons still hold.
Code highlighting: server or client? - Remy Sharp, discusses the benefits and drawbacks of server vs client side syntax highlighting. Especially with the rise of static site generators and JAMstack, the benefits of server-side syntax highlighting (it's done at build-time therefore little processing overhead) eg. codewithhugo.com uses the Hugo static site generator's syntax highlighting engine.
Turn Your Code into Docker Images with Cloud Native Buildpacks - Terence Lee and Joe Kutner - Heroku, discussion around Dockerfiles and why they are or aren't as fit for purpose as Heroku's solution of buildpacks is likely superior. I find myself agreeing with the idea. I like the fact that by default my PaaS provider of choice, Dokku uses herokuish buildpacks which detect your application type by default (see Deployment options: Netlify + Dokku on DigitalOcean or Hetzner Cloud vs now.sh, GitHub Pages, Heroku and AWS)