<?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 Hansi Pabasara on Medium]]></title>
        <description><![CDATA[Stories by Hansi Pabasara on Medium]]></description>
        <link>https://medium.com/@hansipabasara1?source=rss-6e063d096737------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*qz-VXqSqC-z30gweU67lMQ.jpeg</url>
            <title>Stories by Hansi Pabasara on Medium</title>
            <link>https://medium.com/@hansipabasara1?source=rss-6e063d096737------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:22:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hansipabasara1/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[What is Express.js?]]></title>
            <link>https://medium.com/@hansipabasara1/what-is-express-js-226e6559b007?source=rss-6e063d096737------2</link>
            <guid isPermaLink="false">https://medium.com/p/226e6559b007</guid>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Hansi Pabasara]]></dc:creator>
            <pubDate>Sun, 05 Apr 2020 18:12:00 GMT</pubDate>
            <atom:updated>2020-04-05T18:12:00.894Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*MwivRNkzPxBOVRZkyc-CEQ.png" /></figure><p>Express offers a simple interface for creating our applications. It gives us the resources needed to create our app. It is versatile, as various modules are available on npm, which can be plugged directly into Express.</p><p>Express has been developed by TJ Holowaychuk and is maintained by foundation Node.js and various open source contributors.</p><p>Express is the most popular Node Web framework, and is the core library for many other common Web frameworks for the Node. It provides mechanisms for:</p><p>· Write handlers to multiple URL paths (routes) for requests with specific HTTP verbs.</p><p>· Integrate engines with “view” rendering to produce responses by inserting data into templates.</p><p>· Set standard web application settings, such as the port to be used to connect, and the location of templates used to render the response.</p><p>Express.JS is a prebuilt NodeJS framework that can help you more easily and smartly build server-side web applications. Lightness, minimalism, flexibility, usability are some of its characteristics and as it is built in NodeJS itself, its output has also been inherited.</p><p>In brief, Express.JS and NodeJS is like Bootstrap with HTML / CSS in responsive web design.</p><p>This made coding a piece of cake in NodeJS, and gave some additional functionality to programmers to expand their server-side coding. The most popular NodeJS system is handed down by Express.JS-so much so that when most people speak about NodeJS they say NodeJS+Express.JS for sure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*EZUp-bxiIJqwH3Cy4nkJ4A.jpeg" /></figure><h4><strong>Benefits of using Express.Js</strong></h4><p>· Similar to here, Express has the biggest group not only out of the three frameworks but out of all Node.js web application frameworks. This is the most advanced of the three systems, with almost 5 years of growth behind it and now StrongLoop has taken control of the repository. It provides a simple way to get a server running and facilitates the reuse of code with it built in router.</p><p>· Express. JS is the JavaScript library with best backend creation. The primary benefit of it is that it allows you to create web applications and not only because it is a kind of JavaScript library because means you can construct your application more easily and rapidly. Additionally, as we stated above, that JavaScript is the best backend programming language.</p><p>· Another advantage of using Express. JS is that you’d be able to use JavaScript to do both the frontend and backend application. While there are many such platforms, they provide various language support for the frontend and backend, which makes interacting with them very difficult. But Express. JS never confronts any such problem.</p><p>· With the Google V8 engine, Express. JS is supported, with the aid of which you will achieve higher efficiency without any failure or error in processing.</p><h4><strong>Pros and Cons of Express.js</strong></h4><p><strong>Pros</strong></p><p>· The key benefit of using Express. JS is that you’d get quick application development experience with it.</p><p>· Several such systems are unable to handle a higher level of requests but you will be able to manage requests effectively with the aid of Express. JS as it provides you with support for handling I / Q requests.</p><p>· Express. JS is an open-source community.</p><p><strong>Cons</strong></p><p>· The middleware framework provided with Express. JS addresses many client request problems.</p><p>· Issues in the callbacks.</p><p>· There’s no built-in error handling, it’s easy to get lost with all the middleware that could be applied to solve a solution, and there are many ways of doing one thing</p><h4><strong>Install Express.js</strong></h4><p>Express.js can be installed using npm. Using this command it will install the latest version of Express.js. Then every Node.js application can use it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*y_ZYfdsh8H4bu3WAnKGSBQ.png" /></figure><p>This will install the latest version of Express.js to the project folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*uQ9aIQusl-hSRWHmPKERQQ.png" /></figure><h4><strong>Conclusion</strong></h4><p>So, in this blog we have discussed about what is Express.js, benefits, its features and pros and cons. I think this will be enough for you to get a rough idea about Express.js.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=226e6559b007" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are RESTful Web Services?]]></title>
            <link>https://medium.com/@hansipabasara1/what-are-restful-web-services-6d3ad1c22f37?source=rss-6e063d096737------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d3ad1c22f37</guid>
            <category><![CDATA[restful-service]]></category>
            <category><![CDATA[rest]]></category>
            <category><![CDATA[webapi]]></category>
            <category><![CDATA[get]]></category>
            <category><![CDATA[post]]></category>
            <dc:creator><![CDATA[Hansi Pabasara]]></dc:creator>
            <pubDate>Mon, 23 Mar 2020 21:02:43 GMT</pubDate>
            <atom:updated>2020-03-24T03:05:01.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*MgfvyhQZSIcqkG8vuYjI9A.png" /></figure><p>REST is used to build Lightweight, Maintainable, and Scalable Web services. A service built on the REST architecture is called RESTful. The underlying protocol for REST is HTTP, which is the fundamental web protocol. REST stands for Representational State Transfer.</p><p>REST is a means of accessing resources that lie within a specific environment. You could have a server, for example, that could host important documents or images or videos. All of these are examples for resources. If a client, say, needs any of these resources, a web browser must send a request to the server to access these resources. REST now defines how these resources can be accessed.</p><p><strong>What is REST architecture?</strong></p><p>REST is architecture based on network standards and uses HTTP Protocol. It revolves around resource where every variable is a resource, and a resource is accessed using standard HTTP methods via a specific interface. Roy Fielding first launched REST in the year 2000.</p><p>A REST server simply provides access to resources in the REST system, and REST client accesses and modifies the resources. Here the URIs / global IDs classify each resource. REST uses various formats to represent a resource such as text, JSON, XML. The most common of these is JSON.</p><p><strong>HTTP Methods</strong></p><p>Following are the 4 main HTTP methods commonly used in REST architecture.</p><p>· <strong>GET</strong> — Provide read only access for resources</p><p>· <strong>POST</strong> — Used in cresting new resources</p><p>· <strong>DELETE</strong> — Used to remove resources</p><p>· <strong>PUT</strong> — Used to update an existing resource or to create a new resource</p><p><strong>The key elements of a RESTful implementation are:</strong></p><p>· <strong>Resources</strong> — First key element is the resource itself. Let’s say that there are many employee documents in a web application on a computer. Suppose the web application’s URL is http:/schoolweb.com. Now, in order to access an employee record tool via REST, the http:/schoolweb.com/employee/1 command may be provided-this command asks the web server to provide the information of the employee whose number is 1.</p><p>· <strong>Request Verbs</strong> — This explain what you want the tool to do. A browser issues a GET verb to tell the endpoint which data it wants to get. There are, however, many other verbs available including things such as Upload, PUT, and DELETE. And in the case of http:/schoolweb.com/employee/1 example, the web browser is actually issuing a GET Verb as it wants to get the employee record information.</p><p>· <strong>Request Headers </strong>— There are supplementary instructions included with the request. Those can specify the type of response needed, or the specifics of the authorization.</p><p>· <strong>Request Body</strong> — Information shall be submitted with the request. If a POST request is made to the REST web service, the data is usually sent in the request. The client directly tells the web service, in a POST call, that it wants to add a resource to the server. Consequently, the request body will have the resource information that could be applied to the server.</p><p>· <strong>Response Body</strong> — This is the main part of the response. So in our example, if we were to query the web server via the http:/schoolweb.com/employee/1 request, the web server might return an XML document with all the employee’s information in the Response Body.</p><p>· <strong>Response Status Codes</strong> — These codes are the general codes that are returned with the Web server response. An example is the code 200 that is usually returned if no error occurs while returning a client response.</p><p><strong>RESTful Principles and Constraints</strong></p><p>The architecture of the REST is based on a few features, which are elaborated below. Every RESTful web service must follow the criteria below to be called RESTful.</p><p>· <strong>RESTful Client Server</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*9Q9zp5tiFN2k4M_cMgPbww.png" /></figure><p>That is the most fundamental prerequisite for an architecture based on REST. It means the server would have a RESTful web service which would provide the client with the required functionality. The client sends a message to server web service. The server will either deny or comply with the request, and provide the client with an appropriate response.</p><p>· <strong>Stateless</strong></p><p>This is necessary for server to be able to properly process the response. The server should not hold any kind of information between client requests. The client asks a question, and the server correctly responds. The customer poses another question. The server does not recall the previous question-answer situation, and will have to independently answer the new question.</p><p>· <strong>Cache</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*xq1_0XLtZq7MSnfGT9RrUw.png" /></figure><p>The request from the client will go to the server, and the server will have a response. That improves network-wide traffic. It’s a term implemented on the client to store requests that were sent to the server already. But if the client gives the same request, instead of going to the server, it will go to the cache and get the information it needs. This saves the network traffic cause from client to server.</p><p>· <strong>Layered System</strong></p><p>Any additional layer such as a middleware layer may be added between the client and the actual server running the RESTFul web service (the middleware layer is where all the business logic is generated, and could be an additional service that the client may communicate with before making a call to the web service). Yet the implementation of this layer must be clear, so that the relationship between the client and the server is not disrupted.</p><p>· <strong>Interface/Uniform Contact</strong></p><p>This is the technique underlying how RESTful web services will work. RESTful essentially operates on the Network layer of HTTP and uses the main verbs described above as GET, POST, DELETE, PUT.</p><p>I hope you will get a rough understanding about the RESTful services.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d3ad1c22f37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Component Life Cycle]]></title>
            <link>https://medium.com/@hansipabasara1/react-component-life-cycle-a0a85cb19731?source=rss-6e063d096737------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0a85cb19731</guid>
            <category><![CDATA[mount]]></category>
            <category><![CDATA[lifecycle]]></category>
            <category><![CDATA[setstate]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[components]]></category>
            <dc:creator><![CDATA[Hansi Pabasara]]></dc:creator>
            <pubDate>Mon, 09 Mar 2020 19:25:08 GMT</pubDate>
            <atom:updated>2020-03-09T19:25:39.260Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*Eq6gpWe1_Oyrz1I7so7Rqw.png" /></figure><p>All of the react components goes through a lifecycle that allows you to perform a specific task at any given time. To do this, you should circumvent the mechanisms of the life-cycle. Will-prefixed methods are called right before something occurs (events), and methods prefixed with did are called right after something takes place.</p><p><strong>There are 3 phases of component life cycle</strong></p><p>· Mounting</p><p>· Updating</p><p>· Unmounting</p><p>Now let’s discuss each phase.</p><p><strong>Mounting</strong></p><p>Mounting is like bringing a newborn child into the world. It is the initial step of unit and component being assembled and rendered for the first time on DOM (Document Object Model).</p><p><strong>setup props and state(constructor(props))</strong></p><p>You must all be heard about the constructors. Constructors are OOP’s basics. It is the first function that will be called whenever a new object is generated even before mounting the device. One thing to note is that you should call super(props) before any statement lines to use this.props. It must call the parent constructor in order to make use of “proposals” for our project.</p><p><strong>ComponentWillMount()</strong></p><p>This function is invoked immediately prior to mounting. It is called right before the first version is performed.</p><p>It is called before render(), so calling setState() will not activate an extra rendering synchronously in this step. But the use of constructor for the same is suggested.</p><p><strong>render (render ())</strong></p><p>Render() is most popular among all the developers of React. We build and return Elements (usually. JSX) Via this.props we access the object, and this.state and these values tells how content should be produced. Any modifications we made to this.state during componentWillMount() are completely applied.</p><p><strong>componentDidMount()</strong></p><p>This method is called right after mounting the react object on DOM, or you might say it is called for the first time right after the rendering method has been executed.</p><p>Do not use setState() as it causes an extra rendering. Although the user will not see the extra rendering but the performance problem will be induced.</p><p><strong>Updating</strong></p><p>Updating is a process of updating a part state or props. Whenever a change is made to respond to the state or props of the component, the component is rendered again, you may simply say that the component is changed.</p><p><strong>componentWillRecieveProps()</strong></p><p>This function is named when a part receives new props that are useful for setting the state with new props. In this process you can compare the recent props with the current one and you can adjust the state and other changes based on that.</p><p><strong>shouldComponentUpdate()</strong></p><p>This could be used to allow React know if the current change in state or props affects performance of a component Speaking of this fuction’s default actions, it will re-render on every change in state.</p><p>This method of react component lifecycle is used for performance optimisation.</p><p><strong>componentWillupdate()</strong></p><p>This is only executed after the return of true shouldComponentUpdate(). ComponentWillupdate() method is called before component is re-rendered after status or props have been changed.</p><p>This method contains 2 arguments as nextProps and nextState.</p><p><strong>componentDidUpdate()</strong></p><p>This is the last method in update section of react component life cycle.</p><p>This method is invoked immediately after update. For the initial rendering this method is not required. Here should be kept statements that require the DOM needed after UI is changed. It is the position where after compared current and previous props you can do the server call.</p><p><strong>Unmounting</strong></p><p>This is the final phase of the lifecycle process of the react component which is a DOM unmounting component.</p><p><strong>componentWillUnmount()</strong></p><p>This method is called immediately before DOM Unmounted and Destroyed the component. In this approach we will handle some cleanup activities, such as canceling any access to the network, deleting event handlers.</p><p>Methods of the React Component lifecycle allow us to carry out certain activities when the component is generated and destroyed. It is beneficial as it informs the developer where to use which component lifecycle methods react depending on the needs.</p><p>I hope you will understand a little more conceptually how those methods work now.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0a85cb19731" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Guide to Webpack and React]]></title>
            <link>https://medium.com/@hansipabasara1/a-guide-to-webpack-and-react-387a3779cb45?source=rss-6e063d096737------2</link>
            <guid isPermaLink="false">https://medium.com/p/387a3779cb45</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[bundler]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Hansi Pabasara]]></dc:creator>
            <pubDate>Mon, 09 Mar 2020 18:08:17 GMT</pubDate>
            <atom:updated>2020-03-09T19:26:10.571Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*pxenJj5FBxE-t-o1FtjxtA.png" /></figure><p><strong>The main idea of Webpack</strong></p><p>Thinking about Grunt and Gulp first can often be a good idea to learn Webpack. The file paths (globs) are input to a Grunt function or a Gulp pipeline. The matching files may be performed via various processes. Transpile usually, concat, minify, etc. This is a really great concept but neither Grunt nor Gulp understands the project’s structure. When we equate this to Webpack, you might say files are handled by Gulp and Grunt, while webpack manages projects.</p><p>For Webpack, a single path is given. The route to your port of entry. Typically this is index.js, or main.js. Webpack will search your application now. This can find out how everything interacts by statements of requirement, import, etc., url values in your CSS, href values in image tags, etc. Webpack operates with Entry Point and Output specification. The configuration of the entry and the output is set inside a file called <strong>webpack.config.js.</strong></p><p><strong>Why do we need webpack?</strong></p><p>Webpack is a commonly used bundler for javascript applications, providing great support and a great team to manage it. It is also relatively easy to implement.</p><p>Packages in webpack</p><p>· <strong>Webpack-cli — </strong>It’s a command line tool which can give the access for some of the webpack commands.</p><p>· <strong>html-webpack-plugin —</strong> Created and modified HTML templates.</p><p>· <strong>webpack-dev-server — </strong>A client-side server with live reloading capabilities for development purposes only.</p><p>And there are much more packages. Webpack has many plugins to make our development process as simple as possible. As we advance, we will use more of those webpack plugins.</p><p><strong>Why is it that we need Babel?</strong></p><p>The new React version uses the syntax ES6 to ES8. We will need to perform additional transformations when using Webpack and React before shipping the code to our customers. We need Babel to compile the code written back to the language the user can understand in those syntaxes.</p><p>At first, we have to set up the app and have to install few dev dependencies.</p><p><strong>How we set up</strong></p><p>In your terminal, execute the following command to start:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*2dLXw1HdLHeaaTY02I4HYw.png" /></figure><p>If you haven’t installed create-react-app, It is now shipping with a node, so go ahead and run the following device setup command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*u5ijiqr15rRIF980dEdINg.png" /></figure><p>Then start the application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/139/1*4-pVRP7cpwgiEXskMS4ELw.png" /></figure><p>That’s it for the default and custom configuration requires webpack set-up with React.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=387a3779cb45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are NPM and NodeJS?]]></title>
            <link>https://medium.com/@hansipabasara1/what-are-npm-and-nodejs-af44407c4f7a?source=rss-6e063d096737------2</link>
            <guid isPermaLink="false">https://medium.com/p/af44407c4f7a</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[full-stack-developer]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Hansi Pabasara]]></dc:creator>
            <pubDate>Sun, 08 Mar 2020 16:05:54 GMT</pubDate>
            <atom:updated>2020-04-03T13:56:07.988Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*UnkcO2KxbXdaAGs2N5fdZA.png" /></figure><p><strong>What are NPM and NodeJS?</strong></p><p>Node Package Manager refers for NPM.</p><p>There are so many JavaScript frameworks on the market today, including Angular, Knockout, jQuery etc. Therefore, we download the JavaScript framework from the respective website and link it to the project to incorporate these libraries into our web project.</p><p>Node.js is used for implementation with full stack, front end, and back end. This simplifies interaction between client and server in real-time. Only Node.js has an event-driven model which allows asynchronous input and output. Those are some of the few causes programmers and developers have avidly begun using Node.js.</p><p><strong>What is NPM?</strong></p><p>NPM is a centralized region, linking to the different JavaScript frameworks on the market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EScB-CdtzoeTCyzRhXBgig.jpeg" /></figure><p>To use NPM, you must install the Node.js from https:/nodejs.org.</p><p>After the installation of node, in the command prompt it show as follows;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*4YZN79R5Z3BdU_OY3camZg.png" /></figure><p>The default current directory and the name of the folder is as shown above. As I logged with the admin account it shows as admin.</p><p>Install jQuery to your project,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*y42CbAGUYUvuMYvtXfk44g.png" /></figure><p>If you want to install jQuery in your project then open the location of the project folder in the prompt command Node.js and execute the command as shown above.</p><p>You need to execute another NPM command if you wish to install Angular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*AP0u_Opdu05r4m2fb75XyQ.png" /></figure><p>If you need more JavaScript frameworks in your project, having to go and install one by one is a bit of a difficult task.</p><p>The solution is we need to create a file in the folder called the. JSON package file, where you want to install the appropriate JavaScript frameworks.</p><p>Once you install jQuery and Angular to your project it will create a folder named node_modules in user folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*js9r64QHb-M-rSymxCo-0g.png" /></figure><p>Then open the node command prompt and run NPM install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*NP0UD1i2ISL-nacw2zSk_Q.png" /></figure><p><strong>What is NodeJs?</strong></p><p>NodeJs is a free and open source server environment. It is JavaScript runtime.</p><p>If we create a JavaScript file named App.js.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*SNthQq-ZqWgZ69mnuRwf6A.png" /></figure><p>I think this will be helpful for you to get a basic understanding of NPM and NodeJs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af44407c4f7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Version Control using Git]]></title>
            <link>https://medium.com/@hansipabasara1/version-control-using-git-ad7e0827eaeb?source=rss-6e063d096737------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad7e0827eaeb</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Hansi Pabasara]]></dc:creator>
            <pubDate>Mon, 24 Feb 2020 04:01:13 GMT</pubDate>
            <atom:updated>2020-02-24T04:01:13.618Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*AkyVsC0eCA7yRRKfJUeWgA.png" /></figure><p><strong>What is Version Control?</strong></p><p>Version Control System (VCS) is a software tool used by software developers to manage the source code over time. Version control system keeps every version of the project in a database and if an error occurred, developer can compare the earlier version of the code to help fix the errors. Version control helps developer in solving kind of problems like keeping every change that made to the source code in a database, and if a change in one part of the code is not similar to a change done by a developer on the same time it can be discovered and solved without a harm.</p><p><strong>Version Control Using Git</strong></p><p>Git is one of the most popular control systems for the versions. It is a distributed control system for the versions. Changes need not be submitted to the same central repository, which would mean that everyone working on the project access the central repository and download the latest code to save changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*7OrS_EvpShjgPsSKlSefkQ.png" /></figure><p>Git has the accessibility, consistency, privacy, and agility expected by most teams and individual developers. Such Git attributes are set out in detail above. Most teams find Git very favorable in side-by-side comparisons with most other alternatives.</p><p><strong>A quality open source project</strong></p><p>Git is a very well supported open source project for over a decade. The project maintainers have shown a rational judgment and pragmatic approach with frequent updates that enhance usability and reliability to satisfy their users ‘ long-term needs. Being open source reduces hobbyist programmers ‘ costs since they can use Git without paying the money.</p><p><strong>How to work with Git</strong></p><p>After you have installed git on to your computer, all the commands are executed on the terminal. In the project directory if you wish to add a file type add and give a name for the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/146/1*bnKk0XEsV4L1PMY8cVq8KA.png" /></figure><ol><li>To initialize a Git repository</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/90/1*55p7Qq5ZqbMXfzheRVFVuA.png" /></figure><p>This generates a. git directory in the directory of the project.</p><p>2. To check the file status</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/100/1*p6Pf6FVpd6kqsmIkkv7XrA.png" /></figure><p>This will return the repository’s current state.</p><p>3. To stage files changes</p><p>You may scale changed files selectively, moving them to the ‘ staging area ‘ to prepare them for commit. Afterwards, changed files which are not connected to the staging area will not be committed.</p><p><strong><em>to stage specific modified files</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/1*X3B7dawZrUBSYrNmOTj8lw.png" /></figure><p><strong><em>to stage all modified files</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/62/1*qsTjyYNocTv-UINmeafAaw.png" /></figure><p>4. To commit files</p><p>That commit has to be made with a message which explains the changes made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*J3bfKYxo_slGLyxU5kAZNA.png" /></figure><p>5. To display log of all commits</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/67/1*tmoLrD2pl6pK0US11HVEXg.png" /></figure><p>At least an understanding of the version control and some version control system is important.</p><p>This was a basic overview of the essentials of the Git.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad7e0827eaeb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Knockout.js?]]></title>
            <link>https://medium.com/introduction-to-knockout-js/what-is-knockout-js-b234f2177d54?source=rss-6e063d096737------2</link>
            <guid isPermaLink="false">https://medium.com/p/b234f2177d54</guid>
            <category><![CDATA[knockoutjs]]></category>
            <category><![CDATA[jquery]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mvvm]]></category>
            <dc:creator><![CDATA[Hansi Pabasara]]></dc:creator>
            <pubDate>Tue, 18 Feb 2020 04:00:30 GMT</pubDate>
            <atom:updated>2020-02-18T04:16:14.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*pvQ7H1ZcBfTdkWSec_OB3g.png" /></figure><p><strong>What is Knockout.js?</strong></p><p>Knockout is a JavaScript library that allows binding HTML elements against any data model, and based on MVVM pattern that lets you create rich, responsive user interfaces for the display and editor with a clean underlying data model. Knockout.js is compatible with any type of client side or server-side technologies.</p><p><strong>The key features in the Knockout.js are:</strong></p><p>· <strong>Declarative Binding</strong> — HTML DOM elements are linked to the model using a very simple syntax, using a data-bind attribute. Using this feature, it’s made easy to achieve responsiveness. Able to create custom bindings inside data bind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*qbI6D-RbXfVnH5KunupjnA.png" /></figure><p>· <strong>Dependency Tracking</strong> — Relation between the KO attributes and the functions / components of the KO library is clear. Tracks data changes in the KO attribute automatically and updates the respective affected areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*alxvNgUDTiEV1MGHZ14OxQ.jpeg" /></figure><p>· <strong>Automatic UI Refresh</strong> — When a change is made in the view model, it automatically changed in the UI and vice versa.</p><p>· <strong>Templating</strong> — It is a best way to build complex UI structures.</p><p>· <strong>Extensible</strong> — This implements customized behaviors in just a few lines of code as new declarative bindings for easy reuse.</p><p><strong>Benefits of Using Knockout.js</strong></p><p>· Able to create complex dynamic data models easily.</p><p>· When there is a change in the data model it automatically updates the UI.</p><p>· It’s a pure JavaScript library as it works with any server or client-side technology.</p><p>· It works on all mainstream browsers (Internet Explorer, Chrome, Firefox)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*zZD9RjjHAtRQwS2w0sliAg.png" /></figure><p><strong>Why we have to use Knockout?</strong></p><p>If we consider an example of order a meal interface in order meals online website, when the user cancel an order from the system, we have to remove the item data model and associated html elements from the order meal interface and change the total price. If we don’t use knockout to do this, you will write event handlers and listeners for monitoring the dependence.</p><p>We can manage this kind of complex problems using Knockout.js. Because it automatically tracks the dependencies between HTML elements and their underlying data.</p><p><strong>Knockout Vs jQuery</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*ZEtBfGDkISYB2AYHfJGahw.jpeg" /></figure><p>Knockout is a similar JavaScript library like jQuery. Knockout is using MVVM framework while jQuery is using DOM manipulation framework. Main purpose of jQuery is to make JavaScript developer friendly and the purpose of knockout is to bind raw data to a model which will make it easy for the developers. Knockout.js acts as an addition to other Web technologies such as jQuery, MooTools.</p><p><strong>Conclusion</strong></p><p>Knockout.js is no substitute for jQuery as you have understood from the part of their application. There is no a competition between the two and a developer should work side by side with both of them. Using jQuery, it saves the time for the developer while using knockout it mainly helpful in data binding. And also there is minimum need of coding as many issues are automatically implemented, like updating necessary changes in UI and backend through vice versa.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b234f2177d54" width="1" height="1" alt=""><hr><p><a href="https://medium.com/introduction-to-knockout-js/what-is-knockout-js-b234f2177d54">What is Knockout.js?</a> was originally published in <a href="https://medium.com/introduction-to-knockout-js">Introduction to Knockout js</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>