<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Prasad Madusanka on Medium]]></title>
        <description><![CDATA[Stories by Prasad Madusanka on Medium]]></description>
        <link>https://medium.com/@prasad-madusanka?source=rss-f519bbae2488------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Jp4QhK-xR53eXxM_h0loVg@2x.jpeg</url>
            <title>Stories by Prasad Madusanka on Medium</title>
            <link>https://medium.com/@prasad-madusanka?source=rss-f519bbae2488------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:48:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prasad-madusanka/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SOLID - Design Principles]]></title>
            <link>https://medium.com/geekculture/solid-design-principles-ea0e24f60ca?source=rss-f519bbae2488------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea0e24f60ca</guid>
            <category><![CDATA[principles]]></category>
            <category><![CDATA[solid]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Prasad Madusanka]]></dc:creator>
            <pubDate>Sun, 15 Aug 2021 14:30:23 GMT</pubDate>
            <atom:updated>2021-08-20T22:01:23.125Z</atom:updated>
            <content:encoded><![CDATA[<p>SOLID is an acronym used to represent 5 design principles designed by <a href="https://en.wikipedia.org/wiki/Robert_C._Martin">Robert C. Martin(aka Uncle Bob)</a> and used by software engineers. SOLID, <strong>S</strong> stands for Single Responsibility Principle, <strong>O</strong> for Open/Closed Principle, <strong>L</strong> for Liskov&#39;s Substitution principle, <strong>I</strong> for Interface Segregation Principle, and <strong>I</strong> for Dependency inversion principle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tP8JF97UkH4fxnRPIsusGA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@afgprogrammer">Mohammad Rahmani</a> from <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><h3>Single Responsibility Principle</h3><p>According to Robert C. Martin “A class should have one, and only one reason to change.”</p><p>This means, in Object Orientation, classes should be more cohesive. A class should be specialized in one thing/ A class should have only one job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*HkmXKDPZ6BWw8p_qdIL7jg.jpeg" /><figcaption>Image show before &amp; after applying SRP</figcaption></figure><h3><strong>Open-Closed principle</strong></h3><p>The most important principle of object-oriented design,<br>“Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification.”</p><p>The general idea of this principle is to write codes to be able to add new functionality without changing the existing code. <br>For example, existing, well-tested classes will need to be modified when something needs to be added. But, changing classes can lead to problems or serious bugs. Instead of changing the class, we simply want to extend it.</p><p>This can easily achieve by using <strong>inheritance</strong>. But inheritance introduces high coupling if the sub-class depends on super-class implementation details. So this principle can be defined as a Polymorphic principle.</p><p>Example — A book shop is giving discounts on different book categories and as a new feature, they need to add a new category to the discount list. Let’s say the book shop is giving discounts on the following categories: <strong>Biology</strong>, <strong>Zoology</strong>. In the new feature, they need to add the <strong>Engineering </strong>category.</p><p>Let’s define our classes as follows,<br>* Class <strong>Discount</strong> to process discount-related things.<br>* Class <strong>BiologyCategory</strong> and <strong>ZoologyCategory</strong> as existing categories.<br>* Class <strong>EngineeringCategory </strong>for the new category.</p><p>Let’s add this new category without considering OC Principle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*0O4DuUIs1OQwRyOHxwoZyg.jpeg" /><figcaption>Make the enhancement without considering OC Principle</figcaption></figure><p>You may notice that the above example has OO Design Problem, in order to follow the OC Principle, the above design should be implemented using best practices. <em>FYI: Changing design is not a part of this principle.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*hj1sT2BjLeH9hNx98kL9Ow.jpeg" /><figcaption>After applying OC Principle</figcaption></figure><p>With OC Principle, we should only create a new class and <strong>implement</strong> the <strong>BookDiscountCategory</strong> <strong>interface</strong>.</p><h3>Liskov Substitution Principle</h3><p>The Liskov Substitution principle was introduced by <a href="https://en.wikipedia.org/wiki/Barbara_Liskov">Barbara Liskov</a>, in her conference keynote “Data abstraction” in 1987. A few years later, she published a paper with Jeanette Wing in which they defined the principle as,</p><p>“Let <em>Φ(x)</em> be a property provable about objects <em>x</em> of type <em>T</em>. Then <em>Φ(y)</em> should be true for objects <em>y</em> of type <em>S</em> where <em>S</em> is a subtype of <em>T</em>.”</p><p>That is a bit confusing right, let me simplify this with a diagram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*Q9UcX-0uJaUE5fnNzO-AIw.jpeg" /><figcaption>Liskov Substitution Principle Visual explanation</figcaption></figure><p>According to the principle, <strong>Objects of a superclass shall be replaceable with objects of its subclasses without breaking the application</strong>. That requires the objects of your subclasses to behave in the same way as the objects of your superclass.</p><p>Example — Check the below diagram, in there, the subclass cannot do everything that the superclass is capable of.<br>In the below scenario, Snail is a subclass of Animal but snail cannot speak, which breaks the principle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*gDlBtdcBMF0SvjwCzsPs0w.jpeg" /><figcaption>Demonstrating inheritance</figcaption></figure><p>In order to solve the above problem,<br>1) We can create a separate interface that contains <strong>speak </strong>and implement it to necessary classes, such as Dog and Cat.<br>2) Or, sometimes composition is better than inheritance. “Has Abetter than IS A”</p><h3>Interface Segregation Principle</h3><p>“Clients should not be forced to depend upon interfaces that they do not use.”<br>By clients, he means classes that implement interfaces. Simply, interfaces shouldn’t include too many functionalities.<br>The violation of the Interface Segregation Principle reduces code readability and forces the programmers to write unwanted methods that do nothing. <br>In a well-designed application, you should avoid interface pollution (aka fat interfaces). The solution is to create smaller interfaces that you can implement more flexibly.</p><p>Example —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*awAoYd1YVFzMyXpvCmrvSA.jpeg" /><figcaption>Before and after ISP applying</figcaption></figure><h3>Dependency Inversion Principle</h3><p>The goal of the Dependency Inversion Principle is to avoid tightly coupled code, as it easily breaks the application.</p><p>“High-level modules should not depend on low-level modules. Both should depend on abstractions.”</p><p>“Abstractions should not depend on details. Details should depend on abstractions.”</p><p>Most people would want to make high-level classes depend on low-level classes(such as Utility classes). However, according to the Dependency Inversion Principle, we need to invert the dependency. Otherwise, when the low-level class is replaced, the high-level class will be affected, too.</p><p>As a solution, we need to create an abstract layer for low-level classes, so that high-level classes can depend on abstraction rather than concrete implementations.</p><p>Robert C Martin mentions that the <strong>Dependency Inversion Principle </strong>is a specific combination of the <strong>Open/Closed</strong> and <strong>Liskov Substitution Principles</strong>.</p><p>Example —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*OiXMFHosXG3m5sIyRXkWJQ.jpeg" /><figcaption>Before and After applying DIP</figcaption></figure><p>That’s it, hope the above will help you to understand the SOLID Design Principles. If you are not getting the above principles, I suggest you read this a few times until you get familiar with it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea0e24f60ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/solid-design-principles-ea0e24f60ca">SOLID - Design Principles</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Docker Simplified]]></title>
            <link>https://prasad-madusanka.medium.com/docker-simplified-8c8aa63798ea?source=rss-f519bbae2488------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c8aa63798ea</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-container]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[docker-deployment]]></category>
            <category><![CDATA[docker-basic]]></category>
            <dc:creator><![CDATA[Prasad Madusanka]]></dc:creator>
            <pubDate>Fri, 23 Jul 2021 05:18:03 GMT</pubDate>
            <atom:updated>2021-07-25T10:47:43.267Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, in this article, I’m going to cover the basics of docker including why, what, and how to work with docker with a small example.<br>Let’s start….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2MRZ0jlBP0gUxuQeU4IXzQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@carrier_lost">Ian Taylor</a> from <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p><strong>What is meant by software/application deployment?</strong></p><p>According to Wikipedia — <strong>Software deployment</strong> is all of the activities that make a <a href="https://en.wikipedia.org/wiki/Software_system">software system</a> available for use.<br>Let’s expand the above, Software deployment means copying/make available the required packages or software that needs to be run the application on a particular server or a computer.</p><h4>Let’s deploy an application in the traditional way</h4><p>Traditionally, when we are deploying an application, we have to configure everything in the host machine. <br>Okay!, Let’s deploy a simple application written in NodeJS. What are the things you need to do? <br>First, you need to install NodeJS in that host machine and then transfer your application, after installing all the node dependencies, troubleshoot, and finally run. Sound simple right?<br>Now imagine you need to do the same thing 10 times, 10 host machines. Now it sounds a bit odd right. You need to do the same thing 10 times.</p><p>OR</p><p>Deploy different types of applications. In that case, we have to prepare the host environment for each application manually.</p><p><strong>How do we overcome the above situation</strong>? 🤔</p><p>We can use a Virtual Machine and configure everything we need to run the application and make clones of that Virtual Machine Image.<br>The answer is correct, but we have a major drawback, Virtual Machine act as a physical computer, which means it uses physical resources. That leads to performance/resource problems.</p><p><strong>Is there any other option do we have rather than using VM?<br></strong>That is the point <strong>Docker</strong> comes into play...</p><p>Docker is used as an alternative because it is <strong>more lightweight(resource efficiency)</strong> in terms of resources than virtual machines. Docker containers share operating systems whereas Virtual Machines are designed to emulate virtual hardware. Also, Docker is</p><ul><li><strong>Portable</strong>: All the dependencies for an application are bundled in the container. This means they can be easily moved between development, test, and production environments.</li><li><strong>Support Continuous Deployment and Testing</strong>: The ability to have consistent environments and flexibility with patching has made Docker a great choice for teams that want to move from waterfall to the modern DevOps approach to software delivery.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*snINBI0HUIYa0BWKyCO3Xg.jpeg" /><figcaption>VM &amp; Docker difference — source <a href="https://www.weave.works/blog/a-practical-guide-to-choosing-between-docker-containers-and-vms">weave.works</a></figcaption></figure><p><strong>Here we have to understand the two words we used above</strong></p><p><strong>Containers</strong> — A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another. (source —<a href="https://www.docker.com/resources/what-container"> docker.com</a>). Let’s discuss this later.</p><p><strong>Hypervisor</strong> — A software that creates and runs virtual machines (VMs). The hypervisor allows one host computer to support multiple guest VMs by virtually sharing its resources, such as memory and processing. This is also known as a Virtual Machine Monitor or VMM.</p><p><strong>Basic Components of Docker</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*MYX0ClbWoitxS0RNUVvj8A.png" /><figcaption><em>Docker Engine — </em><a href="https://wiki.aquasec.com/download/attachments/2854889/Docker_Engine.png?version=1&amp;modificationDate=1520172702424&amp;api=v2">wiki.aquasec.com</a></figcaption></figure><p><strong>Docker Daemon</strong> — this manages Docker objects such as images, containers, networks, and volumes. A REST API is used to communicate with Daemon. The daemon can be accessed by an HTTP client.</p><p><strong>REST API</strong> — Used to interact with Docker Daemon</p><p><strong>Docker CLI </strong>— A command-line interface client for interacting with the Docker daemon.</p><p><strong>Docker Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*43Iom9HfVUvxPedVFc3Upw.png" /><figcaption><em>Docker Architecture — </em><a href="https://wiki.aquasec.com/download/attachments/2854889/Docker_Architecture.png?version=1&amp;modificationDate=1520172700553&amp;api=v2">wiki.aquasec.com</a></figcaption></figure><p><strong>Client</strong> — CLI provides the ability to interact with Docker and perform builds, run and stop application commands. The Docker client can reside on the same host as the daemon or connect to a daemon on a remote host. A docker client can communicate with more than one daemon.</p><p><strong>Host</strong> — A complete environment to execute and run applications. The host contains Docker objects (Images, Containers, Network &amp; Volumes). Daemon contains in the Host, is responsible for pull and build container images as requested by the client request.</p><ul><li><strong>Images</strong> — A core part of the Docker and a read-only binary template used to build containers and contain metadata that describes the container’s capabilities and needs. Like DNA blueprint. Container images can be shared across teams within an enterprise using a private container registry, or shared with the world using a public registry like Docker Hub.</li><li><strong>Containers</strong> — An encapsulated environment that run applications. A container is defined by the image and any additional configuration options can be provided on starting the container, including and not limited to the network connections and storage options. Resources used by containers should be defined in the image. Users can create an image file using a container. Also since containers are much smaller than Virtual Machines, they can be spun in seconds.</li><li><strong>Network</strong>—This allows the user to attach a container to as many networks as the user likes.</li><li><strong>Storage</strong> — Normally when writing data, very little amount of data is written to a container’s writable layer, therefore, users have to use Docker volumes to write data. This is where storage drivers come in. There are many storage types, users can select them depending on their requirement.</li></ul><p><strong>Registries</strong> — A service that provides locations from where you can store and download images. Something similar to maven.</p><p><strong>Okay! enough chit chats, let&#39;s deploy a small application</strong></p><p>First, we need to install Docker, you may have to download a suitable distribution to the Operating System you use.</p><p>The most basic thing is deploying a <strong>NodeJS+Express</strong> application. Now you should be installed NodeJS before follow the below steps.</p><p><strong>Create a NodeJS app</strong></p><pre>npm init</pre><pre>package name: docker-simplfied<br>version: (1.0.0) <br>description: <br>entry point: (app.js) <br>test command: node app.js<br>git repository: <br>keywords: <br>author: <br>license: (ISC)</pre><p>Now, you can see a file named “package.json”, open it and add the below code under the “<strong>scripts</strong>”</p><pre>&quot;start&quot;: &quot;node app.js&quot;,</pre><p>Create a file to put the implementation, lets name it as “<strong>app.js”</strong></p><pre>const express = require(&#39;express&#39;)<br>const app = express();</pre><pre>app.get(&#39;/&#39;, (req, res) =&gt; {<br>   res.send(&#39;Greetings from Docker Simplified 🐳&#39;)<br>})</pre><pre>app.listen(3000, () =&gt; {<br>   console.log(&#39;Server is Live &amp; listening on 3000!&#39;)<br>})</pre><p>Now, you may run the below command to install <strong>express</strong></p><pre>npm install express</pre><p>Let’s run our application before Dockerize to test whether it’s working or not.<br>When you run the below command, it will run the script snippet we added manually to the package.json.</p><pre>npm start</pre><p>Try to access the <a href="http://localhost:3000/">localhost:3000</a> via browser, you should get below</p><pre>Greetings from Docker Simplified 🐳</pre><p>Now, let’s Dockerize the application</p><p>To Dockerize an application we need to add a file called “<strong>Dockerfile</strong>” to our working directory(No extension needed) and that file will create the Docker Image for us. Add below entries to the file, remember, order matters. Below commands will execute when we build the container.</p><pre>FROM node:12</pre><pre>WORKDIR /app</pre><pre>COPY package*.json /app</pre><pre>RUN npm install</pre><pre>COPY . /app</pre><pre>ENV PORT=3000</pre><pre>EXPOSE 3000</pre><pre>CMD [&quot;npm&quot;, &quot;start&quot;]</pre><p><strong>What does it mean by</strong></p><ul><li><strong>From</strong> — This sets the Base Image for subsequent instructions. In the above case, it creates a layer from the NodeJS V12 Docker image. A valid Dockerfile must start with a FROM instruction. The image can be any valid image — it is especially easy to start by pulling an image from the Public Repositories.</li><li><strong>WORKDIR </strong>— This instruction sets the working directory and all actions like RUN, CMD, ENTRYPOINT, COPY and ADD instructions execute from there. If the WORKDIR doesn’t exist, it will be created default one(root).</li><li><strong>COPY</strong> — Simple as it sounds, used to copy files into a specific directory.</li><li><strong>RUN</strong> — Used to run some commands and this is what runs within the container at build time.</li><li><strong>ENV</strong> — Used to set environment variables.</li><li><strong>PORT</strong> — Variable</li><li><strong>EXPOSE</strong> — This instruction exposes a particular port with a specified protocol inside a Docker Container.</li><li><strong>CMD</strong> — This command​ specifies the instruction that should be executed when a Docker container starts.</li></ul><p>There is more instruction other than above, try them also at a later time.</p><p>One more thing, if you need to exclude any files, you can create “<strong>.dockerignore</strong>” which acts the same as the “<strong>.gitignore</strong>”.</p><p><strong>Now let’s build and deploy our application</strong></p><pre>docker build -t &lt;docker-username&gt;/&lt;application-name&gt;:&lt;version&gt; .</pre><p><strong>-t</strong> — Used to specify tag</p><p><strong>docker-username</strong> — If you are willing to push this to a repo, you better use this. (not mandatory)</p><p><strong>application-name</strong> — App name</p><p><strong>version</strong> — Version. (not mandatory)</p><p><strong>. </strong>— build path. In our case, its /app</p><pre>docker build -t prasadmadusanka/docker-simplified:1.0 .</pre><p>Once you build your app, you will get a terminal log similar to below in very bottom of the terminal.</p><pre>...</pre><pre>sha256:b3b678a791345914abd4e77b60cbb4bcb2df6e107849114a2f18ffa5ded7eab6                                                                    </pre><pre>naming to docker.io/prasadmadusanka/docker-simplified:1.0</pre><p>Now let’s run the NodeJS app we just create,</p><pre>docker run &lt;SHA or App name&gt;</pre><p>See the below command,</p><pre>1) docker run prasadmadusanka/docker-simplified:1.0 <br><strong>OR</strong><br>2) docker run b3b678a791345914abd4e77b60cbb4bcb2df6e107849114a2f18ffa5ded7eab6</pre><p>You can use both ways to run the application. When the application running, you’ll get a console log like this if you used my example — <strong>Server is Live &amp; listening on 3000!<br></strong>That means our NodeJS app is working and listening for requests on port 3000. <br>Okay, let’s try to access this port using a browser.</p><pre><a href="http://localhost:3000/">http://localhost:3000/</a></pre><p>Hope you got an error page, that means you cant access the server. The reason behind this is, the application running inside the Docker container is not visible to the outer world.<br>So, how do we solve this? It is simple, we just need to expose our NodeJS server. To do that, we need to do a small modification to the command we used to run the app.</p><pre>docker run -p &lt;external port&gt;:&lt;internal app port&gt; &lt;SHA or App name&gt;</pre><p>What is “-p”, it is used to publish a container’s port(s) to the host. Let’s say we need to expose and map port 3000 to 8080,</p><pre>1) docker run -p 8080:3000 prasadmadusanka/docker-simplified:1.0 <br><strong>OR</strong><br>2) docker run -p 8080:3000 b3b678a791345914abd4e77b60cbb4bcb2df6e107849114a2f18ffa5ded7eab6</pre><p>Now, let’s try to access it via browser. Remember, we mapped port 3000 into 8080.</p><pre><a href="http://localhost:3000/">http://localhost:8080/</a></pre><p>Tada, hope you got “Greetings from Docker Simplified 🐳”</p><p><strong>That’s all for now!<br></strong>This article covers the very basics of Docker, there is a lot we can do. Now it’s time to you to continue the Docker journey.</p><p><strong>Some useful links</strong></p><ul><li><a href="https://www.aquasec.com/cloud-native-academy/docker-container/docker-architecture/#DockerArchitecture-Containersvs.VirtualMachines">Docker Architecture | Aqua</a></li><li><a href="https://docs.docker.com/get-started/overview/">Docker overview</a></li><li><a href="https://www.comparitech.com/net-admin/docker-vs-virtual-machines/">Docker vs Virtual Machines: Head to Head Comparison</a></li><li><a href="https://www.docker.com/resources/what-container">What is a Container?</a></li><li><a href="https://blog.container-solutions.com/docker-what-problem-does-it-really-solve">Docker - What Problem Does It Really Solve</a></li><li><a href="https://docs.docker.com/engine/reference/commandline/run/">docker run</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c8aa63798ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying the mean of “Version Control”]]></title>
            <link>https://prasad-madusanka.medium.com/demystifying-the-mean-of-version-control-732232967545?source=rss-f519bbae2488------2</link>
            <guid isPermaLink="false">https://medium.com/p/732232967545</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Prasad Madusanka]]></dc:creator>
            <pubDate>Sat, 26 Sep 2020 17:23:54 GMT</pubDate>
            <atom:updated>2021-07-20T02:23:12.818Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RpdCB8ssHVk6dpHL31rKbA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@yancymin">Yancy Min</a> from <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p><strong>So, what is Version Control in Software Engineering? </strong>🤔<br>In Software Engineering <strong>Version Control</strong> is a system that records/keep changes to a file or set of files(simply your project) over time so that you can recall specific changes(aka Versions) later. Also, this is very useful in collaborative environments.</p><p><strong>What is </strong><a href="https://git-scm.com/"><strong>Git</strong></a><strong>?</strong><br>Git is a software tool that provides us the ability to track the changes of files.</p><p><strong>Isn’t there any other options, other than Git? <br></strong>Yes, there are few options we can use instead of Git. Apache Subversion, commonly known as Apache SVN, Mercurial, Concurrent Versions System, and many more 😯.</p><p>But why do we use Git? Because Git is the best at what it does. “Best” does not mean perfect 😜. Competitors previously did not had features like branching and etc. But now they support most of the features Git has. Anyway, Git is the most used and popular version control system today.</p><p><strong>Ever heard the word “</strong><a href="https://github.com/"><strong>GitHub</strong></a><strong>” when talking about Git?<br></strong>What is GitHub? GitHub is a git repository hosting service with many other features. It’s like a cloud drive(Google Drive, One Drive, or Dropbox) but dedicated to keep and maintain software source codes. <br>There are many other services like GitHub. Depend on the requirement you can select one for yourself. Most of the time people use GitHub as their main repo.<br>For ex: <a href="https://bitbucket.org/product/">Bitbucket</a> &amp; <a href="https://gitlab.com/">GitLab</a></p><p><em>Remember: Above repository services provide different features when comparing with each other, but contain all mandatory features required in version controlling in the mentioned services. Depend on your organization/personal preferences you can select which suits you.</em></p><p><strong>Ok, lets wind up!<br></strong>Version controlling is a way of tracking the changeset of a file/files. To do this we use a software tool called “Git”. We can keep our version details locally but it is more secure and easy in collaborative environment if we can keep this in a cloud service, so we use services such as GitHub, GitLab or Bitbucket. That’s all about version control. Let’s catch-up from how we use this.</p><p>Do you want to set up Git on your computer? Ok, lets do this here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=732232967545" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>