Douglas Moura

Douglas Moura

Software Engineer

Douglas Moura

Douglas Moura

I write about TypeScript, React and Node.js.

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,…

Creating native modals with the dialog element

Published at:Published at:Updated at:

Creating native modals with the dialog element
Using custom dialog elements instead of native browser implementations, such as alert, confirm, or prompt, has become the standard for web…

Using fetch with TypeScript

Published at:Published at:Updated at:

Using fetch with TypeScript
Since fetch) is pratically universally supported on the most used web browsers, we may safely drop the use Axios and other similar…

How to push an empty commit on Git?

Published at:Published at:Updated at:

How to push an empty commit on Git?
Have you ever had to run a CI/CD pipeline that is triggered by a commit, when there is no code changes to be commited?

New year, new blog (or how I created this blog for 2023)

Published at:Published at:Updated at:

New year, new blog (or how I created this blog for 2023)
New year, new blog! After delaying the publication of my blog for a long time, I finally finished developing it using Next.js, PocketBase,…

Introduction to GraphQL

Published at:Published at:Updated at:

Introduction to GraphQL
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data, developed by Facebook in 2012 and…

What is a first-class citizen in computer science?

Published at:Published at:Updated at:

What is a first-class citizen in computer science?
In computer science, a first-class citizen is an entity that supports all operations available to other entities. Some of the available…

What is a RPC (Remote Procedure Call)?

Published at:Published at:Updated at:

What is a RPC (Remote Procedure Call)?
A remote procedure call (RPC) is a mechanism of communication between two computational environments, where one can be identified as a…