<?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 Inuri Dissanayaka on Medium]]></title>
        <description><![CDATA[Stories by Inuri Dissanayaka on Medium]]></description>
        <link>https://medium.com/@inuridissanayaka93?source=rss-aa9666334a15------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5skijrCpJsYWEQrnh_5TqQ.jpeg</url>
            <title>Stories by Inuri Dissanayaka on Medium</title>
            <link>https://medium.com/@inuridissanayaka93?source=rss-aa9666334a15------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:49:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@inuridissanayaka93/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[The Sprint Cycle: Breaking Down Agile’s Weekly Ritual]]></title>
            <link>https://medium.com/@inuridissanayaka93/the-sprint-cycle-breaking-down-agiles-weekly-ritual-5c3ed153fc59?source=rss-aa9666334a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c3ed153fc59</guid>
            <dc:creator><![CDATA[Inuri Dissanayaka]]></dc:creator>
            <pubDate>Fri, 21 Nov 2025 15:48:37 GMT</pubDate>
            <atom:updated>2025-11-21T15:48:37.205Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Y8ue1Tl8Ch74NQjTe2ksIg.jpeg" /></figure><p><em>If you’ve recently joined a software development team, you’ve probably heard the word “sprint” thrown around more times than a CrossFit instructor says “amplitude.” But unlike CrossFit, sprints in software development won’t leave your legs burning for three days, just your brain.</em></p><p>Let me break down what’s actually happening in this beautiful, chaotic cycle that somehow keeps us developers from shipping garbage into production.</p><h3><em>What Even Is a Sprint?</em></h3><p>Think of a sprint as a time-boxed chunk of work, usually one or two weeks where your team agrees to deliver a specific set of features. It’s like saying “Hey, for the next week, we’re building THIS,” and then actually building it (ideally). Revolutionary, I know<em>.</em></p><h3>The Sprint Planning: Where Dreams Meet Reality</h3><p>Every sprint kicks off with <strong>sprint planning</strong>. This is where you and your team sit down, grab your coffee, and decide what gets built.</p><p>Your product manager brings stories from the <strong>product backlog, </strong>that ever-growing, never-shrinking list of everything anyone has ever wanted your app to do. You’ll look at things like “add dark mode,” “fix that one weird bug,” or “make the login button slightly more blue.”</p><blockquote><em>Here’s the key: you’re not committing to everything. You’re picking what’s actually doable in the next one to two weeks. It’s like meal prepping, except instead of chicken and broccoli, you’re preparing features, and instead of staying healthy, you’re preventing your team from working nights and weekends.</em></blockquote><h3>The Sprint Backlog: Your Personal Hit List</h3><p>Once you’ve decided what’s happening, those items move into the <strong>sprint backlog</strong>. This is your new best friend. It’s smaller than the product backlog, it’s focused, and it’s exactly what you’re responsible for shipping this sprint.</p><p>Each item breaks down into <strong>tasks, </strong>the actual things developers will do. “Add dark mode” becomes “design color palette,” “update CSS variables,” “test on different browsers,” and “pray it doesn’t break on Safari.” You know, the usual.</p><h3>Daily Standups: The 15-Minute Miracle (Or Nightmare)</h3><p>Every morning, and I mean <em>every</em> morning, your team has a <strong>daily standup</strong>. Everyone takes 15 minutes (supposedly) to answer three questions:</p><ol><li>What did I finish yesterday?</li><li>What am I working on today?</li><li>What’s blocking me?</li></ol><p>It’s the Agile equivalent of “show your work.” Sometimes these are genuinely helpful. Other times, someone will spend five minutes explaining why the server went down, and suddenly you’re 20 minutes in and someone’s heating up their lunch in the background.</p><h3>Story Time: The Work Actually Happens</h3><p>Between standups, you’re doing the actual work. This is <strong>story time, </strong>though it’s less Sleeping Beauty and more debugging why your API suddenly hates your frontend.</p><p>You’ll pick tasks from your sprint backlog, code them up, test them, and push them to a branch. The story isn’t done until it’s reviewed, approved, and merged. Think of it as quality control for your quality control.</p><h3>The Sprint Review: Show and Tell for Adults</h3><p>At the end of the sprint, you do a <strong>sprint review</strong>. This is where your team demonstrates what you’ve built to stakeholders, product managers, and that one executive who always asks “can’t we just make it faster?”</p><p>You show the working features, talk about what got done, and try not to mention all the tech debt you’re now swimming in. Everyone claps (or doesn’t), and you get feedback that might end up back in the product backlog.</p><h3>The Retrospective: Honest Reflection Time</h3><p>Then comes the <strong>retrospective, </strong>the most underrated meeting on the calendar. This is where you actually talk about how the sprint went.</p><p>What worked well? What was a complete mess? What can we improve next sprint? It’s surprisingly therapeutic if people are honest. You might discover that mandatory 6 AM standups aren’t great for your West Coast team, or that nobody understands those requirements because they’re written like a cryptic poem.</p><h3>The Cycle Repeats</h3><p>And then… you do it all again. Sprint planning, sprint backlog, daily standups, story time, sprint review, retrospective. Rinse and repeat until you’ve either built something amazing or had a collective existential crisis. Usually both.</p><h3>Why This Actually Works</h3><p>Here’s the thing: this cycle exists for a reason. Breaking your work into manageable chunks means you’re not staring at a six-month project wondering if you’re making progress. Every week or two, you have something concrete to show for your effort. Your team stays aligned. Roadblocks surface quickly instead of being surprise nightmares three weeks before launch.</p><p>Plus, knowing the sprint ends gives you permission to stop obsessing over perfection. It’s not “make the perfect feature.” It’s “deliver value in two weeks, iterate, improve.”</p><h3>The Reality Check</h3><p>Now, do all teams execute this perfectly? Absolutely not. Some sprints are chaos. Someone forgets to estimate the work. The requirements change mid-sprint. The database crashes on Thursday. Life happens.</p><p>But that’s kind of the beauty of it. The sprint cycle isn’t rigid, it’s flexible enough to adapt while keeping you moving forward. It’s organized chaos with structure.</p><p>So the next time someone talks about “the sprint,” you’ll know they’re not talking about running really fast (though after sprint planning, that might happen too). They’re talking about a proven framework for getting software shipped without completely losing your mind.</p><p>And honestly? In this industry, that’s a win.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c3ed153fc59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Java Works: Understanding the Magic Behind Your Code]]></title>
            <link>https://medium.com/@inuridissanayaka93/how-java-works-understanding-the-magic-behind-your-code-19fcfddedcbc?source=rss-aa9666334a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/19fcfddedcbc</guid>
            <dc:creator><![CDATA[Inuri Dissanayaka]]></dc:creator>
            <pubDate>Wed, 12 Nov 2025 06:17:45 GMT</pubDate>
            <atom:updated>2025-11-12T06:17:45.306Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*Cos59IHyXPP2LNY5-UHnrg.jpeg" /></figure><p>Ever wondered what happens when you hit “Run” on your Java program? Unlike other programming languages, Java takes a unique approach that makes it powerful, portable, and secure. This guide reveals the complete journey of your Java code from source to execution.</p><h3>The “Write Once, Run Anywhere” Promise</h3><p>Java’s biggest claim to fame is platform independence. Write your code once, and it runs on Windows, Mac, Linux, Android, or even embedded systems. But how does this actually work?</p><p>The secret lies in Java’s two-step compilation and execution process. Unlike languages like C++ that compile directly to machine code, Java uses an intermediate format called <strong>bytecode</strong> that runs on a virtual machine.</p><p>Think of it like this: Instead of building a house specifically for one type of land (Windows-style foundation, Mac-style foundation), Java builds a blueprint (bytecode) that can be adapted to any land through a universal construction system (JVM).</p><h3>The Java Ecosystem: Key Components</h3><p>Before diving into how Java works, let’s understand the main players:</p><h3>1. JDK (Java Development Kit)</h3><p>Your complete toolbox for creating Java applications. It includes:</p><ul><li><strong>Java Compiler (javac)</strong>: Converts your source code to bytecode</li><li><strong>JRE</strong>: Everything needed to run Java programs</li><li><strong>Development Tools</strong>: Debugger, documentation generator, and more</li></ul><pre># Check if JDK is installed<br>java -version<br>javac -version</pre><h3>2. JRE (Java Runtime Environment)</h3><p>The runtime environment needed to execute Java programs. It includes:</p><ul><li><strong>JVM</strong>: The virtual machine that executes bytecode</li><li><strong>Core Libraries</strong>: Essential Java classes and APIs</li><li><strong>Supporting Files</strong>: Configuration and property files</li></ul><h3>3. JVM (Java Virtual Machine)</h3><p>The heart of Java’s platform independence. It:</p><ul><li>Executes bytecode</li><li>Manages memory</li><li>Provides security</li><li>Handles garbage collection</li></ul><p><strong>Key Insight</strong>: You need JDK to <em>develop</em> Java apps, but end-users only need JRE to <em>run</em> them.</p><h3>The Complete Journey: From Code to Execution</h3><p>Let’s follow a simple program through its entire lifecycle:</p><pre>public class HelloWorld {<br>    public static void main(String[] args) {<br>        System.out.println(&quot;Hello, Java!&quot;);<br>    }<br>}</pre><h3>Step 1: Writing Source Code (.java files)</h3><p>You write human-readable code using a text editor or IDE. This is saved with a .java extension:</p><pre>HelloWorld.java  ← Your source code</pre><p>Java source code must follow specific rules:</p><ul><li>File name must match the public class name</li><li>One public class per file</li><li>Proper syntax and structure</li></ul><h3>Step 2: Compilation (javac)</h3><p>When you compile, the Java Compiler (javac) transforms your source code into bytecode:</p><pre>javac HelloWorld.java</pre><p><strong>What happens internally:</strong></p><ol><li><strong>Lexical Analysis</strong>: Breaks code into tokens (keywords, identifiers, operators)</li><li><strong>Syntax Analysis</strong>: Checks if code follows Java grammar rules</li><li><strong>Semantic Analysis</strong>: Verifies type correctness, variable declarations</li><li><strong>Bytecode Generation</strong>: Produces platform-independent .class files</li></ol><p><strong>Output</strong>:</p><pre>HelloWorld.class  ← Bytecode file</pre><p><strong>What is Bytecode?</strong> Bytecode is an intermediate representation that looks like this (simplified):</p><pre>0: getstatic     #2    // Get System.out<br>3: ldc           #3    // Load &quot;Hello, Java!&quot;<br>5: invokevirtual #4    // Call println<br>8: return              // Exit method</pre><p>This isn’t human-readable, but it’s not machine code either. It’s designed for the JVM to understand.</p><h3>Step 3: Class Loading</h3><p>Before execution, the <strong>Class Loader</strong> loads .class files into memory. This happens in three stages:</p><p><strong>Loading</strong>: Reads .class file and creates class objects</p><pre>// When you use a class, it&#39;s loaded<br>HelloWorld obj = new HelloWorld();</pre><p><strong>Linking</strong>: Verifies, prepares, and resolves:</p><ul><li><strong>Verification</strong>: Ensures bytecode is valid and secure</li><li><strong>Preparation</strong>: Allocates memory for static variables</li><li><strong>Resolution</strong>: Replaces symbolic references with actual memory addresses</li></ul><p><strong>Initialization</strong>: Executes static initializers and static blocks</p><pre>public class Example {<br>    static int count = 0;           // Initialization<br>    <br>    static {<br>        count = 10;                 // Static block runs once<br>    }<br>}</pre><h3>Step 4: Bytecode Verification</h3><p>The <strong>Bytecode Verifier</strong> performs critical security checks:</p><ol><li>No illegal data conversions</li><li>No invalid memory access</li><li>Proper method calls</li><li>Valid operand stack usage</li></ol><p>This is why Java is considered secure, malicious code is caught before execution.</p><h3>Step 5: Execution by JVM</h3><p>The JVM executes bytecode using two methods:</p><h4>Interpretation (Default for startup)</h4><p>The <strong>Interpreter</strong> reads bytecode line by line and executes it:</p><pre>Bytecode Line 1 → Execute → Result<br>Bytecode Line 2 → Execute → Result<br>Bytecode Line 3 → Execute → Result</pre><p><strong>Pros</strong>: Fast startup time <strong>Cons</strong>: Slower execution for repetitive code</p><h4>Just-In-Time (JIT) Compilation</h4><p>The <strong>JIT Compiler</strong> identifies “hot spots” (frequently executed code) and compiles them to native machine code:</p><pre>// This loop runs 1000 times<br>for (int i = 0; i &lt; 1000; i++) {<br>    total += i;  // After a few iterations, JIT compiles this to machine code<br>}</pre><p><strong>Pros</strong>: Near-native performance for long-running applications <strong>Cons</strong>: Takes time to warm up</p><p><strong>Modern Java</strong>: Uses both! Interpreted for quick starts, JIT for performance.</p><h3>Inside the JVM: Memory Management</h3><p>The JVM divides memory into several areas:</p><h3>1. Method Area (Metaspace in Java 8+)</h3><p>Stores:</p><ul><li>Class metadata</li><li>Static variables</li><li>Constant pool</li></ul><pre>public class Config {<br>    static final String APP_NAME = &quot;MyApp&quot;;  // Stored in Method Area<br>}</pre><h3>2. Heap Memory</h3><p>Where objects live. Divided into:</p><p><strong>Young Generation</strong>:</p><ul><li>Eden Space: New objects created here</li><li>Survivor Spaces (S0, S1): Objects that survive garbage collection</li></ul><p><strong>Old Generation</strong>:</p><ul><li>Long-lived objects promoted from Young Generation</li></ul><pre>String name = new String(&quot;Java&quot;);  // Object created in Heap (Eden)</pre><h3>3. Stack Memory</h3><p>Each thread gets its own stack storing:</p><ul><li>Local variables</li><li>Method calls</li><li>Partial results</li></ul><pre>public void calculate() {<br>    int x = 10;        // Stored in Stack<br>    int y = 20;        // Stored in Stack<br>    int sum = x + y;   // Stored in Stack<br>}  // All variables removed when method exits</pre><h3>4. Program Counter (PC) Register</h3><p>Tracks the current instruction being executed for each thread.</p><h3>5. Native Method Stack</h3><p>For methods written in other languages (like C/C++) called via JNI (Java Native Interface).</p><h3>Garbage Collection: Automatic Memory Management</h3><p>Unlike C/C++ where you manually free memory, Java’s <strong>Garbage Collector (GC)</strong> automatically reclaims unused objects.</p><h3>How It Works:</h3><pre>public void demo() {<br>    String temp = new String(&quot;Temporary&quot;);  // Object created<br>    // Use temp...<br>}  // temp is no longer referenced - eligible for GC</pre><p><strong>GC Process</strong>:</p><ol><li><strong>Mark</strong>: Identify objects still in use</li><li><strong>Sweep</strong>: Remove unreferenced objects</li><li><strong>Compact</strong>: Defragment memory (optional)</li></ol><p><strong>Common GC Algorithms</strong>:</p><ul><li><strong>Serial GC</strong>: Single-threaded, simple applications</li><li><strong>Parallel GC</strong>: Multi-threaded, throughput-focused</li><li><strong>G1 GC</strong> (default): Balances throughput and latency</li><li><strong>ZGC</strong>: Ultra-low latency for large heaps</li></ul><pre># Run with specific GC<br>java -XX:+UseG1GC HelloWorld</pre><h3>JVM Architecture Diagram</h3><pre>┌─────────────────────────────────────────────────────────┐<br>│                     Java Application                    │<br>└─────────────────────────────────────────────────────────┘<br>                          │<br>                          ▼<br>┌─────────────────────────────────────────────────────────┐<br>│                  Java Virtual Machine                     │<br>│  ┌─────────────────────────────────────────────────┐    │<br>│  │              Class Loader Subsystem               │    │<br>│  │  • Bootstrap   • Extension   • Application       │    │<br>│  └─────────────────────────────────────────────────┘    │<br>│                          │                               │<br>│  ┌─────────────────────────────────────────────────┐    │ <br>│  │              Memory Areas                         │    │<br>│  │  ┌──────────┐  ┌─────┐  ┌──────┐  ┌─────────┐  │    │<br>│  │  │  Method  │  │Heap │  │Stack │  │ PC Reg. │  │    │<br>│  │  │   Area   │  │     │  │      │  │         │  │    │<br>│  │  └──────────┘  └─────┘  └──────┘  └─────────┘  │    │<br>│  └─────────────────────────────────────────────────┘    │<br>│                          │                               │<br>│  ┌─────────────────────────────────────────────────┐    │<br>│  │              Execution Engine                     │    │<br>│  │  • Interpreter  • JIT Compiler  • GC             │    │<br>│  └─────────────────────────────────────────────────┘    │<br>└─────────────────────────────────────────────────────────┘<br>                          │<br>                          ▼<br>┌─────────────────────────────────────────────────────────┐<br>│              Operating System (Windows/Mac/Linux)         │<br>└─────────────────────────────────────────────────────────┘</pre><h3>Real-World Example: Complete Execution Flow</h3><p>Let’s trace a more complex program:</p><pre>public class Calculator {<br>    // Static variable - loaded into Method Area<br>    static int count = 0;<br>    <br>    // Instance variable - stored in Heap with object<br>    private int result;<br>    <br>    // Constructor<br>    public Calculator() {<br>        count++;  // Increment static counter<br>    }<br>    <br>    // Method<br>    public int add(int a, int b) {<br>        int sum = a + b;  // Local variable - stored in Stack<br>        result = sum;     // Updates Heap<br>        return sum;<br>    }<br>    <br>    public static void main(String[] args) {<br>        Calculator calc1 = new Calculator();  // Object in Heap<br>        Calculator calc2 = new Calculator();  // Another object in Heap<br>        <br>        int total = calc1.add(5, 10);  // Method call - Stack frame created<br>        System.out.println(&quot;Total: &quot; + total);<br>        System.out.println(&quot;Objects created: &quot; + count);<br>    }<br>}</pre><p><strong>Execution Steps</strong>:</p><ol><li><strong>Compilation</strong>: javac Calculator.java → Calculator.class</li><li><strong>JVM Startup</strong>: JVM process starts</li><li><strong>Class Loading</strong>:</li></ol><ul><li>Bootstrap loader loads core Java classes</li><li>Application loader loads Calculator.class</li><li>Static variable count initialized to 0 in Method Area</li></ul><p><strong>4. main() Execution Begins</strong>:</p><ul><li>Stack frame created for main()</li><li>Local variable args stored in Stack</li></ul><p><strong>5. Object Creation</strong> (new Calculator()):</p><ul><li>Memory allocated in Heap (Eden Space)</li><li>Constructor executes</li><li>count increments to 1</li></ul><p><strong>6. Method Call</strong> (calc1.add(5, 10)):</p><ul><li>New Stack frame for add() method</li><li>Parameters a=5, b=10 pushed to Stack</li><li>Local variable sum=15 created in Stack</li><li>Instance variable result updated in Heap</li><li>Returns 15, Stack frame removed</li></ul><p><strong>7. Output</strong>: println method executes</p><ol><li><strong>GC Check</strong>: After main() ends, calc1 and calc2 become unreferenced → eligible for garbage collection</li></ol><h3>Platform Independence Explained</h3><p>Java achieves “Write Once, Run Anywhere” through abstraction:</p><p><strong>Without Java</strong>:</p><pre>C++ Code → Compiler → Windows.exe (only runs on Windows)<br>C++ Code → Compiler → Mac Binary (only runs on Mac)</pre><p><strong>With Java</strong>:</p><pre>Java Code → javac → Bytecode (universal)<br>                       │<br>       ┌───────────────┼───────────────┐<br>       ▼               ▼               ▼<br>   Windows JVM     Mac JVM         Linux JVM<br>       │               │               │<br>       ▼               ▼               ▼<br>   Runs fine      Runs fine       Runs fine</pre><p>Each platform has its own JVM implementation that knows how to execute bytecode on that specific OS.</p><h3>Why Java is Fast (Despite Being Interpreted)</h3><p>Java overcomes the “interpreted language” performance penalty through:</p><h3>1. JIT Compilation</h3><p>Converts hot code paths to native machine code:</p><pre>// After running many times, this gets compiled to machine code<br>public int fibonacci(int n) {<br>    if (n &lt;= 1) return n;<br>    return fibonacci(n-1) + fibonacci(n-2);<br>}</pre><h3>2. Hotspot Optimization</h3><p>Modern JVMs identify and optimize frequently executed code:</p><ul><li>Inlining methods</li><li>Dead code elimination</li><li>Loop unrolling</li></ul><h3>3. Escape Analysis</h3><p>Determines if objects can be stack-allocated instead of heap-allocated for better performance.</p><h3>4. Tiered Compilation</h3><p>Combines interpretation and multiple levels of JIT compilation for optimal performance.</p><h3>Common Misconceptions Debunked</h3><h3>Myth 1: “Java is slow because it’s interpreted”</h3><p><strong>Reality</strong>: Modern JVMs use JIT compilation. Java applications can match C++ performance for long-running applications.</p><h3>Myth 2: “JVM is just an interpreter”</h3><p><strong>Reality</strong>: The JVM is a sophisticated execution engine with JIT compilation, optimization, and native code generation.</p><h3>Myth 3: “Bytecode is machine code”</h3><p><strong>Reality</strong>: Bytecode is platform-independent intermediate code. The JVM translates it to actual machine code.</p><h3>Myth 4: “You need JDK to run Java apps”</h3><p><strong>Reality</strong>: End-users only need JRE. JDK is for developers.</p><h3>Performance Tips Based on How Java Works</h3><p>Understanding Java’s internals helps you write better code:</p><h3>1. Minimize Object Creation</h3><pre>// Bad: Creates many objects<br>for (int i = 0; i &lt; 1000; i++) {<br>    String result = &quot;Count: &quot; + i;  // New String each iteration<br>}</pre><pre>// Good: Reuse StringBuilder<br>StringBuilder sb = new StringBuilder();<br>for (int i = 0; i &lt; 1000; i++) {<br>    sb.setLength(0);<br>    sb.append(&quot;Count: &quot;).append(i);<br>}</pre><h3>2. Use Primitives When Possible</h3><pre>// Slower: Wrapper class in Heap<br>Integer count = 0;</pre><pre>// Faster: Primitive in Stack<br>int count = 0;</pre><h3>3. Help the JIT Compiler</h3><pre>// Consistent types help JIT optimize<br>public int calculate(int x) {  // Always int<br>    return x * 2;<br>}</pre><h3>4. Understand String Pool</h3><pre>String s1 = &quot;Hello&quot;;           // In String Pool (Method Area)<br>String s2 = &quot;Hello&quot;;           // Reuses same reference<br>String s3 = new String(&quot;Hello&quot;); // New object in Heap</pre><pre>System.out.println(s1 == s2);  // true (same reference)<br>System.out.println(s1 == s3);  // false (different objects)</pre><h3>JVM Tuning Basics</h3><p>For production applications, you can tune JVM behavior:</p><pre># Set heap size<br>java -Xms512m -Xmx2g MyApp  # Min 512MB, Max 2GB</pre><pre># Choose GC algorithm<br>java -XX:+UseG1GC MyApp</pre><pre># Enable JIT logging<br>java -XX:+PrintCompilation MyApp</pre><pre># Monitor GC activity<br>java -Xlog:gc* MyApp</pre><h3>Evolution of Java Execution</h3><p>Java’s execution model has evolved significantly:</p><p><strong>Early Java (1995–2005)</strong>:</p><ul><li>Primarily interpreted</li><li>Slow compared to C++</li><li>Focus on portability</li></ul><p><strong>Modern Java (2010-Present)</strong>:</p><ul><li>Aggressive JIT compilation</li><li>Advanced GC algorithms (G1, ZGC)</li><li>Performance rivals native code</li><li>Graal VM for polyglot programming</li></ul><p><strong>Recent Innovations</strong>:</p><ul><li><strong>Project Loom</strong>: Virtual threads for massive concurrency</li><li><strong>Project Panama</strong>: Better native interop</li><li><strong>GraalVM</strong>: Ahead-of-time compilation to native executables</li></ul><h3>Quick Reference: Java Execution Flow</h3><pre>┌──────────────┐<br>│ Source Code  │  Developer writes .java file<br>│  (.java)     │<br>└──────┬───────┘<br>       │ javac<br>       ▼<br>┌──────────────┐<br>│  Bytecode    │  Platform-independent .class file<br>│  (.class)    │<br>└──────┬───────┘<br>       │ java<br>       ▼<br>┌──────────────┐<br>│ Class Loader │  Loads classes into memory<br>└──────┬───────┘<br>       │<br>       ▼<br>┌──────────────┐<br>│  Verifier    │  Ensures bytecode is safe<br>└──────┬───────┘<br>       │<br>       ▼<br>┌──────────────┐<br>│ Interpreter/ │  Executes bytecode<br>│ JIT Compiler │  Optimizes hot code<br>└──────┬───────┘<br>       │<br>       ▼<br>┌──────────────┐<br>│   Execution  │  Program runs<br>│   +  GC      │  Memory managed automatically<br>└──────────────┘</pre><h3>Key Takeaways</h3><ol><li>Java uses a two-step process: compilation to bytecode, then execution on JVM</li><li>Bytecode is platform-independent, JVM is platform-specific</li><li>JIT compilation makes Java fast by converting hot code to machine code</li><li>Memory is automatically managed through garbage collection</li><li>The JVM provides security through bytecode verification</li><li>Modern Java performance rivals native languages like C++</li></ol><h3>What’s Next?</h3><p>Now that you understand how Java works under the hood, explore:</p><ol><li><strong>Memory Management Deep Dive</strong>: Learn about different GC algorithms</li><li><strong>Performance Optimization</strong>: Master JVM tuning</li><li><strong>Concurrency</strong>: Understand threads and the Thread Scheduler</li><li><strong>JVM Languages</strong>: Explore Kotlin, Scala, Groovy (all run on JVM)</li></ol><p><strong>Have questions about how Java works? Drop them in the comments! Which part fascinated you the most?</strong></p><p><em>Follow for more in-depth Java tutorials and software engineering insights. Happy coding! ☕</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19fcfddedcbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Variables Explained]]></title>
            <link>https://medium.com/@inuridissanayaka93/java-variables-explained-f46bc9242231?source=rss-aa9666334a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/f46bc9242231</guid>
            <dc:creator><![CDATA[Inuri Dissanayaka]]></dc:creator>
            <pubDate>Wed, 12 Nov 2025 06:08:47 GMT</pubDate>
            <atom:updated>2025-11-12T06:08:47.879Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re learning Java programming, understanding variables is your first step toward writing powerful applications. This guide breaks down everything you need to know about Java variables, from basic concepts to practical examples you can use today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*VvYt0Z05wmUhGN8MIh8Caw.jpeg" /></figure><h3>What Are Variables in Java?</h3><p>Think of variables as labeled containers that store information in your program. Just like you might label a box “Winter Clothes” in your closet, variables have names that tell you what data they hold.</p><p>In Java, every variable has three key components:</p><ul><li><strong>Type</strong>: What kind of data it can store (numbers, text, etc.)</li><li><strong>Name</strong>: What you call it in your code</li><li><strong>Value</strong>: The actual data it contains</li></ul><p>Here’s a simple example:</p><pre>int age = 25;<br>String name = &quot;Alex&quot;;<br>double price = 19.99;</pre><p>In this code, age stores a whole number, name stores text, and price stores a decimal number.</p><h3>Understanding Java Data Types</h3><p>Java is a <strong>strongly typed language</strong>, meaning you must declare what type of data each variable will hold. This helps prevent errors and makes your code more reliable.</p><h3>Primitive Data Types</h3><p>These are the building blocks of Java. There are 8 primitive types:</p><p><strong>Integer Types</strong> (whole numbers):</p><pre>byte smallNumber = 100;        // -128 to 127<br>short mediumNumber = 30000;    // -32,768 to 32,767<br>int regularNumber = 2000000;   // -2 billion to 2 billion (most common)<br>long bigNumber = 9000000000L;  // Even larger numbers (note the L)</pre><p><strong>Floating-Point Types</strong> (decimals):</p><pre>float price = 19.99f;          // 6-7 decimal digits (note the f)<br>double distance = 384400.50;   // 15 decimal digits (most common for decimals)</pre><p><strong>Other Primitives</strong>:</p><pre>char grade = &#39;A&#39;;              // Single character<br>boolean isActive = true;       // true or false only</pre><h3>Reference Types</h3><p>Reference types store references to objects rather than the actual values. The most common one you’ll use as a beginner is String:</p><pre>String message = &quot;Hello, Java!&quot;;<br>String email = &quot;user@example.com&quot;;</pre><h3>Variable Naming Rules and Best Practices</h3><p>Java has strict rules for naming variables. Following them ensures your code works and is easy to read.</p><h3>Must Follow (Rules):</h3><ul><li>Start with a letter, underscore (_), or dollar sign ($)</li><li>After the first character, use letters, digits, underscores, or dollar signs</li><li>Cannot use Java keywords like int, class, public, etc.</li><li>Case-sensitive: name and Name are different variables</li></ul><h3>Should Follow (Best Practices):</h3><ul><li>Use camelCase: firstName, totalAmount, isValidUser</li><li>Make names descriptive: userAge instead of x</li><li>Start with lowercase letters (unless it’s a constant)</li><li>Use UPPER_SNAKE_CASE for constants: MAX_SIZE, DEFAULT_COLOR</li></ul><p><strong>Good Examples</strong>:</p><pre>int studentCount = 30;<br>double accountBalance = 1500.75;<br>String firstName = &quot;John&quot;;<br>boolean isLoggedIn = false;</pre><p><strong>Bad Examples</strong>:</p><pre>int 123abc = 10;        // Cannot start with a number<br>int my-variable = 5;    // Cannot use hyphens<br>int class = 20;         // &#39;class&#39; is a keyword<br>int x = 100;            // Not descriptive</pre><h3>Variable Declaration vs Initialization</h3><p>Understanding the difference between declaring and initializing variables is crucial.</p><p><strong>Declaration</strong> means creating a variable:</p><pre>int count;              // Declared but not initialized<br>String username;        // Declared but not initialized</pre><p><strong>Initialization</strong> means giving it a value:</p><pre>count = 0;              // Now initialized<br>username = &quot;developer&quot;; // Now initialized</pre><p>You can also declare and initialize in one line (most common):</p><pre>int count = 0;<br>String username = &quot;developer&quot;;</pre><p><strong>Important</strong>: You must initialize a variable before using it, or Java will give you a compilation error:</p><pre>int number;<br>System.out.println(number); // ERROR: variable might not be initialized</pre><h3>Variable Scope: Where Can You Use Your Variables?</h3><p>Scope determines where in your code a variable can be accessed. Think of it like room access in a building.</p><h3>Local Variables</h3><p>Declared inside methods or blocks. They only exist within those curly braces {}:</p><pre>public void calculateTotal() {<br>    int subtotal = 100;        // Local variable<br>    double tax = 0.08;         // Local variable<br>    double total = subtotal * (1 + tax);<br>    System.out.println(total); // Works fine<br>}</pre><pre>// subtotal and tax don&#39;t exist here!</pre><h3>Instance Variables</h3><p>Declared inside a class but outside methods. Each object gets its own copy:</p><pre>public class User {<br>    String username;           // Instance variable<br>    int loginCount;            // Instance variable<br>    <br>    public void displayInfo() {<br>        System.out.println(username); // Can access instance variables<br>    }<br>}</pre><h3>Class Variables (Static)</h3><p>Shared across all instances of a class. Declared with the static keyword:</p><pre>public class Counter {<br>    static int totalCount = 0; // Class variable - shared by all Counter objects<br>    <br>    public Counter() {<br>        totalCount++;          // All objects share this variable<br>    }<br>}</pre><h3>Type Casting: Converting Between Data Types</h3><p>Sometimes you need to convert one data type to another. Java supports two types of casting:</p><h3>Implicit Casting (Automatic)</h3><p>Java automatically converts smaller types to larger types:</p><pre>int wholeNumber = 100;<br>double decimalNumber = wholeNumber; // int → double (automatic)<br>System.out.println(decimalNumber);  // Prints: 100.0</pre><h3>Explicit Casting (Manual)</h3><p>You must manually convert larger types to smaller types (potential data loss):</p><pre>double price = 19.99;<br>int roundedPrice = (int) price;     // double → int (manual cast)<br>System.out.println(roundedPrice);   // Prints: 19 (decimal part lost!)</pre><p><strong>Common Casting Examples</strong>:</p><pre>// Numeric conversions<br>long bigNum = 1000000L;<br>int smallNum = (int) bigNum;</pre><pre>// Char to int (gets ASCII value)<br>char letter = &#39;A&#39;;<br>int asciiValue = (int) letter;      // 65</pre><pre>// String to numbers (using wrapper classes)<br>String numberText = &quot;42&quot;;<br>int number = Integer.parseInt(numberText);<br>double decimal = Double.parseDouble(&quot;3.14&quot;);</pre><h3>Constants: Variables That Never Change</h3><p>Constants are variables whose values cannot be modified after initialization. Use the final keyword:</p><pre>final double PI = 3.14159;<br>final int MAX_USERS = 100;<br>final String DATABASE_URL = &quot;jdbc:mysql://localhost:3306&quot;;</pre><pre>// PI = 3.14; // ERROR: Cannot assign a value to final variable</pre><p><strong>When to Use Constants</strong>:</p><ul><li>Configuration values</li><li>Mathematical constants</li><li>Maximum/minimum limits</li><li>API keys or URLs (though use environment variables in production)</li></ul><h3>Common Beginner Mistakes and How to Avoid Them</h3><h3>Mistake 1: Using Variables Before Initialization</h3><pre>// Wrong<br>int count;<br>count++;                // ERROR!</pre><pre>// Right<br>int count = 0;<br>count++;                // Works!</pre><h3>Mistake 2: Mixing Up Data Types</h3><pre>// Wrong<br>int price = 19.99;      // ERROR: Can&#39;t store decimal in int</pre><pre>// Right<br>double price = 19.99;   // Correct type</pre><h3>Mistake 3: Integer Division Surprise</h3><pre>// Unexpected result<br>int result = 5 / 2;     // result is 2, not 2.5!</pre><pre>// Correct approach<br>double result = 5.0 / 2.0;  // result is 2.5</pre><h3>Mistake 4: Comparing Strings with ==</h3><pre>// Wrong<br>String name1 = &quot;John&quot;;<br>String name2 = &quot;John&quot;;<br>if (name1 == name2) { } // Might not work as expected!</pre><pre>// Right<br>if (name1.equals(name2)) { } // Correct way to compare strings</pre><h3>Practical Example: Putting It All Together</h3><p>Let’s build a simple program that demonstrates all these concepts:</p><pre>public class StudentGradeCalculator {<br>    // Class variable (constant)<br>    static final int PASSING_GRADE = 60;<br>    <br>    // Instance variables<br>    String studentName;<br>    int mathScore;<br>    int scienceScore;<br>    int englishScore;<br>    <br>    // Constructor<br>    public StudentGradeCalculator(String name, int math, int science, int english) {<br>        this.studentName = name;<br>        this.mathScore = math;<br>        this.scienceScore = science;<br>        this.englishScore = english;<br>    }<br>    <br>    // Method with local variables<br>    public void displayResults() {<br>        // Local variable<br>        double average = (mathScore + scienceScore + englishScore) / 3.0;<br>        boolean passed = average &gt;= PASSING_GRADE;<br>        <br>        System.out.println(&quot;Student: &quot; + studentName);<br>        System.out.println(&quot;Average Score: &quot; + average);<br>        System.out.println(&quot;Status: &quot; + (passed ? &quot;PASSED&quot; : &quot;FAILED&quot;));<br>    }<br>    <br>    public static void main(String[] args) {<br>        // Creating objects and using variables<br>        StudentGradeCalculator student1 = new StudentGradeCalculator(&quot;Alice&quot;, 85, 90, 88);<br>        StudentGradeCalculator student2 = new StudentGradeCalculator(&quot;Bob&quot;, 55, 60, 58);<br>        <br>        student1.displayResults();<br>        System.out.println();<br>        student2.displayResults();<br>    }<br>}</pre><p><strong>Output</strong>:</p><pre>Student: Alice<br>Average Score: 87.66666666666667<br>Status: PASSED</pre><pre>Student: Bob<br>Average Score: 57.666666666666664<br>Status: FAILED</pre><h3>Quick Reference Cheat Sheet</h3><p>Data TypeSizeRange/PurposeExamplebyte1 byte-128 to 127byte age = 25;short2 bytes-32,768 to 32,767short year = 2025;int4 bytes-2 billion to 2 billionint population = 1000000;long8 bytesVery large numberslong distance = 9000000000L;float4 bytesDecimal numbersfloat price = 19.99f;double8 bytesPrecise decimalsdouble pi = 3.14159;char2 bytesSingle characterchar grade = &#39;A&#39;;boolean1 bittrue or falseboolean isValid = true;StringvariesTextString name = &quot;Java&quot;;</p><h3>Next Steps in Your Java Journey</h3><p>Now that you understand variables, you’re ready to explore:</p><ol><li><strong>Operators</strong>: Perform calculations and comparisons</li><li><strong>Control Flow</strong>: Make decisions with if/else statements</li><li><strong>Loops</strong>: Repeat code with for and while loops</li><li><strong>Arrays</strong>: Store multiple values in one variable</li><li><strong>Methods</strong>: Organize code into reusable blocks</li></ol><h3>Key Takeaways</h3><ol><li>Variables are containers for storing data in Java</li><li>Always declare the data type before the variable name</li><li>Use descriptive names in camelCase format</li><li>Initialize variables before using them</li><li>Understand scope to avoid errors</li><li>Use final for constants that shouldn&#39;t change</li><li>Practice type casting when converting between types</li></ol><p>Variables are the foundation of every Java program you’ll write. Master them, and you’re well on your way to becoming a proficient Java developer.</p><p><strong>What’s your experience with Java variables? Drop a comment below with questions or share your own tips for beginners!</strong></p><p><em>Follow for more Java tutorials and software engineering insights. Happy coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f46bc9242231" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Secret Sauce to Software Security Every Developer Should Know]]></title>
            <link>https://medium.com/@inuridissanayaka93/the-secret-sauce-to-software-security-every-developer-should-know-6cf7ae264e83?source=rss-aa9666334a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cf7ae264e83</guid>
            <dc:creator><![CDATA[Inuri Dissanayaka]]></dc:creator>
            <pubDate>Sun, 21 Sep 2025 15:43:32 GMT</pubDate>
            <atom:updated>2025-09-21T15:43:32.232Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*RlO86RIDCyJd5xNhQvex6A.jpeg" /></figure><p>Imagine you built the coolest treehouse ever. It has a secret trapdoor, a zip line, and a stash of snacks. Now imagine you forgot to lock the door… and someone sneaks in, eats your snacks, and makes a huge mess. That’s what happens when software isn’t protected. Hackers are like those sneaky snack thieves, they look for any way to get in.</p><p>The good news? You <em>can</em> make your software super safe…and it doesn’t involve hiring a team of superheroes. It’s called <strong>Secure Software Development Lifecycle (SDLC)</strong>. And yes, it sounds boring, but stick with me, it’s actually pretty fun.</p><h3>What is SDLC Anyway?</h3><p>Think of SDLC as a recipe. You don’t just throw random ingredients into a bowl and hope for a cake. You follow steps: gather ingredients, mix, bake, decorate. In software, SDLC is the step-by-step plan for building apps and programs.</p><ul><li><strong>Planning:</strong> Decide what the software should do.</li><li><strong>Design:</strong> Draw the blueprints, like a map for your treehouse.</li><li><strong>Development:</strong> Write the code. This is your actual treehouse-building phase.</li><li><strong>Testing:</strong> Try to break it before the bad guys do.</li><li><strong>Deployment:</strong> Launch it to the world.</li><li><strong>Maintenance:</strong> Keep it safe and fix problems over time.</li></ul><p>Now, sprinkle <strong>security</strong> in every step, and you get <strong>Secure SDLC</strong>. It’s basically putting security guards, trapdoors, and alarms into your treehouse while you’re still building it.</p><h3>Why Hackers Love Weak Software</h3><p>Hackers are basically digital pirates. They’re not in it for fun (usually), they’re in it for money, secrets, or chaos. And guess what? They LOVE software with weak spots.</p><ul><li><strong>Outdated software:</strong> Like leaving an old, creaky door unlocked.</li><li><strong>Bad coding practices:</strong> Copy-pasting code without checking for holes is like using a cardboard wall for your treehouse.</li><li><strong>Skipping testing:</strong> It’s basically inviting trouble in with cookies.</li></ul><p>Even small mistakes can have <strong>huge consequences</strong>. Imagine your favorite social media app leaking personal messages or a hospital system getting hacked. That’s not just embarrassing, it’s dangerous.</p><h3>Injecting Security at Every Step</h3><p>Here’s where SDLC becomes your superhero cape. Instead of waiting until the software is built to “maybe” think about security, you start <strong>thinking like a hacker from day one</strong>.</p><h3>1. Planning: The Map Before the Battle</h3><p>At this stage, you ask:</p><ul><li>Who could attack this software?</li><li>What’s the worst thing that could happen?</li><li>How do we stop it?</li></ul><p>It’s like looking at your treehouse map and thinking: <em>Where would a squirrel break in if it really wanted my candy stash? </em>Planning for threats early saves tons of headaches later.</p><p><strong><em>Pro tip:</em></strong><em> Use </em><strong><em>threat modeling</em></strong><em>. Imagine all the “what ifs” hackers might try, then plan defenses.</em></p><h3>2. Design: Blueprint for Safety</h3><p>Once you know the threats, design your software to avoid them. Think of it like building walls, secret doors, and alarms in your treehouse before anyone actually steps inside.</p><ul><li>Use <strong>secure design patterns </strong>these are like architectural tricks to prevent break-ins.</li><li>Plan for <strong>data encryption</strong>, so even if someone sneaks in, they can’t read your stuff.</li><li>Limit permissions: Not everyone should be able to access everything. It’s like giving only your best friend the secret snack key.</li></ul><h3>3. Development: Writing Code Without Leaving Windows Open</h3><p>Coding securely is like hammering nails without leaving gaps in the walls. Here’s how:</p><ul><li><strong>Input validation:</strong> Make sure only the right keys can open doors (no “12345” passwords allowed).</li><li><strong>Error handling:</strong> Don’t let error messages spill secrets. “Oops, admin password is….” is a hacker’s dream.</li><li><strong>Use libraries carefully:</strong> Don’t just grab random code from the internet without checking it. That’s like trusting a squirrel with the treehouse keys.</li></ul><p>Even small mistakes here can be catastrophic later. So code carefully.</p><h3>4. Testing: Break It Before the Hackers Do</h3><p>Testing is fun because it’s basically legal hacking. You try to break your own software. If it survives you, it’ll survive the bad guys.</p><ul><li><strong>Penetration testing:</strong> Pretend you’re the hacker and try every trick you can.</li><li><strong>Static and dynamic analysis:</strong> Tools that scan your code for holes before hackers find them.</li><li><strong>Code reviews:</strong> Other developers can spot mistakes you missed.</li></ul><p>Think of it like stress-testing your treehouse by shaking it, throwing a ball at it, or seeing if squirrels can sneak in.</p><h3>5. Deployment: Launch Day, But Make It Safe</h3><p>Deploying software is like opening your treehouse for a public treehouse festival. Exciting! But dangerous if you didn’t check the locks.</p><ul><li>Use <strong>secure configurations</strong> don’t leave doors unlocked.</li><li>Monitor activity: Keep an eye on who’s entering and leaving.</li><li>Plan for updates: Sometimes you need to fix leaks after launch.</li></ul><h3>6. Maintenance: Guarding the Treehouse Forever</h3><p>Software isn’t a one-time project. Hackers are always inventing new tricks. Maintenance is like hiring lifelong treehouse guards who:</p><ul><li>Patch security holes</li><li>Update outdated software</li><li>Monitor for suspicious activity</li></ul><p>Skipping this step is like building a castle in the clouds and hoping dragons don’t show up. Spoiler: They will.</p><h3>The Benefits of Secure SDLC</h3><p>Why bother going through all this? Because security isn’t just a “nice-to-have.”</p><ul><li><strong>Peace of mind:</strong> You can sleep knowing hackers aren’t stealing your snacks.</li><li><strong>Financial safety:</strong> Breaches cost millions. Literally.</li><li><strong>Trust:</strong> Users trust software that keeps them safe. Reputation matters.</li><li><strong>Compliance:</strong> Laws sometimes require security, think GDPR, HIPAA, and other alphabet soup.</li></ul><p>In short, it’s cheaper and smarter to prevent attacks than clean up disasters later.</p><h3>The Dangers of Ignoring It</h3><p>If you skip security:</p><ul><li>Hackers will exploit your code like it’s candy in a piñata.</li><li>Users may lose data, money, or trust.</li><li>Your reputation could be toast.</li><li>Legal trouble might rain down like a storm.</li></ul><p>Basically, ignoring security is like leaving a chocolate cake in the kitchen while a raccoon army marches in. You <em>will </em>regret it.</p><p><em>Security isn’t just about tech, it’s about doing the right thing. Ethical developers:</em></p><ul><li><em>Protect user data</em></li><li><em>Avoid putting people at risk</em></li><li><em>Don’t exploit vulnerabilities for personal gain</em></li></ul><p><em>It’s like being a superhero. You could use your treehouse skills to prank neighbors… but you don’t. Ethics matter.</em></p><h3>Conclusion</h3><p>Secure SDLC is like building a treehouse with bulletproof walls, secret doors, and a moat filled with coding ninjas. It’s extra effort, yes but it keeps your software, your users, and your reputation safe.</p><p>The takeaway? Don’t wait for a hacker to teach you lessons the hard way. Protect your code early, often, and ethically. And remember: in the digital jungle, security isn’t optional, it’s <em>survival</em>.</p><p>So, go forth, code bravely, patch ruthlessly, and may your software never taste the glitter of hacker chaos.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cf7ae264e83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Software Testing Life Cycle: How We Catch Bugs Before Users Do]]></title>
            <link>https://medium.com/@inuridissanayaka93/the-software-testing-life-cycle-how-we-catch-bugs-before-users-do-f525ed5a37a4?source=rss-aa9666334a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/f525ed5a37a4</guid>
            <dc:creator><![CDATA[Inuri Dissanayaka]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 14:06:59 GMT</pubDate>
            <atom:updated>2025-08-15T14:06:59.667Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*-3cCh61dQGafrZneTpa9wg.jpeg" /></figure><p>Imagine releasing software without testing. Sounds terrifying, right? That’s where the <strong>Software Testing Life Cycle (STLC)</strong> comes in a structured approach that ensures software doesn’t just work, but works <strong>reliably</strong>.</p><p>STLC is the unsung hero behind every smooth-running app. While developers build, testers make sure the software actually behaves as expected. Let’s take a journey through the life of testing.</p><h3>What Is the Software Testing Life Cycle?</h3><p>The <strong>Software Testing Life Cycle (STLC)</strong> is a <strong>step-by-step process for planning, executing, and evaluating software testing activities</strong>.</p><p>Its primary goals are:</p><ul><li>Detect defects before software reaches users</li><li>Ensure the software meets requirements</li><li>Improve quality and reliability</li><li>Provide a systematic approach for testers</li></ul><p>Think of STLC as the quality gatekeeper: without it, even well-coded software could fail in the real world.</p><h3>Phases of STLC: Step by Step</h3><p>STLC is usually divided into <strong>seven key phases</strong>, each with a clear purpose:</p><h3>1. Requirement Analysis</h3><p>Before testing begins, testers study requirements carefully:</p><ul><li>Functional requirements: what the software should do</li><li>Non-functional requirements: performance, security, usability</li></ul><p>Goal: Identify <strong>testable requirements</strong> and possible risks. At this stage, testers ask the tough questions: <em>“Is this really achievable? How could it fail?”</em></p><h3>2. Test Planning</h3><p>Once requirements are understood, a <strong>test plan</strong> is created. This includes:</p><ul><li>Scope of testing</li><li>Resources required</li><li>Testing strategy and types (manual or automated)</li><li>Schedule and deliverables</li></ul><p>Test planning is essentially the blueprint for testing, it defines <strong>what gets tested, how, and by whom</strong>.</p><h3>3. Test Case Development</h3><p>Here, testers write detailed <strong>test cases</strong> based on requirements. Each test case describes:</p><ul><li>Input data</li><li>Expected output</li><li>Steps to execute</li></ul><p>The goal is clarity. Anyone should be able to run the test case and know exactly what to check.</p><h3>4. Test Environment Setup</h3><p>Testing requires the right environment:</p><ul><li>Hardware and software configurations</li><li>Databases</li><li>Network setup</li></ul><p>Without a proper environment, even the best test cases won’t provide reliable results.</p><h3>5. Test Execution</h3><p>This is the exciting part: running the tests. Testers execute each test case and compare actual results with expected results.</p><ul><li>If the software behaves as expected → test case passes</li><li>If not → a bug is logged in the bug tracking tool</li></ul><p>This phase is where testers become detectives, hunting for anything that could go wrong.</p><h3>6. Defect Reporting and Tracking</h3><p>Every bug found during testing is documented:</p><ul><li>Steps to reproduce</li><li>Severity and priority</li><li>Screenshots or logs</li></ul><p>Bugs are then tracked until they are fixed and retested. This ensures nothing slips through the cracks.</p><h3>7. Test Closure</h3><p>Once testing is complete, a <strong>test closure report</strong> is prepared:</p><ul><li>Summary of testing activities</li><li>Number of defects found and resolved</li><li>Lessons learned for future projects</li></ul><p>This phase evaluates the overall quality of the software and the effectiveness of the testing process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*Vs9mjuP4A_PZMvET8ZX8Aw.jpeg" /></figure><h3>Why STLC Matters</h3><p>Following the Software Testing Life Cycle provides clear benefits:</p><ul><li><strong>Systematic Approach:</strong> Testing is structured, not random.</li><li><strong>Improved Software Quality:</strong> Bugs are detected early.</li><li><strong>Risk Mitigation:</strong> Potential issues are identified before deployment.</li><li><strong>Traceability:</strong> Every requirement is verified against test cases.</li></ul><p>In short, STLC ensures software doesn’t just work, it works <strong>well</strong>.</p><blockquote><strong>Testers Are the Guardians</strong></blockquote><blockquote><em>Think of STLC like a security system. Developers build the house (software), but testers inspect every door, window, and lock to ensure nothing breaks in. Bugs are the intruders, and STLC is the sequence of checks that catches them before users even notice.</em></blockquote><h3>Conclusion</h3><p>The <strong>Software Testing Life Cycle</strong> is essential for delivering reliable, high-quality software. By guiding testing from requirement analysis to closure, STLC provides structure, accountability, and measurable results.</p><p>For testers, developers, and project managers, understanding STLC is a cornerstone of professional software development. It’s the difference between software that crashes under pressure and software that delights users from day one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f525ed5a37a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Bug Life Cycle: From Discovery to Oblivion]]></title>
            <link>https://medium.com/@inuridissanayaka93/the-bug-life-cycle-from-discovery-to-oblivion-b3167b3fb76d?source=rss-aa9666334a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3167b3fb76d</guid>
            <dc:creator><![CDATA[Inuri Dissanayaka]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 13:52:26 GMT</pubDate>
            <atom:updated>2025-08-15T13:52:26.812Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*FzdgIe6Sifz5fhpPpW7gHw.jpeg" /></figure><p>If software development is a well-oiled machine, bugs are the unexpected gremlins that sneak in and throw everything off balance. They’re inevitable, sometimes hilarious, and occasionally terrifying especially when a critical bug crashes your production environment. That’s why every software team relies on the <strong>Bug Life Cycle</strong> to manage, track, and resolve issues efficiently.</p><h3>What Is the Bug Life Cycle?</h3><p>The <strong>Bug Life Cycle</strong> (or Defect Life Cycle) is the <strong>process that a software defect goes through from discovery to closure</strong>. It ensures that bugs are handled systematically, reducing the risk of unresolved issues impacting users.</p><p>Essentially, it’s a roadmap for turning chaos into control, because ignoring bugs is a fast track to frustrated users and angry managers.</p><h3>The Stages of the Bug Life Cycle</h3><p>Here’s a detailed walkthrough of how a bug travels through its life:</p><h3>1. New / Opened</h3><p>The journey begins when a bug is discovered by a tester, developer, or user. At this stage:</p><ul><li>The bug is <strong>logged in a tracking tool</strong> (Jira, Bugzilla, etc.).</li><li>Details like steps to reproduce, severity, priority, screenshots, and environment are recorded.</li></ul><p>This stage is essentially the bug announcing, “Hello, I exist. Pay attention.”</p><h3>2. Assigned</h3><p>Once logged, the bug is <strong>assigned to a developer</strong> responsible for investigating and fixing it. Assignment is based on:</p><ul><li>Expertise required</li><li>Module ownership</li><li>Current workload</li></ul><p>Here, the bug is no longer anonymous, it now has a target.</p><h3>3. Analyzing / In Progress</h3><p>The developer examines the bug to understand:</p><ul><li>Root cause</li><li>Impact on other modules</li><li>Feasible solution</li></ul><p>The bug is now in active development, and coding fixes begins.</p><h3>4. Fixed / Resolved</h3><p>After implementing the fix, the developer marks the bug as <strong>resolved</strong> or <strong>fixed</strong>. It is ready for the next stage: verification.</p><p>At this point, the bug might be quietly thinking, “I hope they test me properly.”</p><h3>5. Retesting / Verified</h3><p>QA engineers retest the bug to confirm that the fix works as intended and <strong>doesn’t introduce new issues</strong>.</p><ul><li>If the bug is fixed successfully, it moves to closure.</li><li>If the bug persists or a new issue arises, it may go back to the developer for further fixes.</li></ul><p>This phase ensures that no rogue bugs slip through to production.</p><h3>6. Closed</h3><p>Once the bug passes retesting, it is <strong>officially closed</strong>. The bug has completed its journey from discovery to resolution.</p><ul><li>Proper documentation is maintained for future reference.</li><li>Closed bugs contribute to metrics like defect density and quality reports.</li></ul><h3>7. Reopened</h3><p>Sometimes, despite passing tests, a bug <strong>reappears in production</strong> or fails in a specific scenario. It is then <strong>reopened</strong> and enters the cycle again until it’s truly resolved.</p><h3>Why the Bug Life Cycle Matters</h3><p>Following a structured bug life cycle provides several benefits:</p><ul><li><strong>Clear Communication:</strong> Everyone knows the status of each bug.</li><li><strong>Accountability:</strong> Developers and testers understand responsibilities.</li><li><strong>Quality Assurance:</strong> Systematic tracking ensures defects are resolved before deployment.</li><li><strong>Data for Improvement:</strong> Metrics from bug tracking help improve development processes.</li></ul><p>Without a defined bug life cycle, bugs get lost, deadlines slip, and users are left frustrated, while your team frantically scrambles to fix things.</p><h3>Fun Fact: Bugs Are Persistent… But So Are Teams</h3><p>In software development, bugs are inevitable, but their impact doesn’t have to be. The Bug Life Cycle transforms the process from frantic firefighting into structured problem-solving.</p><p>Think of it like a relay race: the bug is the baton, and developers, testers, and managers work together to pass it along efficiently, until it finally crosses the finish line: <strong>closure</strong>.</p><h3>Conclusion</h3><p>The Bug Life Cycle is an essential framework in software development. It ensures that defects are <strong>discovered, tracked, resolved, and verified systematically</strong>, improving software quality and user satisfaction.</p><p>For developers and testers alike, understanding the bug life cycle is not just a best practice, it’s a necessity. It turns potential chaos into a predictable, manageable workflow, keeping software projects running smoothly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3167b3fb76d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SDLC: How Software Gets Made Without Burning Down the Office]]></title>
            <link>https://medium.com/@inuridissanayaka93/sdlc-how-software-gets-made-without-burning-down-the-office-1d5db41bde6c?source=rss-aa9666334a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d5db41bde6c</guid>
            <dc:creator><![CDATA[Inuri Dissanayaka]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 13:42:36 GMT</pubDate>
            <atom:updated>2025-08-15T13:42:36.926Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*zxPu-0M8oXjO65wrEjlDzw.jpeg" /></figure><p>If you’ve ever used an app that crashed at the worst possible moment or waited weeks for a “simple” feature that never came, you’ve glimpsed what happens when software development happens without a plan. Enter <strong>SDLC: the Software Development Life Cycle</strong>. Think of it as the invisible safety net that keeps developers, managers, and users from collectively losing their minds.</p><p><strong>What Is SDLC, Really?</strong></p><p>At its core, SDLC is a <strong>structured roadmap for creating software</strong>. It tells teams exactly what to do, when to do it, and how to make sure it actually works. It’s the difference between a carefully baked cake and a burnt pancake disaster.</p><p>SDLC ensures that software is:</p><ul><li>Well-planned and aligned with user needs</li><li>Efficiently developed without chaos</li><li>Tested thoroughly before users scream at IT support</li><li>Maintained and updated smoothly over time</li></ul><p>In short, it turns software development from chaos into a predictable process.</p><h3>The 6 Phases of SDLC: A Story of Software Survival</h3><p>Here’s how your favorite app probably got made without anyone throwing their keyboard out the window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*ayKW-rC2QaYJdbInVSDUDA.jpeg" /></figure><h3>1. Requirement Analysis: The Idea Brainstorm</h3><p>This is where everyone talks, debates, and argues about what the software should do. Product owners, stakeholders, and analysts gather requirements:</p><ul><li>Functional (what the software must do)</li><li>Non-functional (performance, security, scalability)</li></ul><p>Deliverable? The <strong>SRS (Software Requirement Specification)</strong>. Think of it as the recipe card before you start cooking. Skip this, and you’ll end up with spaghetti code and unhappy users.</p><h3>2. Design: Drawing the Blueprint</h3><p>Design is where architects and developers plan how everything will work.</p><ul><li><strong>High-Level Design (HLD):</strong> Overall system structure, tech stack, and architecture.</li><li><strong>Low-Level Design (LLD):</strong> Detailed module design, interfaces, and database flow.</li></ul><p>It’s basically the blueprint for your software house. Miss something here, and you’ll discover it while building… at 2 a.m.</p><h3>3. Implementation (Coding): Time to Code</h3><p>This is the phase most people imagine when they think of software development. Developers turn designs into actual code, following standards and best practices.</p><ul><li>Coffee consumption peaks.</li><li>Bugs sneak in despite best intentions.</li><li>Version control becomes your best friend.</li></ul><p>Coding is exciting, but without the previous phases done right, it’s like trying to build IKEA furniture without instructions.</p><h3>4. Testing: Breaking It on Purpose</h3><p>Testing is where QA teams act like controlled chaos experts: they <strong>try to break the software</strong> so users don’t.</p><p>Types of testing include:</p><ul><li>Unit testing: individual components</li><li>Integration testing: modules working together</li><li>System testing: full application check</li><li>User Acceptance Testing (UAT): real users validating it works</li></ul><p>A software bug discovered in testing is an opportunity; one discovered by users is a nightmare.</p><h3>5. Deployment: Going Live</h3><p>Deployment is when the software finally sees the light of day.</p><ul><li><strong>Phased Deployment:</strong> Gradually roll out new features</li><li><strong>Parallel Deployment:</strong> Run new and old systems together</li><li><strong>Direct Deployment:</strong> Flip the switch and hope for the best</li></ul><p>Monitoring post-deployment is crucial. Even the best software can misbehave when faced with real users.</p><h3>6. Maintenance: The Never-Ending Story</h3><p>Software doesn’t retire. Maintenance includes:</p><ul><li>Fixing bugs discovered after deployment</li><li>Updating features based on feedback</li><li>Adapting to new tech or hardware</li></ul><p>Think of it as feeding and caring for your digital baby, it never really grows up, but it needs attention.</p><h3>Why SDLC Matters: More Than Just Steps</h3><p>Following SDLC isn’t bureaucracy, it’s survival. Benefits include:</p><ul><li><strong>Clarity:</strong> Everyone knows their role.</li><li><strong>Quality:</strong> Bugs are found early.</li><li><strong>Risk Reduction:</strong> Fewer surprises, fewer headaches.</li><li><strong>Efficiency:</strong> Time, budget, and effort are optimized.</li><li><strong>Predictability:</strong> Deadlines and deliverables become realistic.</li></ul><p>Without SDLC, software projects are like road trips without maps: exciting at first, then terrifying when you realize you’re lost.</p><h3>SDLC Is a Cycle, Not a Line</h3><p>Notice the “C” in SDLC? <strong>Cycle</strong>. Software is never static. Requirements evolve, bugs pop up, and updates are necessary. The cyclical nature allows teams to adapt and improve continuously, keeping the software relevant and functional.</p><h3>Final Thoughts</h3><p>The next time your favorite app works flawlessly, remember: SDLC probably saved the day. It’s the structured process that turns ideas into usable, maintainable software while keeping developers’ sanity intact.</p><p>For anyone in software development, developers, testers, managers, understanding SDLC is essential. It’s the backbone of professional development, the blueprint of efficiency, and the silent hero behind every reliable application.</p><p>So yes, software might seem magical, but behind every smooth experience is SDLC quietly making sure nothing burns down.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d5db41bde6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Social Media Algorithms Actually Decide What You See]]></title>
            <link>https://medium.com/@inuridissanayaka93/how-social-media-algorithms-actually-decide-what-you-see-0b334c6a7bd7?source=rss-aa9666334a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b334c6a7bd7</guid>
            <dc:creator><![CDATA[Inuri Dissanayaka]]></dc:creator>
            <pubDate>Tue, 12 Aug 2025 14:35:31 GMT</pubDate>
            <atom:updated>2025-08-12T14:35:31.985Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KufqECVJuB1WWWyXPzhwCQ.png" /></figure><p>When you open a social media app, it feels like you’re just browsing the internet. You’re not. You’re browsing a <em>custom version</em> of the internet, designed just for you, in real time, by a system that quietly tracks your every move. That system isn’t a single magical “algorithm” it’s a chain of highly complex computer science processes, each one transforming your activity into the feed you see. And it all happens in less than a second.</p><p>It starts with data collection. Every single thing you do in the app, liking a photo, pausing on a video, skipping a story is recorded as an “event.” These events don’t just vanish, they’re streamed into massive event-tracking systems like <em>Apache Kafka or Google Pub/Sub.</em> Each one is time-stamped, tagged with details about your device, location, network speed, and content type, then stored in distributed databases that can hold billions of entries. The tracking isn’t just about obvious actions. Platforms also log “implicit signals” such as dwell time (how long you linger before scrolling away), scroll speed, or even whether you replayed a video. On top of that, image recognition systems can identify what’s inside a picture you viewed, and natural language processing models can break down the topics and tone of the captions or comments you read. Within days, the system has already built a dense profile of you, what data scientists call a “<strong>feature vector</strong>” a long list of numerical values describing your behavior, preferences, and habits.</p><p>Once that raw data is captured, it has to be cleaned and made useful in a stage called<strong> feature engineering.</strong> This is where unstructured human activity gets turned into structured numerical signals a model can understand. If you’ve watched ten cooking videos in the past week, the system might generate a feature like avg_video_watch_time_cooking = 8.4 seconds. Your relationship with another user might be boiled down to something like interaction_frequency_with_userX = 0.82, where the number reflects the proportion of posts you’ve interacted with. Text content is analyzed using language models such as <em>Word2Vec or BERT</em> to measure similarity to content you’ve liked before, while images are analyzed with <em>convolutional neural networks (CNNs)</em> to detect and encode visual patterns. The goal is to represent both you, as a user, and every available piece of content as points in the same mathematical space so they can be compared quickly.</p><p>The next problem is scale: there are far too many posts to score individually. That’s where <strong>candidate generation</strong> comes in. This step is about quickly narrowing millions of possible posts down to a few hundred that are likely to interest you. Social platforms often use collaborative filtering here, finding other users who behave like you and recommending the content they liked or approximate nearest neighbor search, a fast way of finding “similar” items in high-dimensional data. This stage is computationally cheaper and is designed to work in milliseconds, delivering a manageable set of potential posts to the next, more expensive step.</p><p>Candidate generation is followed by scoring, where more advanced machine learning models come into play. These are usually deep neural networks or gradient boosted decision tree models trained on billions of past engagement records. For each candidate post, the model takes in your feature vector and the post’s feature vector, then outputs predictions: the probability you’ll like it, comment on it, share it, or watch it all the way through. The model is trained using historical data, split into training, validation, and test sets, and optimized with algorithms like <em>stochastic gradient descent to minimize a loss function, often binary cross-entropy for click prediction.</em> Large platforms retrain these models daily or even hourly using online learning, so they adapt to changing user behavior and trends almost in real time.</p><p>Scoring doesn’t give the final feed order, though. After prediction, a re-ranking stage applies extra logic. This is where the system balances freshness, variety, and business goals. It might ensure that you don’t see ten posts in a row from the same friend, or it might push certain categories, like live streams or breaking news, higher up. It can also demote content flagged for spam or misinformation. This is a mix of lightweight rules and sometimes additional machine learning models. The point is to optimize for engagement, but also to keep the feed looking “natural” and not repetitive.</p><p>All of this happens inside massive distributed computing systems designed for low latency. The moment you refresh your feed, the platform fetches data, runs models, applies ranking rules, and sends you results, all in under a second. To make that possible, they use in-memory caches, sharded databases, and parallel computation across hundreds or thousands of servers. From your perspective, it’s just a smooth scroll. Behind the scenes, it’s a real-time computing marathon.</p><p>Once you start scrolling, your new actions feed back into the system. This creates a feedback loop: the more you interact with a certain type of content, the more the model learns that it should give you similar posts. Over time, this can lead to <strong>filter bubbles</strong>, your feed narrows to only what the system thinks you like, while filtering out opposing views or unfamiliar topics. The system doesn’t care whether your engagement comes from delight, agreement, or outrage; its primary goal is to maximize metrics like click-through rate, dwell time, and session length, because those directly translate into advertising revenue.</p><p>In the end, your feed is the product of a deeply technical pipeline involving data engineering, information retrieval, natural language processing, computer vision, deep learning, and large-scale distributed computing. It’s a real-time machine learning system that adapts to you every second you use it. From a computer science perspective, it’s a marvel of engineering. From a human perspective, it’s worth remembering that it is designed to keep you scrolling, not necessarily to keep you balanced, informed, or challenged. Knowing how it works is the first step to using it without letting it completely shape your view of the world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b334c6a7bd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git and Version Control: The Ultimate Guide to Not Losing Your Code (or Your Mind)]]></title>
            <link>https://medium.com/@inuridissanayaka93/git-and-version-control-the-ultimate-guide-to-not-losing-your-code-or-your-mind-e2c813a3fdd3?source=rss-aa9666334a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2c813a3fdd3</guid>
            <dc:creator><![CDATA[Inuri Dissanayaka]]></dc:creator>
            <pubDate>Mon, 19 May 2025 12:18:36 GMT</pubDate>
            <atom:updated>2025-05-19T12:18:36.931Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*x7ENG8unPSS5bKhdv9mavw.jpeg" /></figure><p>If you’ve ever written code, you’ve probably had that heart-stopping moment when you accidentally deleted hours of work. Or maybe you’ve been caught in the chaos of <em>“Which version of the file is the right one?”</em> The answer to your coding woes is a magical tool called <strong>Git</strong> the superhero of version control.</p><p>So buckle up, and let’s dive into the wonderful, occasionally confusing, world of Git and version control explained with a dash of humor and zero boring jargon.</p><h3>What Is Version Control, Anyway?</h3><p>Imagine you’re writing a novel (or the next viral app). You want to keep track of every change you make because sometimes you rewrite a chapter, then realize your first version was actually better (sorry, <em>“genius”</em> edits).</p><p><strong>Version control</strong> is like having a time machine for your code. It lets you:</p><ul><li>Save “snapshots” of your work.</li><li>Go back to any previous version.</li><li>Collaborate with others without accidentally deleting their work.</li><li>Stop yelling at your computer when you break something.</li></ul><p>And Git is the most popular version control system (VCS) out there. It’s like the Swiss Army knife for coders.</p><h3>Git: The Superhero of Version Control</h3><p>Git was created by Linus Torvalds (yes, <em>the</em> guy who made Linux), because he needed something fast, reliable, and distributed. Unlike other VCSs, Git is decentralized, meaning everyone has the whole project history on their own computer.</p><h3>Why should you care?</h3><p>Because if Git was a person, it’d be that organized friend who always remembers everything, never loses a receipt, and can rewind time when you mess up.</p><h3>Key Git Concepts (Explained Like You’re 5)</h3><h3>Repository (repo)</h3><p>Think of a repo as your project folder. It’s where all your code lives, along with the entire history of your project.</p><h3>Commit</h3><p>A <strong>commit</strong> is like a save point in a video game. It records what your code looks like at a specific moment. Each commit has a unique ID a fancy hash that looks like random letters and numbers (but trust me, it means something).</p><p><strong>Tip:</strong> Always write a good commit message. “Fixed stuff” is the equivalent of “I dunno” when your parents ask how school went.</p><h3>Branch</h3><p>Branches are like parallel universes for your code. They let you work on new features or bug fixes without messing up the main story.</p><p>You can create a branch, make all the crazy changes you want, and then merge it back when you’re ready. If something goes wrong, no biggie the main branch stays safe.</p><h3>Merge</h3><p>This is where two branches come together. Think of it like combining two Lego sets into one big masterpiece.</p><p>Sometimes Git can’t figure out how to merge automatically that’s called a <strong>merge conflict </strong>and it asks you to resolve it manually. This is your cue to pretend you’re a detective solving a mystery.</p><h3>Common Git Commands (Your New Best Friends)</h3><ul><li>git init — Create a new repo. Like setting up your own kingdom.</li><li>git clone [url] — Copy someone else’s repo to your machine. Stealing code but legally.</li><li>git add [file] — Tell Git, “Hey, pay attention to this file!”</li><li>git commit -m &quot;message&quot; — Save your changes with a note.</li><li>git status — See what’s changed and what Git’s ignoring. Basically, Git gossip.</li><li>git push — Upload your commits to a remote repo (like GitHub).</li><li>git pull — Grab changes from others.</li><li>git checkout [branch] — Switch to another branch or commit.</li><li>git merge [branch] — Bring another branch’s changes into your current branch.</li></ul><h3>What Is “Evasion Control”? (Wait, What?)</h3><p>Okay, you might be wondering <strong>what the heck is evasion control?</strong></p><p>Good question! “Evasion control” isn’t a common Git term sounds like a stealth ninja move, right? But maybe you meant <strong>“version control”</strong> or possibly <strong>“conflict resolution”</strong> the process of handling those pesky merge conflicts where Git throws its hands up and says, “You decide.”</p><p>If you meant evasion control as a cheeky way of dodging merge conflicts or messy code, here’s the real scoop:</p><ul><li><strong>Don’t evade your problems!</strong> Always pull the latest code before you start working.</li><li>Make small, frequent commits like eating small snacks instead of a giant meal.</li><li>Communicate with your team, no code ninja is an island.</li><li>Use branches for new features to keep the main code stable.</li><li>Use .gitignore to keep unnecessary files out of your repo (because nobody needs your cat photos in there).</li></ul><h3>Pro Tips for Using Git Like a Pro (or at Least Like a Competent Adult)</h3><ol><li><strong>Write descriptive commit messages.</strong> Your future self will thank you.</li><li><strong>Commit often.</strong> Don’t wait until your code is perfect. Git is for imperfect humans.</li><li><strong>Pull before you push.</strong> Avoid conflicts by syncing often.</li><li><strong>Use GUI tools if the command line scares you.</strong> Tools like GitHub Desktop, SourceTree, or GitKraken make life easier.</li><li><strong>Back up your repo.</strong> Push to GitHub, GitLab, or Bitbucket — because losing your repo is tragic.</li></ol><h3>Why Should You Use Git?</h3><ul><li>Collaboration becomes painless.</li><li>You have a history of your work.</li><li>You can experiment fearlessly.</li><li>It’s industry standard knowing Git is basically a coding life skill.</li><li>It impresses recruiters and makes you look like a coding wizard.</li></ul><h3>Final Words</h3><p>Git and version control aren’t just tools they’re lifesavers. They keep your code organized, your team sane, and your projects moving forward.</p><p>If you’re new to Git, don’t get overwhelmed. Start with simple commands, play around with branches, and soon you’ll be merging like a boss.</p><p>Remember, Git is your friend, your history book, your safety net. Treat it well, and it will never let you down.</p><p>Now, go forth and commit, wisely!</p><p><em>P.S. If you ever feel lost, just remember: </em><em>git status is your crystal ball, and </em><em>git log is your diary.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2c813a3fdd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git vs. GitHub: A Love Story, With a Little Confusion Along the Way]]></title>
            <link>https://medium.com/@inuridissanayaka93/git-vs-github-a-love-story-with-a-little-confusion-along-the-way-0d616605c267?source=rss-aa9666334a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d616605c267</guid>
            <dc:creator><![CDATA[Inuri Dissanayaka]]></dc:creator>
            <pubDate>Fri, 09 May 2025 13:42:35 GMT</pubDate>
            <atom:updated>2025-05-09T13:42:35.919Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*4UoxMU6MsFy6ER39GglYLA.jpeg" /></figure><p>Welcome to the ultimate showdown: <strong>Git vs. GitHub</strong>. If you’ve ever started coding and wondered, “What on earth is Git, and why does everyone keep talking about GitHub?” then congratulations, you’re in the right place. It’s time to unpack the mystery behind these two, which, despite sounding like they’re part of some weird family tree, are actually two distinct yet complementary forces in the coding universe. Let’s dive in!</p><h3>What is Git? (A.k.a. The Quiet Overachiever)</h3><p>Git is like that reliable friend who quietly works in the background, gets things done, and never asks for attention. It’s a <strong>version control system</strong> essentially, it’s a tool that helps developers track changes in their code over time. You know, just in case you decide to do something like <strong>accidentally delete an entire function</strong> and need to hit the “undo” button. Instead of manually trying to remember what you wrote or crying over lost work, Git keeps a tidy history of all your changes, allowing you to revert to earlier versions, compare differences, and collaborate without fear of chaos. It’s the backbone of modern software development, and without it, we’d probably all be living in the dark ages, writing code on stone tablets.</p><p>So, Git is what you use <strong>locally</strong> on your computer. It’s the engine under the hood that helps manage your code, no matter how big or small your project is. You don’t need a fancy internet connection for it to work, and it doesn’t care if you’re wearing pants when you use it. (It might care, but it won’t judge.)</p><h3>What is GitHub? (The Popular Friend Everyone Wants to Hang With)</h3><p>GitHub, on the other hand, is the cool social network for developers. Think of it as the place where all your code gets to strut its stuff and be admired by your fellow devs. GitHub is a <strong>cloud based platform</strong> that allows you to store, share, and collaborate on Git repositories. You can think of GitHub as the <strong>public face</strong> of Git. Git does the grunt work (keeping track of your code changes), while GitHub provides the space to collaborate, share, and show off your work with others. It’s where you store your projects so that the whole world or just your team, can see them, contribute, and leave comments like “Nice work, bro!” or “Can you add more comments to this function?”</p><p>GitHub also adds extra features like <strong>issue tracking</strong>, <strong>pull requests</strong> (to suggest changes to someone else’s code), and <strong>project boards</strong> to keep everything organized. And let’s not forget the awesome “<strong>forking</strong>” feature, which allows you to make a copy of someone else’s project and work on it, without actually touching their original code. It’s like having a clone of a band’s album so you can remix it with your own flair. If you’re looking to contribute to open-source projects, GitHub is the place to be, and you’ll likely find yourself saying things like, “Oh, I just made a pull request to fix a bug in the TensorFlow repo.” Sounds fancy, right?</p><h3>The Confusion: What’s the Deal?</h3><p>Now, here’s where things get confusing for beginners. <strong>Git</strong> and <strong>GitHub</strong> are often used interchangeably, but they’re not the same thing. Imagine Git as the Swiss army knife of version control, and GitHub as the luxury suite where you store your Swiss army knife collection and invite people over to admire it. Git is a <strong>command-line tool</strong> that tracks changes on your local machine. GitHub is a <strong>cloud-based platform</strong> where you store those changes and interact with other developers.</p><p>Here’s a quick breakdown:</p><ul><li><strong>Git</strong>: The version control system. It’s installed locally and tracks changes in your code.</li><li><strong>GitHub</strong>: A cloud-based platform that hosts Git repositories and adds collaboration features.</li></ul><h3>Why Do You Need Both?</h3><p>Great question. You can technically use Git without GitHub, but it would be like having a super-powered Swiss army knife and never getting to show it off. GitHub, on the other hand, can’t function without Git. It’s like a concert hall that needs musicians to make the music. If you’re working alone on a project, you can use Git without GitHub, but once you need to collaborate with others or share your code with the world, you’ll find that GitHub is pretty handy.</p><h3>Git vs. GitHub: The Winner? It’s a Draw</h3><p>So, who wins the battle? Well, it’s not really a competition. <strong>Git</strong> is essential for version control, and without it, your code would descend into chaos faster than you can say “merge conflict.” <strong>GitHub</strong> enhances the Git experience by making collaboration easy and providing a space to showcase your work. It’s like comparing bread (Git) and peanut butter (GitHub) both are good on their own, but together, they make something magical.</p><h3>Final Thoughts: The Code-Life Balance</h3><p>Git and GitHub both play pivotal roles in a developer’s life. Git helps you manage your local code, track your progress, and keep your sanity intact when things go wrong. GitHub allows you to share your work, collaborate with others, and join the open source revolution. So, the next time someone asks you, “What’s the difference between Git and GitHub?” you can confidently explain that Git is the behind-the-scenes workhorse, and GitHub is the flashy, social sidekick that makes it all happen.</p><p>And remember: You wouldn’t try to make a <strong>Peanut Butter and Jelly</strong> without both bread <em>and</em> peanut butter, right? Same goes for Git and GitHub.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d616605c267" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>