Pedro Figueiredo

Pedro Figueiredo @pffigueiredo

About: Software Engineer @SingleStore, TypeScript, React, State Machines and Accessibility

Joined:
Apr 30, 2019

Pedro Figueiredo
articles - 17 total

Fixing TypeScript Dates

Dates formats and timezones have for many years and probably for many more to come, been the...

Learn More 4 1Jan 14 '24

Splitting and Caching React Chunks

There are only two hard things in Computer Science: cache invalidation and naming things. - Phil...

Learn More 19 0Dec 30 '23

Making lodash tree-shakable

TL;DR 1- Replace `lodash` with `lodash-es` 2- Ditch default imports 3- Prefer namespace imports -...

Learn More 17 1Nov 19 '23

TypeScript Return Types: Separating Fact from Fiction

TypeScript Return Types This subject has been trending a lot on Twitter lately and there...

Learn More 4 1Feb 13 '23

2 NEW killer features coming to TypeScript

TypeScript 4.7 This upcoming TypeScript version will bring a lot of new features and...

Learn More 13 0May 5 '22

Generics vs Function Overloading vs Union Type Arguments in TypeScript

TypeScript Functions When it comes to writing TypeScript functions, it is possible, that...

Learn More 16 3Apr 25 '22

The bullet proof useReducer - Typescript (2/2)

This blog post takes by granted that you are aware of useReducer logic and the basics regarding...

Learn More 16 1Apr 6 '22

Mastering useReducer (1/2)

This blog post takes for granted that you have some knowledge regarding React and React's Hooks. ...

Learn More 19 1Feb 13 '22

TypeScript Utility: keyof nested object

In this blog post, we will learn how to build a TypeScript util type, that exposes all the key paths...

Learn More 105 15Dec 15 '21

A Cheat Sheet for CSS units

This is an opinionated take on when to use each CSS unit, feel free and encouraged to disagree and...

Learn More 211 1Nov 11 '21

Jest testing without the noise

This post takes by granted that you already have Jest set up and a test script defined on your...

Learn More 127 4Nov 3 '21

Stop fixing Numbers - RTL in a web platform (6/6)

This post is the 6th and final part of a 6 part series, on how to build a RTL compatible web...

Learn More 33 0Aug 31 '21

Accesible Carousel - RTL in a web platform (5/6)

This post is the 5th part of a 6 part series, on how to build a RTL compatible web platform, take a...

Learn More 7 0Aug 23 '21

Icons have meaning - RTL in a web platform (4/6)

This post is the 4th part of a 6 part series, on how to build a RTL compatible web platform, take a...

Learn More 9 0Aug 16 '21

Bullet Proof RTL - RTL in a web platform (3/6)

This post is the 3rd part of a 6 part series, on how to build a RTL compatible web platform, take a...

Learn More 17 1Aug 9 '21

CSS Logical Properties - RTL in a web platform (2/6)

This post is the 2nd part of a 6 part series, on how to build a RTL compatible web platform, take a...

Learn More 18 0Aug 1 '21

Right-to-Left in a web platform (1/6)

Introducing Right-to-Left If you are trying to build an international web platform and you...

Learn More 22 1Jul 16 '21