A Guide to Using the `man` Command in Linux

The man command is a valuable tool for developers and users alike to quickly learn how to use command line commands. Whenever you encounter a command you’re unfamiliar with, simply type man <command> to access its manual. The screenshot above showcases just one of the 14 screens of explanation provided for the ls command. These explanations are referred to as man (short for “manual”) pages. While man pages offer an abundance of information, they can sometimes feel overwhelming due to their comprehensive nature....

A List of Sample Web App Ideas

Every time I start a tutorial, I find myself wondering which app I should build. Another to-do app? Not again! If you’re reading this post, you’re probably looking for an idea for a simple app that you can use in your tutorial or example project to test a new framework or API. But it can be challenging to find something that really resonates with you. In this post, I’ve compiled a list of app ideas that are simple enough to build, yet complex enough to be worth doing....

A Moment.js tutorial: Managing Dates in JavaScript

Moment.js is a powerful JavaScript library that provides convenient ways to handle dates in both the browser and Node.js environments. In this tutorial, we will explore the basics and most common usages of Moment.js. Installation To include Moment.js in your project, you can either directly include it using a script tag from unpkg.com like this: <script src="https://unpkg.com/moment"></script> Alternatively, you can install it using npm like this: npm install moment If you choose to install Moment....

A practical guide to Homebrew

An introduction to the popular Homebrew package manager Homebrew is a powerful and popular package manager that was initially created for macOS. However, it has now expanded to run on Linux and the Windows Subsystem for Linux as well. With Homebrew, you can easily install a wide range of CLI applications and even full GUI apps. How to install Homebrew? On macOS: To install Homebrew on macOS, simply run the following command in the terminal:...

A Quick Guide to the Linux `who` Command: Showing Logged-in Users

The who command is an essential tool for displaying the users logged in to the Linux system. Whether you are using a personal computer or a server with multiple users, this command provides valuable information about active sessions. In most cases, as a single user on a personal computer, you will likely be the only one logged in. However, if you have opened multiple shells or terminal windows, each instance will be counted as a separate access, and who will display these details accordingly....

A Quick Reference Guide to Modern JavaScript Syntax

Code samples often showcase the latest JavaScript features that may sometimes be mistaken for framework-specific features. This is particularly common with frameworks like React, which emphasize a modern approach to JavaScript. This blog post aims to provide clarity regarding these features, especially for those transitioning from pre-ES6 JavaScript or starting from scratch. The goal is to help you identify which constructs are inherent to JavaScript and which ones are specific to a framework....

A Regular Expression to Capture a URL Without Query String Parameters

When dealing with URLs, there may be cases where you need to extract the base URL without any query string parameters. Whether it’s an “http” or “https” link, here’s a regular expression that can help you achieve that: /^(http[^?#]+).*/gm Let’s take a look at an example to understand how it works: const regex = /^(http[^?#]+).*/gm; const result = regex.exec("https://test.com?test=2"); console.log(result); The code snippet above will output the following result: [ 'https://test....

A Short and Simple Guide to Babel: The Essential Web Developer Tool

Introduction to Babel Babel is an indispensable tool for every JavaScript developer. It solves the problem of using new JavaScript features that are not available in older browser versions. With Babel, you can transpile your modern JavaScript code into a syntax that is supported by all browsers. Installing Babel To install Babel, you need to use npm and install it locally in your project. Run the following command in your terminal:...

A Short Guide to Using Emacs

Emacs is a highly versatile and powerful editor that has been the go-to choice for many UNIX users throughout history. The classic argument between vi and emacs enthusiasts has sparked countless debates and unproductive discussions among developers worldwide. To get started with Emacs, simply open a new session by invoking the command emacs. If you’re using Linux, this shouldn’t be a problem. However, if you’re on macOS, you’ll need to take an extra step....

A Short Guide to Vim: Mastering the Popular File Editor

Vim, the highly popular file editor, is a favorite among programmers. With its active development and frequent updates, it has built a thriving community, even hosting the Vim conference. In modern systems, the vi command is simply an alias to vim, standing for “vi improved”. Let’s dive into the world of Vim with this short guide. To launch Vim, simply run vi on the command line. You can also specify a filename to edit a specific file:...