<?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 Chandima Rathnayake on Medium]]></title>
        <description><![CDATA[Stories by Chandima Rathnayake on Medium]]></description>
        <link>https://medium.com/@chandimarathnayake?source=rss-7925975c6d2b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*U5dzz4KRrCEwUEGC</url>
            <title>Stories by Chandima Rathnayake on Medium</title>
            <link>https://medium.com/@chandimarathnayake?source=rss-7925975c6d2b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 14:42:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chandimarathnayake/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[Something About Application Frameworks Group Project…]]></title>
            <link>https://medium.com/@chandimarathnayake/something-about-application-frameworks-group-project-6ba1f2c1517b?source=rss-7925975c6d2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ba1f2c1517b</guid>
            <dc:creator><![CDATA[Chandima Rathnayake]]></dc:creator>
            <pubDate>Sun, 15 May 2022 12:36:53 GMT</pubDate>
            <atom:updated>2022-05-15T12:36:53.890Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/447/0*LQWUbWSjkFYvhmVc.jpg" /></figure><p><strong>Experiences with the Team</strong></p><p>Under the Application Framework module, we had a develop the Research Project Management Tool using the MERN stack. Our team had four members including me. So, our team members had the experience of developing web applications using the MERN stack because of that we had powerful confidence to start our project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cw5q7_M9HW1xEpdeBxnHrw.jpeg" /><figcaption>inside of project</figcaption></figure><p>Firstly, we gathered the requirements of the project. Then we prepared the Software Requirement Specification(SRS) document. After that, we divided the workflow amount the team members. Before starting the project, we created a git repository because in previous projects we had difficulties when we missed using the git in the beginning. So, we thought it is important to use git in the beginning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KbRyiHdm4zHtPrHEgKOLww.jpeg" /><figcaption>Github</figcaption></figure><p><strong>How did we communicate? 📢</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*0lqSTmuoR0qy_vwTFkUrmA.jpeg" /><figcaption>Comminication Media</figcaption></figure><p>We used Microsoft Teams and Whatsapp to communicate with teammates because we could not gather on the campus and do our studies and projects. We worked with the goals.</p><p>Firstly, we needed to implement the backend of our project. Then we set some goals and deadlines for that. Then we could finish developing the backend before the deadline. After that, we discussed how to design user interfaces with improving user experience. Then we skretched UIs. After that, we implemented our project frontend successfully.</p><p>Finally, doing this project, I got so many experiences. I could develop my communication skills, professional skills, and my technical skills. It added huge value to my career. So, I hope to use these gained skills in the future as a professional software engineer.</p><p>CHEERS ! 🖤🔥</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ba1f2c1517b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is The Node.js ?]]></title>
            <link>https://medium.com/@chandimarathnayake/what-is-the-node-js-39887e7c7d0a?source=rss-7925975c6d2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/39887e7c7d0a</guid>
            <dc:creator><![CDATA[Chandima Rathnayake]]></dc:creator>
            <pubDate>Sun, 15 May 2022 11:50:07 GMT</pubDate>
            <atom:updated>2022-05-15T11:50:07.044Z</atom:updated>
            <content:encoded><![CDATA[<h3>What Is The Node.js ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*UgQysP9JCoszFkwqeqTEbg.png" /></figure><p>Node.js is a cross-platform, open-source JavaScript runtime environment and library for running web applications outside of the client’s browser and it was developed by Ryan Dahl. It’s made with the JavaScript V8 Engine from Google Chrome. We can simply say that,</p><p>Node.js = Runtime Environment + JavaScript Library</p><p><strong>- Wikipedia</strong></p><p>“Node.js is primarily used for non-blocking, event-driven servers, due to its single-threaded nature. It is used for traditional websites but designed with real-time, push-based architecture in mind.”</p><p><strong>- Toptal</strong></p><p>“In brief, it is JavaScript-free and open-source, cross-platform server-side programming that allows users to build network applications quickly. It is an asynchronous and event-driven JavaScript runtime.”</p><p>Node.js is lightweight and efficient because to its event-driven, non-blocking I/O approach, which is ideal for data-intensive real-time applications. It also comes with a large library of JavaScript modules, which greatly facilitates the creation of web applications with it. Moreover, It is single threaded but highly scalable and very fast.</p><p><strong>Node.js Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*lxnVDFItQ0Qe_bX8hNbO_Q.png" /></figure><p>The “Single Threaded Event Loop” concept is used by Node.js. The Node.js Processing Model uses the JavaScript event-based model and the JavaScript callback mechanism. It is based on two key ideas which are an asynchronous model and non-blocking of I/O operations.</p><p><strong>Advantages of NodeJs</strong></p><p>1. Easy vertical and horizontal scalability.</p><p>2. Web applications that are real-time.</p><p>3. Single module caching.</p><p>4. Easy hosting.</p><p>5. Easy to learn.</p><p><strong>Getting started with NodeJs</strong></p><p><strong>1.</strong> <strong>Installing NodeJs</strong></p><p>Click the link below to the NodeJs web page to download the LTS or the Current version.</p><p><a href="https://nodejs.org/en/">https://nodejs.org/en/</a></p><p><strong>2.</strong> <strong>Check the version of the NodeJs that is installed on your machine.</strong></p><p>$node –version</p><p><strong>3. Run your node application</strong>.</p><p>$node &lt;file name&gt;</p><p><strong>4. Import inbuilt modules.</strong></p><p>For example, import os module.</p><p>const os = require(‘os’);</p><p>import os from ‘os’; (ES6)</p><p><strong>5. Install NPM.</strong></p><p>npm install</p><p><strong>6. Install a package from NPM</strong></p><p>For example, to install the Nodemon package.</p><p>npm install nodemon</p><p><strong>7. Import an installed package.</strong></p><p>For example, to import the Mongoose package.</p><p>const mongoose = require(‘mongoose’);</p><p>import mongoose from ‘mongoose’; (ES6)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*9WLVGhKVqx1j1IySXyNUhA.png" /><figcaption>Example of Node.js</figcaption></figure><p>Javascript is considered a truly full-stack language. Because of this, many developers and organizations prefer to build full-stack web applications using javascript. As a result, server-side frameworks like NodeJS are becoming increasingly popular. MERN stack and MEAN stack are some of the perfect examples of this. Therefore as a developer, it is essential to have a good understanding of NodeJS. This article will help you to make your first step in learning NodeJS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39887e7c7d0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do You Know About Koa.js ?]]></title>
            <link>https://medium.com/@chandimarathnayake/do-you-know-about-koa-js-4136fb41da42?source=rss-7925975c6d2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4136fb41da42</guid>
            <dc:creator><![CDATA[Chandima Rathnayake]]></dc:creator>
            <pubDate>Sun, 15 May 2022 11:46:13 GMT</pubDate>
            <atom:updated>2022-05-15T11:46:13.236Z</atom:updated>
            <content:encoded><![CDATA[<h3>Do You Know About Koa.js ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*PAZNuyU0zSQUWckP.png" /><figcaption>Koa.js</figcaption></figure><p>Koa.js is developed by the creators of the Express.js framework. Koa is a library that is minimalistic to the Node JS library and very similar to Express. If you are familiar with Express.js, then you can easily catch up on this. In this article, we are going to create a simple API(Application Programming Interface) project. To that, you have to have basic knowledge of JavaScript.</p><p>Kao provides a minimal interface for developing applications and APIs.</p><p><strong>Small Footprint</strong></p><p>Koa.js is designed as a lightweight and flexible framework for Node.js. Hence, it has a smaller footprint than other Node.js frameworks. While developing server side apps, many developers use Koa.js to write thinner and better middleware. However, they still have option to extend the framework according varying project requirements by plugging in a wide range of modules.</p><p><strong>Modern and Futuristic</strong></p><p>Unlike conventional Node.js frameworks, Koa.js is built based on ECMAScript 6 or ECMAScript 2015 specification. ECMAScript 2015 simplifies development of complex application by providing a number of new classes and modules. Koa.js also uses generators which are a part of ECMAScript 2015 specification. Hence, it helps developers to create applications that remain relevant over a longer period of time.</p><p><strong>Error Handling</strong></p><p>While writing web applications, programmers explore ways to identify and handle errors more efficiently. Koa.js both simplifies and improves error handling by using middleware more effectively. The built-in catchall for errors provided by the framework helps developers to prevent website crashes. The programmers can even use a simple ‘try/catch’ command to log errors without writing additional code. Koa.js even allows developers to customize error handling simply by changing the default setting.</p><p><strong>Cascading Middleware</strong></p><p>While using Node.js, programmers have to write additional code to streaming a file and closing the stream. But Koa.js helps programmers to avoid writing additional code by passing the file instead of streaming the file. A programmer can use the yield next command to yield requests downstream and send back responses upstream. He can further pass the streams manually according to his precise needs.</p><p><strong>Router Module</strong></p><p>Most web frameworks provide scripts, images, HTML pages, and other website resources through different routes. But the core module of Koa.js does not support routes. The web developers have to use Koa-router module to create multiple routes for various website resources. They can install the Koa-router module simply by running a command. The developers can even use the module to create both static and dynamic routes.</p><p><strong>HTTP Methods</strong></p><p>Koa.js identifies and understands the operation required by a client through HTTP methods like GET, POST, PUT and DELETE. Hence, the developers need to ensure that each request sent from the client includes the appropriate HTTP method. For instance, a request to retrieve data must contain the GET method, whereas a request sent to the server to accept enclosed data must include the POST method.</p><p><strong>Request Object</strong></p><p>Koa.js uses a request object developed on top of the vanilla request object provided by Node.js. But the request object uses by the framework accelerates HTTP server development by providing a number of additional functionality. The developers can even use the object to access various properties of a request — header, path, method and URL.</p><p><strong>Response Object</strong></p><p>The response object used by Koa.js is developed based on the vanilla response object provided by Node.js. But the Koa response object, like Koa request object, provides a number of additional functionality. The developers can even use the object to access important properties of a response — header, body, message and status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q3ZLPNu4pt-12IY2.png" /><figcaption>Typescript With Koa;</figcaption></figure><p><strong>Advantages of Koa</strong></p><p>1. Very small footprint, but easily can be extended.</p><p>2. Modernized syntaxes</p><p>3. Enhanced HTTP request, response</p><p>4. Fast and very efficient.</p><p>5. Simple to learn if the developer is familiar with Express JS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4136fb41da42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overlook Into JavaScript, Git and MongoDB…]]></title>
            <link>https://medium.com/@chandimarathnayake/overlook-into-javascript-git-and-mongodb-9fd6c9ca724a?source=rss-7925975c6d2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fd6c9ca724a</guid>
            <dc:creator><![CDATA[Chandima Rathnayake]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 09:53:32 GMT</pubDate>
            <atom:updated>2022-03-18T09:53:32.063Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we will look into JavaScript, Git, and MongoDB to get a basic knowledge to get a head start and point you in the right direction.</p><p><strong>JavaScript:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*Jlrb9HA5iICgF7kTYrqw5g.png" /></figure><p>JavaScript is a dynamic, asynchronous, multi paradigm programming language that’s used for a variety of purposes, including web development, web apps, and more. JavaScript scripts execute in a single thread by default. Even though there are mechanisms to create new threads, JavaScript is considered as a single threaded language. Due to non-blocking I/O feature which means the program while executing does not wait for input/output operations, JavaScript is an asynchronous language. Also, JavaScript supports both object-oriented programming and function-oriented programming as well making it a multi paradigm language.</p><p>JavaScript enables you to add dynamic features to web sites that you couldn’t do with just HTML and CSS. JavaScript is used by many browsers to perform dynamic web tasks. To mention a few features, you’ll experience the benefits of JavaScript whenever you see a click-to-show dropdown menu, extra content added to a page, or dynamically changing element colors on a website.</p><p>JavaScript conforms to the ECMAScript specification. The ECMAScript specification is a framework for developing scripting languages. That blueprint is used to implement JavaScript. Overall, JavaScript follows the ECMAScript specification as laid down in ECMA-262. However, there are a few major distinctions.</p><p><strong>Git:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*btudLsUNweU1dladSi_SjQ.png" /></figure><p>Before learning about Git, you should understand version controlling. Version control is the process that keeps track of changes to a file or set of files over time so that you can recall specific versions later. Version control systems (VCS) are software tools that aid software development teams in managing source code changes over time. Version control systems help software teams operate faster and smarter as development environments have accelerated. Version control systems allow you to compare files, identify differences, and merge the changes if needed prior to committing any code. When new developers join the team, they may use the version control system to easily download the latest version of the program to their local environment and keep track of the version they’re using. If you want to you can have separate independent code versions during development. When you’re ready, merge the files to make a final working version.</p><p>Git is the most widely used modern and also free version control system in the world today. That is because Git stands out from the other version control systems with its features. Git is a Distributed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*w7Tx9K__wE7cqviLRm1PuQ.png" /></figure><p>Version Control System which means every developer’s working copy of the code is also a repository that can contain the full</p><p>history of all changes unlike some other systems having a single place for the full version history.</p><p>Conceptually, most other systems store information as a list of file-based changes. These other systems think of the information they store as a set of files and the changes made to each file over time commonly known as <em>delta-based</em> version control. But Git thinks of its data more like a series of snapshots of a miniature filesystem. With Git, every time you commit, or save the state of your project, Git basically takes a picture of what all your files look like at that moment and stores a reference to that snapshot. This makes Git more like a mini filesystem with some incredibly powerful tools built on top of it, rather than simply a VCS.</p><p><strong>MongoDB:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*viyTUz7OJGq5RRYsbpiwyg.png" /></figure><p>MongoDB is a NoSQL database. NoSQL databases also known as “not only SQL” are non-tabular databases and store data differently than relational tables. NoSQL databases are classified according to their data model. Document, key-value, wide-column, and graph are the most common types. They have adaptable schemas and can handle big amounts of data and high user loads with ease. MongoDB is a document-based database. MongoDB <strong>stores data in JSON-like documents which means </strong>fields (like attributes in SQL) can vary from document to document and data structure can be changed over time. Also, the document model <strong>maps to the objects in your application code</strong>, making data easy to work with.</p><p>High availability, horizontal scaling, and geographic distribution are some advantages MongoDB has because of its distributed core. Also since MongoDB is a full cloud-based application platform it is compatible with every device.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fd6c9ca724a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The S.O.L.I.D principles for a Solid Software.]]></title>
            <link>https://medium.com/@chandimarathnayake/the-s-o-l-i-d-principles-for-a-solid-software-65befacfd034?source=rss-7925975c6d2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/65befacfd034</guid>
            <dc:creator><![CDATA[Chandima Rathnayake]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 09:35:21 GMT</pubDate>
            <atom:updated>2022-03-18T09:35:21.798Z</atom:updated>
            <content:encoded><![CDATA[<p>SOLID is the acronym for 5 design principles of object-oriented design which are commonly used by software engineers for over two decades now and still proves to be very important and beneficial for software design and development.</p><p>The SOLID principles were invented by Robert C. Martin in the year 2000 in his paper “Design Principles and Design Patterns”. Michael Feathers later built upon these concepts and introduced the acronym SOLID which is used today. Since the year 2000 to up until now SOLID has revolutionized object-oriented programming and will continue to help make astonishing end products.</p><p>As we all know, successful software products should constantly adapt to its environment as faced with newer requirements. Without following proper design principles software products might be unable to change and may become rigid, fragile, and viscous. This is the reason in mind what SOLID was built, to reduce dependencies so that developers would be able to change an area of the software without affecting others. In addition, SOLID encourages maintainable, scalable, easy to understand and flexible software products for developers.</p><p>Following are the five principles of SOLID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*u35m7yNyDQ5HykUjrWIbuA.png" /></figure><p><strong>1.Single Responsibility</strong></p><p>Single responsibility principle states that a class should only have one responsibility. In simple terms a class should solve one problem of the software only. This principle is used for designing and coding classes, software components, and microservices.</p><p>Following this principle brings many benefits and although it may look very basic.</p><p>1. Testing -</p><p>When it comes to testing classes that follow this principle will have fewer test cases and therefore will be easy to test and give more focus.</p><p>2. Lower coupling –</p><p>A class with single responsibility will have fewer functionality and therefore have less dependencies</p><p>3. Organization –</p><p>Classes with one responsibility will lead to a well-organized and easier to search software program for developers.</p><p><strong>2.Open-Closed</strong></p><p>This principle states that classes should be open for extension but closed for modification. The idea of this principle is to stop modifying an existing code in order to add something new, which may lead to potential new bugs in a system that is working perfectly. As it implies this principle does not mean not to modify a code to fix an already existing bug but to prevent new bugs from happening.</p><p>Without modifying a perfectly working class, extending it can avoid lot of problems. This will lead easy to maintain and revise code. Abstraction is used to apply this principle to a class. Commonly, the use of inheritance or interfaces that supports polymorphic substitutions is used for extending a class. Whatever methods used, applying this principle will prevent unnecessary bugs and will lead to maintainable code.</p><p><strong>3.Liskov Substitution</strong></p><p>Liskov substitution principle in simple terms means that every derived class should be substitutable for its parent class. This principle is built from the concept of behavioral subtyping introduced by Barbara Liskov hence the name Liskov substitution.</p><p>What this principle suggests is that if there are two classes named A and B, in which class B is a subclass of class A, class B must be able to replace class A without disrupting the behavior of the program. Which means that a child class should perform basic functionalities of the parent class, should not have unimplemented methods, or give different meaning to the methods that exist in the parent class after overriding.</p><p>By following this principle, the unexpected consequences of changes and having to open a closed class in order to make changes which violates the open-close principle can be avoided. This makes it easy to make necessary extensions of the software after deploying it.</p><p><strong>4.Interface Segregation</strong></p><p>This principle as the name suggests states that rather than having few larger interfaces it is better to split those interfaces into a lot of small interfaces. In the paper itself Martin says that “Make fine grained interfaces that are client specific. Clients should not be forced to implement interfaces they do not use.”</p><p>In a simpler view a client should not be burdened with all of the actions that a system have to offer but rather what only client intends the system to do. This can be achieved by grouping methods into different interfaces curated for different set of clients.</p><p>Accordingly, developers should build client specific interfaces rather than just using an existing interface to add methods. This principle helps to make the end product more user friendly for the end users and improves user experience as well since it makes it simple and easy to use.</p><p><strong>5.Dependency Inversion</strong></p><p>This principle states that high level modules should not depend upon low level modules but rather both should depend on abstractions. Also abstractions should not depend on details. Details should depend upon abstractions. This way decoupling of software modules is promoted which will make the software more flexible and easier to change.</p><p>One of the popular ways of complying with this among many more is through with the dependency inversion pattern. Whatever method chosen to implement this principle, its benefits are worthy as it helps to make the code more flexible, agile, and reusable.</p><p><strong>Conclusion</strong></p><p>Complying to SOLID design principles, as you can see will lead to a system that is scalable, testable, flexible, and maintainable. In this competitive industry, following these principles will make software products stand out and survive to give better service to the people. The extra time and work put into these principles will not be wasted as for over two decades developers using these principles to this date is the proof of that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65befacfd034" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>