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.
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.
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