When I started my journey into functional programming I found myself thinking of it as both exciting and confusing. One of the core concepts I found useful in my everyday work is function composition, thanks to its intuitive nature it’s not hard to introduce it even in a well-established codebase.

Compose


A few days ago I wrote a code that involved merging two large arrays without duplicates. My first reaction was to write a reduce function that initiated the accumulator, looped every element and checked whether it was already in the array:

Performance speed: 0.2749999985098839 milliseconds.

This solution worked well…


React Context API is really useful when it comes to sharing data between disconnected components without prop drilling.

In the last few days, I worked on a side project and I gave Context API a shot to share my authenticated user information’ between route components. Following a very useful pattern…


TypeScript has a steep learning curve, at least for me, for a front-end developer used to write without types sometimes I struggled to change my way of thinking to my code.

When people used syntax like <T extends key of P> in StackOverflow answers, I have always been fascinated yet…


Starting a new project involves a lot of tedious tasks since I am becoming a big fan of TypeScript I am trying to experiment as much as possible writing code and doing little side projects.

After trying different approaches I found my best configuration for NodeJS projects in the following *tsconfig.json* file.

You can find a complete reference for the following commands on the Typescript official handbook

Filippo Rivolta

I am a strongly motivated Front-end developer, I create accessible applications and websites with a keen eye on of innovation and the technology stack.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store