🌱 Digital Garden

Where my ideas grow. A permanent Work In Progress.


Better name for Logging Levels

I find logging levels quite difficult to understand and use. What’s informative? versus what is a warning? I’ve seen this naming scheme somewhere a while ago, (ref required), I wished this was more common: export const makeLogger = (name: string) => { const prefix = `[${name}]`; return { inTestEnv: (msg: string, ...args: any[]) => console.debug(`${prefix}: ${msg}`, ...args), inProdEnv: (msg: string, ...args: any[]) => console.info(`${prefix}: ${msg}`, ...args), toInvestigateTomorrow: (msg: string, ...args: any[]) => console.

Technology

Run Hugo in a VSCode task

I’m looking for ways to increase my focus and reduce the time I waste on “non important tasks”. With this simple configuration, I don’t have to boot another terminal nor memorize Hugo’s parameters.

Technology

Terraform

I started working on a new projects that relies on terraform and AWS. This is new to me, I’m used to Google Cloud and “artisanal” setup, by hand with scriping tools like Python’s Fabric or Ansible. Basic commands terraform fmt # format the files terraform validate terraform plan terraform apply terraform show # shows the current state, from the file terraform.tfstate. Might be sync'd with a remote Concepts Provider Something like AWS, GCloud, etc.

Technology

Trying out Forestry

I’ve been looking for the best way to write content for a while. I do not appreciate WordPress, too heavy, too slow, in my opinion. Also, I get distracted easily, and if you’ve ever used WordPress, you know what I’m talking about: every time I log in to WordPress, you have between 1 and 12 new notifications from various plugins, etc. It breaks so easily too! Static site generators are nice, and I got used to Hugo.

Technology

Trying out Stimulus

DDH shared a tweet recently talking about a new version for a tool called Stimulus. As a teaser for the multi-punch combo that is NEW MAGIC, ⁦@sstephenson⁩ and ⁦@javan⁩ have finished and released Stimulus 2.0. New APIs for dealing with CSS classes and values. Such power in a 9kb gzipped punch! 🥂👏 https://t.co/FDjcnYCJrv — DHH (@dhh) December 4, 2020 https://stimulusjs.org/handbook/hello-stimulus I was looking for a leaner stack to build an interactive guide on tickingfocus.

Technology