<?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 Ishan Hansaka Silva on Medium]]></title>
        <description><![CDATA[Stories by Ishan Hansaka Silva on Medium]]></description>
        <link>https://medium.com/@ishanhansakasilva?source=rss-23dfcdea1614------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*e-sCoJcFEYTG9qSEzuAvVA.png</url>
            <title>Stories by Ishan Hansaka Silva on Medium</title>
            <link>https://medium.com/@ishanhansakasilva?source=rss-23dfcdea1614------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 12:02:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ishanhansakasilva/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[Didn’t Plan to Build a Product — Just Wanted to Fix a Problem]]></title>
            <link>https://medium.com/linkit-intecs/didnt-plan-to-build-a-product-just-wanted-to-fix-a-problem-bf2f379ee462?source=rss-23dfcdea1614------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf2f379ee462</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[gpa-calculator]]></category>
            <category><![CDATA[student-life]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Ishan Hansaka Silva]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 16:31:15 GMT</pubDate>
            <atom:updated>2025-12-28T14:35:36.295Z</atom:updated>
            <content:encoded><![CDATA[<h3>Didn’t Plan to Build a Product - Just Wanted to Fix a Problem</h3><h4>The story behind a GPA calculator that became an academic planner</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4RUnN3jMbiVmxsRnCADrYw.png" /><figcaption>Image from GenAI</figcaption></figure><p>Every meaningful project starts with a problem.<br>Mine started with a <strong>spreadsheet</strong>.</p><p>At the Faculty of Information Technology, University of Moratuwa, we used a GPA calculation spreadsheet to track our academic performance. It worked, but only just.</p><p>You had to download it.<br>You had to manually update it.<br>It wasn’t aligned with the <strong>new curriculum</strong>.</p><p>There was another option: the university LMS. It shows official results and semester GPAs. But it doesn’t let you <strong>calculate your overall GPA</strong>, and more importantly, it doesn’t let you <strong>plan your future</strong>.</p><p>You can’t play with results.<br>You can’t simulate outcomes.<br>You can’t ask “What if I improve this module?”</p><p>And that’s where the real problem was.</p><h3>I Didn’t Want Just a GPA Calculator</h3><p>Before exams, almost every student asks the same questions:</p><ul><li>“If I get and B- here, can I still get a First Class?”</li><li>“What happens if this semester goes bad?”</li><li>“How much do I need next semester to recover my GPA?”</li></ul><p>None of the existing tools answered those questions properly.</p><p>So I thought:</p><blockquote>What if GPA calculation wasn’t the end goal, but the starting point?</blockquote><p>That idea changed everything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WfcFpb6Hl1GuJrexRZlW4Q.png" /><figcaption>Image from <a href="https://fit-gpa-calculator.vercel.app/">FIT GPA Calculator</a></figcaption></figure><h3>The First Version: A Simple Web Tool</h3><p>I decided to build a <strong>web-based solution</strong>.</p><p>The goal were simple:</p><ul><li>Fully web based</li><li>No downloads</li><li>Data saved, so when you come back, your progress is still there</li><li>Flexible enough to plan future semesters</li></ul><p>I wasn’t confident in UI design, so I took inspiration from another GPA calculator. It fit my solution properly. I reused the idea, adapted it for FIT grading criteria, and clearly gave credit to the original creators, because learning from others is how we grow.</p><p>That’s how the <strong>first release</strong> went live.</p><p>And the response?<br>Better than I expected.</p><h3>Feedback Changed Everything</h3><p>Once student actually started using it, the real feedback came.</p><p>A lot of them said the same thing:</p><blockquote>“Typing, module names and credits every semester is tiring.”</blockquote><p>They were correct.</p><p>Even though the tool worked, the <strong>manual effort</strong> reduced engagement. And that’s when I learned an important lesson:</p><blockquote>A solution doesn’t end at “it works”.<br>It ends at “people enjoy using it”.</blockquote><h3>Second Release: From Calculator to Platform</h3><p>Instead of making users type everything, I introduced templates:</p><ul><li>Select your degree (IT, ITM, AI)</li><li>Choose level and semester</li><li>Compulsory modules and credits <strong>auto-populate</strong></li></ul><p>One decision removed the biggest pain point. Then come something even better.</p><p>With support from <strong>Minul Chathumal</strong>, we added:</p><ul><li>PDF export for GPA reports</li><li>A cleaner, more structured output students could actually use</li></ul><p>Minul didn’t just help with the PDF, he supported the idea that led to automation. Because of that, he became the <strong>first contributor </strong>to the project.</p><p>That moment was special.</p><p>The project was no longer <em>just mine</em>.</p><h3>What This Project Really Taught Me</h3><p>This GPA Calculator is small. It won’t change the world. It won’t go viral globally. But it solves a real problem for real students. And that’s the point.</p><p>Too many people wait for a big idea:</p><ul><li>“This isn’t impactful enough”</li><li>“This is too small”</li><li>“Who will even use this?”</li></ul><p>But every meaningful solution starts locally.</p><blockquote>Solve your own problem first. Then scale.</blockquote><p>That’s how real products are born.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0AXQujVkyc44EjPmwh4jYg.png" /><figcaption>Image from GenAI</figcaption></figure><h3>Don’t Think Big First, Start Real</h3><p>If you want to do something to the community, don’t start with “How do I change the world?”</p><p>Start with:</p><ul><li>“What frustrates me daily?”</li><li>“What problem do my friends complain about?”</li><li>“What small thing can I improve?”</li></ul><p>This GPA calculator began as a <strong>personal pain point</strong>.<br>Now it helps hundreds of students <strong>plan their academic journey</strong>.</p><h3>What’s Next?</h3><p>This project is:</p><ul><li>Open source</li><li>Heading toward PWA support</li><li>Ready to expand beyond FIT</li></ul><p>If you’re a FIT undergraduate, I hope this tool helps you plan your academic journey a little better.</p><p><strong>Live Website:</strong> <a href="https://fit-gpa-calculator.vercel.app/">https://fit-gpa-calculator.vercel.app</a><br><strong>GitHub Repository:</strong> <a href="https://github.com/IshanHansaka/fit-gpa-calculator">https://github.com/IshanHansaka/fit-gpa-calculator</a></p><p>If you have ideas, feedback, or want to contribute, feel free to reach out. This project is still growing.</p><p>Anyone who wants to contribute, you’re welcome!</p><p>If this story inspires even one person to build something — even something small — then this project has already succeeded.</p><blockquote>Start small. Start now. Scale later.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf2f379ee462" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linkit-intecs/didnt-plan-to-build-a-product-just-wanted-to-fix-a-problem-bf2f379ee462">Didn’t Plan to Build a Product — Just Wanted to Fix a Problem</a> was originally published in <a href="https://medium.com/linkit-intecs">LinkIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Commit Like a Pro: Master Git with Conventional Commits]]></title>
            <link>https://medium.com/linkit-intecs/commit-like-amaster-git-with-conventional-commits-c497efe8bb62?source=rss-23dfcdea1614------2</link>
            <guid isPermaLink="false">https://medium.com/p/c497efe8bb62</guid>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[conventional-commits]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Ishan Hansaka Silva]]></dc:creator>
            <pubDate>Sat, 08 Feb 2025 09:13:11 GMT</pubDate>
            <atom:updated>2025-02-08T10:02:13.799Z</atom:updated>
            <content:encoded><![CDATA[<h4>Improve Your Git Commits by Using Conventional Commits to Adopt Industry Best Practices for Clear, Consistent, and Efficient Version Control.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lp1NA7rrRqLVWqj7Ch5VBA.png" /><figcaption>photo by <a href="https://www.conventionalcommits.org/en/v1.0.0/">conventionalcommits.org</a></figcaption></figure><p>Have you ever looked at a Git commit history and struggled to understand what changes were made? Take a look at this example commit history:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7XXzN6daPi9HGrm0PJ_c8Q.png" /><figcaption>photo by <a href="https://medium.com/@ishanhansakasilva">author</a></figcaption></figure><p>Messy Git commits make it hard to understand what changes were made, especially when messages like <em>“update”</em> or <em>“fixing bugs”</em> don’t explain anything. This makes finding and fixing bugs more difficult because there’s no clear record of when a problem started. It also creates confusion for team members, slowing down work since no one knows what each commit actually does.</p><h3>The Solution? Conventional Commits!</h3><p>By adopting <strong>Conventional Commits</strong>, you can transform this commit history into a <strong>well-structured and readable</strong> one. Instead of messages, use clear and meaningful commit types, like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bj9ZIXFA6gaiqr3Xm6ok-A.png" /><figcaption>photo by <a href="https://medium.com/@ishanhansakasilva">author</a></figcaption></figure><p>With this approach, <strong>every commit has a purpose</strong> and can be easily understood! Would you like to see how to rewrite messy commits into Conventional Commits step by step?</p><h3>What Are Conventional Commits?</h3><p>Conventional Commits are a standardized way to write commit messages. They follow a specific format to make commits more readable and meaningful. A commit message typically follows this structure:</p><pre>&lt;type&gt;[optional scope]: &lt;description&gt;<br><br>[optional body]<br><br>[optional footer(s)]</pre><p>Each commit consists of three parts:</p><ol><li><strong>Type</strong> — Describes the category of the change (e.g., feat, fix, chore, docs).</li><li><strong>Scope</strong> (Optional) — Indicates the specific module or component affected.</li><li><strong>Message</strong> — Provides a brief description of the change.</li></ol><p><strong><em>Example:</em></strong></p><pre>feat(auth): add login functionality<br>fix: resolve button alignment issue<br>chore: update dependencies</pre><h3>Here are some commonly used commit types:</h3><ul><li><strong>feat</strong> — Introduces a new feature</li></ul><p>feat: add dark mode support</p><ul><li><strong>fix</strong> — Fixes a bug</li></ul><p>fix: resolve crash on login</p><ul><li><strong>chore</strong> — Maintains the codebase without modifying production code</li></ul><p>chore: delete unused assets and images</p><ul><li><strong>docs</strong> — Updates documentation</li></ul><p>docs: add API usage guide</p><ul><li><strong>refactor</strong> — Improves code structure without changing functionality</li></ul><p>refactor: optimize sorting algorithm</p><ul><li><strong>test</strong> — Adds or updates tests</li></ul><p>test: add unit tests for auth module</p><ul><li><strong>style</strong> — Updates formatting, indentation, or whitespace</li></ul><p>style: update button color</p><ul><li><strong>perf</strong> — Improves performance</li></ul><p>perf: reduce image load time</p><ul><li><strong>build</strong>: Changes that affect the build system or external dependencies</li></ul><p>build: update Webpack config to support ES6 modules</p><ul><li><strong>ci</strong>: Changes to CI configuration files and scripts</li></ul><p>ci: add GitHub Actions workflow for automated testing</p><h3>How to Use Conventional Commits</h3><p>When making a commit, follow this structure:</p><pre>git add &lt;changed_file_path&gt;<br>git commit -m &quot;feat: add animation for modal&quot;</pre><h3>Why Use Conventional Commits?</h3><ul><li><strong>Clearer Commit History</strong> — By following a structured format, developers can easily understand what each commit does.</li><li><strong>Better Collaboration</strong> — Team members can quickly identify changes and their impact.</li><li><strong>Automated Releases </strong>— Many tools like Semantic Release can automate versioning based on commit types.</li><li><strong>Improved Documentation </strong>— Changelogs become more readable and can be auto-generated.</li></ul><h3>Summary</h3><p>By adopting Conventional Commits, you ensure that your commit history remains clean, structured, and useful. Whether you work solo or in a team, these guidelines help in tracking changes, debugging issues, and automating workflows efficiently.</p><p>Start committing like a pro today!</p><p>Do you already follow Conventional Commits? Share your experience in the comments!</p><h4>Read More</h4><ul><li><a href="https://www.conventionalcommits.org/en/v1.0.0/">conventionalcommits.org</a></li><li><a href="https://gist.github.com/qoomon/5dfcdf8eec66a051ecd85625518cfd13">qoomon/conventional-commits-cheatsheet.md</a></li><li><a href="https://kapeli.com/cheat_sheets/Conventional_Commits.docset/Contents/Resources/Documents/index">kapeli.com/cheat_sheets/Conventional_Commits.docset</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c497efe8bb62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linkit-intecs/commit-like-amaster-git-with-conventional-commits-c497efe8bb62">Commit Like a Pro: Master Git with Conventional Commits</a> was originally published in <a href="https://medium.com/linkit-intecs">LinkIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Express App with Firestore and Deploy on Choreo]]></title>
            <link>https://medium.com/linkit-intecs/build-express-app-with-firebase-and-deploy-on-choreo-07152f2423ba?source=rss-23dfcdea1614------2</link>
            <guid isPermaLink="false">https://medium.com/p/07152f2423ba</guid>
            <category><![CDATA[choreo]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[firestore]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Ishan Hansaka Silva]]></dc:creator>
            <pubDate>Sun, 30 Jun 2024 05:41:47 GMT</pubDate>
            <atom:updated>2025-02-08T09:24:11.379Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Step-by-Step Guide to Integrating a Database and Deploying to the Choreo Platform.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aOgoJr0A1kCtdEwprixOtg.png" /><figcaption>photo by <a href="https://wso2.com/br/choreo/">wso2/choreo</a></figcaption></figure><p>In this blog post, we will walk through the process of creating a server that integrates with a simple database to store your project details, and then deploy it to the Choreo platform. We will use Express.js for the server and Cloud Firestore for the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*UgMyRGjRDPVKUFE6m0QwSg.png" /><figcaption>Photo by ikramkharbouch on <a href="https://dev.to/ikramkharbouch/how-to-create-and-connect-to-a-firestore-database-in-an-express-app--4j84">dev.to</a></figcaption></figure><h4><em>Overview of Technologies</em></h4><p>Express.js, a minimal and flexible Node.js framework, streamlines the creation of server-side applications with its robust set of features and middleware support. Coupled with Cloud Firestore, a NoSQL document database from Firebase. Choreo offering seamless API management, event streaming, and microservices integration. This intuitive platform, developed by WSO2, a leading software company in Sri Lanka, simplifies the deployment and management of your applications, making it easier than ever to build and scale your projects.</p><h4><strong>Setting Up the Project</strong></h4><p>Before we dive into the code, make sure you have the following installed:</p><ul><li>install <a href="https://nodejs.org/">Node.js </a>and npm to your device</li><li><a href="https://firebase.google.com/">Firebase</a> account (sign up at Firebase)</li><li>A <a href="https://choreo.dev/">Choreo</a> account (sign up at Choreo)</li><li>A <a href="https://github.com/">Github</a> account</li></ul><p><strong>In this tutorial, we will cover the following main steps:</strong></p><ol><li>Set Up Express.js</li><li>Initialize Firebase Admin SDK</li><li>Add Routes for Firebase GET and POST Operations</li><li>Deploy on Choreo</li></ol><h3>Step 01: Set Up Express.js</h3><ul><li><strong>Initialize Your Project</strong></li></ul><p>First, create a new directory for your project. Open your terminal or command prompt and navigate to the directory where you want to create your project. Then, run the following command:</p><pre>npm init -y</pre><ul><li><strong>Install Express</strong></li></ul><p>To install Express, use npm. This command installs Express to your project.</p><pre>npm install express</pre><ul><li><strong>Create Express App</strong></li></ul><p>Create a new file for your Express application, for example, app.js or index.js in the root directory of your project. Require Express and create an instance of the app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8P5bL6mvU2P6c1JEiuUs0g.png" /></figure><h3>Step 02: Initialize Firebase Admin SDK</h3><ul><li><strong>Set Up Firebase Project:</strong></li></ul><p>Go to the <a href="https://console.firebase.google.com/">Firebase Console</a>, create a new project, and add a web app. For additional knowledge and detailed setup instructions, please visit the official Firebase documentation on setting up Firebase for web apps: <a href="https://firebase.google.com/docs/web/setup">Firebase Web Setup Guide</a>.</p><ul><li><strong>Generate Service Account Key</strong>:</li></ul><p>go to project settings in the Firebase Console, navigate to “Service accounts” and click “Generate new private key”. This action creates a JSON key file essential for securely authenticating your application with Firebase services. Download and securely store this file in your project directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e_p4HtZ-BtG1D2FUGAS1Nw.jpeg" /><figcaption>photo by Author</figcaption></figure><ul><li><strong>Setup Firebase Admin SDK in Express app:</strong></li></ul><p>First, install the Firebase Admin SDK npm package using npm, this command installs the Firebase Admin SDK package, enabling server-side access to Firebase services.</p><pre>npm install --save firebase-admin  </pre><p>Then, load the service account credentials from the JSON file and initialize Firebase Admin SDK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KrVuxoUCYak3A2oANF-XuQ.png" /></figure><p>Once initialized, you can use Firebase Admin SDK methods to interact with Firestore. You want to create cloud firestore database in firebase and add databaseURL from your <strong><em>project_id</em></strong>.</p><h3>Step 03: Add Routes for Firebase GET and POST Operations</h3><p>In this step, we’ll add routes to our Express application for performing GET and POST operations with Firestore.</p><h4>GET Endpoint (“/projects”)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_WvEdrabqZvND6LYIX7H-w.png" /></figure><h4>POST Endpoint (“/projects”)</h4><p>Before we proceed to set up the POST method, it’s essential to ensure our Express application can handle JSON request bodies effectively. To achieve this, we’ll use <strong>body-parser</strong>, a middleware for parsing JSON and URL encoded request bodies. First, let’s install body-parser using npm:</p><pre>npm install --save body-parser</pre><p>Then, these functionalities can be implemented within the index.js file of your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hbWNo76B0dbnJPdh46r_KQ.png" /></figure><p>Now, let’s dive into setting up the POST method to add project to Firestore.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1m1R5IQ22SO4R5x-a_5YtQ.png" /></figure><p>You can use tools like <a href="https://www.postman.com/">Postman</a> or <a href="https://insomnia.rest/">Insomnia</a> to send HTTP requests to your server and verify its functionality. In this example, I send HTTP requests through Insomnia to interact with your server endpoints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WHoWUUAytNblvGvcIm2O4g.jpeg" /><figcaption>photo by <a href="https://medium.com/@ishanhansakasilva">Author</a></figcaption></figure><p>Cloud Firestore database is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RxRtv9Kcl0EPWDSH_3BKDw.jpeg" /></figure><p>Having completed the third step of adding routes for Firebase GET and POST operations, we will now proceed to the final step, <strong>deployment on Choreo</strong>.</p><h3>Step 04: Deploy on Choreo</h3><p>Once you have set up your GitHub account and created a repository containing your service implementation, follow these instructions to deploy your application using Choreo.</p><p>This process will streamline the deployment of your service onto Choreo’s platform.</p><p><strong>1. Create a project</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yq9bj2LFCFgZtp7ETpiOAA.jpeg" /><figcaption>photo by Author</figcaption></figure><p><strong>2. Create a service component</strong></p><p>On the project home page, click Service under create a component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZyx5ifSAiPM5c9U_ES1rQ.jpeg" /><figcaption>photo by Author</figcaption></figure><p>· G<strong>o to GitHub tab and add your repository URL</strong></p><p>To allow Choreo to connect to your GitHub account, click <strong>Authorize with GitHub</strong>. If you have not already connected your GitHub repository to Choreo, enter your GitHub credentials and select the repository you created in the prerequisites section to install the <a href="https://github.com/marketplace/choreo-apps">Choreo GitHub App</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qyCYwTNMVpYF1ScjbFkxOQ.jpeg" /><figcaption>photo by Author</figcaption></figure><p>· <strong>Select the NodeJS buildpack</strong></p><p>· <strong>Set NodeJS project directory</strong></p><p>As part of the deployment process, you need to create an endpoints.yaml file. This file is used to specify the details of the external services your Express app needs to connect to, such as databases or APIs. <a href="https://wso2.com/choreo/docs/develop-components/configure-endpoints/#learn-the-endpointsyaml-file">learn more</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWQz4vqxtnSMWRB4fQjMUw.png" /></figure><p>File directry =&gt; <em>.choreo/endpoints.yaml</em></p><p>· <strong>Create openapi.yaml file in your project</strong></p><p>Creating an openapi.yaml file is crucial for standardized API documentation, automated testing, validation, and client library generation. It ensures consistent API design, integrates with various tools, and aids in deployment automation, simplifying API management and usability.</p><p>To maintain consistency in your openapi.yaml file, use online tools like <a href="https://editor.swagger.io/"><strong>Swagger Editor</strong></a> which provides real-time feedback and highlights errors. When executing endpoints in Swagger Editor, you might encounter &quot;Failed to fetch&quot; errors due to CORS issues. Resolve this by installing the <a href="https://expressjs.com/en/resources/middleware/cors.html">cors package</a> in your project and updating your Express.js app to use the cors middleware, ensuring smooth execution of your endpoints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*87LrmSZ85G_gdEKz7F4Vgg.png" /></figure><p>Once this is completed, you want to pull origin your changes to repository and we can proceed to the next step.</p><p>· Click <strong>Create</strong></p><p>You have successfully created a Service component with the NodeJS buildpack. Now let’s build and deploy the service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hT11QI5oXZwReloFJVVFaA.jpeg" /><figcaption>photo by Author</figcaption></figure><p>· <strong>Build and deploy</strong></p><h4>Build</h4><p>To build the service, follow these steps:</p><p>1. On the project home page, click the Book List component listed under <strong>Component Listing</strong>. This takes you to the component overview page.</p><p>2. In the left navigation, click <strong>Build</strong>.</p><p>3. Click <strong>Build Latest</strong>.</p><p>Once the build process is complete, the build status changes to <strong>Success</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xCVeVF_mKouonm5TQ4NBFg.jpeg" /><figcaption>photo by Author</figcaption></figure><h4>Deploy</h4><p>Now you are ready to deploy the service. Follow these steps:</p><p>1. In the left navigation menu, click <strong>Deploy</strong>.</p><p>2. On the <strong>Set Up</strong> card, click <strong>Configure &amp; Deploy</strong>.</p><p>3. In the <strong>Environment Configurations</strong> pane, click <strong>Next</strong>.</p><p>4. In the <strong>File Mount</strong> pane, click <strong>Next</strong>.</p><p>5. Review the <strong>Endpoint Details</strong> and click <strong>Deploy</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wHfZu4OvbGR0f-XPs4DI_Q.jpeg" /><figcaption>photo by Author</figcaption></figure><h3>Summary</h3><p>This blog has walked you through setting up an Express.js server integrated with Cloud Firestore for managing projects. You’ve learned to create REST API endpoints and deploy your application on Choreo, enabling scalability and efficient cloud-based operations. These skills prepare you to build resilient server-side applications effectively leveraging cloud database solutions.</p><h3>References</h3><ul><li><a href="https://wso2.com/choreo/docs/">wso2.com/choreo/docs</a></li><li><a href="https://wso2.com/choreo/docs/quick-start-guides/deploy-your-first-service/#step-31-build">deploy-your-first-service</a></li><li><a href="https://wso2.com/choreo/docs/develop-components/configure-endpoints/#learn-the-endpointsyaml-file">configure-endpoints</a></li><li><a href="https://firebase.google.com/docs/web/setup">firebase.google.com</a></li><li><a href="https://firebase.google.com/docs/firestore">firestore</a></li><li><a href="https://expressjs.com/en/resources/middleware/cors.html">cors.html</a></li><li><a href="https://swagger.io/specification/">OpenAPI Specification</a></li><li><a href="https://editor.swagger.io/">Swagger editor</a></li><li><a href="https://github.com/IshanHansaka/projectManaging_Choreo">projectManaging_Choreo</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-qoweQWCiYM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-qoweQWCiYM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-qoweQWCiYM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d00f0b8efb90f01aad5f4e5e6c6cce2c/href">https://medium.com/media/d00f0b8efb90f01aad5f4e5e6c6cce2c/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07152f2423ba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linkit-intecs/build-express-app-with-firebase-and-deploy-on-choreo-07152f2423ba">Build Express App with Firestore and Deploy on Choreo</a> was originally published in <a href="https://medium.com/linkit-intecs">LinkIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhance Your Node.js App Security with dotenv]]></title>
            <link>https://medium.com/linkit-intecs/enhance-your-node-js-app-security-with-dotenv-ee76d53162f8?source=rss-23dfcdea1614------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee76d53162f8</guid>
            <category><![CDATA[dotenv]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[programmin]]></category>
            <category><![CDATA[mern-stack]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Ishan Hansaka Silva]]></dc:creator>
            <pubDate>Sat, 18 May 2024 08:38:22 GMT</pubDate>
            <atom:updated>2024-06-23T17:37:32.883Z</atom:updated>
            <content:encoded><![CDATA[<h4>Discover How Using The dotenv Package Can Help You Manage Environment Variables Efficiently and Keep Your Sensitive Data Safe.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*CmxG4f-GpTaWldHZhEyzjA.png" /><figcaption>photo by <a href="https://www.pzena.com/global-banks-resilience-in-the-face-of-crisis-2/">pzena.com</a></figcaption></figure><p><strong>dotenv</strong> is a popular Node.js package that helps manage Environment Variables. It allows to load environment variables from a .env file into main application(e.g.,<em> </em>app.js,index.js , server.js), making it easier to manage configuration settings separately.</p><p>In this article, lets gain a brief understanding of the dotenv package, Environment Variables and provide a complete demonstration of how to add the dotenv package to a simple Express application.</p><h3>What are the Environment Variables?</h3><p>Environment Variables are dynamic values that can affect the way running processes behave on a computer. They are used to configure the environment in which a program runs, allowing the same code base to run in different environments. Here are a few examples of environment variables.</p><ul><li><strong>Application settings — </strong><em>Define settings like port numbers, logging levels.</em></li><li><strong>Database credentials</strong> — S<em>tore database connection details.</em></li><li><strong>API keys and other secret Keys</strong></li></ul><h3>Key Features of dotenv</h3><ul><li><strong>Easy to use — </strong><em>Easier to manage environment variables and change settings without modifying the code base.</em></li><li><strong>Security — </strong><em>Helps in keeping sensitive information such as API keys, database credentials, and other configuration details out of the source code and version control.</em></li></ul><h3>How to works with dotenv?</h3><p><strong>1. Create </strong>.env<strong> file and add Environment Variables.</strong></p><pre>PORT = 5000<br>DB_HOST = localhost<br>DB_USER = root</pre><p><strong>2. Install dotenv package.</strong></p><p>Use npm to install the dotenv package:</p><pre>npm install dotenv</pre><p><strong>3. Load the </strong>.env<strong> file in application.</strong></p><p>At the beginning of main application file (e.g., app.js or index.js), load the environment variables to ensure that environment variables are loaded before they are accessed:</p><pre>require(&#39;dotenv&#39;).config();</pre><p><strong>4. Access Environment Variables:</strong></p><p>Access the variable using process.env:</p><pre>const port = process.env.PORT;<br>const dbHost = process.env.DB_HOST;<br>const dbUser = process.env.DB_USER;</pre><h3>Complete Beginner’s Guide to Project Setup</h3><p>In this beginner’s guide, lets walk through the step-by-step process of create basic Node.js Express application and implementing dotenv to your Express app.</p><p><strong>Before you begin</strong>, ensure you have Node.js and npm (Node Package Manager) installed on your machine. You can download them from the <a href="https://nodejs.org/">official Node.js website</a>.</p><p>After you can follow through these steps to create basic Express app.</p><p><strong>1. Open your terminal.</strong></p><p><strong>2. Navigate to your project folder using the </strong>cd<strong> command. For example,</strong></p><pre>cd path/to/your/project/folder</pre><p><strong>3. Initialize a new Node.js project:</strong></p><pre>npm init -y</pre><p><em>This will create a </em><em>package.json file with default settings.</em></p><p><strong>4. Install Express.js</strong></p><p>Install Express by running the following command:</p><pre>npm install express</pre><p><strong>5. Set up a basic Express server</strong></p><p>To set up an Express server, first create your main application file (e.g., app.js or index.js) in your folder. After that, add the following code to that file:</p><pre>const express = require(&#39;express&#39;);<br>const app = express();<br>const port = 5000;<br><br>app.get(&#39;/&#39;, (req, res) =&gt; {<br>    res.send(&#39;Hello, World!&#39;);<br>});<br><br>app.listen(port, () =&gt; {<br>    console.log(`Server running at http://localhost:${port}/`);<br>});</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*StYg2cw1flTyWkDu09ppNQ.png" /><figcaption>photo by<a href="https://medium.com/@ishanhansakasilva"> author</a></figcaption></figure><p>Now that you have created an Express app, let’s move on to implementing dotenv.</p><h4>Step 1:Install dotenv package</h4><p>To install the dotenv package, navigate to your project directory in terminal and run the following command to install dotenv.</p><pre>npm install dotenv</pre><p><em>This command will install the </em><em>dotenv package and add it to your project&#39;s dependencies.</em></p><h4>Step 2: Create .env file</h4><p>After installing dotenv, you can create a .env file in your project&#39;s root directory to store environment variables. Here&#39;s an example of how you can use dotenv with your Express.js server:</p><p>1. Create a .env file in project folder.</p><p>2. Add your environment variables to the .env file. For example,</p><pre>PORT = 5000</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*S77tzAMLOMpOAAySxzPMKw.jpeg" /><figcaption>photo by<a href="https://medium.com/@ishanhansakasilva"> author</a></figcaption></figure><h4>Step 3: Modify your main application</h4><p><strong>1. Load the environment variables:</strong></p><p>At the very beginning of main file (e.g., app.js or index.js), load the environment variables:</p><pre>require(&#39;dotenv&#39;).config();</pre><p><em>This code use to load environment variables from .env file</em></p><p><strong>2. Modify port value:</strong></p><p>Next, you can add your port value from the .env file to your main file. Getting the port value from the .env file via process.env.PORT rather than adding it directly makes the code more flexible and adaptable.</p><pre>const port = process.env.PORT;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lJHGorAW8_wVdEW547pIsA.png" /><figcaption>photo by <a href="https://medium.com/@ishanhansakasilva">author</a></figcaption></figure><p>Now, you can run your Express app with these new implementations : )</p><h3>Security Considerations</h3><p>It’s crucial not to commit .env files to version control systems like Git. These files often contain sensitive information such as API keys, database passwords, and other credentials. Including them in version control repositories exposes this sensitive data to potential threats.</p><h4>Add .env to .gitignore:</h4><ul><li>To prevent this, you can add .env to your .gitignore file. By doing so, you instruct Git to ignore this file and not include it in your repository. This prevents accidental exposure of sensitive information to unauthorized users.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*VUvlJDdy-W4i5zxUPJoYcg.jpeg" /><figcaption>photo by <a href="https://medium.com/@ishanhansakasilva">author</a></figcaption></figure><h3>Summary</h3><p>dotenv is a simple yet powerful tool to manage environment variables in Node.js applications. It promotes best practices by separating configuration from code and enhancing security by keeping sensitive information out of the source code. By following the steps outlined above, you can effectively use dotenv to manage your application’s configuration.</p><h3>References</h3><ul><li><a href="https://github.com/motdotla/dotenv#">dotenv GitHub Repository</a></li><li><a href="https://www.dotenv.org/docs/quickstart">dotenv Quickstart Guide</a></li><li><a href="https://www.npmjs.com/package/dotenv">dotenv npm Package</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee76d53162f8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linkit-intecs/enhance-your-node-js-app-security-with-dotenv-ee76d53162f8">Enhance Your Node.js App Security with dotenv</a> was originally published in <a href="https://medium.com/linkit-intecs">LinkIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get started with Recursion.]]></title>
            <link>https://medium.com/linkit-intecs/get-started-with-recursion-a4de459142b5?source=rss-23dfcdea1614------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4de459142b5</guid>
            <category><![CDATA[recursion]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[c-language]]></category>
            <category><![CDATA[recursive-function]]></category>
            <category><![CDATA[c-programming]]></category>
            <dc:creator><![CDATA[Ishan Hansaka Silva]]></dc:creator>
            <pubDate>Tue, 26 Dec 2023 09:06:50 GMT</pubDate>
            <atom:updated>2024-09-18T07:34:21.551Z</atom:updated>
            <content:encoded><![CDATA[<h3>Get started with Recursion</h3><h4>What a Recursive Function is and how to use it with the C programming language.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ki0fynB7bh-PGMuNvB3RnQ.png" /><figcaption>photo by <a href="https://lodev.org/cgtutor/recursiontrees.html">Lode’s Computer Graphics Tutorial</a></figcaption></figure><p><strong>This article will explain what a recursive function is and how to use it with the C programming language.</strong></p><h3>What is recursion?</h3><p>In computer science, recursion is a method of solving a computational problem where the solution depends on solutions to smaller instances of the same problem. Recursion solves such recursive problems by using functions that call themselves from within their own code. <a href="https://en.wikipedia.org/wiki/Recursion_(computer_science)">Wikipedia</a></p><h3><strong><em>Why use recursion?</em></strong></h3><p>Recursive thinking is essential in programming. It aids in the reduction of complex problems to simple solutions. It is a simpler alternative to loops in the code, making it easier to read and maintain. Recursive functions can frequently achieve the same result with less code than iterative solutions.</p><h3>Example recursive functions</h3><figure><img alt="An example of recursive function" src="https://cdn-images-1.medium.com/max/800/1*IFpbBWw8N6gl07Hd4E9VKg.png" /><figcaption>photo by <a href="https://www.geeksforgeeks.org/recursive-functions/">geeksforgeeks.org</a></figcaption></figure><p>Recursion has <strong>two features.</strong></p><ol><li><strong>Recursive Call</strong></li></ol><p><em>The function calls itself during execution. Each recursive call should solve a smaller instance of the same problem.</em></p><ol><li><strong>End condition (the base case)</strong></li></ol><p><em>To prevent calling itself infinity, there must be a condition known as the base case. When the condition is satisfied, the function stops calling itself and returns a specific value.</em></p><h3>loop vs recursion</h3><p>Let’s examine how to apply recursive functions and loops to the same problem.</p><h4>How to find the factorial of 5 (5!)</h4><p><em>Using while loop</em></p><pre>#include&lt;stdio.h&gt;<br><br>int find_factorial(int n);<br><br>int main()<br>{<br>    printf(&quot;%d\n&quot;,find_factorial(5));<br>    return 0;<br>}<br><br>int find_factorial(int n){<br>    int fact = 1;<br>    while (n&gt;0)<br>    {<br>        fact *= n;<br>        n--;<br>    }<br>    return fact;<br>}</pre><p><em>Using recursion function</em></p><pre>#include&lt;stdio.h&gt;<br><br>int find_factorial(int n);<br><br>int main()<br>{<br>    printf(&quot;%d\n&quot;,find_factorial(5));<br>    return 0;<br>}<br><br>int find_factorial(int n){<br>    if (n == 1)<br>        return 1;<br>    return n*find_factorial(n-1);<br>}</pre><h4>Explain how to use the recursion method to solve this problem.</h4><p>Consider the following mathematical formula:</p><pre><strong>5! = 5*4*3*2*1<br>4! = 4*3*2*1<br><br></strong><em>therefore,</em><strong><br>5! = 5*4!<br><em><br></em></strong><em>In that way,</em><strong><br>n! = n*(n-1artwork)!</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*xSLR4vvcaVy0Q2rS47Vm6w.jpeg" /><figcaption>Artwork by Author</figcaption></figure><p>n number factorial is hence,</p><h4>n! = n * (n-1)!</h4><p><strong><em>Consider the following image for a quick overview of what happens during the recursion process.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fiSYOoRRhKJfA6hk4zyqeg.jpeg" /><figcaption>photo by Yashavant P. Kanetkar from <a href="http://pdvpmtasgaon.edu.in/uploads/dptcomputer/Let%20us%20c%20-%20yashwantkanetkar.pdf">Let Us C</a></figcaption></figure><p><em>As mentioned above, a recursive function can be used to solve this problem.</em></p><h4><strong>The only way to become an expert in recursion is to practice consistently. The URLs below will help you become an expert in recursion. <em>Happy coding!</em></strong></h4><ul><li><a href="https://www.w3resource.com/c-programming-exercises/recursion/index.php">C programming exercises: Recursion - w3resource</a></li><li><a href="https://www.geeksforgeeks.org/recursion-practice-problems-solutions/">Recursive Practice Problems with Solutions - GeeksforGeeks</a></li></ul><blockquote>The basic principle of recursive design is to make the parts have the same power as the whole.</blockquote><blockquote>— Bob Barton</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4de459142b5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linkit-intecs/get-started-with-recursion-a4de459142b5">Get started with Recursion.</a> was originally published in <a href="https://medium.com/linkit-intecs">LinkIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Compilation Process of C Language.]]></title>
            <link>https://medium.com/linkit-intecs/the-compilation-process-of-c-language-a37b3bfdfd00?source=rss-23dfcdea1614------2</link>
            <guid isPermaLink="false">https://medium.com/p/a37b3bfdfd00</guid>
            <category><![CDATA[c-language]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <category><![CDATA[source-code]]></category>
            <category><![CDATA[compilation-process]]></category>
            <category><![CDATA[c-programming]]></category>
            <dc:creator><![CDATA[Ishan Hansaka Silva]]></dc:creator>
            <pubDate>Tue, 05 Sep 2023 08:19:10 GMT</pubDate>
            <atom:updated>2024-06-23T17:02:36.855Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Compilation Process of C Language</h3><h4>Learn how C code is converted into machine code that can be executed by a computer.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NQmdpuTKpLnebgRHsaPyvQ.png" /><figcaption>photo by <a href="https://medium.com/@ishanhansakasilva">author</a></figcaption></figure><h4>What is compilation?</h4><p>Compilation is the process the computer takes to transform a program written in a high-level language from source code into machine code that the computer can understand.</p><h4>Source code</h4><p>Sour code which appears in a human-readable text format includes instructions that guide the program’s execution.</p><p>An example of printing Hello World</p><pre>#include&lt;stdio.h&gt;<br>int main()<br>{<br>  printf(&quot;Hello World&quot;):<br>  return 0;<br>}</pre><h4>4 stages of the compilation process</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*DCwhxMRmzezcs_syLvvEmg.png" /><figcaption>photo by <a href="https://medium.com/@ishanhansakasilva">author</a></figcaption></figure><p><strong><em>Stage 1 — Preprocessing</em></strong></p><p>The preprocessor is a program that is used to process source code before it is compiled. It performs several tasks, including:</p><ul><li>Removing comments</li><li>Expanding macros</li><li>Including files</li><li>Converting source code to expanded code.</li></ul><p><strong>Output file:</strong> <em>hello.i</em></p><p><strong><em>Stage 2 — Compiling</em></strong></p><p>The C compiler checks for valid syntax in C language. If any wrong syntax is found, the compiler reports that error. After the expanded code has been syntactically verified, the compiler converts it into assembly code.</p><p><strong>Output file:</strong> <em>hello.s</em></p><p><strong><em>Stage 3 — Assembling</em></strong></p><p>In this stage, the assembler converts assembly code into pure binary code or machine code known as the object code.</p><p><strong>Output file:</strong> <em>hello.o</em></p><p><strong><em>Stage 4 — Linking</em></strong></p><p>The linker merges all the object code from multiple modules and libraries into a single file and produces the final executable file.</p><p><strong>Output file:</strong><em> hello.exe</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*kOMFFzv8lagJN9SOQfqNWw.png" /><figcaption>photo by <a href="https://1.bp.blogspot.com/-FF02d7PG_f8/X1NaGKeUQtI/AAAAAAAAAK4/2qaY20GrocoU49V6RQfE1jqt8qDaB7BdgCNcBGAsYHQ/s450/c%2Bcompilation.png">shraddhacompnotes</a></figcaption></figure><h3><strong><em>References</em></strong></h3><ul><li><strong>Does the executable file depend on OS?</strong></li></ul><p><a href="https://www.quora.com/Are-executable-files-exe-generated-by-compilers-machine-specific-and-or-operating-system-specific-In-other-words-can-exe-files-be-ported-from-one-machine-to-another-having-the-same-or-different-OS"><em>Are executable files (.exe) generated by compilers machine specific and/or operating system specific? In other words, can .exe files be ported from one machine to another, having the same (or different) OS? — Quora</em></a></p><ul><li><strong>Do assembly languages depend on OS?</strong></li></ul><p><a href="https://stackoverflow.com/questions/6859348/how-do-assembly-languages-depend-on-operating-systems"><em>How do assembly languages depend on operating systems? — Stack Overflow</em></a></p><ul><li><strong>Are compilers only operating system dependent and not hardware dependent?</strong></li></ul><p><a href="https://www.quora.com/Why-are-compilers-only-operating-system-dependent-and-not-hardware-dependent"><em>https://www.quora.com/Why-are-compilers-only-operating-system-dependent-and-not-hardware-dependent</em></a></p><ul><li><strong>Do all programming languages compile to the same machine code?</strong></li></ul><p><a href="https://www.quora.com/Do-all-programming-languages-compile-to-the-same-machine-code"><em>Do all programming languages compile to the same machine code? — Quora</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a37b3bfdfd00" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linkit-intecs/the-compilation-process-of-c-language-a37b3bfdfd00">The Compilation Process of C Language.</a> was originally published in <a href="https://medium.com/linkit-intecs">LinkIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Computational Thinking]]></title>
            <link>https://medium.com/linkit-intecs/problem-solving-via-computational-thinking-77cf78322066?source=rss-23dfcdea1614------2</link>
            <guid isPermaLink="false">https://medium.com/p/77cf78322066</guid>
            <category><![CDATA[computational-thinking]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[beginner]]></category>
            <dc:creator><![CDATA[Ishan Hansaka Silva]]></dc:creator>
            <pubDate>Wed, 02 Aug 2023 16:38:25 GMT</pubDate>
            <atom:updated>2024-06-23T16:58:20.412Z</atom:updated>
            <content:encoded><![CDATA[<h4>Problem-solving via computational thinking</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c1tXvTW4214GR8mrx1CLDA.jpeg" /><figcaption>photo by <a href="https://open.uom.lk/lms/pluginfile.php/4566/mod_hvp/content/4/images/file-61f9d85659e68.JPG">open</a></figcaption></figure><p>Computational thinking uses to solve problems efficiently and correctly. It approaches solving problems systematically using concepts and ideas from computer science.</p><h3><strong>Where is computational thinking applied</strong></h3><ul><li>Engineering</li><li>Medicine</li><li>Agriculture</li><li>Social Science</li><li>Military</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*1yUiQVNADFipfd7UhaBgRA.jpeg" /><figcaption>photo by <a href="https://www.nordangliaeducation.com/bsn-nanjing/-/media/bsn-nanjing/news-events/computational-thinking-unplugged/computing.jpg?h=499&amp;iar=0&amp;w=887&amp;rev=dcf3b33a11544bde9daab93c50b6a592&amp;hash=695976159669D3186B3A5F8E010EBD3C">nordangliaeducation</a></figcaption></figure><h3>Pillars of computational thinking</h3><ul><li><strong><em>Decomposition </em></strong>— breaking down complex problems or systems into smaller, more manageable parts.</li><li><strong><em>Pattern recognition</em></strong><em> </em>— Noticing or identifying similarities or common differences that will help us make predictions or lead us to shortcuts.</li><li><strong><em>Abstraction</em> </strong>— Make one solution applicable to multiple situations by ignoring unrelated, irrelevant information.</li><li><strong><em>Algorithm Design </em></strong>— Design simple achievable steps to realize a solution.</li></ul><h3>Late to Go to Work in the Morning - A Problem?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*FODuHTrn50GR5oMETAmbdw.jpeg" /><figcaption>photo by <a href="https://st2.depositphotos.com/1258191/10061/i/950/depositphotos_100618364-stock-photo-businessman-in-a-hurry-checking.jpg">depositphotos</a></figcaption></figure><p>Let’s look at components of computational thinking with some examples. You are late to go to work in the morning. Now you want to solve this problem using computational thinking.</p><h4>Decomposition</h4><p>Decomposition is dividing a problem into small parts. when a problem is too big to solve, divide it into smaller solver problems. According to the above problem, we can divide that into the following parts.</p><p>In this case, we can divide it as ready for going to work, transport method, and breakfast.</p><p>Also, we can break down to what do at home and what to do while at transport.</p><h4>Pattern recognition</h4><p>Pattern recognition is the analysis of similar objects or experiences and the identification of commonalities. By finding what these objects or experiences have in common, we can develop an understanding of patterns and make predictions based on them.</p><p>Once a problem is decomposed, we can find patterns among sub-problems we created, and use prior experience and knowledge to solve each part.</p><p>If we take the same question, we can solve this with the experience that you are late to work.</p><p>You can recognize which transport method is quick and spend less time. Also, get that experience to breakfast.</p><h4>Abstraction</h4><p>Abstraction is focusing on relevant, important information in identified patterns. It involves removing specific details and making generalizations. Abstraction helps create a general idea of the problem and how to solve it.</p><p>In our problem, we don’t need to choose the dress type, the dress color, and which meal eat for breakfast.</p><h4>Algorithm</h4><p>An algorithm is a step wise approach to solving a problem. It involves creating a process or set of rules to be followed. It should also be noted that there can be more than one way to solve a problem.</p><p>In our example when we go on the trip we will visit multiple sites. So what do we do there? Coming up with a set of instructions on what to do would be an algorithm.</p><p><strong><em>References:</em></strong></p><p><em>Here is another YouTube video to understand computational thinking and why you need computational thinking.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmUXo-S7gzds%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmUXo-S7gzds&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmUXo-S7gzds%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b2f703971af3835a6ecef7ff0d6b6a25/href">https://medium.com/media/b2f703971af3835a6ecef7ff0d6b6a25/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77cf78322066" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linkit-intecs/problem-solving-via-computational-thinking-77cf78322066">What is Computational Thinking</a> was originally published in <a href="https://medium.com/linkit-intecs">LinkIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>