Francesco Di Donato

Francesco Di Donato @didof

About: Grant me the serenity to accept the scripts I cannot change, courage to change the scripts I can, and wisdom to know the best way to refactor them.

Location:
Bari
Joined:
Feb 12, 2020

Francesco Di Donato
articles - 42 total

How to Use a Reverse Trie for Fast Disposable Email Domain Detection

Learn how to use a reverse Trie to efficiently detect disposable email domains. Optimize your domain...

Learn More 0 0Dec 6 '24

Throttling Explained: A Guide to Managing API Request Limits

When Should You Implement Throttling in Your Code? For big projects, it’s usually best to...

Learn More 1 0Dec 4 '24

Optimizing Three.js: 4 Key Techniques

Code can be art. Whether it's in clever syntax, elegant data structures, or refined interactions,...

Learn More 0 0Nov 29 '24

Radial Gradient Generator

After over five years in the IT industry, I've accumulated a wealth of internal tools and resources...

Learn More 2 5Nov 28 '24

How to have Perfect Contrast of Text Color on Any Background in TailwindCSS

You can read the interactive version of this blog post! The Problem In recent years I...

Learn More 4 1May 17 '24

Web Perf - Large Files

When you have a lot of information to show on the screen, there are two common...

Learn More 5 0Nov 28 '23

Web Caching - Cache-Control max-age, stale-while-revalidate

Until now, thanks to Last-Modified/If-Modified-Since or ETag/If-None-Match we mainly saved on...

Learn More 6 0Nov 23 '23

Web Caching - ETag/If-None-Match

Support code In the previous post, we explored the usefulness of the Last-Modified Response Header...

Learn More 16 2Nov 21 '23

Web Caching - Last-Modified/If-Modified-Since

Less load on the server and less bandwidth usage for the same result? Where should I sign up?...

Learn More 20 3Nov 16 '23

How to Google Sign-in your users in 5 minutes

A crucial aspect of any startup is providing users with the means to authenticate themselves. There...

Learn More 4 0Oct 25 '23

go:generate 102

Like everything in existence, a generator is a function that (eventually) takes input and...

Learn More 1 0Feb 25 '23

go:generate 101

How to use go:generate? support code Setup terminal go mod init...

Learn More 0 0Feb 25 '23

The go-like Return Style is Nice and Fast

Disclaimer! I am not a professional benchmarker. If there is any error in my logic, please let me...

Learn More 4 1Feb 3 '23

TypeScript Utility Types ~ Partial

I remember that time I understood the concept of the High-Order Function. Until then I had limited...

Learn More 2 1Oct 25 '22

GitHub App and OAuth ~ Disjointed flow

In a previous post we saw how it's possible to get information from the GitHub REST API about which...

Learn More 7 0Apr 28 '22

OAuth popup ~ Practical Guide

In a previous post we have implemented the GitHub OAuth flow from scratch. However, the redirection...

Learn More 20 4Apr 27 '22

GitHub App and OAuth ~ Practical Kick-Starter

What can we build An interface that gives a GitHub-authenticated user (or any user's...

Learn More 7 0Apr 26 '22

CORS, Preflight request and OPTIONS Method

Premise This post is intended to be a light reading with the purpose to give a minimum of...

Learn More 8 0Apr 10 '22

Penetration and Security in JavaScript

Premise Are you sure you are ensuring your code to be used as intended? Are you preventing...

Learn More 223 5Oct 7 '21

Built-in-like Range in JavaScript

Premise Make it possible to generate any range of integers with built-in-like...

Learn More 68 17Oct 6 '21

Merge High Order Component and Compound Pattern

Merge High Order Component and Compound Pattern The Compound Pattern allows you to...

Learn More 11 2Jul 9 '21

Iteratify - Make It Iterable

Among the new features brought by the ES6, we find the addition of the primitive type Symbol and the...

Learn More 4 0Jul 8 '21

Applying slots in Vue for a Tabs component

I recently completed Udemy courses on Vue and Nuxt.js. I decided to test this framework to build a Va...

Learn More 6 0Apr 14 '21

Lazy Loading Image - [2/2]

Recap In the previous post, I built a React component Image that receives two sources, one...

Learn More 2 0Mar 1 '21

Lazy Loading Image - [1/2]

Abstract In this mini-series consisting of two posts I will build a React Component Image...

Learn More 3 0Mar 1 '21

React Design Pattern -  Composable Card [2]

Recap 🏗 In the first post of the series I built a Card component that can be extended with...

Learn More 1 0Mar 1 '21

React Design Pattern - Assemblable Card [1]

In this first post of a series, I begin the implementation of a composable React component. It is a...

Learn More 8 0Feb 22 '21

React Render Props with Ts & styled-components | Part 2

In the previous post we built a React component capable of building a grid. Thanks to the render prop...

Learn More 1 0Jan 16 '21

React Render Props with Ts & styled-components | Part 1

What are we building A React component that allows the setting up of a grid. For more flex...

Learn More 0 0Jan 14 '21

Singleton logger that works only in development mode

I want to be able to send logs to the console, but only in development mode. One can easily obtain th...

Learn More 6 0Nov 21 '20