Defaults in function parameters is a feature that simplified my code a lot. But there is one caveat that we need to be aware of! Let’s start with an example:Continue reading “Tip: Watch out for null in default params”
Category: Quick Tips
Tip: use Z
Aren’t you tired of always typing the same routes in the terminal? When I found
z it changed my productivity.
A terminal command to help you quickly navigate across directories. It will learn from common directories you browse and offer a shortcut for them:Continue reading “Tip: use Z”
Tip: Run a simple server with Python
I used this all the time! When you want to quickly serve a website or a page, or even mock a quick API, you can use python to start a server:Continue reading “Tip: Run a simple server with Python”
Tip: list NPM scripts
NPM scripts are super popular these days and they are usually the main way of executing tasks in any JS repo. The challenge is that there is no standard and every project will have different options. In this quick-tip I will show you how to list scripts from the terminal.Continue reading “Tip: list NPM scripts”
Tip: Syntax Highlighting with BAT
cat is a standard tool to print file contents to the console. I use it all the time but recently I found
bat and it changed my life!