Image for post
Image for post

Let’s take example of movie ticket booking system where there are two services involved. One creates booking and other sends booking details to users.

Image for post
Image for post

Pact is a real simple and a complex framework at the same time. Why because, it can get really confusing and can give headache if not understood correctly and gone by assuming flow. But once understood the flow it seems like, a real simple concept to understand.

What is Pact?

Have you ever wondered how GitHub stores and serves your git repository?

In this article we’ll be knowing features of git, using which it makes easy for others to create a hosting platform for git repositories.

We’ll not be going in details of how GitHub works but will be exploring how we can build something similar to it for hosting your git repositories, from where you can clone and perform other git related things.

Before going to remote servers let’s just create a local git server and in order to do that we need to know few things in advance.

git init

Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.

Image for post
Image for post

In this article we’ll be knowing about useEffect hook by creating a nice little game where we’ll be guessing the favourite colour of the user by taking their favourite number.


useEffect is a react hook which triggers whenever a component loads. We can also define state dependencies to it, meaning whenever the dependent state changes useEffect will trigger. …

There are 32 keywords in C language, this is the first thing I got to know while I was about to start my journey into the world of programming in my college days. Many student struggle to just find where to start from. Most of the time the answers are C, C++, Java or Python or can be any mainstream language.

Any of them can be a good option to start with, but I didn’t find any of them interesting immediately until I get to a point where I can actually make something with it and not just adding some…

Lasting 6 Years and 1 Day the Second World War started on 1st September 1939 with Hitler’s invasion of Poland and ended with the Japanese surrender on 2 September 1945.

Image for post
Image for post

The Beginning

The instability created by World War 1 (1914–1918), planted the seeds for the roots of World War 2. It created instability in entire world, especially in Europe. Germany was very unstable politically and economically. Adlof Hitler leader of Nazi Party, rearmed the national and signed strategic treaties with Italy and Japan to accomplish his ambitions of world domination.

Although as a programmer we use git in our day-to-day life many of us don’t really know what it does internally to do what it does. In this article, I’ll try to explain what git really is and how it internally works.

Image for post
Image for post

Types of Git commands

We use many git commands in our day to day life like git commit, git push, git checkout etc. this are the common commands that are more user friendly and are called “Porcelain” commands. …

Image for post
Image for post

It isn’t that they can’t see the solution.

It is that they can’t see the problem” - GK Chesterton

Defining the problem

The solution we search for a problem totally depends on the way we define the problem. A problem can be defined in multiple ways and those ways can entirely change what the problem statement is. Defining a problem in multiple ways helps us to find the solution in multiple possible ways rather than focusing on the obvious solutions that come on the top-level referred from the problem.

Let us try figuring out multiple possible problem statements that you can find from…

Image for post
Image for post

In this article I’ll guiding you through how you can create a simple say hello React application using React functional component and useState hook.

Let’s get started !

The first step is to create a React project so we’ll do that using following command npx create-react-app hello_hook

For this article I assume that you know what this npx command does.

This command has downloaded all the dependencies for us to run and develop the react application with the name hello_hook as a next step now let’s go the project directory by saying cd hello_hook

Try starting the project using npm…

Before start writing code, think and ask yourself, why you are writing this code ? If you get your answer write your expectations as tests or if you don’t get why you are going to write code simply don’t write it.

Once you have documented your requirement as test, now let’s check what is the minimum amount of code you will need to write to complete the expectations. And once you have done that try running your tests and see if your code can fill up your expectation. …

Chandan Kumar

Application Developer at ThoughtWorks

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store