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.
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.
The git init
command creates a new Git repository. It can be used to convert an existing, un-versioned project to a Git repository or initialise a new, empty repository. …
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.
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 numbers or finding length of a given string. …
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.
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.
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. …
It isn’t that they can’t see the solution.
It is that they can’t see the problem” - GK Chesterton
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 this particularly given statement. …
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 start
command. You can now see the React server is running on the port 3000. …
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. …
I’m writing this article after writing lot’s of small programs in Clojure. The way Clojure has changed my thoughts about how should I approach a problem and how to solve a particular problem, without thinking about whose responsibility is what.
There is a function for that.
Inbuilt functions of Clojure help in thinking about the problem in functions and more in their domain rather than thinking about how to program them. Once you have enough vocabulary of Clojure’s inbuilt functions it becomes very easy to write a solution in Clojure.
Below I will talk about how I have written 2048 game by only using Clojure’s inbuilt library functions using compose and without writing much of own logic. …
About