compose functions in JS
Destructuring is awesome!
Design patterns : Builder Pattern in JS
Using async/await in javascript
It all started with Callback hells which led to Promise that solved the problem with .then()
chains but introduced another one where there was lot of repeating code and made the code the still a bit messy. This led to the arrival of async
await
in javascript.
Replace specific strings in multiple files without even opening them
Sometimes we might run into a situation when we have to replace some specific strings in multiple files and it could be tiresome to go inside the files and replace the strings one by one. But linux command line offers tools like grep, find and sed which makes life so easy.