Douglas Moura

Douglas Moura

Software Engineer

Douglas Moura

Douglas Moura

I write about TypeScript, React and Node.js.

#javascript

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:

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…

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…

Use GitHub actions to publish your package on NPM

Published at:Published at:Updated at:

Use GitHub actions to publish your package on NPM
Recently, I created a package with the ESLint settings I like to use in my React projects, as I was tired of always having to configure it…

Create beautiful placeholders for your images

Published at:Published at:Updated at:

Create beautiful placeholders for your images
Have you ever faced the situation where the layout of your beautifully crafted interface "breaks" if the image (depeding on the quality of…

How to extend HTML elements with React

Published at:Published at:Updated at:

How to extend HTML elements with React
Most of the work needed to create custom HTML elements that fit the design system of your company resides styling and adding your own…

Use this NPM script to create your EditorConfig files

Published at:Published at:Updated at:

Use this NPM script to create your EditorConfig files
Have you ever needed to create an EditorConfig to your programming projects but can never remember all the options you can use? Worry no…

Increase YouTube video playback rate up to 2x

Published at:Published at:Updated at:

Increase YouTube video playback rate up to 2x
YouTube videos (along with all modern video implementations on the web) uses the HTML5 video element. This new media tag implements the…