A Thread is a lightweight Process. Any Process can have multiple Threads running in it.
For example in a web browser, we can have one thread Which will load the User Interface and we can have one more thread which will actually retrive all the data that needs to be displayed in the User Interface.
Multithreading enables us to run Multiple Threads Concurrently.
For example in a web browser, we can have on thread which handles the User Interface and in Parallel we can have one more thread which is fetching the data to be displayed.
So multithreading improves the responsiveness of a System. …
This blog post is a continuation of my previous blog post on GraphQL Basics. Click Here to check out the GraphQL Basics post.
It is necessary to read the GraphQL Basics post to make the best use of this article.
Whenever you want to write data back into the server, mutations are used.
Query is used when you want to read some data from the server. Mutation is used when you want to write data back to the server.
But wait. Can’t I go to the resolver in the query and do a write operation?
Though it is possible to do a write operation in a query, it shouldn’t be done. It is necessary to separate the read the write operations, and hence mutations are needed. …
So let’s get started 😄
Ensure you have Maven Installed in your system before starting with this article.
You can Install Maven from https://maven.apache.org/
Also ensure Maven is set in the PATH so that
mvn comands work.
you can verify if maven is installed and can be accessed using the command
Also ensure JAVA_HOME is set.
The first step is to setup your project.
Setting up a Springboot project is pretty easy. …
GraphQL is a query language for API’s. It shows what are the different types of data provided by the server and then the client can pick exactly what it wants.
Also in GraphQL you can get multiple server resources in one call rather than making multiple REST API calls.
You can check out https://graphql.org/ for the full list of benefits.
The thing is until you see GraphQL in action, it’s hard to understand the benefits. So let’s get started with using GraphQL.
We will be using GraphQL along with NodeJS in this article.
Install NodeJS from here: https://nodejs.org/en/.
The answer is yes. 😄
If Electron is used directly, then some manual setup is needed before building your application. Also if you want to use Angular, React, Vue or any other framework or library, you will need to manually configure for that. …
Maven is used very often in the industry and I felt it would be good to cover the basics in this article so that it can be used efficiently. 😄
This article will cover things like maven basics, maven plugins, maven dependencies, and maven build lifecycle.
Maven was created to provide a standard way in which Projects can be built. One of its powerful features is dependency management.
Maven is commonly used for dependency management, but it is not the only thing it is capable of doing.
If you do not know what dependency management means, don’t worry😄. …
Every developer needs to know a bunch of tools to be effective. cURL in one such tool 😄
In this article I will explain how curl can be used to make HTTP requests.
cURL is basically used to transfer data using Internet Protocols for the given URL.
Curl is a Client side program. In the name cURL, c stands for Client and URL indicates curl works with URL’s.
The curl project has a curl command line and also a libcurl library. In this article we will be focussing on the curl command line.
Curl deals with a bunch of Internet Protocols like HTTP, FTP, SMTP, TELNET and so on. …
NodeJS is most commonly used with Express framework. Also a bunch of other external libraries are used with NodeJS.
The Reason these frameworks and libraries are used along with NodeJS is to make development much more easier and quicker.
While working on any real project, it is best to use frameworks and libraries wherever needed to enable quicker development 😄
That said, in this post I will be showing how to build Simple REST API’s with NodeJS without using express framework or any other external libraries. This article will use only those functionalities that are provided with NodeJS itself.
The reason for this is to show how NodeJS can be used without frameworks and libraries as well 😄. Also this will give a better idea as to how NodeJS works…
I am not able to commit to the remote repository, let me do a force push.
Let me run rebase on the remote repository, to make the commit history neater.
Let me amend my previous commit which is in the remote repository.
The points mentioned above are some of the things to avoid doing in Git. 😃
Git has amazing features and is very helpful for developers. But mistakes still happen while using Git. …
Ever Spent an entire week to find out where the bug is?
Ever Wondered how this bug was never caught during the development phase?
Then this post will definitely be useful for you 😃
This post will explain how to find the source of a bug in a code, and also about best practises while writing code 😃
Let’s say that the code has 100000 lines of code.
Now the Code does not throw any error when it’s run. So that’s good 😃. No-one likes errors right?
Now one of your customers reaches out to your development team and says that they are not able to perform some action in your application. …