<?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 Erandi Hansika on Medium]]></title>
        <description><![CDATA[Stories by Erandi Hansika on Medium]]></description>
        <link>https://medium.com/@erandi2287hansika?source=rss-40f66b71982f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iO1rHfqhuy5gonBbjHrpmg.jpeg</url>
            <title>Stories by Erandi Hansika on Medium</title>
            <link>https://medium.com/@erandi2287hansika?source=rss-40f66b71982f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:56:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@erandi2287hansika/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[A Beginner’s Guide to Feature Engineering in Machine Learning]]></title>
            <link>https://medium.com/@erandi2287hansika/a-beginners-guide-to-feature-engineering-in-machine-learning-13459e7c1032?source=rss-40f66b71982f------2</link>
            <guid isPermaLink="false">https://medium.com/p/13459e7c1032</guid>
            <category><![CDATA[dl]]></category>
            <category><![CDATA[feature-engineering]]></category>
            <category><![CDATA[e]]></category>
            <category><![CDATA[mls]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Erandi Hansika]]></dc:creator>
            <pubDate>Thu, 27 Aug 2026 16:44:39 GMT</pubDate>
            <atom:updated>2026-08-27T16:44:39.773Z</atom:updated>
            <content:encoded><![CDATA[<p>How transforming raw data can drastically boost your ML model’s performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yM1YABCjEp-GteNCredhMA.jpeg" /></figure><h4>1. Introduction</h4><p>When beginners step into Machine Learning, the initial excitement usually revolves around training deep learning networks or hyperparameter tuning. However, experienced practitioners spend over 70% of their project time preparing data. The secret weapon behind high-performing models is <strong>Feature Engineering</strong>.</p><h4>2. What is Feature Engineering?</h4><p>Feature Engineering is the process of selecting, manipulating, and transforming raw data into meaningful inputs (features) for machine learning models. Simply put, it bridges the gap between raw datasets and machine learning algorithms.</p><h4>3. Core Techniques You Should Know</h4><ul><li><strong>Feature Transformation &amp; Scaling:</strong> Machine learning algorithms like SVM and KNN rely heavily on distance metrics. If your features have vastly different numerical ranges, the model becomes biased toward larger numbers.</li><li><em>Standardization (Z-Score):</em> Centers data around mean 0 with variance 1.</li><li><em>Min-Max Scaling:</em> Rescales values into a fixed range [0, 1].</li><li><strong>Categorical Encoding:</strong> ML models only understand numeric values.</li><li><em>One-Hot Encoding:</em> Ideal for nominal data with no intrinsic order (e.g., Red, Green, Blue)</li><li><em>Ordinal Encoding:</em> Ideal for ordered categories (e.g., Low, Medium, High).</li><li><strong>Feature Extraction &amp; Creation:</strong> Creating new features based on logical domain knowledge can dramatically improve model predictive power. For example, instead of passing Total Spending and Total Visits separately, creating a single metric like Average Spend Per Visit exposes a clearer pattern.</li></ul><h4>4. Conclusion</h4><p>Feature Engineering is both an art and a science. As I continue preparing for industry opportunities, mastering these fundamental data techniques remains my top priority. Building great ML models isn’t just about picking the right algorithm — it’s about feeding it the right data!</p><p>Better features allow you to build simpler, faster, and far more accurate models!</p><p>What is your favorite feature engineering trick?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13459e7c1032" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Zero to Advanced (Part 1): Cracking the Core Fundamentals & Basics]]></title>
            <link>https://medium.com/@erandi2287hansika/javascript-zero-to-advanced-part-1-cracking-the-core-fundamentals-basics-a3be4c1cb970?source=rss-40f66b71982f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3be4c1cb970</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[student-life]]></category>
            <category><![CDATA[javascript-basics]]></category>
            <dc:creator><![CDATA[Erandi Hansika]]></dc:creator>
            <pubDate>Wed, 12 Aug 2026 08:09:38 GMT</pubDate>
            <atom:updated>2026-08-12T08:09:38.949Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction &amp; Roadmap</h3><p>No matter which IT sector or domain we belong to, having a solid grasp of programming languages is essential for every developer. Whether you are stepping into Software Engineering, AI/ML, or DevOps, programming is the core foundation.</p><p>That is why I am starting a complete <strong>“JavaScript Zero to Hero”</strong> series to share my own learning journey, boost my knowledge, and help everyone who is looking to master this powerful language. This comprehensive guide and roadmap will definitely be useful for all aspiring developers and interns!</p><p>Here is the complete roadmap we are going to cover throughout this series:</p><ul><li><strong>Module 1: Fundamentals (JS </strong>Basics<strong>)</strong> — Variables, Data Types, Operators, Control Flow, Functions, and Basic Objects/Arrays. <em>(We are starting with this today!)</em></li><li><strong>Module 2: OOP Concepts</strong> — Understanding Classes, Objects, and Object-Oriented programming principles in JavaScript.</li><li><strong>Module 3: Data Structures</strong> — Deep diving into Arrays, Linked Lists, Stacks, and Queues.</li><li><strong>Module 4: Algorithms</strong> — Mastering Sorting, Searching, and understanding Big-O notation for performance.</li><li><strong>Module 5: DOM Manipulation &amp; Web Basics</strong> — Interacting with web pages, handling user events, and dynamic UI updates.</li><li><strong>Module 6: ES6+ Modern Features</strong> — Destructuring, Spread/Rest operators, Template literals, and modern syntax.</li><li><strong>Module 7: Asynchronous JavaScript</strong> — Handling asynchronous operations with Promises, Async/Await, and fetching APIs.</li><li><strong>Module 8: Advanced Concepts</strong> — Exploring the core inner workings like Scope, Closures, Prototypes, and the Event Loop.</li></ul><h3>Module 1: Fundamentals (JS Basics)</h3><p>JavaScript is the heart of modern web development. Whether you are starting your coding journey or refreshing your core concepts, understanding the fundamentals is essential.</p><p>Let’s break down Module 1:</p><p><strong>Variables , Data Type ( Functions, Arrays, and Objects ) , Operators and Control Flow </strong>in simple terms!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XgVJwRlNok-nDTiZDqJ1ug.png" /><figcaption>Module 1: Fundamentals (JS Basics)</figcaption></figure><h3>1.Variables &amp; Data Types</h3><p>Variables are containers for storing data values. In modern JavaScript, we use let and const.</p><pre>+----------+---------------+-----------------+-----------------+--------------------------------------+---------------------------------------+<br>| Keyword  | Scope         | Re-declaration  | Re-assignment   | Hoisting                             | Best Use Case                         |<br>+----------+---------------+-----------------+-----------------+--------------------------------------+---------------------------------------+<br>| var      | Function      | Allowed         | Allowed         | Yes (initialized as undefined)       | Avoid in modern code                  |<br>| let      | Block ({})    | Not allowed     | Allowed         | Yes (uninitialized / Temporal Zone)  | Variables that need to change         |<br>| const    | Block ({})    | Not allowed     | Not allowed     | Yes (uninitialized / Temporal Zone)  | Constants and values that won&#39;t change|<br>+----------+---------------+----------------+-----------------+--------------------------------------+---------------------------------------+</pre><ul><li><strong>var (Old Way):</strong> Function-scoped. Can be re-declared and re-assigned. (Avoid using this in modern code).</li><li><strong>let (Modern):</strong> Block-scoped ({}). Can be re-assigned, but <strong>cannot</strong> be re-declared in the same scope.</li><li><strong>const (Modern):</strong> Block-scoped. <strong>Cannot</strong> be re-assigned or re-declared. Use this for constants.</li></ul><pre>let age = 22;<br>age = 23; // ✅ Allowed (Re-assigned)<br><br>const country = &quot;Sri Lanka&quot;;<br>// country = &quot;India&quot;; // ❌ Error! (Cannot change const)</pre><p>JavaScript data types are divided into two main categories based on how they are stored in computer memory:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lNpp8W634IpKeZhJofOoQ.png" /><figcaption>JS Data Types</figcaption></figure><h4>A. Primitive Types (Single Values — Immutable)</h4><p>Stored directly in memory (<strong>Value-based</strong>). When you copy a primitive variable, you copy the actual value. Changing one doesn’t affect the other.</p><ul><li><strong>String:</strong> Text data (e.g., &quot;Hello&quot;)</li><li><strong>Number:</strong> Integers and decimals (e.g., 25, 10.5)</li><li><strong>Boolean:</strong> True or false values (true, false)</li><li><strong>Undefined:</strong> A variable declared with no assigned value yet.</li><li><strong>Null:</strong> An intentional empty value.</li></ul><pre>let x = 10;<br>let y = x; // y gets a copy of x&#39;s value (10)<br>x = 20;    <br><br>console.log(x); // 20<br>console.log(y); // 10 (y remains unchanged!)</pre><h4>B. Reference Types (Complex Structures — Mutable)</h4><p>Stored as a <strong>Memory Address (Reference)</strong> rather than the direct value. When you copy a reference variable, you copy the address. Changing one affects both!</p><ul><li><strong>Objects:</strong> Key-value pairs representing real-world entities.</li><li><strong>Arrays:</strong> Ordered lists of data.</li><li><strong>Functions:</strong> Reusable blocks of code (First-class objects in JS).</li></ul><pre>let person1 = { name: &quot;Kasun&quot; };<br>let person2 = person1; // Copies the memory reference, not the value!<br><br>person2.name = &quot;Nimal&quot;; <br><br>console.log(person1.name); // &quot;Nimal&quot; (person1 also changed!)<br>console.log(person2.name); // &quot;Nimal&quot;</pre><h4>1.Objects</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8aIGTls9g1fbxW6ptRM-Tg.png" /><figcaption>Objects</figcaption></figure><p>Objects are used to store keyed collections of data and more complex entities. Instead of indexing items by numbers (like arrays), objects use keys (or properties) to access values.</p><p>How to define an Object: You use curly brackets {} containing key-value pairs separated by commas.</p><pre>name: &quot;Kawindu&quot;,<br>  age: 23,<br>  skills: [&quot;React&quot;, &quot;Node&quot;],<br>  isEnrolled: true,<br><br>  // Objects can even hold functions (methods)<br>  greet: function() {<br>    return `Hello, my name is ${this.name}`;<br>  }<br>};</pre><p>Accessing Object Properties:</p><ul><li>Dot Notation (.): Clean and most common way.</li></ul><pre>console.log(student.name); // Output: &quot;Kawindu&quot;</pre><ul><li>Bracket Notation ([]): Useful when keys have spaces or are stored inside variables.</li></ul><pre>console.log(student[&quot;age&quot;]); // Output: 23</pre><h4>2.<strong>Arrays</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A3JjG_fvt7kmfUbxpEbkbQ.png" /><figcaption>Arrays</figcaption></figure><p>Arrays are used to store multiple items under a single variable name in a specific, sequential order. Each item in an array has a numeric index starting at 0.</p><p><strong>How to define an Array</strong>: You use square brackets []. Arrays can hold strings, numbers, booleans, objects, or even other arrays.</p><pre>const languages = [&quot;JavaScript&quot;, &quot;Python&quot;, &quot;Java&quot;];</pre><p>Common Array Methods &amp; Operations: JavaScript comes with built-in methods to easily manipulate data:</p><ul><li>push(): Adds one or more elements to the end of an array.</li></ul><pre>languages.push(&quot;C++&quot;);    <br>console.log(languages); // [&quot;JavaScript&quot;, &quot;Python&quot;, &quot;Java&quot;, &quot;C++&quot;]</pre><ul><li>pop(): Removes the last element from an array.</li></ul><pre>languages.pop();          <br>console.log(languages); // [&quot;JavaScript&quot;, &quot;Python&quot;, &quot;Java&quot;]</pre><ul><li>unshift(): Adds an element to the beginning of an array.</li></ul><pre>languages.unshift(&quot;TypeScript&quot;);<br>console.log(languages); // [&quot;TypeScript&quot;, &quot;JavaScript&quot;, &quot;Python&quot;, &quot;Java&quot;]</pre><ul><li>shift(): Removes the first element from an array.</li></ul><pre>languages.shift();<br>console.log(languages); // [&quot;JavaScript&quot;, &quot;Python&quot;, &quot;Java&quot;]</pre><p><strong>Summary: When to Use Which?</strong></p><ul><li>Use <strong>Objects</strong> when you need to represent a specific item with distinct descriptive properties (e.g., a user profile, a product item, a settings configuration).</li><li>Use <strong>Arrays</strong> when you have a list of similar items where order matters (e.g., a list of search results, a collection of tasks, an array of user permissions).</li></ul><h4>3 . Functions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f-aaSdX9Ojg5kEFFisqJFQ.png" /><figcaption>Functions</figcaption></figure><p>Functions help you write reusable blocks of code. In JavaScript , there are three primary ways to define them:</p><ul><li>Function Declaration (Normal)</li><li>Function Expression</li><li>Arrow Function (ES6 — Most Popular)</li></ul><p><strong>Function Declaration (Normal)</strong></p><ul><li>This is the traditional way of writing a named function.</li><li>Hoisting: The special thing about this is that you can call (invoke) this function anywhere in your code, even before it is created. JavaScript automatically hoists it.</li></ul><pre>sayHello(); // It works even if you talk about it above the code.<br><br>function sayHello() {<br>  console.log(&quot;Hello!&quot;);<br>}</pre><p><strong>Function Expression</strong></p><ul><li>What happens here is that an anonymous function is assigned to a variable (stored).</li><li>No hoisting: You can only call the function after the line where it was created. If you call it before that, an error will occur.</li></ul><pre>// sayHi(); // An error occurs here (because hoist is not happening)<br><br>const sayHi = function() {<br>console.log(&quot;Hi!&quot;);<br>};<br><br>sayHi(); // Now working</pre><p><strong>Arrow Function (ES6 — Most Popular)</strong></p><ul><li>This is a modern and very concise method introduced with ES6. This is the most commonly used method these days.</li><li>Features -: <em>Very easy to write (It does not have its own keyword this bound (Lexical this).</em></li></ul><pre>const sayHey = () =&gt; {<br>  console.log(&quot;Hey!&quot;);<br>};<br><br>sayHey();</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QB2moyK5H12g4PZ2Xmvcpw.png" /></figure><h3>3.Operators &amp; Control Flow</h3><p>Control flow is the backbone of any programming language. It allows your application to make smart decisions, evaluate conditions, and automate repetitive tasks.</p><p>Let’s dive into Conditional Statements and Loops with complete examples!</p><h3>1. Conditional Statements (Making Decisions)</h3><p>Conditions let your code execute different blocks of code based on whether a specific expression is true or false.</p><p><strong>if / else if / else</strong> Statements The standard way to handle multiple conditional paths in your application.</p><pre>let score = 75;<br><br>if (score &gt;= 75) {<br>  console.log(&quot;Grade: Distinction&quot;);<br>} else if (score &gt;= 50) {<br>  console.log(&quot;Grade: Pass&quot;);<br>} else {<br>  console.log(&quot;Grade: Fail&quot;);<br>}</pre><p><strong>The Ternary Operator (</strong><strong>? :)</strong> A clean, shorthand way to write simple if/else statements in a single line. Perfect for assigning values conditionally.</p><pre>let score = 75;<br>let status = score &gt;= 50 ? &quot;Pass&quot; : &quot;Fail&quot;; <br>console.log(status); // Output: &quot;Pass&quot;</pre><p><strong>switch</strong> Statement Ideal when you are comparing a single variable against many different fixed options (cleaner than writing multiple else if blocks).</p><pre>let day = &quot;Monday&quot;;<br><br>switch (day) {<br>  case &quot;Monday&quot;:<br>    console.log(&quot;Start of the work week!&quot;);<br>    break;<br>  case &quot;Friday&quot;:<br>    console.log(&quot;Almost weekend!&quot;);<br>    break;<br>  default:<br>    console.log(&quot;Just another regular day.&quot;);<br>}</pre><h3>2 Loops (Automating Repetitive Tasks)</h3><p>Instead of writing the same code over and over, loops help you iterate through data structures or repeat actions efficiently.</p><p><strong>for </strong>Loop The classic loop used when you know exactly how many times you want to repeat a block of code.</p><pre>for (let i = 1; i &lt;= 3; i++) {<br>  console.log(`Count number: ${i}`);<br>}</pre><p><strong>while</strong> Loop Repeats a block of code <em>while</em> a specified condition evaluates to true. Great when the number of iterations isn&#39;t known beforehand.</p><pre>let countdown = 3;<br><br>while (countdown &gt; 0) {<br>  console.log(`Countdown: ${countdown}`);<br>  countdown--;<br>}</pre><p><strong>forEach</strong> Method (Array Iteration) A modern, highly readable array method used to execute a function once for each element in an array.</p><pre>const fruits = [&quot;Apple&quot;, &quot;Banana&quot;, &quot;Mango&quot;];<br><br>fruits.forEach((fruit, index) =&gt; {<br>  console.log(`${index}: ${fruit}`);<br>});</pre><p>💡 Pro Tip: Choosing the right control flow tool makes your code cleaner, more readable, and easier to debug!</p><p>We have successfully covered the <strong>core fundamentals of JavaScript in Module 1</strong>! Let’s do a quick recap of what we learned today:</p><ul><li><strong>Variables &amp; Data Types</strong>: We explored let, const, and the difference between Primitive types (immutable, stored by value) and Reference types (mutable, stored by reference).</li><li><strong>Objects &amp; Arrays: </strong>We learned how to store structured data using objects and handle sequential lists using powerful array methods like push(), pop(), unshift(), and shift().</li><li><strong>Functions:</strong> We looked at the three main ways to write functions — Function Declarations, Function Expressions, and modern Arrow Functions.</li><li><strong>Operators &amp; Control Flow:</strong> We mastered decision-making using if/else, ternary operators, and switch statements, as well as automating tasks using for, while, and forEach loops.</li></ul><h3>What to Do Next?</h3><p>The best way to master these concepts is through hands-on practice. Open up your code editor or browser console, try writing your own functions, manipulate some arrays, and experiment with loops!</p><p>Stay tuned for Part 2, where we will dive into <strong>Module 2: OOP Concepts (Classes, Objects, and Object-Oriented Programming principles in JavaScript).</strong></p><p>Happy coding, and let’s keep growing together!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3be4c1cb970" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding Industry Expectations: Insights from WSO2 Industry Visit.]]></title>
            <link>https://medium.com/@erandi2287hansika/decoding-industry-expectations-insights-from-wso2-industry-visit-f7494579a678?source=rss-40f66b71982f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7494579a678</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[tech-industry]]></category>
            <category><![CDATA[student-life]]></category>
            <category><![CDATA[wso2]]></category>
            <category><![CDATA[career-development]]></category>
            <dc:creator><![CDATA[Erandi Hansika]]></dc:creator>
            <pubDate>Sat, 27 Jun 2026 04:26:24 GMT</pubDate>
            <atom:updated>2026-07-15T16:29:51.811Z</atom:updated>
            <content:encoded><![CDATA[<p>As undergraduates, the bridge between classroom theories and industry reality can often seem daunting. Recently, we had the incredible opportunity to step into the world of WSO2, one of the leading names in enterprise software, for an insightful industrial visit. The session wasn’t just a tour,it was a masterclass in preparing for the future of tech.</p><p>We had the privilege of learning from three exceptional leaders who shared their expertise, covering everything from interviews to the future of AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NxNDwfGy5BAiP-UsUoJeQw.png" /><figcaption>Industrial Visit</figcaption></figure><p>The three sessions we attended were packed with wisdom that I believe every undergraduate should hear. I’ve decided to share my key takeaways here, as I know these insights could be life-changing for many of us navigating our path into the tech industry.</p><p><strong>Session 1. Mastering the Interview Process<br>Session 2. SDLC &amp; The Power of AI<br>Session 3. Industry Trends &amp; Undergraduate Expectations</strong></p><p>Here is a breakdown of what I learned from each session:</p><h3>Session 1: Mastering the Interview Process</h3><p><strong>Speaker:</strong> Nikeshala Samanthilake, Senior Executive in People Operations, WSO2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y3XBJxRNiTHwr1TK9Z_B9A.jpeg" /><figcaption>Mastering the Interview Process</figcaption></figure><p>This session, led by Nikeshala Samanthilake from WSO2’s People Operations team, was a transformative guide on how to approach interviews with professionalism and confidence. I am deeply grateful to both WSO2 for facilitating this session and to Nikeshala for sharing such invaluable, actionable advice.</p><p>Here are the four core pillars of interview success she shared with us:</p><h4>01. Research &amp; Networking</h4><p>Before stepping into an interview, preparation is key.</p><ul><li><strong>Company Research:</strong> Never walk into an interview blindly. Deeply research the company’s vision, mission, and products.</li><li><strong>Networking:</strong> Proactively connect with people working at the company. Understanding their culture from those who live it gives you a distinct advantage.</li></ul><h4>02. Master Your Story (The Pitch)</h4><p>Your story is your personal brand. You need to articulate it clearly:</p><ul><li><strong>The 60-Second Summary:</strong> Practice a concise, one-minute summary that covers your academic background, key projects, and career goals.</li><li><strong>The “Why You?” Factor:</strong> Be ready to define what makes you unique. Highlight your involvement in clubs, societies, technical blogs, and any special skills or experiences that set you apart from other candidates.</li></ul><h4>03. Prepare for Common Questions</h4><p>Preparation reduces anxiety and builds credibility:</p><ul><li><strong>Technical Readiness:</strong> Be prepared to explain your academic projects in detail. Don’t just list them; explain your contribution and the “why” behind your technical decisions.</li><li><strong>Behavioral Questions:</strong> Have structured stories ready using the STAR method (Situation, Task, Action, Result) for questions like, “Tell me about a time you worked in a team” or “How do you manage your time?”</li></ul><h4>04. Logistics &amp; Body Language</h4><p>Professionalism is communicated through your actions and attention to detail:</p><ul><li><strong>Dress Code:</strong> Always opt for professional, formal attire to show respect for the process.</li><li><strong>Tech Check:</strong> If the interview is virtual, test your platform, video, and audio beforehand to avoid last-minute technical glitches.</li><li><strong>Presence:</strong> A confident start — a warm smile, firm eye contact, and a professional introduction — goes a long way.</li><li><strong>Ask Questions:</strong> Always come prepared with 2–3 thoughtful questions for the interviewer. It shows your genuine interest in the company and the role.</li></ul><h3>Session 2: SDLC &amp; The Power of AI</h3><p><strong>Speaker:</strong> Brion Mario, Associate Technical Lead, WSO2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*yMGvsi-9v_cnDRze6429nA.png" /><figcaption>SDLC</figcaption></figure><p>In this session, Brion Mario provided a masterclass on the modern <strong>Software Development Lifecycle (SDLC)</strong> and how to strategically integrate AI to elevate our development workflows. Here is a breakdown of the SDLC stages and the AI-driven approach he advocates:</p><h4>The Modern SDLC Workflow</h4><p>Brion outlined the lifecycle as:</p><p><strong>Idea → Requirements → Plan → Design → Code → Review → Test → Deployment → Maintenance.</strong></p><ul><li><strong>Requirements:</strong> Focus on Developer Experience (DX), maintainability, consistency, trustworthiness, and discoverability. Always ensure your code coverage meets professional standards.</li><li><strong>Planning:</strong> Use GitHub Issue Trackers and Project Boards. Break down complex tasks into manageable milestones.</li><li><strong>Designing:</strong> Create detailed design documents and diagrams. Use GitHub Discussions and email threads to collaborate early. <strong>Key Insight:</strong> It is always better to get criticism at the design stage. Refine your plan based on feedback before writing a single line of code.</li><li><strong>Coding:</strong> Work in branches and ship small, incremental Pull Requests (PRs). Automate the closing of issues using keywords like “close #42” and document everything.</li><li><strong>Reviewing:</strong> Practice self-review, request external reviews, and embrace constructive criticism with humility. Leverage CI tools like Prettier and GitHub Actions for automation.</li><li><strong>Testing:</strong> Implement Unit, Integration, and End-to-End tests. Remember, coverage is a floor, not a goal — bugs found in testing should immediately become new issues.</li><li><strong>Security:</strong> Think like an ethical hacker. Conduct threat modeling (look up <strong>STRIDE-</strong>) and consult with security experts to break features before they go live.</li></ul><blockquote><em>Here is the short description for the </em><strong><em>STRIDE</em></strong><em> model in English:</em></blockquote><blockquote><strong><em>Spoofing:</em></strong><em> Pretending to be someone or something other than yourself to gain unauthorized access.</em></blockquote><blockquote><strong><em>Tampering:</em></strong><em> Maliciously modifying data, code, or system configurations without authorization.</em></blockquote><blockquote><strong><em>Repudiation:</em></strong><em> Claiming that you did not perform an action because there is no proof or audit trail to prove otherwise.</em></blockquote><blockquote><strong><em>Information Disclosure:</em></strong><em> Exposing sensitive or private data to unauthorized individuals or systems.</em></blockquote><blockquote><strong><em>Denial of Service:</em></strong><em> Overloading or crashing a system so that legitimate users cannot access it.</em></blockquote><blockquote><strong><em>Elevation of Privilege:</em></strong><em> Gaining higher access rights or administrative permissions than originally assigned to a user.</em></blockquote><ul><li><strong>Deployment:</strong> PRs should rarely go directly to production. Utilize environment flows (Dev → Stage → Prod) powered by CD pipelines.</li><li><strong>Maintenance:</strong> Treat maintenance as a “consistency monster” — every new requirement must go through the entire SDLC cycle to maintain quality.</li></ul><h4>Leveraging AI in the SDLC</h4><p>Brion demonstrated how Generative AI is not just a trend but a utility to be integrated into every stage:</p><ul><li><strong>Idea &amp; Requirements:</strong> Use AI (e.g., Claude) to refine and document requirements.</li><li><strong>Design:</strong> Utilize GitHub Copilot’s “Effort Mode” to streamline architectural decisions.</li><li><strong>Planning:</strong> Use AI-assisted toggling modes to map out tasks.</li><li><strong>Coding &amp; Testing:</strong> Integrate tools like Playwright and MCP servers to automate testing and code generation.</li><li><strong>Documentation &amp; Deployment:</strong> Automate documentation generation and deployment workflows using AI-assisted CI/CD pipelines.</li></ul><h3>Session 3: Industry Trends &amp; Undergraduate Expectations</h3><p><strong>Speaker:</strong> Suvin Nimnaka, Senior Software Engineer, WSO2</p><p>This final session was a reality check for all of us. Suvin provided a clear roadmap on where the industry is heading and, more importantly, what it truly expects from an undergraduate.</p><h4>Emerging Tech Trends</h4><p>The industry is evolving at breakneck speed. These are the key areas shaping the future:</p><ul><li><strong>AI Evolution:</strong> Moving beyond generic LLMs toward specialized generative AI and Small Language Models (SLMs) optimized for specific capacities.</li><li><strong>Next-Gen Connectivity:</strong> Exploring <strong>Model Context Protocol (MCP)</strong> to allow AI to access and interact with external data engines.</li><li><strong>Intelligent Systems:</strong> The rise of AI Agents, AI Security (guardrails), Quantum Computing, and Post-Quantum Cryptography (HTTPS).</li><li><strong>Modern Infrastructure:</strong> Blockchain, Cloud-Native development (CNCF), Autonomous Robots, and Digital Identities.</li></ul><h4>What the Industry Expects from Undergrads</h4><p>Beyond the degree, the industry looks for specific signals that you are ready to contribute:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*cKPuxacVdMyTZzBpmn3ucg.jpeg" /><figcaption>Road Map</figcaption></figure><p><strong>1. Mastery of Fundamentals</strong></p><ul><li><strong>The Basics:</strong> You must have a deep understanding of Object-Oriented Programming (OOP) and Data Structures.</li><li><strong>Real-World Application:</strong> Understand <em>when</em> and <em>why</em> to use specific algorithms (e.g. using Linked Lists for Facebook comments). Always prioritize learning Time and Space Complexity.</li><li><strong>Resource:</strong> Start your journey with CS50 (Computer Science 50) is Harvard University’s premier, free introductory course on computer science and programming.</li></ul><p><strong>2. Language Fluency</strong></p><ul><li>Don’t try to learn everything at once. Become fluent in one language first. If you are starting, pick a strongly typed language like <strong>Java</strong> — once you master one, switching to others becomes effortless.</li></ul><p><strong>3. Proof of Passion (Beyond the Classroom)</strong></p><ul><li><strong>Side Projects:</strong> Move beyond generic management systems. Build something unique that solves a real problem.</li><li><strong>Visibility:</strong> Prove your knowledge through technical blogs, YouTube videos, or community talks.</li><li><strong>Competitions:</strong> Aim for prestigious platforms like SLASSCOM Ingenuity Awards, Microsoft Imagine Cup, NBQSA, or APICTA.</li><li><strong>Open Source:</strong> Participate in global events like Google Summer of Code (GSOC) and Hacktoberfest.</li></ul><h4>The “Soft” Skills That Matter</h4><p>When hiring, industry leaders look for these traits:</p><ul><li><strong>Resilience:</strong> The ability to solve problems and the mindset of not giving up.</li><li><strong>Adaptability:</strong> The ability to learn any new tool or technology “on the fly.”</li><li><strong>Mindset:</strong> Be humble, think logically, and master the effective use of AI tools — know exactly when and why to use them.</li></ul><h3>Let’s Grow Together!</h3><p>The insights I gained from WSO2 didn’t just give me information; they gave me a roadmap. However, the true value of knowledge lies in applying it. I am committed to practicing these principles, mastering my fundamentals, and building my career one step at a time.</p><p>If you are a fellow undergraduate or a tech enthusiast on a similar journey, <strong>let’s connect!</strong> Whether you want to discuss industry trends, collaborate on side projects, or simply share experiences, I’d love to hear from you.</p><p><strong>Let’s grow, learn, and build the future of tech together.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7494579a678" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Write a Professional GitHub README That Gets You Hired]]></title>
            <link>https://medium.com/@erandi2287hansika/how-to-write-a-professional-github-readme-that-gets-you-hired-05f99777d96c?source=rss-40f66b71982f------2</link>
            <guid isPermaLink="false">https://medium.com/p/05f99777d96c</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[github-readme]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Erandi Hansika]]></dc:creator>
            <pubDate>Fri, 29 May 2026 17:29:19 GMT</pubDate>
            <atom:updated>2026-05-29T17:29:19.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6SrNGrhWUj4_ur-Ta5lYtg.png" /><figcaption>How to Write a Professional GitHub README That Gets You Hired</figcaption></figure><p>As developers, we all love to do new projects and work with new tech stacks. But after we put a project we have worked hard on on GitHub, does it get the value it deserves?</p><p>Often, when a recruiter or another developer comes to your GitHub Repository, the first thing they see is the README.md file. It is like the “front page” of your project. If you don’t have a clean, clear, and beautiful README, no matter how well you code, it won’t work.</p><p>So today, let’s see how to write a professional-level GitHub README for your project!</p><h4><strong>Why is a Good README So Important?</strong></h4><p><strong>1.First Impressions Matter:</strong> A recruiter doesn’t have time to read your entire code. They get an idea of ​​the project from the README in a few seconds.</p><p><strong>2.Open Source Contributions:</strong> If someone else wants to contribute to your project, it should be clear how to run it.</p><p><strong>3.Showcases Your Professionalism:</strong> A developer with a good README is someone who knows how to do their job properly and with documentation.</p><p>Essential Components of a Professional README</p><h4>There are several key components that a good README must have:</h4><p><strong>1. Title &amp; A Catchy Tagline</strong><br>First, briefly (1–2 sentences) state the name of the project and what it does. If possible, include the Live Demo Link of the project here.</p><p><strong>2. Visuals (Screenshots or GIFs)</strong><br>“A picture is worth a thousand words.” Add some beautiful Screenshots or an animated GIF to show the look (UI) of the project. This will increase the curiosity of the person viewing the README.</p><p><strong>3. Tech Stack Badges</strong><br>You can put the Technologies you used (like React, .NET Core, Tailwind CSS) as beautiful Badges. You can use tools like Shields.io for this.</p><p><strong>4. Key Features</strong><br>Clearly indicate in bullet points what great features the project can do.</p><p>Ex: User Authentication, Dark Mode, Admin Dashboard).</p><p><strong>5. Getting Started / Installation Guide</strong><br>Write a step-by-step guide on how someone else can run this project on their computer:</p><p>1.Prerequisites (things that need to be installed)</p><p>2.How to clone</p><p>3.How to install dependencies</p><p>4.The command to run the project</p><p><strong>6. Architecture or Folder Structure</strong><br>Especially if you have used a scalable, clean architecture, put a short Folder Structure. It shows your project management skills.</p><h4>Pro-Tips to Make it Stand Out</h4><p><strong>Use Markdown properly</strong>: Use Headings (#, ##), Bold text (text), and Code blocks (```) correctly.</p><p><strong>Keep it updated</strong>: Don’t forget to update the README if you add a new feature to the project.</p><p><strong>Add a License:</strong> If it’s an open-source project, add one like the MIT License.</p><p>Writing a nice README may seem like an extra task, but it’s what will turn you from an average developer into a professional developer. So go to your old GitHub repositories today and add a great README!</p><p>Happy Coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05f99777d96c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparing YAKE! and KeyBERT for Next-Gen Keyword Extraction]]></title>
            <link>https://medium.com/@erandi2287hansika/comparing-yake-and-keybert-for-next-gen-keyword-extraction-d22ed2bce7d4?source=rss-40f66b71982f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d22ed2bce7d4</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[semanticweb]]></category>
            <dc:creator><![CDATA[Erandi Hansika]]></dc:creator>
            <pubDate>Fri, 15 May 2026 13:35:30 GMT</pubDate>
            <atom:updated>2026-05-15T13:35:30.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZE8b1IHRftNLovZGeGK33A.png" /><figcaption>KeyBERT or Yake!</figcaption></figure><h3>What is Semantic Computing?</h3><p><strong>Semantic Computing</strong> allows machines to understand the “meaning” and “intent” behind language rather than just treating words as random data. While traditional methods rely on exact matches, semantic computing uses context and logic to interpret nuances — like knowing when “Apple” refers to a tech company versus a fruit. It’s the engine behind tools like <strong>KeyBERT</strong>, ensuring results are relevant by <strong>concept</strong>, not just by word.</p><p><em>Level Up Your Knowledge</em></p><p>In my previous article, we explored the foundations of <strong>Keyword Extraction</strong> — how tools like <strong>spaCy</strong> and <strong>TF-IDF</strong> bridge the gap between human language and machine understanding.</p><p><strong>New to the topic?</strong> Catch up on the basics and how NLP works under the hood in my introductory guide: <a href="https://medium.com/@erandi2287hansika/advanced-keyword-extraction-leveraging-spacy-tf-idf-and-bert-for-semantic-computing-415b6588adf5"><strong>Advanced Keyword Extraction: Leveraging spaCy, TF-IDF, and BERT for Semantic Computing</strong>.</a></p><p>Building on those basics, today we move to a more comparative approach: <strong>How do we choose the right tool for the job?</strong> Let’s dive into the ultimate showdown between <strong>YAKE!</strong> and <strong>KeyBERT</strong></p><p>To understand the difference between <strong>YAKE!</strong> and <strong>KeyBERT</strong>, imagine you are standing in a massive library with thousands of books. You need to find out what a specific book is about in a very short time.</p><p>There are two ways you can approach this:</p><h4>1. The KeyBERT Approach (The “Deep Scholar”)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rn9Rc61x6sExeVkL5cjjDg.png" /><figcaption>KeyBERT</figcaption></figure><p>Now, imagine an expert scholar who sits down and reads the context. This scholar has already read millions of other books (this is the <strong>Pre-trained BERT model</strong>). They don’t just look at word counts; they look at <strong>meaning</strong>.</p><p><strong>Real-World Scenario:</strong> If that same book says, <em>“The thermal management system is critical for EV performance,”</em> KeyBERT is smart enough to know that <strong>“Thermal Management”</strong> is semantically the same as <strong>“Cooling.”</strong> Even if the word “Cooling” appears only once, KeyBERT might pick it as a top keyword because it understands that the <em>entire theme</em> of the book relates to temperature control. It understands that “Apple” in a tech book refers to a company, not a fruit, because it understands the “vibe” of the surrounding words.</p><p>Now that we understand the theory, you might be wondering: <strong>how do we actually build this?</strong></p><p>Here is the complete Python implementation for our KeyBERT extractors. I’ve added comments to help you follow along with the logic!</p><pre>%%writefile app.py<br># Importing the necessary libraries for UI, PDF processing, NLP, and Data Handling<br>import streamlit as st<br>import PyPDF2<br>from keybert import KeyBERT<br>import time<br>import pandas as pd<br><br># Define a function to load the KeyBERT model and cache it to improve performance<br>@st.cache_resource<br>def load_model():<br>    # Returns a pre-trained KeyBERT model instance<br>    return KeyBERT()<br><br># Initialize the model once and store it in a variable<br>kw_model = load_model()<br><br><br><br># Set the title of the Streamlit web application<br>st.title(&quot;Comprehensive Keyword Extractor&quot;)<br># Provide a brief description for the user interface<br>st.write(&quot;Upload a PDF to extract significant semantic keywords using Natural Language Processing.&quot;)<br><br># Create a file uploader widget that accepts only PDF files<br>uploaded_file = st.file_uploader(&quot;Choose PDF&quot;, type=[&quot;pdf&quot;])<br><br><br># Check if the user has uploaded a file<br>if uploaded_file is not None:<br>    # Read the uploaded PDF file using PyPDF2<br>    pdf_reader = PyPDF2.PdfReader(uploaded_file)<br>    text = &quot;&quot;<br>    <br>    # Iterate through all the pages in the PDF and extract text<br>    for page in pdf_reader.pages:<br>        extracted = page.extract_text()<br>        if extracted:<br>            # Append extracted text from each page to the main text variable<br>            text += extracted<br><br><br>    <br>    # Check if any text was successfully extracted from the document<br>    if text:<br>        # Calculate the number of unique words to define a dynamic extraction limit<br>        unique_word_count = len(set(text.split()))<br>        # Set a cap for keywords to extract, ensuring it doesn&#39;t exceed word count or 200<br>        max_keywords = min(unique_word_count, 1000) <br>        <br>        # Inform the user that processing has started<br>        st.info(f&quot;Processing document and extracting keywords...&quot;)<br>        # Start a timer to measure the performance of the extraction<br>        start_time = time.perf_counter()<br>        <br>        # Execute the keyword extraction using the KeyBERT model<br>        # use_mmr: Enables Maximal Marginal Relevance for diverse results<br>        # diversity: Set to 0.7 to ensure keywords are distinct and not repetitive<br>        keywords = kw_model.extract_keywords(<br>            text, <br>            keyphrase_ngram_range=(1, 1), <br>            stop_words=&#39;english&#39;, <br>            use_mmr=True,<br>            diversity=0.7, <br>            top_n=max_keywords <br>        )<br>        <br>        # Stop the timer once extraction is complete<br>        end_time = time.perf_counter()<br>        <br>        # Transform the result into a list of dictionaries, filtering low-relevance scores<br>        keyword_data = [{&quot;Keyword&quot;: kw[0], &quot;Score&quot;: round(kw[1], 2)} for kw in keywords if kw[1] &gt; 0.1]<br>        <br>        # If valid keywords are found, display them in the UI<br>        if keyword_data:<br>            # Convert the list into a Pandas DataFrame for better visualization<br>            df = pd.DataFrame(keyword_data)<br>            # Show a subheader with the total number of keywords found<br>            st.subheader(f&quot;Extracted Results ({len(df)} Keywords)&quot;)<br>            # Display the total time taken for the process<br>            st.write(f&quot;Extraction completed in {round(end_time - start_time, 2)} seconds.&quot;)<br>            # Render the data in a scrollable and searchable table<br>            st.dataframe(df, use_container_width=True)<br>            <br>            # Prepare the DataFrame as a CSV file for downloading<br>            csv = df.to_csv(index=False).encode(&#39;utf-8&#39;)<br>            # Add a button to allow users to download the keyword list as a CSV file<br>            st.download_button(<br>                label=&quot;Download Keywords as CSV&quot;, <br>                data=csv, <br>                file_name=&#39;extracted_keywords.csv&#39;, <br>                mime=&#39;text/csv&#39;<br>            )<br>        else:<br>            # Display a warning if the model couldn&#39;t find relevant keywords<br>            st.warning(&quot;No significant keywords were found in the provided document.&quot;)<br>    else:<br>        # Show an error if the PDF file has no readable text (e.g., scanned images)<br>        st.error(&quot;Could not read text from this PDF. Please ensure it is not an image-only scan.&quot;)</pre><h4>Why This Approach Matters</h4><p>Building a keyword extractor isn’t just about counting words; it’s about understanding the <strong>context</strong> and <strong>intent</strong> behind the document. By leveraging cloud-based tools like <strong>Google Colab</strong>, you can bypass hardware limitations and run heavy Deep Learning models seamlessly.</p><p><strong>1. The Core: NLP with KeyBERT &amp; BERT Embeddings</strong></p><p>Traditional keyword extractors often rely on word frequency (TF-IDF), which can miss the deeper meaning of a text. In this project, we use <strong>KeyBERT</strong>, which utilizes <strong>BERT (Bidirectional Encoder Representations from Transformers)</strong> embeddings.</p><ul><li><strong>Semantic Understanding</strong>: BERT “reads” the entire document to understand the relationship between words</li><li><strong>Vector Space</strong>: It converts the document and potential keywords into high-dimensional vectors.</li><li><strong>Cosine Similarity</strong>: The model then identifies words whose vectors are most similar to the document’s vector, ensuring the extracted keywords are contextually relevant, not just frequent.</li></ul><p><strong>2. Why Diversify? (The Power of diversity=0.7)</strong></p><p>One common issue in NLP is <strong>Redundancy</strong>. For example, a document might yield “Programming,” “Programmer,” and “Coding” as top keywords. While accurate, they all represent the same concept.</p><ul><li><strong>MMR (Maximal Marginal Relevance)</strong>: By setting use_mmr=True, we enable a reranking algorithm that balances relevance with novelty.</li><li><strong>The Diversity Slider</strong>: By setting diversity=0.7, we tell the model to strictly penalize words that are too similar to those already selected.</li><li><strong>Result</strong>: You get a much broader and more “comprehensive” set of keywords that covers different themes within your PDF, making it perfect for applications like <strong>Skill Gap Analysis</strong>.</li></ul><p><strong>3. Elevating User Experience (UX) with Streamlit</strong></p><p>A powerful model is only useful if people can interact with it easily. <strong>Streamlit</strong> allowed us to transform a complex Python script into a sleek, professional web app in minutes.</p><ul><li><strong>Clean UI</strong>: Users can simply drag and drop their PDF files into a modern interface.</li><li><strong>Interactive Data Tables</strong>: Instead of a messy text list, results are presented in a searchable, scrollable table (DataFrame), allowing for quick scanning of relevance scores.</li><li><strong>Actionable Data</strong>: With the built-in <strong>CSV Download</strong> feature, users can export their results instantly for further research or integration into other tools.</li></ul><blockquote><strong><em>Pro Tip</em></strong><em>: You can see the final output in the screenshots below! Notice how the keywords are distinct and the relevance scores help prioritize the most impactful terms.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*cj9UQf0Tbh0pPSAIkWIMGw.png" /><figcaption><em>Output of the Keyword Extract using KeyBERT</em></figcaption></figure><p><strong>Explore the Results Live!</strong></p><p>You can try this Keyword Extractor application yourself using the link below. Simply upload your PDF, and the BERT-powered engine will extract the most relevant semantic keywords in seconds.</p><p><strong>Try it here:</strong></p><blockquote><a href="https://semantic-keyword-explorer-bert-colab-pijdmlnnpoqkvykwlajrin.streamlit.app/">KeyBERT Semantic Keyword Explorer — Live Demo</a></blockquote><p>Not only can you view the results on-screen, but you can also <strong>download the complete list of extracted keywords as a CSV file</strong> directly from the interface for your own research or analysis.</p><h4>2. The YAKE! Approach (The “Speed Scanner”)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNa2dyQPU0VaOtm9tf9Luw.png" /><figcaption>YAKE!</figcaption></figure><p>Imagine a person who quickly flips through the pages of the book. They don’t read the sentences; instead, they look for:</p><ul><li><strong>How many times</strong> a word appears in bold or large font.</li><li><strong>Where</strong> the word is located (is it in the title or the first chapter?).</li><li><strong>Patterns</strong>: Does this word appear more often than common words like “the” or “and”?</li></ul><p><strong>Real-World Scenario:</strong> If you give YAKE! a technical manual about <strong>“Electric Vehicle Battery Cooling,”</strong> it will quickly see that the words “Battery,” “Cooling,” and “Electric” appear most frequently in important places. Within milliseconds, it gives you those keywords. It’s fast, efficient, and doesn’t need to know <em>what</em> a battery actually is to know it’s important.</p><p>Now that we understand the theory, you might be wondering: <strong>how do we actually build this?</strong></p><p>Here is the complete Python implementation for our YAKE! extractors. I’ve added comments to help you follow along with the logic!</p><pre>import streamlit as st  # Import the Streamlit framework for building the web interface<br>import PyPDF2           # Import PyPDF2 to handle PDF file reading and text extraction<br>import yake             # Import the YAKE! library for statistical keyword extraction<br>import pandas as pd     # Import Pandas to manage data in DataFrames and export to CSV<br>import time             # Import time to measure the execution performance<br><br>def extract_keywords_from_pdf(pdf_file):<br>    &quot;&quot;&quot;<br>    Function to extract up to 200 keywords from a PDF using the YAKE! algorithm.<br>    &quot;&quot;&quot;<br>    try:<br>        # Initialize the PDF reader object with the uploaded file<br>        pdf_reader = PyPDF2.PdfReader(pdf_file)<br>        full_text = &quot;&quot;<br>        <br>        # Iterate through every page in the PDF to extract text content<br>        for page in pdf_reader.pages:<br>            content = page.extract_text()  # Extract text from the current page<br>            if content:<br>                full_text += content       # Append the page content to the full_text string<br><br>        # Check if the extracted text is empty or contains only whitespace<br>        if not full_text.strip():<br>            return None<br><br>        # Initialize the YAKE! keyword extractor with specific parameters:<br>        # lan=&quot;en&quot;: Language set to English<br>        # n=3: Extract up to trigrams (3-word phrases)<br>        # dedupLim=0.9: Deduplication limit to filter similar results<br>        # top=200: Maximum number of keywords to return<br>        kw_extractor = yake.KeywordExtractor(lan=&quot;en&quot;, n=3, dedupLim=0.9, top=200, features=None)<br>        <br>        # Perform keyword extraction on the processed text<br>        keywords = kw_extractor.extract_keywords(full_text)<br>        return keywords<br>    except Exception as e:<br>        # Display an error message in the UI if the PDF processing fails<br>        st.error(f&quot;Error reading PDF: {e}&quot;)<br>        return None<br><br># Configure the Streamlit page layout and browser tab title<br>st.set_page_config(page_title=&quot;YAKE! Full Keyword Extractor&quot;, layout=&quot;wide&quot;)<br><br># Set the main title of the web application<br>st.title(&quot;YAKE! Full Keyword Extractor&quot;)<br><br># Display a brief description of the app&#39;s functionality<br>st.markdown(&quot;Upload your research PDF to extract all potential semantic keywords and download them as a CSV.&quot;)<br><br># Create a file uploader widget that specifically accepts PDF files<br>uploaded_file = st.file_uploader(&quot;Upload your PDF document&quot;, type=[&quot;pdf&quot;])<br><br># Execute the extraction logic only if a file has been uploaded<br>if uploaded_file is not None:<br>    # Show a loading spinner to the user during the extraction process<br>    with st.spinner(&#39;Processing document and extracting keywords...&#39;):<br>        start_time = time.perf_counter()       # Record the starting time<br>        results = extract_keywords_from_pdf(uploaded_file) # Call the extraction function<br>        end_time = time.perf_counter()         # Record the completion time<br>        <br>        execution_time = end_time - start_time # Calculate total processing duration<br>        <br>        if results:<br>            # Convert the list of results into a Pandas DataFrame for easy manipulation<br>            df = pd.DataFrame(results, columns=[&quot;Keyword&quot;, &quot;Score&quot;])<br>            <br>            # Display a success message showing the total count and time taken<br>            st.success(f&quot;Successfully extracted {len(results)} keywords in {execution_time:.4f} seconds!&quot;)<br><br>            # Prepare the DataFrame for download by converting it to CSV format (UTF-8 encoding)<br>            csv = df.to_csv(index=False).encode(&#39;utf-8&#39;)<br>            <br>            # Create a download button for the user to save the results locally<br>            st.download_button(<br>                label=&quot;Download Full Keyword List (CSV)&quot;,<br>                data=csv,<br>                file_name=&#39;extracted_keywords_yake.csv&#39;,<br>                mime=&#39;text/csv&#39;,<br>            )<br><br>            st.divider() # Add a visual horizontal line to separate the download from the preview<br><br>            # Heading for the preview section<br>            st.subheader(&quot;Preview: Top 40 Extracted Keywords&quot;)<br>            st.write(&quot;*(Note: In YAKE!, a lower score indicates higher statistical relevance)*&quot;)<br>            <br>            # Create two columns to display the preview results side-by-side<br>            col1, col2 = st.columns(2)<br>            <br>            # Loop through the first 40 keywords and display them in the columns<br>            for i, (kw, score) in enumerate(results[:40]):<br>                # Alternate between column 1 and column 2<br>                current_col = col1 if i % 2 == 0 else col2<br>                with current_col:<br>                    # Use a Streamlit info box to highlight each keyword and its score<br>                    st.info(f&quot;**{kw}**  \nScore: `{round(score, 4)}`&quot;)<br>            <br>            # If there are more than 40 keywords, inform the user they are in the CSV file<br>            if len(results) &gt; 40:<br>                st.write(f&quot;---  \n**Total {len(results)} keywords extracted.** Download the CSV to see the full list.&quot;)<br>        else:<br>            # Handle cases where the PDF might be an image or unreadable<br>            st.error(&quot;Text extraction failed. Please ensure the PDF contains selectable text.&quot;)<br></pre><h4>Explore the Results Live!</h4><p>You can try this <strong>YAKE! Keyword Extractor</strong> application yourself using the link below. Simply upload your research PDF, and the statistical engine will extract up to 200 relevant semantic keywords in seconds.</p><p><strong>Try it here:</strong></p><blockquote><a href="https://semantic-keyword-explorer-yake--colabs-7fhrvijtsgbaghupd99utd.streamlit.app/">YAKE! Full Keyword Extractor — Live Demo</a></blockquote><p>Not only can you view the results on-screen, but you can also <strong>download the complete list of extracted keywords as a CSV file</strong> directly from the interface for your own research or analysis. This feature is particularly useful for building datasets or conducting further academic evaluation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5IlurnsCuvbOt5lQaVxoHQ.png" /><figcaption><em>Output of the Keyword Extract using YAKE!</em></figcaption></figure><h4>Addressing Keyword Redundancy in YAKE!</h4><p>One notable challenge with statistical algorithms like <strong>YAKE!</strong> is keyword redundancy. Since it lacks deep semantic understanding, it often treats different forms of the same root word (e.g., <em>“Extract”</em>, <em>“Extraction”</em>, and <em>“Extracting”</em>) as unique keywords.</p><p><strong>1. Tuning the Deduplication Limit</strong></p><p>By reducing the dedupLim parameter (e.g., from <strong>0.9 to 0.6</strong>), the algorithm becomes more efficient at filtering out overlapping or similar terms.</p><pre>kw_extractor = yake.KeywordExtractor(lan=&quot;en&quot;, n=3, dedupLim=0.6, top=200)</pre><p><strong>2. Applying Lemmatization</strong></p><p>For higher precision, we cab use the <strong>spaCy</strong> library to reduce words to their base form (Lemma). This ensures that variations like <em>“Developing”</em> and <em>“Development”</em> are treated as a single, meaningful concept: <strong>“Develop”</strong>.</p><p><strong>A Note on Semantic Alternatives</strong></p><p>If you require native handling of such redundancies, <strong>KeyBERT</strong> is an excellent alternative. Since it is transformer-based, it understands the <strong>contextual meaning</strong> of words, naturally grouping similar terms without extra preprocessing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZpqY2AU2mGKI8SV0IRLLWw.png" /><figcaption>Feature of YAKE! &amp; KeyBERT</figcaption></figure><h4>KeyBERT vs YAKE!</h4><p><strong>1.KeyBERT</strong></p><p>KeyBERT leverages the power of <strong>BERT embeddings</strong> (state-of-the-art Deep Learning) to find keywords that are semantically similar to the entire document.</p><p><strong>Advantages:</strong></p><ul><li><strong>Deep Semantic Understanding:</strong> It “understands” the context. If your document is about “Automobiles,” it might identify “Transportation” as a key concept even if that specific word isn’t used frequently.</li><li><strong>High Accuracy:</strong> The keywords are usually much more relevant to the actual <em>theme</em> of the text.</li><li><strong>Customizable:</strong> You can swap the underlying model (e.g., using “DistilBERT” for speed or “RoBERTa” for better accuracy).</li></ul><p><strong>Disadvantages:</strong></p><ul><li><strong>Resource Heavy:</strong> It requires significant CPU/GPU power and RAM. This is why our 50-page test pushed CPU usage to 100%.</li><li><strong>Slower Execution:</strong> Processing large documents takes much longer than statistical methods because the AI has to “read” and encode every sentence.</li></ul><p><strong>Best Usage:</strong></p><ul><li>Academic research papers where precision is vital.</li><li>Deep content analysis and document clustering.</li><li>Applications where hardware (like Google Colab GPUs) is readily available.</li></ul><p><strong>2. YAKE! (Yet Another Keyword Extractor)</strong></p><p>YAKE! is a light-weight, unsupervised statistical labeling method. It doesn’t rely on massive AI models; instead, it looks at the features of the text itself.</p><p><strong>Advantages:</strong></p><ul><li><strong>Extremely Fast:</strong> Since it uses statistical features (like word frequency and position), it can process a 50-page document in milliseconds.</li><li><strong>Language Agnostic:</strong> It works remarkably well across many different languages without needing specific training.</li><li><strong>No Heavy Dependencies:</strong> You don’t need a GPU or large amounts of RAM to run it.</li></ul><p><strong>Disadvantages:</strong></p><ul><li><strong>Lacks “Understanding”:</strong> It only finds words that <em>look</em> important statistically. It doesn’t understand the actual meaning or “concept” behind the words.</li><li><strong>Noise Sensitivity:</strong> It might sometimes pick up high-frequency words that aren’t actually meaningful keywords.</li></ul><p><strong>Best Usage:</strong></p><ul><li>Real-time applications where speed is the priority.</li><li>Simple SEO tagging for blogs or news articles.</li><li>Environments with limited hardware resources (low-end PCs or basic cloud servers).</li></ul><h4>Which One Should You Choose?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11vYGsFNROEI_4k15PBoiA.png" /><figcaption>Summary Table for Quick Reference</figcaption></figure><p>After putting both models through a rigorous 50-page stress test, the winner depends entirely on your project’s specific needs:</p><ul><li><strong>Choose KeyBERT if:</strong> You are performing deep document analysis, academic research, or building a recommendation system where the <strong>meaning</strong> of the content is more important than the speed of extraction.</li><li><strong>Choose YAKE! if:</strong> You are building a high-speed application, such as a real-time news tagger or a search engine for massive datasets, where waiting several seconds for a result is not an option. It is the king of <strong>efficiency</strong>.</li></ul><p><strong>The “Golden Middle” Strategy</strong></p><p>In professional production environments, many developers use a <strong>Hybrid Approach</strong>. They use YAKE! to quickly filter out the most frequent terms and then pass those candidates to KeyBERT to verify their semantic relevance. This balances speed with human-like intelligence.</p><blockquote>Stay Connected for More NLP Insights!</blockquote><blockquote>If you found this deep dive into <strong>YAKE!</strong> and <strong>KeyBERT</strong> helpful, I’d love to have you join my professional journey. I frequently share my research findings, technical tutorials, and updates on my ongoing projects .</blockquote><blockquote><strong>Follow me on Medium</strong> for more articles on Natural Language Processing, Semantic Computing, and Full-stack Development.</blockquote><blockquote><strong>connect on </strong><a href="https://www.linkedin.com/in/erandi-hansika-a286ab225/"><strong>LinkedIn</strong></a></blockquote><blockquote><strong>Let’s innovate together!</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d22ed2bce7d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git & GitHub Essentials: Mastering the Commands Every Developer Should Know]]></title>
            <link>https://medium.com/@erandi2287hansika/git-github-essentials-mastering-the-commands-every-developer-should-know-64c709cd1dbe?source=rss-40f66b71982f------2</link>
            <guid isPermaLink="false">https://medium.com/p/64c709cd1dbe</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Erandi Hansika]]></dc:creator>
            <pubDate>Sun, 10 May 2026 08:46:42 GMT</pubDate>
            <atom:updated>2026-05-10T08:46:42.866Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xkyuM118M2nDQQ_IH_4nxg.png" /><figcaption>Every Developer Should Know Git &amp; Git Hub</figcaption></figure><p>In the world of modern software development, <strong>Version Control</strong> is not just a luxury — it’s a necessity. Whether you are working on a solo project or collaborating with a global team, Git and GitHub are the tools that keep your code organized, safe, and scalable.</p><p>If you’ve ever felt overwhelmed by the terminal, this guide will break down the essential Git commands you need to master to manage your workflow like a pro</p><h3>What is Git and GitHub, and Why Do They Matter?</h3><p>Before we dive into the commands, it is essential to understand the distinction between these two. While they are often mentioned together, they serve different purposes:</p><ul><li><strong>Git is the Tool:</strong> Think of Git as the engine running locally on your computer. It is the system that tracks every single change you make to your code, allowing you to save “snapshots” of your progress.</li><li><strong>GitHub is the Home:</strong> GitHub is the cloud-based platform where those snapshots live. It’s the online space where you store your code, share it with the world, and collaborate with other developers.</li></ul><h4>Why This Combination Matters</h4><p>Using Git and GitHub together transforms the way you build software. Here’s why this duo is a game-changer:</p><ul><li><strong>A Reliable Safety Net (Version Control):</strong> Made a massive mistake that broke your entire project? No problem. With Git, you can effortlessly <strong>revert</strong> to a previous, stable version without any panic.</li><li><strong>Seamless Collaboration:</strong> Working with a team is easier than ever. You can <strong>merge</strong> your code with others’ work, ensuring everyone stays on the same page without overwriting each other’s progress.</li><li><strong>Experimental Freedom (Branching):</strong> Want to try a risky new feature? You can create a <strong>branch</strong> to experiment freely. If it works, merge it; if it doesn’t, your main code remains untouched and safe.</li><li><strong>Showcase Your Work:</strong> Your GitHub profile acts as a <strong>living portfolio</strong>. It’s the best place to demonstrate your skills, contribute to open-source projects, and show potential employers what you are capable of building.</li></ul><blockquote><strong><em>Simple Analogy:</em></strong><em> If </em><strong><em>Git</em></strong><em> is like a camera that takes photos of your code at different stages, </em><strong><em>GitHub</em></strong><em> is like Instagram — the platform where you upload and share those photos.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUcLSbOUgOr_E0KnR3Tkbw.png" /><figcaption>Git and GitHub</figcaption></figure><h3>The Essential Git Roadmap: Step-by-Step</h3><h4>1. Setup &amp; Configuration</h4><p>Before you start coding, you must introduce yourself to Git. This ensures that every change you make is attributed to you.</p><ul><li><strong>git config</strong>: Sets your identity (Username and Email).</li><li><strong>git init</strong>: Turns a local folder into a new Git repository.</li></ul><h4>2. Fork &amp; Clone</h4><p>When you want to work on an existing project (like an open-source project or a team repository):</p><ul><li><strong>Fork</strong>: Creates a personal copy of someone else’s project on your GitHub account.</li><li><strong>Clone</strong>: Downloads that repository from GitHub to your local computer so you can start working on it.</li></ul><h4>3. Branching (The Safety Net)</h4><p>Branching is the most important part of modern development. It allows you to work on new features without touching the stable “Main” code.</p><ul><li><strong>git branch</strong>: Lists all existing branches in your project.</li><li><strong>git checkout -b &lt;name&gt;</strong>: Creates a new &quot;branch&quot; (like a parallel universe) and switches you into it.</li></ul><h4>4. Staging &amp; Committing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2eXApaE7I5W9nNKrky5S3A.png" /><figcaption>The Art of the Commit: How to Write Professional Messages</figcaption></figure><p>This is how you save your progress locally. Think of it as a two-step verification process.</p><ul><li><strong>git status</strong>: Shows which files have been modified.</li><li><strong>git add</strong>: Moves changes to the <strong>Staging Area</strong>. It’s like gathering items into a box before sealing it.</li><li><strong>git commit</strong>: Permanently saves the staged changes with a descriptive message. This creates a &quot;save point&quot; in your project history.</li></ul><p><strong><em>The Art of the Commit: How to Write Professional Messages</em></strong></p><p>A well-written commit message tells your teammates (and your future self) <strong>why</strong> a change was made, making the project’s history easy to navigate. To achieve this, the industry follows a standard called <strong>Conventional Commits</strong>.</p><p><strong>1. The Anatomy of a Perfect Commit</strong></p><p>Every commit should follow a specific structure to remain readable and organized.</p><ul><li><strong>Type</strong> <strong>(Prefix)</strong>: This tells the reader what kind of change was made.</li><li><strong>Subject:</strong> A brief summary of the change.</li><li><strong>Body</strong> (Optional)<strong>:</strong> A detailed explanation of the “why” behind the change.</li></ul><p><em>Example 1: Adding a New Feature</em></p><p>In your terminal, your commit would look like this:</p><pre>feat: add user login page with validation<br><br>Created a new login component with email and password fields. <br>Added client-side validation to ensure users enter a valid email <br>format before submitting the form.</pre><p>Breaking down the components:</p><ul><li>Type (Prefix): <strong>feat:</strong> This tells the reader that a brand-new feature has been introduced to the project.</li><li>Subject: <strong>add user login page with validation</strong> This is a concise summary of the work. Notice the use of the word <strong>&quot;add&quot;</strong> (Imperative mood/Present tense) instead of &quot;added.&quot;</li><li>Body (Optional)<strong>: </strong><strong>Detailed explanation</strong> This is where you explain the technical specifics—such as mentioning that you implemented email format validation.</li></ul><p><em>Example 2: Fixing a Bug</em></p><p>Now, imagine there was an error when users tried to upload their profile pictures, and you just fixed it.</p><pre>fix: resolve profile image upload error<br><br>Fixed the issue where the profile image was not saving <br>due to a missing API endpoint. Updated the service file <br>to use the correct URL.</pre><p>Why this is effective: Even months from now, if you or a teammate looks at the Git history, you won’t have to guess what happened. The <strong>Type</strong> (fix) immediately identifies this as a bug fix, and the <strong>Body</strong> explains exactly which service file was updated and why.</p><blockquote><strong><em>Pro Tip:</em></strong><em> When writing your Subject line, imagine completing the sentence: </em>“If applied, this commit will… [your subject line here]”<em>.</em></blockquote><p><em>If applied, this commit will… </em><strong><em>add user login page with validation</em></strong><em>.</em> This is a great trick to ensure you are always using the correct professional tone.</p><p><strong>2. Standard Prefix Types</strong></p><p>Using these prefixes helps categorize changes at a glance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ajCpYbYoKMOI-HyIEDzMZQ.png" /><figcaption><strong>Standard Prefix Types</strong></figcaption></figure><p><strong>3. The Golden Rules of Commit Messages</strong></p><p>To keep your repository professional, follow these three rules:</p><p>A. Use the Imperative Mood(Similar to command)</p><p>Write your message as if you are giving a command to the code.</p><pre>Bad: fixed the sidebar bug<br>Bad: fixing the sidebar bug<br><br>Good: fix: sidebar navigation bug</pre><blockquote>Reasoning:<em> Git itself uses the imperative mood (e.g., “Merge branch…”). Your messages should match this tone.</em></blockquote><p>B. Keep it Concise</p><p>The first line (the subject) should be <strong>50 characters or less</strong>. If you need to explain more, leave a blank line and use the <strong>Body</strong> section for the details.</p><p>C. Lowercase and No Periods</p><p>Most modern teams prefer starting the subject with a lowercase letter and ending without a period. This keeps the logs clean and uniform.</p><p><strong>4. Handling Common Actions (Create, Update, Delete)</strong></p><p>Here is how you should phrase your messages for common development tasks:</p><p>1.For Creating: Use feat or init.</p><pre>Example: feat: create contact form component</pre><p>2.For Updating<strong>:</strong> Use fix, refactor, or feat depending on the nature.</p><pre>Example: fix: update api endpoint for user data</pre><p>3.For Deleting: Use refactor or chore.</p><pre>Example: refactor: remove unused images from assets</pre><p><strong>5. Why Does This Matter?</strong></p><ol><li>Easier Code Reviews: Your peers can understand your intent before they even look at the code.</li><li>Automated Changelogs: Professional tools can read these prefixes to automatically generate “What’s New” lists for users.</li><li>Career Growth: When you share your GitHub profile during interviews, clean commit messages prove that you are a <strong>disciplined, professional engineer</strong> who cares about code quality.</li></ol><h4>5. Syncing (Pull &amp; Push)</h4><p>Finally, you need to keep your local work in sync with the remote server (GitHub).</p><ul><li><strong>git pull</strong>: Fetches and merges the latest changes from GitHub to your computer. <strong>Rule of thumb:</strong> Always pull before you start working to avoid conflicts.</li><li><strong>git push</strong>: Uploads your local commits to the GitHub repository so your team can see and use them.</li></ul><h4>6. Merging &amp; Pull Requests (Finishing the Task)</h4><p>Once your new feature is ready, you need to combine it with the main project.</p><ul><li><strong>Pull Request (PR):</strong> A request made on GitHub to merge your changes. It allows teammates to review your code, leave comments, and suggest improvements before the code is finalized.</li><li><strong>Merge:</strong> The process of joining two different branches into one.</li></ul><h4>7. Revert &amp; Reset (The “Undo” Buttons)</h4><p>Everyone makes mistakes. Git provides powerful ways to go back in time.</p><ul><li><strong>git revert</strong>: Creates a new commit that does the exact opposite of a previous commit, effectively &quot;undoing&quot; it without erasing the history.</li><li><strong>git reset</strong>: A more powerful command used to remove commits or unstage files. Use this carefully!</li></ul><h4>8. Git Stash (The Temporary Locker)</h4><p>Imagine you are halfway through a feature, but a sudden bug needs fixing on another branch. You aren’t ready to commit your messy work yet.</p><ul><li><strong>git stash</strong>: Temporarily &quot;hides&quot; or &quot;stashes&quot; your current uncommitted changes so you have a clean workspace. You can &quot;pop&quot; them back later when you&#39;re ready to finish.</li></ul><h4>9. Resolving Merge Conflicts (Handling Clashes)</h4><p>A <strong>Merge Conflict</strong> occurs when two people change the same line of code in different ways. Git doesn’t know which one to keep.</p><ul><li><strong>The Solution:</strong> You must manually open the file, look at both versions, and choose the correct code. It’s a normal part of a developer’s life!</li></ul><h4>10. .gitignore (Keeping it Clean)</h4><p>Not every file in your project should be shared (e.g., secret passwords, API keys, or massive folders like node_modules).</p><ul><li><strong>.gitignore</strong>: A special text file where you list the names of files or folders you want Git to ignore. This keeps your GitHub repository professional and secure.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZ4hrnpE-3sARgoW-Mim9A.png" /><figcaption>Resolving Merge Conflicts &amp; .gitignore</figcaption></figure><p>Mastering Git and GitHub is one of the most valuable investments you can make in your programming career. It’s not just about memorizing commands; it’s about building a <strong>disciplined workflow</strong> that makes you a reliable team player.</p><p>When you share your GitHub profile with potential employers, clean commit messages and an organized repository history prove that you are a professional engineer who cares about quality.</p><p><em>Final Checklist for Your Next Commit:</em></p><ol><li>Did I <strong>Pull</strong> the latest changes?</li><li>Am I working on a <strong>Branch</strong>?</li><li>Is my <strong>Commit Message</strong> in the imperative mood?</li><li>Did I include a <strong>Prefix</strong> (feat, fix, etc.)?</li><li>Did I check for <strong>Sensitive Files</strong> in my .gitignore?</li></ol><p>Let’s Connect!</p><p>If you found this guide helpful, feel free to share it with your fellow developers. I love sharing my learning journey and technical insights, so let’s connect on <a href="https://www.linkedin.com/in/erandi-hansika-a286ab225/"><strong>LinkedIn</strong></a> and keep the conversation going!</p><p><strong>Follow me on Medium</strong> to stay updated with my latest articles</p><h4><strong>Happy Coding !</strong></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64c709cd1dbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Agile Proficiency is the Non-Technical Skill Every Developer Needs in 2026 ?]]></title>
            <link>https://medium.com/@erandi2287hansika/why-agile-proficiency-is-the-non-technical-skill-every-developer-needs-in-2026-758a58f70f10?source=rss-40f66b71982f------2</link>
            <guid isPermaLink="false">https://medium.com/p/758a58f70f10</guid>
            <category><![CDATA[career-growth]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[agie]]></category>
            <dc:creator><![CDATA[Erandi Hansika]]></dc:creator>
            <pubDate>Mon, 27 Apr 2026 15:24:40 GMT</pubDate>
            <atom:updated>2026-04-27T15:24:40.623Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*LmaszR7Nof4LLJrZ4C_5_g.jpeg" /><figcaption>Agile methodology</figcaption></figure><p>The tech landscape in 2026 is rapidly evolving. While mastery of frameworks like React, Node.js, or .NET remains crucial, there is a silent requirement in every job description: <strong>Agile Proficiency.</strong> But why is a management methodology becoming a ‘must-have’ for developers?</p><p>In the past, developers could work in isolation, focusing only on their code. However, in 2026, software is built by highly collaborative, cross-functional teams. Agile bridges the gap between technical execution and business value. It transforms a developer from someone who just “writes code” into someone who “solves business problems.”</p><h3>What is Agile?</h3><p>In simple terms, <strong>Agile</strong> is an iterative approach to software development and project management. Instead of planning the entire project upfront and building it in one go (the traditional Waterfall method), Agile focuses on breaking a large project into smaller, manageable chunks called <strong>Sprints</strong>.</p><h3>Why it Matters More Than Ever in 2026</h3><ul><li><strong>Speed to Market:</strong> In a competitive world, companies need to release features fast. Agile’s iterative approach (Sprints) ensures that working software is delivered every 1–4 weeks.</li><li><strong>Adaptability:</strong> Requirements change. A developer who understands Agile doesn’t get frustrated when a feature changes, they embrace it as part of the “Backlog Refinement” process.</li><li><strong>Transparency with Jira:</strong> By using tools like <strong>Jira</strong>, every task is visible. Understanding how to move your tickets from “In Progress” to “Review” and finally to “Done” is a core professional habit.</li></ul><h3>Key Agile Rituals for Developers</h3><p>To be truly proficient, you need to understand these core pillars that keep the development engine running:</p><ul><li><strong>The Sprint:</strong> A focused period of work (usually 1–4 weeks) where the team commits to a specific set of goals. It creates a steady heartbeat for the project, ensuring consistent progress.</li><li><strong>Daily Stand-up:</strong> A quick 15-minute sync-up to discuss progress and identify blockers. It’s not just a status report; it’s a strategy session where the team aligns for the next 24 hours.</li><li><strong>Sprint Planning:</strong> This happens at the start of every sprint. The team reviews the <strong>Product Backlog</strong> and decides which features are ready to be developed, ensuring everyone is clear on the mission ahead.</li><li><strong>Backlog Refinement (Grooming):</strong> A continuous process where the team reviews upcoming tasks, breaks down complex stories, and assigns <strong>Story Points</strong> to estimate the effort required. It ensures that the “To-Do” list is always healthy and clear.</li><li><strong>Sprint Review (The Demo):</strong> At the end of the sprint, the team showcases the “Working Software” to stakeholders. This is a crucial feedback loop that ensures the product is actually meeting the user’s needs.</li><li><strong>The Retrospective:</strong> This is where the magic happens. After every sprint, the team looks back at what went well and what could be improved. It is the ultimate tool for continuous learning and team growth.</li></ul><h3>Agile + Git: The Professional Workflow</h3><p>Agile proficiency also means knowing how your workflow integrates with your code. Linking your <strong>Jira issues</strong> to your <strong>Git branches</strong> and Pull Requests (PRs) is the industry standard. It ensures that every line of code you write is tied to a specific user requirement or a bug fix.</p><h3>The Developer’s Agile Vocabulary: From Basics to 2026 Trends</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*xnw8tBAN1NRXjpM5YgyFTw.jpeg" /><figcaption>The Developer’s Agile Vocabulary: From Basics to 2026 Trends</figcaption></figure><p>To navigate the modern software industry, you need to speak its language. Below is a comprehensive guide to the terms every developer should master, categorized for easy learning.</p><h4>1. Core Concepts &amp; Planning</h4><ul><li><strong>Product Backlog:</strong> The master list of all work (features, fixes, tasks) that needs to be done for the project.</li><li><strong>Sprint Backlog:</strong> A subset of tasks chosen from the Product Backlog to be completed during the current sprint.</li><li><strong>User Story:</strong> A feature explained from the end-user’s perspective (<em>“As a user, I want to…”</em>).</li><li><strong>Epic:</strong> A large, complex user story that needs to be broken down into smaller, manageable stories.</li><li><strong>Acceptance Criteria (AC):</strong> A specific checklist of conditions that a feature must meet to be marked as “complete.”</li><li><strong>Story Points:</strong> A unit of measure used to estimate the overall effort and complexity of a task, rather than just hours.</li><li><strong>Planning Poker:</strong> A collaborative, gamified technique teams use to estimate the effort of user stories.</li><li><strong>Velocity:</strong> The average amount of work (measured in story points) a team completes during a single sprint.</li><li><strong>Capacity:</strong> The total amount of work a team can realistically handle in an upcoming sprint based on available time.</li><li><strong>Sprint Goal:</strong> A short statement that defines the primary objective the team wants to achieve by the end of the sprint.</li></ul><h4>2. Agile Rituals (The Meetings)</h4><ul><li><strong>Sprint Planning:</strong> A session where the team decides which items from the backlog they will commit to finishing in the next sprint.</li><li><strong>Daily Stand-up:</strong> A 15-minute daily sync to align the team on progress and identify “blockers.”</li><li><strong>Sprint Review:</strong> A meeting at the end of a sprint to demonstrate the working software to stakeholders.</li><li><strong>Sprint Retrospective:</strong> A private team meeting to reflect on what went well and what can be improved for the next sprint.</li><li><strong>Backlog Refinement (Grooming):</strong> A recurring meeting to clarify, estimate, and prioritize future tasks in the backlog.</li><li><strong>T-Shirt Sizing:</strong> A simplified estimation method using sizes (XS, S, M, L, XL) instead of numbers.</li><li><strong>Time-boxing:</strong> Allocating a fixed, maximum unit of time for an activity to ensure focus and efficiency.</li></ul><h3>3. Execution &amp; Workflow</h3><ul><li><strong>Definition of Done (DoD):</strong> A shared understanding of what it means for a task to be 100% complete (e.g., coded, tested, and documented).</li><li><strong>Definition of Ready (DoR):</strong> The criteria a task must meet before the team can even start working on it during a sprint.</li><li><strong>Kanban Board:</strong> A visual tool (like Jira boards) used to manage and track the flow of work.</li><li><strong>Scrum Board:</strong> A specific board used to manage tasks only for the current sprint.</li><li><strong>WIP Limit (Work In Progress):</strong> A strategy to limit the number of active tasks at one time to prevent team burnout and bottlenecks.</li><li><strong>Cycle Time:</strong> The total time it takes for a task to go from “Started” to “Finished.”</li><li><strong>Lead Time:</strong> The total time from the moment a task is created until it is fully completed.</li><li><strong>Burn-down Chart:</strong> A graph showing how much work is remaining versus the time left in the sprint.</li><li><strong>Burn-up Chart:</strong> A graph showing the total work completed against the total scope of the project.</li></ul><h4>4. Technical Quality &amp; People</h4><ul><li><strong>Scrum Master:</strong> The facilitator who helps the team stay on track and removes any obstacles in their way.</li><li><strong>Product Owner (PO):</strong> The person responsible for maximizing the value of the product and managing the backlog.</li><li><strong>Continuous Integration (CI):</strong> The practice of frequently merging code changes into a central repository.</li><li><strong>Continuous Deployment (CD):</strong> Automatically releasing every code change that passes testing into production.</li><li><strong>Test-Driven Development (TDD):</strong> A process where you write a test for a feature <em>before</em> you write the actual code.</li><li><strong>Technical Debt:</strong> The “interest” you pay later for choosing a quick, messy solution now instead of a better, long-term one.</li><li><strong>Minimum Viable Product (MVP):</strong> The simplest version of a product that can be released to gather early feedback.</li></ul><h4>5. Managing Blocks &amp; Issues</h4><ul><li><strong>Blocker/Impediment:</strong> Any issue that prevents a developer from moving forward with a task.</li><li><strong>Bottleneck:</strong> A point in the process where work gets stuck, slowing down the entire team.</li><li><strong>Scope Creep:</strong> When a project’s requirements grow uncontrollably without proper planning.</li><li><strong>Dependency:</strong> When one task cannot be started or finished until another task is completed.</li></ul><h3>Bonus: Advanced &amp; Modern Agile Concepts for 2026</h3><p>If you want to truly stand out in an interview, these advanced concepts are essential:</p><ol><li><strong>Spike:</strong> A task dedicated to research or prototyping. If a story is too complex to estimate, we run a “Spike” to investigate the technical approach first.</li><li><strong>INVEST Principle:</strong> A checklist to ensure high-quality user stories. They should be <strong>I</strong>ndependent, <strong>N</strong>egotiable, <strong>V</strong>aluable, <strong>E</strong>stimable, <strong>S</strong>mall, and <strong>T</strong>estable.</li><li><strong>Bus Factor:</strong> A risk metric that measures how many team members can “be hit by a bus” before the project stalls. It emphasizes the importance of sharing knowledge.</li><li><strong>Icebox:</strong> A storage area for great ideas or features that are interesting but not currently planned for development.</li><li><strong>Swarming:</strong> A technique where the entire team focuses on a single, high-priority task to get it across the finish line quickly.</li><li><strong>Psychological Safety:</strong> A team culture where members feel safe to take risks, admit mistakes, and voice concerns without fear of judgment. This is the foundation of a successful Agile team.</li></ol><p>Mastering a programming language gets you the interview, but mastering the Agile mindset gets you the job — and helps you keep it. As I prepare for my upcoming internship, I’ve realized that being “industry-ready” means being “Agile-ready.”</p><p>If you are an aspiring developer, don’t just stop at learning React or .NET. Learn how to work in a Sprint, how to write a good User Story, and how to navigate a Jira board. In 2026, your process is just as important as your product.</p><p><strong>Which of these Agile terms did you discover for the first time today? Are you using them in your current projects? Let me know in the comments below!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=758a58f70f10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Simple Search: Building a Semantic Keyword Extractor with Python & AI]]></title>
            <link>https://medium.com/@erandi2287hansika/advanced-keyword-extraction-leveraging-spacy-tf-idf-and-bert-for-semantic-computing-415b6588adf5?source=rss-40f66b71982f------2</link>
            <guid isPermaLink="false">https://medium.com/p/415b6588adf5</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sementic-computing]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Erandi Hansika]]></dc:creator>
            <pubDate>Sun, 12 Apr 2026 12:06:39 GMT</pubDate>
            <atom:updated>2026-04-22T12:18:40.160Z</atom:updated>
            <content:encoded><![CDATA[<h3>Advanced Keyword Extraction: Leveraging spaCy, TF-IDF, and BERT for Semantic Computing</h3><p>Do You Know? <em>How to Find Keywords in Your Documents Using AI</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S3cxAgaWMlJ0AdNCnTXJqQ.png" /><figcaption>Keyword Detect using Python &amp; Sementic Computing</figcaption></figure><p>We deal with a large amount of documents every day. But how can we know in a few seconds whether a document contains the important information (Keywords) we need? Semantic Computing and AI technology can help us with this.</p><h3>What is Semantic Computing?</h3><p>Simply put, it is not just a traditional search for a word, but also an analysis of the data by understanding the context in which that word is used.</p><p><strong>Want to dive deeper into Semantic Computing?</strong></p><p>If you’re curious about how machines truly understand human language, I’ve written a detailed blog post on this topic. Check out my article, <a href="https://medium.com/@erandi2287hansika/the-hidden-brain-of-ai-why-semantic-computing-is-the-future-of-intelligent-machines-4e40f179b126"><strong><em>“The Hidden Brain of AI: Why Semantic Computing is the Future of Intelligent Machines,</em></strong></a><strong><em>”</em></strong> on Medium here: <a href="https://medium.com/@erandi2287hansika/the-hidden-brain-of-ai-why-semantic-computing-is-the-future-of-intelligent-machines-4e40f179b126">Read More</a></p><h3>How to extract keywords using Python?</h3><p>Python is the world’s most popular language for data analysis. There are several methods for understanding the content of a document and extracting the main words in it (Keyword Extraction):</p><p>1. Natural Language Processing (NLP)</p><p>2. TF-IDF (Term Frequency-Inverse Document Frequency)</p><p>3. BERT and Transformative AI Models</p><p>In the era of Artificial Intelligence, teaching a machine to understand “human talk” is one of the most fascinating challenges. Whether you are building a simple chatbot or a complex sentiment analysis tool, understanding these three pillars is essential.</p><h3>1. Natural Language Processing (NLP): The Foundation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*LR72DeTOSNTEd5mdyjUh0w.jpeg" /><figcaption>NLP</figcaption></figure><p>Natural Language Processing is the bridge between human communication and computer understanding. It involves processing text or voice data so that a machine can derive meaning, intent, and even emotion from it.</p><p>In the Python ecosystem, we primarily rely on two heavy-hitters:</p><ul><li><strong>NLTK (Natural Language Toolkit):</strong> The “academic” favorite. It’s perfect for beginners and researchers. If you need to perform basic tasks like <strong>Tokenization</strong> (splitting sentences into words) or <strong>Stemming</strong> (reducing words to their root form), NLTK is your go-to library.</li><li><strong>spaCy:</strong> Built for production. If you are handling massive datasets and need speed, spaCy is significantly faster and more efficient. It’s designed to get things done in real-world software engineering environments.</li></ul><h4><em>Would you like to see the Python implementation for this?</em></h4><p>Before we dive into the code, ensure you have <strong><em>Python installed.</em></strong></p><p><strong>Setting up the Environment</strong></p><p>Before running the Python script, you need to install the <strong><em>spaCy</em></strong> library and download the necessary <strong><em>language model</em></strong><em>.</em> You can do this by executing the following commands in your terminal or command prompt:</p><pre># Install the spaCy library<br>pip install spacy<br><br># Download the medium-sized English language model<br>python -m spacy download en_core_web_md</pre><h4>Understanding the Setup Commands</h4><p>Before we dive into coding, let’s break down the essential commands used to prepare our environment.</p><p><strong>1. </strong><strong>pip install spacy</strong></p><ul><li><strong>Concept:</strong> Think of this as adding a new <strong>“Toolbox”</strong> to your computer.</li><li><strong>What is pip?</strong> It is Python’s <strong>Package Manager</strong>. It automatically finds, downloads, and installs external libraries from the internet.</li><li><strong>Purpose:</strong> This command installs the core <strong>spaCy</strong> logic and mathematical frameworks on your system. However, at this stage, the “toolbox” is empty; it doesn’t “know” any specific language yet.</li></ul><p><strong>2. </strong><strong>python -m spacy download en_core_web_md</strong></p><ul><li><strong>Concept:</strong> This is like giving your toolbox a <strong>“Knowledge Manual”</strong> or a pre-trained brain.</li><li><strong>The Breakdown:</strong></li><li><strong>python -m spacy</strong>: Runs the installed spaCy module.</li><li><strong>en</strong>: English language.</li><li><strong>core</strong>: Includes essential components like vocabulary, syntax, and entities.</li><li><strong>web</strong>: Indicates the model was trained on diverse internet data (blogs, news, articles).</li><li><strong>md</strong>: <strong>Medium-sized</strong>. Unlike the small (sm) model, the medium model includes <strong>Word Vectors</strong>, which allow the AI to understand the semantic similarity between different words.</li></ul><h4>What exactly is spaCy?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Kqcrl_8KCSSz_JbPFTdlbw.jpeg" /><figcaption>What exactly spacy?</figcaption></figure><p>In simple terms, <strong>spaCy</strong> is a high-performance Python library designed to help computers “understand” human language. Often referred to as <strong>“Industrial-strength NLP,”</strong> it is specifically built for real-world production environments rather than just academic research.</p><h4>Key Features of spaCy:</h4><ul><li><strong>Tokenization:</strong> Breaking down long sentences into individual units (tokens).</li><li><em>Example:</em> &quot;I love Python&quot; → [&quot;I&quot;, &quot;love&quot;, &quot;Python&quot;]</li><li><strong>Part-of-Speech (POS) Tagging:</strong> Identifying whether a word is a <strong>Noun, Verb, or Adjective</strong>.</li><li><strong>Named Entity Recognition (NER):</strong> Automatically detecting entities like <strong>Names, Companies (Google), Locations, or Currencies</strong>.</li><li><strong>Dependency Parsing:</strong> Analyzing the grammatical structure and how words relate to each other in a sentence.</li><li><strong>Word Vectors &amp; Similarity:</strong> Measuring how closely related two words are.</li><li><em>Example:</em> Identifying that <strong>“computer”</strong> and <strong>“laptop”</strong> share a similar context.</li><li><strong>Lemmatization:</strong> Reducing a word to its base or dictionary form.</li><li><em>Example:</em> Converting &quot;running&quot;, &quot;ran&quot;, and &quot;runs&quot; to the root word <strong>&quot;run&quot;</strong>.</li></ul><h4>Now that we have set up the environment, let’s dive into the code!</h4><p>In this section, we will create a Python function that uses <strong>spaCy</strong> to extract meaningful keywords from a block of text. This function will use a combination of <strong>Named Entity Recognition (NER)</strong> and <strong>Part-of-Speech (POS)</strong> tagging to identify the most relevant words.</p><pre>import spacy<br><br><br>nlp = spacy.load(&quot;en_core_web_md&quot;)<br><br>def extract_semantic_keywords(text):<br>    <br>    doc = nlp(text)<br>    <br>    <br>    keywords = set()<br><br>    for ent in doc.ents:<br>        keywords.add(ent.text)<br><br>    for token in doc:<br>        if token.pos_ in [&quot;NOUN&quot;, &quot;PROPN&quot;] and not token.is_stop:<br>            keywords.add(token.text)<br>            <br>    return list(keywords)<br><br><br>document_text = &quot;&quot;&quot;<br>Semantic computing aims to bridge the gap between human intentions and computer languages. <br>It involves natural language processing, data mining, and knowledge representation to <br>understand the context of digital content.<br>&quot;&quot;&quot;<br><br><br>result = extract_semantic_keywords(document_text)<br><br>print(&quot;Detected Keywords:&quot;)<br>print(result)</pre><h4>Full Code Breakdown: Semantic Keyword Extraction with spaCy</h4><p>This code is designed to automatically identify the most meaningful words (keywords) from a block of text using Natural Language Processing (NLP).</p><p><strong><em>1. Setting Up the Engine</em></strong></p><pre>import spacy<br>nlp = spacy.load(&quot;en_core_web_md&quot;)</pre><ul><li><strong>import spacy</strong>: We start by importing the spaCy library, which is our primary toolkit for NLP.</li><li><strong>spacy.load(&quot;en_core_web_md&quot;)</strong>: This loads the &quot;brain&quot; into our program. We are using the <strong>Medium-sized English model</strong>. It contains a pre-trained dictionary and linguistic rules that allow the computer to understand English grammar and the relationships between words.</li></ul><p><strong><em>2. Defining the Extraction Logic</em></strong></p><pre>def extract_semantic_keywords(text):<br>    doc = nlp(text)<br>    keywords = set()</pre><ul><li><strong>doc = nlp(text)</strong>: This is where the magic happens. spaCy processes the raw text and converts it into a <strong>Doc object</strong>. This object is a sequence of tokens (words) enriched with linguistic data like parts of speech and entities.</li><li><strong>keywords = set()</strong>: We use a set instead of a list to store our keywords. This automatically ensures that every keyword is <strong>unique</strong> and prevents duplicates.</li></ul><p><strong><em>3. Step</em></strong></p><p>Extracting Named Entities (The “Special” Names)</p><pre>for ent in doc.ents:<br>    keywords.add(ent.text)</pre><ul><li><strong>doc.ents</strong>: As we discussed, ents stands for <strong>Entities</strong>. These are specific real-world objects like people, organizations, or locations.</li><li><strong>ent</strong>: This is a variable representing one entity found in the text (like &quot;Google&quot; or &quot;Sri Lanka&quot;).</li><li><strong>ent.text</strong>: We use .text to extract just the <strong>actual characters</strong> of the word, ignoring technical metadata.</li></ul><p>Filtering Nouns and Removing “Noise”</p><pre>for token in doc:<br>    if token.pos_ in [&quot;NOUN&quot;, &quot;PROPN&quot;] and not token.is_stop:<br>        keywords.add(token.text)</pre><ul><li><strong>for token in doc</strong>: This loops through <strong>every single word</strong> in the document.</li><li><strong>token.pos_</strong>: This stands for <strong>Part-of-Speech</strong>. We filter for NOUN (common nouns like &quot;computer&quot;) and PROPN (proper nouns like &quot;Java&quot;). We ignore verbs and adjectives because nouns usually carry the core subject of a text.</li><li><strong>not token.is_stop</strong>: We filter out <strong>Stop Words</strong>. These are common words like &quot;is&quot;, &quot;the&quot;, and &quot;and&quot; that don&#39;t add specific meaning to a keyword list.</li></ul><p><strong><em>4. Execution and Output</em></strong></p><pre>document_text = &quot;&quot;&quot;...&quot;&quot;&quot;<br>result = extract_semantic_keywords(document_text)<br>print(result)</pre><p>The function processes your text and returns a clean list of keywords. By combining <strong>Named Entities</strong> and <strong>Filtered Nouns</strong>, the output provides a highly accurate summary of what the text is about.</p><p><strong>Why is this approach “Semantic”?</strong></p><p>Unlike a simple word count, this code understands the <strong>context</strong>. It knows the difference between a name and a regular word, and it understands which words are grammatically important to the meaning of your sentences.</p><h3>2. TF-IDF (Term Frequency-Inverse Document Frequency)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*hEljh1x64oWu5tmN9bOKNg.jpeg" /><figcaption>TF-IDF (Term Frequency-Inverse Document Frequency)</figcaption></figure><p>In the world of Semantic Computing, we need a way to tell the computer which words are actually important and which are just “noise.” This is where <strong>TF-IDF</strong> comes in. It is a mathematical technique used to determine the relative importance of a word in a specific document compared to a whole collection of documents.</p><h4>How It Works:</h4><ol><li><strong>Term Frequency (TF):</strong></li></ol><p>This measures how often a word appears in a single document.</p><ul><li><strong>Logic:</strong> If a word appears many times in a document, it is likely more relevant to that specific topic.</li><li><strong>Formula:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ZMzlWVMs2VxF7qOMaKwhw.png" /></figure><p><strong>2.Inverse Document Frequency (IDF):</strong></p><p>This measures how unique or rare a word is across all documents in your dataset.</p><ul><li><strong>Logic:</strong> Common words like “the,” “is,” or “and” appear in almost every document, so they aren’t helpful for identifying a specific topic. IDF penalizes these common words and rewards rare, meaningful terms like “Semantic” or “Algorithm.”</li><li><strong>Formula:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nGOxiFtEyLA7L4peUHoT5g.png" /></figure><h4>A Simple Practical Example:</h4><p>Imagine you are analyzing a collection of <strong>100 research papers</strong> about Information Technology:</p><ul><li><strong>The word “System”:</strong> It likely appears in all 100 papers. Because it is so common, TF-IDF gives it a <strong>low weight</strong>. It doesn’t help distinguish one paper from another.</li><li><strong>The word “Neural”:</strong> It might only appear in 2 papers focusing on AI. TF-IDF recognizes this rarity and gives “Neural” a <strong>high weight</strong> for those specific documents.</li></ul><h4>Why is it important for Keyword Extraction?</h4><p>TF-IDF allows us to automatically filter out the “fluff” and focus on the “essence” of a document. By calculating these scores, we can programmatically rank words and extract the top-scoring terms as our <strong>Keywords</strong>.</p><p>To better understand how this works in practice, here is a Python code snippet that demonstrates how to calculate TF-IDF scores for a sample collection of documents.</p><pre>from sklearn.feature_extraction.text import TfidfVectorizer<br>import pandas as pd<br><br>documents = [<br>    &quot;The system is built for information technology research.&quot;,<br>    &quot;Neural networks are used in artificial intelligence.&quot;,<br>    &quot;Deep learning and neural models are changing the world.&quot;,<br>    &quot;Operating system and hardware technology are related.&quot;<br>]<br><br>vectorizer = TfidfVectorizer(stop_words=&#39;english&#39;)<br>tfidf_matrix = vectorizer.fit_transform(documents)<br><br>feature_names = vectorizer.get_feature_names_out()<br>df = pd.DataFrame(tfidf_matrix.toarray(), columns=feature_names)<br><br>print(df)</pre><p>To run this code we have to ,</p><h4>Environment Setup &amp; Installation</h4><p>Before running the code, you need to have Python installed. You will also need to install the two essential libraries used in this script. Open your terminal or command prompt and run:</p><pre>pip install scikit-learn pandas</pre><p>Deep Dive into the Libraries</p><ul><li><strong>Scikit-Learn (</strong><strong>sklearn):</strong> This is the most popular machine learning library for Python. We use its TfidfVectorizer module, which is a high-level tool designed to convert a collection of raw documents into a matrix of TF-IDF features. It handles tokenization (breaking text into words) and the complex math of the formulas you wrote earlier.</li><li><strong>Pandas (</strong><strong>pd):</strong> This is a powerful data manipulation library. While scikit-learn gives us the raw numbers, Pandas allows us to put those numbers into a <strong>DataFrame</strong> (a table format) so it is easy to read, sort, and display.</li></ul><h4>Code Explanation</h4><p>Here is a step-by-step breakdown of how the logic flows:</p><p><strong><em>I. Data Preparation</em></strong></p><pre>documents = [ ... ]</pre><p>We define a list of strings called documents. In a real-world scenario, these could be entire research papers or blog posts. These are the raw materials for our &quot;Semantic&quot; analysis.</p><p><strong><em>II. Initialization</em></strong></p><pre>vectorizer = TfidfVectorizer(stop_words=&#39;english&#39;)</pre><p>Here, we create an instance of the vectorizer. The stop_words=&#39;english&#39; parameter is crucial. It tells the program to automatically ignore common filler words like &quot;the,&quot; &quot;is,&quot; and &quot;and,&quot; focusing only on meaningful terms like &quot;neural&quot; or &quot;hardware.&quot;</p><p><strong><em>III. Calculation (The “Magic” Step)</em></strong></p><pre>tfidf_matrix = vectorizer.fit_transform(documents)</pre><p>This single line does two things:</p><ol><li><strong>Fit:</strong> It learns the vocabulary (all unique words) across all documents.</li><li><strong>Transform:</strong> It applies the TF and IDF formulas to calculate the importance score for every word in every document.</li></ol><p><strong><em>IV. Feature Extraction</em></strong></p><pre>feature_names = vectorizer.get_feature_names_out()</pre><p>This retrieves the list of unique words that the vectorizer identified (e.g., “artificial,” “intelligence,” “system”). These will become the column headers in our final table.</p><p><strong><em>V. Data Visualization</em></strong></p><pre>df = pd.DataFrame(tfidf_matrix.toarray(), columns=feature_names)</pre><p>The raw output from scikit-learn is a &quot;sparse matrix&quot; (a compressed math format). We convert it back into a regular array and wrap it in a Pandas DataFrame so that each row represents a document and each column represents a word score.</p><p><strong>What the Output Represents</strong></p><p>When you run print(df), you will see a table of numbers.</p><ul><li>A <strong>0.0</strong> means the word does not appear in that document.</li><li>A <strong>higher value (e.g., 0.52)</strong> means that word is highly significant for that specific document.</li></ul><h3>3. BERT and Transformative AI Models: Understanding Context</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*cBmYdJQqHjrNa2iddbb1-A.jpeg" /><figcaption>BERT and Transformative AI Models: Understanding Context</figcaption></figure><p>While tools like spaCy and TF-IDF are great for extraction and importance, <strong>BERT (Bidirectional Encoder Representations from Transformers)</strong> is what gives AI a “human-like” understanding of language. Introduced by Google, it represents a revolutionary leap in how machines process text.</p><h4>What Makes BERT Different?</h4><p>Traditional NLP models used to read text in a linear fashion — either left-to-right or right-to-left. BERT, however, is <strong>Bidirectional</strong>. This means it looks at the words both before and after a specific word simultaneously to grasp its true meaning.</p><h4>The Power of Context (The “Bank” Example)</h4><p>To understand why this matters, let’s look at how BERT handles <strong>ambiguity</strong>. Consider the word <strong>“Bank”</strong> in two different sentences:</p><ol><li><em>“I went to the </em><strong><em>bank</em></strong><em> to deposit money.”</em></li><li><em>“I sat on the river </em><strong><em>bank</em></strong><em>.”</em></li></ol><p>In older models, the word “bank” would have the same mathematical representation in both sentences, leading to confusion. BERT, however, analyzes the surrounding words:</p><ul><li>In the first sentence, it sees <strong>“money”</strong> and <strong>“deposit,”</strong> correctly identifying “bank” as a <strong>financial institution</strong>.</li><li>In the second sentence, it sees <strong>“river,”</strong> identifying “bank” as a <strong>geological feature (sloping land)</strong>.</li></ul><h4>Why is this important for Semantic Computing?</h4><p>By understanding the <strong>contextual relationship</strong> between words, BERT allows us to move beyond simple keyword matching. It enables AI to understand intent, emotion, and subtle nuances, making it the backbone of modern search engines and intelligent chatbots.</p><h4>Understanding BERT in Action: A Python Approach</h4><p>To truly appreciate how BERT understands context, let’s look at a practical Python example. Unlike traditional models that see words in isolation, BERT looks at the entire sentence simultaneously.</p><pre>import spacy<br><br>nlp = spacy.load(&quot;en_core_web_trf&quot;)<br><br>doc1 = nlp(&quot;I went to the bank to deposit money.&quot;)<br>doc2 = nlp(&quot;I sat on the river bank.&quot;)<br><br>word1 = doc1[4] # &#39;bank&#39; in first sentence<br>word2 = doc2[5] # &#39;bank&#39; in second sentence<br><br>similarity = word1.similarity(word2)<br><br>print(f&quot;Sentence 1: {doc1.text}&quot;)<br>print(f&quot;Sentence 2: {doc2.text}&quot;)<br>print(f&quot;Similarity between &#39;bank&#39; (finance) and &#39;bank&#39; (river): {similarity:.4f}&quot;)</pre><p>This code is a perfect demonstration of <strong>Contextual Embeddings</strong> — the core strength of BERT. It shows that even though the word “bank” is spelled the same in both sentences, a Transformer model understands they are fundamentally different things.</p><h4>Deep Dive: Measuring Semantic Similarity with BERT</h4><p>To run this advanced NLP task, we use the spacy-transformers library, which allows <strong>spaCy</strong> to use <strong>BERT</strong> (or other Transformer models) under the hood.</p><p><strong><em>1. Prerequisites &amp; Setup</em></strong></p><p>Before running the code, you must install the transformer-based model. Unlike standard models, this one is much larger because it contains the BERT architecture.</p><pre>pip install spacy[transformers]<br>python -m spacy download en_core_web_trf</pre><p><strong>Why We Use These Commands: Beyond Basic Keywords</strong></p><p>While TF-IDF is great for statistical importance, modern Semantic Computing requires a deeper understanding of language. This is where <strong>spaCy</strong> and <strong>Transformers</strong> come into play.</p><p><em>1. </em><em>pip install spacy[transformers]</em></p><ul><li><strong>The Library (spaCy):</strong> spaCy is an industrial-strength Natural Language Processing (NLP) library. Unlike basic scripts, it can handle massive amounts of text quickly, performing tasks like “Part-of-Speech tagging” (identifying nouns/verbs) and “Named Entity Recognition” (identifying names/places).</li><li><strong>The Bridge ([transformers]):</strong> By adding [transformers], we are installing a bridge that allows spaCy to use <strong>Deep Learning models</strong> (like BERT or RoBERTa). These models don&#39;t just count words; they understand the &quot;vibe&quot; and context of a sentence.</li></ul><p><em>2. </em><em>python -m spacy download en_core_web_trf</em></p><ul><li><strong>The “Brain” (en_core_web_trf):</strong> This is a pre-trained <strong>Transformer pipeline</strong>. Think of it as a pre-educated brain that has already read billions of sentences.</li><li><strong>en:</strong> English language.</li><li><strong>trf:</strong> Transformer-based.</li><li><strong>Contextual Accuracy:</strong> Traditional methods treat the word “Bank” the same way in “River bank” and “Investment bank.” However, this specific model (trf) is smart enough to know the difference based on the surrounding words.</li></ul><p><em>Why is this necessary for your project?</em></p><p>If you want your system to move from simply “finding words” to actually “understanding concepts,” you need these tools. They allow your application to:</p><ol><li><strong>Filter Noise:</strong> Ignore words that don’t carry semantic weight.</li><li><strong>Understand Intent:</strong> Recognize the relationship between complex technical terms.</li><li><strong>High Accuracy:</strong> Achieve much higher precision in Keyword Extraction than simple statistical formulas.</li></ol><h4>2. Code Breakdown</h4><p><strong><em>Step 1: Loading the Transformer “Brain”</em></strong></p><pre>import spacy<br>nlp = spacy.load(&quot;en_core_web_trf&quot;)</pre><p>We load en_core_web_trf. The <strong>&quot;trf&quot;</strong> stands for <strong>Transformer</strong>. This model doesn&#39;t just look up words in a dictionary; it calculates a mathematical vector for each word based on its neighbors.</p><p><strong><em>Step 2: Processing the Sentences</em></strong></p><pre>doc1 = nlp(&quot;I went to the bank to deposit money.&quot;)<br>doc2 = nlp(&quot;I sat on the river bank.&quot;)</pre><p>When we pass these strings to nlp(), BERT analyzes the entire sentence. It notices &quot;deposit/money&quot; in the first sentence and &quot;river&quot; in the second.</p><p><strong><em>Step 3: Targeting the Specific Word</em></strong></p><pre>word1 = doc1[4] # The word &#39;bank&#39; at index 4<br>word2 = doc2[5] # The word &#39;bank&#39; at index 5</pre><p>We isolate the word “bank” from both contexts. In traditional NLP, these two would be identical. In BERT-based NLP, they are unique vectors.</p><p><strong><em>Step 4: Calculating Semantic Similarity</em></strong></p><pre>similarity = word1.similarity(word2)</pre><p>The .similarity() function compares the high-dimensional vectors (embeddings) of the two words.</p><p><strong><em>3. Understanding the Output</em></strong></p><p>When you run this code, the <strong>Similarity Score</strong> will be lower than you might expect for the same word (usually between <strong>0.1</strong> and <strong>0.5</strong>).</p><ul><li><strong>Why?</strong> Because BERT has “encoded” the first “bank” as a <strong>financial institution</strong> and the second as a <strong>geographic feature</strong>.</li><li><strong>The Result:</strong> The computer “realizes” that despite having the same letters, these two words represent different concepts.</li></ul><h4>Key Takeaway for Semantic Computing</h4><p>This is the “Hidden Brain” of AI in action. By using Transformer models, our applications can move beyond “keyword matching” and start “understanding meaning.” This is how modern search engines provide such accurate results — they understand the <strong>intent</strong> behind your words.</p><p>As we have explored, extracting keywords is no longer just about counting how many times a word appears in a document. Through <strong>Semantic Computing</strong>, we have moved from simple “word matching” to “meaning understanding.”</p><ul><li><strong>spaCy</strong> gives us the structural foundation to identify names and parts of speech.</li><li><strong>TF-IDF</strong> provides the statistical weight to separate the “essence” of a document from the “noise.”</li><li><strong>BERT</strong> adds the final layer of human-like intelligence, allowing our programs to understand context and intent.</li></ul><h4>The Future is Semantic</h4><p>Whether you are an undergraduate student like me, a researcher, or a developer, mastering these three pillars is the key to building the next generation of AI tools. From smarter search engines to AI that can summarize a 100-page legal document in seconds, the possibilities are endless.</p><p>The “Hidden Brain” of AI is constantly evolving. By combining these Python-based tools, you aren’t just writing code — you are teaching a machine to see the world through the nuance of human language.</p><h3>Which Tool Should You Choose?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6lEv0yxz1BCkO-NZmxgXg.png" /></figure><h3>Let’s Connect!</h3><blockquote><strong>Thank you for reading!</strong> If you found this guide helpful, feel free to leave a clap 👏 and follow for more insights into <strong>NLP, Full-stack Development, or Semantic Computing!</strong></blockquote><blockquote>Don’t forget to check out my previous deep dive into <a href="https://medium.com/@erandi2287hansika/the-hidden-brain-of-ai-why-semantic-computing-is-the-future-of-intelligent-machines-4e40f179b126">The Hidden Brain of AI.</a></blockquote><blockquote>💼 <strong>Professional Network:</strong> Let’s discuss modern web trends and AI on <a href="https://www.linkedin.com/in/erandi-hansika-a286ab225/"><strong>LinkedIn</strong></a></blockquote><blockquote>📧 <strong>Get in Touch:</strong> Feel free to reach out via email at <strong>erandi2287hansika@gmail.com</strong></blockquote><blockquote>📝 <strong>Stay Updated:</strong> Follow me here on <strong>Medium</strong> for more deep dives into <strong>React, .NET, and the Future of Intelligent Machines!</strong></blockquote><p><em>Keep coding, keep learning!</em></p><p><em>What are some “Professional” habits or patterns you’ve adopted in your coding journey? Let’s chat in the comments!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=415b6588adf5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the UI: The Difference Between a Regular React App and a Professional One]]></title>
            <link>https://medium.com/@erandi2287hansika/beyond-the-ui-the-difference-between-a-regular-react-app-and-a-professional-one-56fe8d4ca5d6?source=rss-40f66b71982f------2</link>
            <guid isPermaLink="false">https://medium.com/p/56fe8d4ca5d6</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[vites]]></category>
            <dc:creator><![CDATA[Erandi Hansika]]></dc:creator>
            <pubDate>Fri, 10 Apr 2026 05:22:23 GMT</pubDate>
            <atom:updated>2026-04-10T05:22:23.823Z</atom:updated>
            <content:encoded><![CDATA[<p>As developers, we all start by building simple React apps — a todo list, a counter, or a basic portfolio. These projects help us learn the fundamentals. But as we grow, we begin to notice a clear gap between a <strong>regular React app</strong> and a <strong>professional-grade</strong> one.</p><p>The difference isn’t just about prettier UI or more features. It’s about <strong>performance</strong>, <strong>scalability</strong>, <strong>maintainability</strong>, and how well the app can handle real-world demands like millions of users, frequent updates, and team collaboration.</p><p>In this post, I’ll break down the key differences with practical examples from real-world applications like Airbnb, Netflix, Shopify, and Trello.</p><p><strong><em>Do you know ?</em></strong></p><p><em>The Difference Between a Regular React App and a Professional One</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*8J-hnr4jPN1mcBa8uNjnWA.jpeg" /><figcaption><strong><em>Do you know </em></strong>The Difference Between a Regular React App and a Professional One</figcaption></figure><p>A <strong>regular React app</strong> (often beginner or hobby-level) focuses on getting something working quickly. You use basic tools, simple patterns, and whatever gets the job done.</p><p>A <strong>professional React app</strong> (production-grade) prioritizes long-term success: fast performance, easy maintenance, security, and the ability to scale as the business grows.</p><p>Here’s a clear breakdown of the main differences:</p><h4>1. Project Setup and Build Tools</h4><ul><li><strong>Regular</strong>: Starts with create-react-app (CRA) or a minimal Vite setup. Everything is bundled simply with default scripts.</li><li><strong>Professional</strong>: Uses modern, fast tools like <strong>Vite</strong> for lightning-quick development. Many large apps move toward frameworks like Next.js for server-side rendering (SSR), static generation, and built-in optimizations.</li></ul><p>Real-world example: <strong>Netflix</strong> handles massive traffic and personalized recommendations. They need extremely fast builds and optimized loading — something a basic CRA setup can’t easily deliver at that scale.</p><h4>2. Folder Structure and Code Organization</h4><ul><li><strong>Regular</strong>: Flat structure — everything in src/components/ or even a few big files.</li><li><strong>Professional</strong>: Feature-based or domain-driven architecture. Clear separation of concerns:</li></ul><pre>src/<br>├── components/<br>│   ├── UI/           # Reusable buttons, cards, icons<br>│   ├── Layout/       # Navbar, Footer<br>│   ├── Sections/     # Specific page sections<br>│   └── common/<br>├── features/         # Business logic per feature<br>├── data/             # Static or fetched data<br>├── router/           # Routing configuration<br>├── assets/<br>└── App.jsx</pre><p><strong>Airbnb</strong> and <strong>Shopify</strong> use well-organized structures like this. It allows large engineering teams to work without stepping on each other’s toes, even with thousands of components.</p><h4>3. Components and Patterns</h4><ul><li><strong>Regular</strong>: Mix of class and functional components, props drilling, and logic mixed directly in components.</li><li><strong>Professional</strong>: Exclusively functional components with Hooks. Small, single-responsibility components. Logic is extracted into custom hooks or services. Patterns like Compound Components or Atomic Design are common.</li></ul><p><strong>Trello</strong> (a heavy React user) relies on highly reusable, testable components so their boards, cards, and drag-and-drop features remain smooth and maintainable.</p><h4>4. State Management</h4><ul><li><strong>Regular</strong>: useState, useReducer, or simple Context API everywhere.</li><li><strong>Professional</strong>: Layered approach — local state with hooks, server data with TanStack Query (React Query), and lightweight global state (Zustand or Jotai) when needed. Overusing global state is avoided.</li></ul><p>Netflix’s recommendation engine and dynamic UI updates require smart, efficient state handling to avoid unnecessary re-renders.</p><h4>5. Data Fetching and Performance Optimization</h4><ul><li><strong>Regular</strong>: useEffect + fetch directly in components.</li><li><strong>Professional</strong>: Dedicated service layers, Suspense for loading, error boundaries, code-splitting with React.lazy, and tools like React.memo, useMemo, and useCallback used strategically.</li></ul><p><strong>Shopify</strong> powers millions of online stores. Their admin dashboards need excellent performance — fast loading, smooth interactions, and minimal re-renders even when handling complex data.</p><h4>6. Type Safety, Testing, and Reliability</h4><ul><li><strong>Regular</strong>: Plain JavaScript with minimal testing.</li><li><strong>Professional</strong>: TypeScript is standard, comprehensive testing (unit + integration + E2E), accessibility (a11y), and tools like ESLint, Prettier, and Husky for code quality.</li></ul><p>Professional teams also focus on security, CI/CD pipelines, and monitoring.</p><h4>7. Navigation and User Experience</h4><ul><li><strong>Regular</strong>: Basic links that cause full page reloads.</li><li><strong>Professional</strong>: <strong>React Router</strong> for seamless client-side routing, delivering a true Single Page Application (SPA) feel.</li></ul><p>Apps like <strong>Airbnb</strong> and <strong>Trello</strong> use advanced routing so users can navigate between listings, bookings, or boards instantly without losing context.</p><h3>Why This Matters for Developers</h3><p>Understanding these differences helps you move from “I can build something that works” to “I can build something that scales and performs in production.”</p><p>Whether you’re contributing to open-source, working on a startup product, or preparing for job interviews, focusing on professional practices (clean architecture, Vite + React Router, reusable components, and performance awareness) makes your work stand out.</p><h3>My Personal Takeaway as an Undergraduate Developer</h3><p>Building <strong>Kronix</strong> was a turning point in my development journey. It shifted my focus from just “making features work” to “architecting scalable solutions.” By implementing a feature-based folder structure, choosing <strong>Vite</strong> for its lightning-fast performance, and utilizing clean coding patterns like .map() for reusable components, I realized that professional development is about long-term maintainability rather than just immediate results.</p><h3>What’s Next?</h3><p>The learning journey doesn’t stop here. My next goal is to dive deeper into <strong>React 19’s Server Components</strong> and integrate <strong>TanStack Query</strong> for more robust server-state management in my upcoming projects, including <strong>SkillPivotlk</strong> — an AI-driven career platform I am currently developing.</p><h3>Let’s Connect!</h3><p>If you found this breakdown helpful, I’d love to hear your thoughts or collaborate on exciting projects!</p><ul><li>🚀 <strong>Live Demo:</strong> Explore the project live at <a href="https://www.google.com/search?q=https://kronix-agency.vercel.app"><strong>kronix-agency.vercel.app</strong></a></li><li>💻 <strong>Explore the Code:</strong> Check out the full source code on <a href="https://github.com/Erandi-Hans"><strong>GitHub</strong></a></li><li>💼 <strong>Professional Network:</strong> Let’s discuss modern web trends on <a href="https://www.linkedin.com/in/erandi-hansika-a286ab225/"><strong>LinkedIn</strong></a></li><li>📧 <strong>Get in Touch:</strong> Feel free to reach out via email at <strong>erandi2287hansika@gmail.com</strong></li><li>📝 <strong>Stay Updated:</strong> Follow me here on <strong>Medium</strong> for more deep dives into React and Web Development!</li></ul><p><em>What are some “Professional” habits or patterns you’ve adopted in your React journey? Let’s chat in the comments!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56fe8d4ca5d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React: Is it a Library or a Framework? Understanding the Core Difference.]]></title>
            <link>https://medium.com/@erandi2287hansika/react-is-it-a-library-or-a-framework-understanding-the-core-difference-4e10e046f940?source=rss-40f66b71982f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e10e046f940</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Erandi Hansika]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 04:53:14 GMT</pubDate>
            <atom:updated>2026-04-07T04:53:14.606Z</atom:updated>
            <content:encoded><![CDATA[<p>Many beginners and even experienced developers often get confused:<strong><em> “Is React a library or a framework?”</em></strong></p><p>You’ll hear people casually call it a<strong><em> “React framework,”</em></strong></p><p>yet the official React documentation clearly states: <strong><em>“A JavaScript library for building user interfaces.”</em></strong></p><p>This debate is especially common among new software engineering students and junior developers. Let’s clear it up once and for all in a simple, practical way.</p><h3>1.What is React?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*8lqmyLpOBwfJEnbZPEh-Yw.jpeg" /><figcaption>Key Benefits of React</figcaption></figure><p>React was created by Facebook (now Meta) and is officially described as <strong>a JavaScript library for building user interfaces</strong>. It focuses on one main job: helping you create reusable UI components and efficiently update the screen when data changes.</p><p>However, because of its massive ecosystem and powerful tools built around it (like Next.js), many treat React as if it were a full framework. So, what’s the real difference?</p><h3>2.The Core Difference: Control (Inversion of Control — IoC)</h3><p>The technical distinction between a library and a framework comes down to who is in control.</p><ul><li><strong>Library (like React):</strong> You are in control. You decide <strong>when</strong> and <strong>how</strong> to use the library’s functions in your code. You call the library — it doesn’t call you. React gives you powerful tools (like components, hooks, and Virtual DOM), but it never forces a specific project structure or flow on you.</li><li><strong>Framework (like Angular or Next.js):</strong> The framework is in control. It provides a complete structure and calls your code at specific points (Inversion of Control). You must follow the framework’s rules, conventions, and architecture. The framework decides the overall flow of your application.</li></ul><p>In short:</p><p><strong>Library → You call it.</strong></p><p><strong>Framework → It calls you.</strong></p><h3>3. Why React is a Library?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uV4wFZoAQnB6QT9XWSDRtw.jpeg" /><figcaption><strong>The Perfect Analogy: Library vs. Framework</strong></figcaption></figure><p>React does only one core thing extremely well: <strong>rendering UI components</strong> and managing how the UI updates efficiently using its <strong>Virtual DOM</strong>.</p><p>It does <strong>not</strong> include:</p><ul><li>Built-in routing (you need <em>React Router</em>)</li><li>State management beyond basic <em>useState/useReducer</em> (you often add Redux, Zustand, or Context)</li><li>Form handling, <em>API data fetching logic</em>, or <em>authentication</em> out of the box</li></ul><p>This flexibility (being “unopinionated”) is React’s biggest strength. You can pick exactly the tools you need for your project instead of being locked into one way of doing things.</p><h3>4. Real-World Analogy (Simple Example)</h3><p>Think of building a house:</p><ul><li><strong>Library (React)</strong> is like a <strong>Lego set</strong>. You have high-quality bricks (components), and you can build <strong>anything</strong> you want — a small house, a castle, or even a spaceship. The control is completely in your hands. You decide the design, when to add pieces, and how everything fits together.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*JShvDxaG61Ja8OlU6DoW4Q.jpeg" /><figcaption>React is like a Lego set. You have the blocks (Components), and you decide how to build the structure. Total freedom and flexibility!</figcaption></figure><ul><li><strong>Framework (Angular or a full-stack setup)</strong> is like buying a <strong>ready-made prefab house</strong>. The basic structure, rooms, and wiring are already decided. You can paint the walls or rearrange some furniture, but you have to work within the pre-built frame and rules.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*2tvY0LvIRH7RiP2xqNDvMQ.jpeg" /><figcaption>A Framework is like this ready-made house. The structure, rooms, and flow are already decided. You just move in and customize within the given frame.</figcaption></figure><p>Another fun analogy:</p><p><strong>React</strong> = Lego bricks (total creative freedom).</p><p><strong>Framework</strong> = A ready-assembled toy house kit (convenient but less flexible).</p><h3>6. The React Ecosystem — Turning a Library into Framework Power</h3><p>Here’s the beautiful part: Even though React itself is a library, the ecosystem around it gives you <strong>framework-level power</strong> when you need it.</p><p>The most popular example is <strong>Next.js</strong> — officially called “The React Framework.” It adds:</p><ul><li>File-system based routing</li><li>Server-side rendering (SSR)</li><li>API routes</li><li>Image optimization</li><li>Built-in data fetching</li></ul><p>Many modern production apps are not built with “plain React” but with <strong>Next.js + React</strong>. So React becomes the heart, while Next.js provides the full structure.</p><p><strong>React is technically a library</strong>, but it sits at the center of a rich, flexible ecosystem that can deliver the productivity and structure of a framework.</p><p>Its greatest advantage is <strong>freedom and flexibility</strong> — perfect when you want full control over your architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e10e046f940" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>