Gianluca Casati writes here: this is a random topic blog about things he wants to remember, most of all are technical information.

DOM element helper

A tiny function to create HTML elements, compatible with JSX

Typing FormatJS translation keys

Generate types for FormatJS translation keys and use them to avoid typos, get autocompletion, etc.

JS Error Handling

This is my vademecum on error handling in JavaScript

Math use cases

Is it worth to study Math? Of course, yes!

My workflow

Principles and policies I use to organize my tasks. It also includes my own way to handle a kanban board which uses an interesting approach, the metadata.

Empty HTML page

How to create an empty HTML page, no title, no favicon

How I implement a TypeScript type-guard on an object-like type.

It happens often I need to implement a TypeScript type-guard that consumes an object-like type, but did not found clear examples in official documentation or articles. This is the solution I found.

My Bash configuration

Few tips I want to remember about bash configuration