.prettierrc file and add 4 configurations.
The file looks something like this,
For those who don’t know what this is, it is a configuration file for prettier. You can install it in your code editor to format your source code in a certain way.
The configuration I created above…
If you open a markdown file, you’ll see the following syntax.
Building web applications or APIs with express.js is not difficult in my opinion. I think it is more difficult to handle errors, error status codes and error messages properly. Below, I’m going to list out a few techniques by which I handle errors in my express.js applications.
We need to understand middleware to handle errors if you want to apply the technique I am going to suggest. Simply, a middleware in express is a function that has access both the request and the response objects for a particular route. …
This blog is targetted to beginners who are learning React JS. It is going to be a short blog in which I will talk about making an API request in React JS. I will link the core concepts required to make API calls to the official documentation of react as we encounter them in the story.
First of all, create a react project. To do so, you can use the create-react-app package provided by Facebook. I am assuming that you know how to do so. If you don’t, use the following steps to do so. …
To write this blog I asked people of a techy facebook group a few questions. I just wanted to know if people customize their system or not and why do they do so? In this blog, I want to talk about the answers I got, my opinion on customization and how can you customize your computer for better workflow. I would like to mention that it is an opinionated blog so your preferences might be different.
According to the answers I got in the post, most people responded that they go with a fairly minimal level of customization. They are…
The map method called on an array will return the array of the same size. The returned array can be the result of the operation you apply on the array call the method on.
Here in the above example, in line no 2, the map…
The year 2018 has become the best year of my life till date. I was able to achieve so much in the entire year. I have always wanted to learn, explore, grow and be a better version of myself and in 2018, I really achieved a lot of those. In this blog, I want to talk about the things that happened to me or made them happen which made my year remarkable. …
A little bit of History
I was a sublime text fanboy before I started using Visual Studio Code. I would like to address some issues here. I was kind of a beginner back then and I had no idea about the performance of text editors. All I cared about is syntax completion and highlighting, themes (dark themes to be precise) and that’s probably it. I heard from the people I worked with about the performance of Sublime text being superior to other text editors but I didn’t care much about that back then. So why exactly did I switch?
A Computer Science enthusiast who enjoys sharing what he learns