Douglas Moura

Douglas Moura

Software Engineer

Douglas Moura

Douglas Moura

Software Engineer, Musician and Jiujiteiro.

Should I commit node_modules directory to git?

Published at:Published at:Updated at:

Should I commit node_modules directory to git?
TL; DR: No. Please add node_modules to your .gitignore file:

Mastering Insertion Sort: A Detailed Guide

Published at:Published at:Updated at:

Mastering Insertion Sort: A Detailed Guide
Sorting is a fundamental operation in the field of computer science, and because of this, there are various algorithms available to solve…

Introduction to algorithms

Published at:Published at:Updated at:

Introduction to algorithms
An algorithm is a precise and unambiguous specification of a sequence of computational steps that can be mechanically performed[^1]. From…

Rendering JSX on the Server with Fastify

Published at:Published at:Updated at:

Rendering JSX on the Server with Fastify
JSX is an excellent abstraction for building web interfaces. Introduced by Facebook and popularized by React, it's an extension of…

The Powerful Programmer

Published at:Published at:Updated at:

The Powerful Programmer
Estimating, implementing, and deploying software rapidly is a characteristic of powerful programmers, as Kent Beck mentions in his book…

Generating MD5 hashes on Node.js

Published at:Published at:Updated at:

Generating MD5 hashes on Node.js
You can create hashes in Node.js without the need to install any external library. Usually, I create the following utility function in the…

Finding the greatest common divisor in TypeScript

Published at:Published at:Updated at:

Finding the greatest common divisor in TypeScript
First described in the classic geometry book Elements, by the ancient Greek mathematician Euclid (ca. 300 BC, at the book VII, proposition…

Understanding Tail Call Optimization With JavaScript

Published at:Published at:Updated at:

Understanding Tail Call Optimization With JavaScript
Consider the following function that calculates the factorial of a number:

How to calculate the border-radius of nested elements

Published at:Published at:Updated at:

How to calculate the border-radius of nested elements
The border-radius property allows you to round the edges of an element. Giving the same border-radius value to the parent element and child…

The minimum you need to know to test your APIs with CURL

Published at:Published at:Updated at:

The minimum you need to know to test your APIs with CURL
CURL is a command-line tool that allows you to transmit data with URL syntax, supporting a myriad of protocols (DICT, FILE, FTP, FTPS,…