<?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 Chethana Prasadi on Medium]]></title>
        <description><![CDATA[Stories by Chethana Prasadi on Medium]]></description>
        <link>https://medium.com/@chethanaprasadi2000?source=rss-4839af7b344f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_eJXdB1BRYO5Vv_-</url>
            <title>Stories by Chethana Prasadi on Medium</title>
            <link>https://medium.com/@chethanaprasadi2000?source=rss-4839af7b344f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:27:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chethanaprasadi2000/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[MongoDB]]></title>
            <link>https://medium.com/@chethanaprasadi2000/koa-js-3a628bf7b674?source=rss-4839af7b344f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a628bf7b674</guid>
            <dc:creator><![CDATA[Chethana Prasadi]]></dc:creator>
            <pubDate>Fri, 13 May 2022 18:37:26 GMT</pubDate>
            <atom:updated>2022-05-15T16:13:47.413Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3OWWgvICJ8GsoqP_.png" /></figure><h3>What ?</h3><p>So, what is the MongoDB, first let’s start with the name it comes from the English word. ‘Humongous’ which basically means that it can store lots of data. MongoDB is a document-oriented, No SQL database. MongoDB supports embedded document arrays and uses a single record to express complicated hierarchical connections. It is schema-free.</p><h3>Why ?</h3><p>You must be wondering when there is something like SQL why is No-SQL or MongoDB used. MongoDB is popular for a variety of reasons.</p><ol><li><strong>Flexibility</strong></li></ol><p>The MongoDB concept of documents, which may contain sub-documents nested in complicated hierarchies, is extremely expressive and versatile.</p><p><strong>2. Flexible Query Model</strong></p><p>A user can selectively index some part of a document or a query based on a attribute values regular expressions or ranges.</p><p><strong>3. Native Aggregation</strong></p><p>Native aggregation allows its users to extract and transform data from and either load them in a new format or export it from mongoDB to other data sources. It makes it extremely compatible.</p><p><strong>4. Schema-Free Model</strong></p><p>Applications gain the ability to interpret attributes in a variety of ways.</p><p>Now that you understand what mongoDB is and why it’s needed, you can go on to the next step.</p><h3>Characteristics of MongoDB</h3><ol><li><strong>General purpose database</strong></li></ol><p>mongoDB can server heterogeneous loads and multiple purposes within an application.</p><p><strong>2) Flexible Schema Design</strong></p><p>document-oriented approaches with non-defined attributes that can be modified on the fly is a key contrast between mongoDB and any other relational database.</p><p><strong>3) Scalability and Load balancing</strong></p><p>It is built to scale both vertically but most importantly horizontally using architect can share load between different instances and achieve both read and write scalability. When it comes to load balancing this comes automatically and transparently to the user by the shard balancer.</p><p><strong>4) Aggregation Framework</strong></p><p>MongoDB offers an extract transform and load framework that eliminates the need for complex data pipelines.</p><p><strong>5) Native Replication</strong></p><p>Data will get replicated across a replicate set without complicated setup</p><p><strong>6) Security Features</strong></p><p>Both authentication and authorization are takes into account in MongoDB</p><p><strong>7) JSON</strong></p><p>Json is widely used across web for frontend and API communication. And such it is easier when the database is also compatible with same protocol.</p><h3><strong>Working of MongoDB</strong></h3><p>Data is stored in documents with the help of key value pairs. Now the data is stored in the JSON format. At the backend mongoDB converts, JSON data into binary format knows as BSON. MongoDB also makes provision for nested data. Now all of these documents are stored in a collection. These collections hold multiple documents and since MongoDB is schema-free. A collection of documents does not have to be identical. MongoDB supports layered data, as described previously. In comparison to other databases, this makes data retrieval incredibly efficient.</p><h3>Applications of MongoDB</h3><p>Several areas of technologies MongoDB as their DBMS currently. Some of them are,</p><blockquote>Internet of Things — IOT</blockquote><blockquote>Mobile Applications</blockquote><blockquote>Real Time Analysis</blockquote><blockquote>Personalization</blockquote><blockquote>Catalog Management</blockquote><blockquote>Content Management.</blockquote><p>Companies using mongoDB are,</p><blockquote>TOYOTA</blockquote><blockquote>SAP</blockquote><blockquote>AstraZeneca</blockquote><blockquote>CISCO</blockquote><blockquote>Google</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a628bf7b674" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Node Js]]></title>
            <link>https://medium.com/@chethanaprasadi2000/node-js-9b72d48cedda?source=rss-4839af7b344f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b72d48cedda</guid>
            <dc:creator><![CDATA[Chethana Prasadi]]></dc:creator>
            <pubDate>Fri, 13 May 2022 18:36:17 GMT</pubDate>
            <atom:updated>2022-05-14T12:32:11.114Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*OZo8eb91Yv1L5O85.jpg" /></figure><h3>What is Node.js</h3><p>Node.js is an open source, cross platform Javascript runtime environment and library for running web applications outside the client’s browser. It is used for creating server-side web applications. Because of its asynchronous, event-driven approach, Node Js is ideal for data-intensive applications. In 2009, Ryan Dahl created Node js.</p><p>Node application are highly scalable and this is because of the non-blocking or asynchronous nature of the node. Asynchronous means, imagine you go to a restaurant the waiter come to your table and get your order. After waiter gives it to the kitchen, they move on to serve another table while the chef preparing your meal. So, the same person can server many different tables. They don’t have to wait to chef to cook one meal before they server another table. This is what we call non-blocking or asynchronous architecture. This is how node applications work.</p><h3>Why Node.js?</h3><blockquote>Node is really fast</blockquote><blockquote>Node package manager has over 50000 bundles for at the developer’s disposal. We can get it by npm install</blockquote><blockquote>Perfect for data intensive, real-time web applications as Node js never waits for an API to return data.</blockquote><blockquote>Better synchronization of code between server and client due to same code base</blockquote><blockquote>Easy for web developers to start using node js in their projects as it is a Javascript library.</blockquote><h3>NodeJs Components</h3><p><strong>1) Modules</strong></p><p>Modules are like Javascript libraries that can be used in a Node.js application to include a set of function. To include a module in a Node.js application, use require() function with the parenthesis containing the name of the module. • There are several modules in Node.js that offer fundamental functionality for a web application.</p><p>Eg: http, util, fs, url, stream</p><p><strong>2) Console</strong></p><p>Console is a module that provides a way to debug silimar to that of the Javascript console provided by the internet browsers. It prints messages to stdout and stderr.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*8Y6CSXilpQ80sFl9bK4_Pg.png" /></figure><p><strong>3) Streaming</strong></p><p>Streams are objects that allow you to continually read or write data.</p><blockquote>* Readable</blockquote><blockquote>* Writable</blockquote><blockquote>* Duplex</blockquote><blockquote>* Transform</blockquote><p><strong>4) Buffer</strong></p><p>Buffer is a module that allows handling that contain only binary data. An empty buffer of length ‘10’ can be created by this method</p><p><strong>5) Domain</strong></p><p>Domain module intercepts errors that remain unhandled. There are two methods foe intercepting</p><blockquote>* Internal Binding</blockquote><blockquote>* External Binding</blockquote><p><strong>6) DNS</strong></p><p>DNS module is used to connect to a DNS server and perform name resolution. DNS module can also be used for performing name resolution without a network communication.</p><p><strong>7) Debugger</strong></p><p>Node.js includes a debugging client that can be accessed by a built-in debugging client. Node.js debugger is not feature-packed, but supports simple inspection of code.</p><h3>Node.js Framework</h3><p><strong>Express</strong></p><p>·Express is a flexible Node.js web application framework which provides a wide set of features to develop both web and mobile applications. You can assume express as a layer built on top of the node.js that helps manage the server and the routes. Now let’s have quick look at some of the core features of express framework</p><blockquote>It’s suitable for single-page, multi-page, and hybrid web applications.</blockquote><blockquote>It enables middlewares to reply to HTTP requests to be configured.</blockquote><blockquote>It defines a routing table which is used to perform different actions based on HTTP method and URL</blockquote><blockquote>It also allows to dynamically render HTML pages based on passing arguments to templates.</blockquote><h3>Node Usecases</h3><p>It is no doubt that node stands out for its spped and intensive data exchange so top industry leaders like NASA, PayPal, Netflix, Uber among others incorporate node.js. Even this platoform Medium is also example for that. The reasons why medium chose to use node.js were,</p><blockquote>Data-driven applications</blockquote><blockquote>Run A/B tests</blockquote><blockquote>Simple server maintenance</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b72d48cedda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Js]]></title>
            <link>https://medium.com/@chethanaprasadi2000/react-js-9ad445f7de37?source=rss-4839af7b344f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ad445f7de37</guid>
            <dc:creator><![CDATA[Chethana Prasadi]]></dc:creator>
            <pubDate>Fri, 13 May 2022 18:28:03 GMT</pubDate>
            <atom:updated>2022-05-13T18:28:03.279Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*0RX1KrwBYr9egX99ZEhftQ.jpeg" /></figure><h3>What is React ?</h3><p>React.js is a Javascript library that allows you to create interactive and fast user interfaces. It was created by Facebook in 2011 and is now the most widely used Javascript library for creating user interfaces. According to the google trend, react is dominating the space of libraries and frameworks for building user interfaces. When creating react apps, we create a collection of discrete and reusable components, which we then combine to create complicated user interfaces. Every react application has at least one component which refer to as the root component. This component contains other child components and represents the internal application. As a result, every react application is effectively a component tree.</p><h3>Why people Choose React?</h3><blockquote><em>· Easy creation of dynamic web applications</em></blockquote><blockquote><em>· Performance enhancements</em></blockquote><blockquote><em>· Reusable components</em></blockquote><blockquote><em>· Unidirectional data flow</em></blockquote><blockquote><em>· Small learning curve</em></blockquote><blockquote><em>· Can be used for mobile apps</em></blockquote><blockquote><em>· Dedicated tools for easy debugging</em></blockquote><h3>Features of React</h3><p>01) JSX — Javascript Syntax Extension</p><p>It’s used with react to indicate how the user interface should appear. JSX allows you to write HTML structures with Javascript code in the same file. JSX helps in making the code easier to understand and debug. JSX is a combination of JS and HTML</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*IPfX-lAHLYpV9vzEwMbrWw.png" /><figcaption>JSX = JS + HTML</figcaption></figure><p>02) Virtual DOM — Document Object Model</p><p>It treats an XML or HTML document as a tree structure in which each node is an object representing a part of the document.</p><p>03) Performance</p><p>04) One-way data flow</p><p>It is keeps everything modular and fast.</p><p>05) Extensions</p><p>React has many extensions. React offers various extensions for entire application architectural support, in addition to basic UI. It provides server-side rendering. Supports mobile app development</p><p>Eg: React Native, Flux</p><p>06) Debugging</p><p>Because of the wide developer community, React apps are extremely easy to test. Facebook even offers a little browser plugin that speeds up and simplifies react debugging.</p><h3>Components, State &amp; Props</h3><p>Components are the building blocks of any react application, and a single app usually consists of multiple components. A component essentially a piece of the user interface. It is like a function that returns HTML elements</p><p>1) Props</p><p>Props are short for properties, that allow us to pass argument or data to components. Props are passed to components in the way similar to that of HTML-tag attributes.</p><p>2) State</p><p>State is the data that we want the component to render. Render method is responsible for how the user interface looks and feels to the user.</p><p>3) Component</p><p>Component Is implemented as a Javascript class having some state and a render method.</p><h3>Hooks</h3><p>1) useState</p><p>it is most important and often use hook. It is automatically import in react when you type the useState. This hook allows us to track state in a function component. It accepts an initial state and returns two values. There are current state and a function that updates the state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*JtQKG6hOKySPcku61QNqzA.png" /><figcaption>useState</figcaption></figure><p>First, we must import the useState. According to the above example user is our current state and setInputs is the function that is used to update our state. These names are variables. You can name anything you would like. This is my assignment user registration’s component.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ad445f7de37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript and Version Controlling…]]></title>
            <link>https://medium.com/@chethanaprasadi2000/javascript-and-version-controlling-31d60e40888f?source=rss-4839af7b344f------2</link>
            <guid isPermaLink="false">https://medium.com/p/31d60e40888f</guid>
            <dc:creator><![CDATA[Chethana Prasadi]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 14:21:22 GMT</pubDate>
            <atom:updated>2022-05-13T18:32:32.772Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/785/0*ESoDh_jZ2jsK-ahn.png" /></figure><h3>Prototypes</h3><p>· Almost every object is linked to another object. That linked object is called as a <strong>prototype</strong>. Objects inherit properties and methods from its prototype ancestry. A prototype is automatically assigned to an object. You can define an object prototype.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*9Rbqqiq9W_nh0BEZQXQl3g.png" /><figcaption>1. Idea of Prototype</figcaption></figure><p>In here we have an object called student1. It has some properties like studentName, age, school and fullName. (as a function) There is a default property assigned to this object. Basically, it is a link to another object. So, if we follow the link, we can see another object that have properties and methods assigned to it as well. It can have another link to another object. So, this is called prototype chain. You can continue out the prototype chain until you get to the top most object.</p><p>Now if in your code we were to refer to student1.lastName what would happen if the JavaScript engine would first look on this student1 object we’ve defined. It would look for a property of lastName but if it can’t find, then follow the prototype link to the next object for a property of lastName. If it finds there it returns if. If not, they continue up to the prototype chain. But if not found then they return it as a undefined.</p><p>Now we consider about this in console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*8zQNK6GhCF1SQk7s9TohLA.png" /><figcaption>2. example for how prototype working</figcaption></figure><p>if we wrote ‘var obj = {};’ code in console it gave us output as undefined. Because we didn’t give any value for obj. but if we write it ‘obj .toString();’ as this, we have above output.</p><p>Are you think why we get that? So, If you open up that prototype arrow, we can see there’s a number of methods that are associated with the default object, that is assigned is the prototype and one of those is toString(). That’s what we able to enter obj.toString() because it exists on the prototype.</p><h3>‘This’ Keyword</h3><p>This means the object that is executing the current function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*56dmYHLFV9znFQDQwyvcaQ.png" /><figcaption>3. example for ‘this’ keyword</figcaption></figure><p>Because eat is a method in the person object this references this object itself by the same token we can add a method later in this object and we’ll get the same result.</p><h3>Closure</h3><p>A closure is the combination of a function bundled together (enclosed) with references to its surrounding state. (the lexical environment)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*Ph094s0nmxjnwZrN7zDGww.png" /><figcaption>4. example for closure</figcaption></figure><p>It’s returning displayname function. Inside that function there is no name but because of closures this function that’s being returned and run in myFunc(); has access to the environment with var variable. Which means it had access to this ‘closure’ name variable. So that is basically what closure is.</p><h3>JavaScript Promises</h3><h4>Synchronous Promise</h4><p>In Synchronous Promise, tasks are completed one after another. Think if you have 5 tasks. So, you have to complete one task at a time. Therefore, if 2nd task stopped, you can’t start 3rd task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*IzlBerCPpoMo_IlXZpV27A.png" /><figcaption>5. example for synchronous Promise</figcaption></figure><p>According to above example you can see the code execute one line after another.</p><h4>Asynchronous Promise</h4><p>In Asynchronous Promise, tasks are completed independently. Think if you have 5 tasks. So, you have to complete all the task independently and at the same time. Therefore if 2nd task stopped, no need to worry, other tasks will be completed. Because they’re independent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*nIGuipheMAegLuf7Dh9xlQ.png" /><figcaption>6. example for asynchronous Promise</figcaption></figure><p>According to above example you can see the code execute independently.</p><h3>Version Controlling</h3><p>Version control, also known as source control, is the practice of tracking and managing changes to software code.</p><h4>Git</h4><p>Git is a version control software. Whenever you change the contents of Git while working on Git, Git stores it correctly. The uniqueness here is that you can work with any number of people at once, no matter which way you use it, without any hassle.</p><h4>Repositories</h4><p>Git stores data in a database called a repository. You can create a repository in your cPanel account or copy an existing repository (Git, “clone”). The Git version control feature supports both options. When using Git, your project may have one store or it may have a more complex structure.</p><h4>Branches</h4><p>Branches separate development lines by changing “branching” from the history of the main task. Git is flexible enough for how you use branches so you can manage them, but it works best for your team. Each could have its own branch, or each could work on the same task-specific branches.</p><h4>Commit</h4><p>Once you have made changes, you can send them up to the main repository so that everyone can access them. To do this, you need a commitment. It promises to package your changes with author information and other change history. When you make changes, you also create a promise message to send with them. (Good Git Promise Messages makes it very useful. There are some great instructions for writing good promise messages.) When you have everything, you send (in Git, “push”) your changes to the main repository.</p><p><strong>Git advantages</strong></p><blockquote>· Branching capabilities and merging are easy.</blockquote><blockquote>· It is free and open source.</blockquote><blockquote>· We can easily download source code and modify it.</blockquote><blockquote>· It can handle any large project.</blockquote><blockquote>· It prevents duplicating data.</blockquote><p><strong>Git disadvantages</strong></p><blockquote>· Sometimes it is slower on windows</blockquote><blockquote>· They need multiple branches to support parallel developments used by the developers.</blockquote><blockquote>· It doesn’t track empty folders</blockquote><h3><strong>NoSQL</strong></h3><p>NoSQL means any non-relational databases which is databases that store data in a format other than relational tables.</p><p>Types of NoSQL databases</p><blockquote>· Document Databases</blockquote><blockquote>· Key-Value Databases</blockquote><blockquote>· Column-Oriented Database</blockquote><blockquote>·Graph databases</blockquote><p><strong>NoSQL advantages</strong></p><blockquote>· Evolving Data Model</blockquote><blockquote>· Flexible Data Model</blockquote><blockquote>· Elastic Scalability</blockquote><blockquote>· Open Source</blockquote><blockquote>· High Performance</blockquote><p><strong>NoSQL disadvantages</strong></p><blockquote>· Consistency</blockquote><blockquote>· Lack of Standardization</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31d60e40888f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Principles and JavaScript . . .]]></title>
            <link>https://medium.com/@chethanaprasadi2000/principles-and-javascript-1b4a6fed6afa?source=rss-4839af7b344f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b4a6fed6afa</guid>
            <category><![CDATA[principles]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Chethana Prasadi]]></dc:creator>
            <pubDate>Sat, 26 Feb 2022 15:55:28 GMT</pubDate>
            <atom:updated>2022-05-13T18:33:40.740Z</atom:updated>
            <content:encoded><![CDATA[<h3>SOLID Principles. . .</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HW34x0dGT1wkkTUR.png" /></figure><h3><strong><em>Principles</em></strong></h3><p>If you’re work with Object Oriented Programming, then you should definitely hear about the SOLID principles.</p><p>If you didn’t, don’t worry… hear is the five SOLID principles that should be followed when designing a software.</p><blockquote>· <strong>S → </strong>Single Responsibility</blockquote><blockquote>· <strong>O</strong> <strong>→ </strong>Open-close</blockquote><blockquote>· <strong>L</strong> <strong>→</strong> Liskov Substitution</blockquote><blockquote>· <strong>I →</strong> Interface Segregation</blockquote><blockquote>· <strong>D</strong> <strong>→</strong> Dependency Inversion</blockquote><p>Now, let’s start learning from the beginning.</p><p>(1) <strong>S</strong> — Single Responsibility</p><p>If a class has too much responsibilities, it also increases the number of possible bugs. Because sometimes making changes of one of the responsibilities, could affect to the other responsibilities even without your knowing.</p><p>So, in this principle aim is to divide behaviors. Then if one responsibility has occurred bugs. It doesn’t affect to the other responsibilities.</p><p>As an example, think about the machine who can do multiple tasks, such as cleaning, painting, gardening. So, if the machine’s cleaning main part is broken sometimes it would be affected to the painting also. But according to this principle, if we have different machines to painting, cleaning and gardening, we don’t have to worry about broken part, the cleaning machine is didn’t work but we can still use other two machines.</p><p>(2)<strong> O</strong> <strong>→ </strong>Open-close</p><p>If you want a change the whole class completely, it will affect all the system using that class and it violates the above principle.</p><p>So, in this principle aim is improve class’s behavior without changing the current behavior of that class. In that case we can avoid causing bugs.</p><p>As an example, think about machine who can cook. If we change whole machine’s cooking activity as a paint activity, it is not success and practical thing. It can occur bugs also. So according to this principle, we should not close for modification and open for extension. That means we should extend machine’s ability as the machine can both cook and paint.</p><p>(3)<strong> L</strong> <strong>→ </strong>Liskov Substitution</p><p>If child class cannot do the parent class actions, it will also cause bugs. Because the child class should be able to do the same thing as parent class. That process you should already know. That is ‘Inheritance’.</p><p>So, in this principle aim is child class should be able to delivers same result as parent class or results that is in the same type.</p><p>As an example, think about fish shop who sell the fishes to the customers. In there, parent class is fish. If the child class will give us to the ‘Gold fish’, it is okay, because Gold fish is the specific type of fish. But instead of golf fish if they give us to the ‘rabbit’, it is not acceptable, because rabbit is not a specific type of fish.</p><p>(4)<strong> I → </strong>Interface Segregation</p><p>If the class is required to do actions, that are not useful, it is kind of a waste and sometimes if can occurs a bug because class doesn’t have ability to do those actions.</p><p>So, in this principle aim is divide actions into the smaller sets, so that class executes only set of actions it requires.</p><p>As an example, think about class of children. Different kinds of children are there like Sinhalese, Tamil. So, if we’ll give instructions in Sinhala, some of the students can’t understand and they can’t follow our instructions. Therefore, we’ll give instructions in Sinhala &amp; Tamil. Then they can follow our instructions correctly.</p><p>(5)<strong> D</strong> <strong>→ </strong>Dependency Inversion</p><p>It means we shouldn’t implement the class with their tools, it used to execute an action. Rather, it should be implemented with the interface that will allow the tool to connect the class.</p><p>So, in this principle aim is reducing the dependency of a high-level Class on the low-level Class by introducing an interface.</p><p>As an example, think about person who make omelets. If he can only make omelets with pan. He is failed. According to the principle the person should have make omelets with any pot he can have in his kitchen.</p><p><strong>Approaching the Solutions</strong></p><p>· In the software engineering, we try to find technical solutions for problems. Therefore, we can get best solutions if we follow these steps.</p><p>* Think Throughout the Problem</p><p>* Divide and Conquer.</p><p>* Keep it Simple and Stupid (KISS)</p><p>* Learn specially from mistakes</p><p>Now we consider about these steps.</p><p>· First of all, you need to understand the problem clearly. If you have any unclear point you must clear it. Don’t be afraid to ask questions. That is ‘Think Throughout the Problem’.</p><p>· After understand the problem, in here we should divide problem into the smaller parts to identify easily and clear understandable. That is called ‘Divide and Conquer’.</p><p>· After that we always try not overthink about problem. Sometimes is could be complex because of our overthink. That is ‘Keep it Simple and Stupid’.</p><p>· Don’t be worry if you found about mistakes. Always try to anticipate changes. Learn from it. That is ‘Learn specially from mistakes’.</p><p><strong>Implement the Solutions</strong></p><p>When you are implementing the solutions there is guidelines to keep in mind.</p><p>· YAGNI</p><p>* this stands for ‘You aren’t gonna need it’. It means that we should not implement functionality just because we think that sometimes you might want it. But actually, you don’t need it. So, implement it when you actually need it. Then you can save your time also.</p><p>· DRY</p><ul><li>This stands for ‘Don’t repeat yourself’. It means sometimes you may have different code that does same action. And sometimes you have two codes in different place but they do the same thing in different ways. This should be avoided. Always we’ll try to reuse the code.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b4a6fed6afa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>