So you committed and pushed a change and realized Git allows to update the last committed change. Follow the steps below: 1. In the terminal of your project, run git commit –amend…
TypeScript for Serverless Framework – esbuild vs TSplugin
Lambda doesn’t understand native typescript. Hence, you may write the code in TS but need to transpile it to JavaScript for deployment. If you’re using Serverless Framework, there are 2 options: Let’s…
useState – No! It won’t log 150
What do you think will get logged when the JS above is executed? 50, 100 or 150? None of it! It will log 10. Why? React updates the state asynchronously. This means…
How to remove the Decimal Part
If you need to remove the decimal part, you don’t need any special parsing or string function. These sweet and short statements are enough,
Is the imported MySQL connection pool reused?
TL; DR; = YES Consider the following code: Let’s say we invoke it from 2 different express methods using either the Import or the required way: OR using the required way: What…
zsh: command not found: mysql
Despite MySQL installation, you might not be able to run MySQL from terminal as the bin folder where the MySQL application exists is not in the $PATH folder (where the Terminal searched…
Auto Generate OpenApi SwaggerDocs in Express+Typescript App
Documentation of APIs is pivotal to easy maintenance and issue resolution. However, I’m not a big fan of manual documentation as regardless of how much you enforce; it’s a manual effort that…
ReactNative native installation with all dependencies (2023)
Getting a brand-new machine ready for React Native is much more than just executing the shell commands on the official website. This article covers the installation of all the dependencies and settings…
Easiest way to be a good Leader
We often defer, ignore, or don’t take time out to appreciate others. Good Leaders have this natural tendency to offer instant gratification. It could be as simple as a “Thanks” on chat…