<?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 Madhawa Awishka on Medium]]></title>
        <description><![CDATA[Stories by Madhawa Awishka on Medium]]></description>
        <link>https://medium.com/@madhawaawishka?source=rss-98bf05b9f0b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Dk0VI_jwmvfaDfRr4gjpmw.jpeg</url>
            <title>Stories by Madhawa Awishka on Medium</title>
            <link>https://medium.com/@madhawaawishka?source=rss-98bf05b9f0b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:24:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@madhawaawishka/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[AI Can Write the Code. So What Is a Software Engineer Supposed to Do Now?]]></title>
            <link>https://medium.com/@madhawaawishka/ai-can-write-the-code-so-what-is-a-software-engineer-supposed-to-do-now-b47db0d96099?source=rss-98bf05b9f0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b47db0d96099</guid>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Madhawa Awishka]]></dc:creator>
            <pubDate>Fri, 25 Sep 2026 21:23:47 GMT</pubDate>
            <atom:updated>2026-09-25T21:33:46.974Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r2OqrWe8PT3NxORAMXe8IA.jpeg" /></figure><p>Last week I watched a junior developer on my team ask an AI assistant to build a paginated, filterable admin table with optimistic updates. Ninety seconds later, it existed. It compiled and it even had decent empty states.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*6RVzfIMeF3lhRk9TaqYs7w.gif" /></figure><p>I felt two things at once. The first was awe. The second, quieter one was something like vertigo: back in the day, I <em>used to bill a day and a half for that</em></p><p>If you’ve felt that vertigo, this piece is for you. Maybe you’re grinding through LeetCode, staring at job boards full of “senior only” listings, wondering if you picked the wrong decade to learn to code. Or maybe you’re already years into the craft, quietly asking whether the skills you spent a career sharpening are being marked down in real time.</p><p>I won’t tell you the anxiety is silly. The landscape is shifting under your feet, and pretending otherwise would be dishonest. But I do think the fear is aimed at the wrong target, and once you see the real one, you can start doing something about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*1j-nMiJ8d0mUK39qoCr7Ww.gif" /></figure><h3>The thing we mistook for the job</h3><p>When you start learning to code, everything is about writing code. Tutorials, courses, and interview prep all reward the same skill: turn a spec into working syntax.</p><p>So it’s natural to conclude that “software engineer” means “person who writes code.” For a long time, that was close enough to true. You couldn’t get software without someone typing it.</p><p>Now the seam is showing. Code generation has become dramatically cheap, and it will keep getting cheaper. Typing was only the visible part of the job. Underneath it was something else, and that something else is what you actually need to learn.</p><p>Here’s the thing though: you’ve already lived through smaller versions of this shift, you just didn’t notice, because they happened before you felt threatened by them.</p><p>Think about it. You probably don’t handle raw SQL connections by hand anymore. A framework does it.You don’t manage memory yourself in most languages, a garbage collector does it. You don’t write your own HTTP server from scratch, a library does it. Autocomplete already writes half your boilerplate. Stack Overflow already handed you working solutions to problems you hadn’t fully understood yet.</p><p>Every one of those tools removed <em>some</em> of the work of writing code. None of them removed the need for an engineer. What they did was quietly raise the bar on what “<strong>doing the job well</strong>” meant. Nobody hires a backend developer today to manually manage memory. They hire one to decide what the service should do, how it should fail, and how it fits with everything else.</p><p>AI code generation is the same shift, just bigger and faster. It’s removing more of the “how do I express this in syntax” work than any tool before it. What it leaves behind, untouched, is the part that was always the actual job: deciding what to build, understanding why the last three attempts failed, and knowing which requirement is real and which is a guess dressed up as a spec.</p><h3>The Reality of the Early-Career Market</h3><p>This is the question underneath all the others, so let’s take it head-on, honestly.</p><p>Entry-level hiring is genuinely tighter right now in a lot of places. Some of that is tied to broader economic conditions that have nothing to do with AI. Some companies really are betting they can get away with hiring fewer juniors and leaning on senior engineers plus AI tools instead. That’s a real headwind, and I’m not going to pretend otherwise.</p><p>But here’s what I’ve noticed watching teams actually try this: Senior engineers aren’t hired off the shelf; they’re grown from juniors over several years. Every senior on your team was once someone’s junior hire who got the chance to learn on real problems. If companies broadly stop hiring and training juniors now because AI makes it tempting to skip that investment, they’re not eliminating a cost. They’re skipping a step in their own supply chain. In three or four years, those same companies will need senior engineers, and there will be fewer people who went through the apprenticeship to become one. Some companies will realize this in time and start investing in juniors again. Others won’t notice until they’re short on senior talent and scrambling to fix it.</p><p>Your job isn’t to solve that industry-level problem. It’s to make sure that when a team does decide to invest in a junior, you’re the kind of junior worth investing in: someone who uses these tools to learn faster, not someone who uses them to avoid learning at all. That distinction is entirely within your control, and it’s the difference that will show up in your work within months.</p><h3>The apprenticeship problem, and how to route around it</h3><p>Here’s the part nobody says out loud, so I will.</p><p>For a long time, the on-ramp into this profession looked like this: you get hired, you’re handed small, well-scoped tickets, you fix minor bugs, you write boilerplate, and slowly you absorb how real systems work until you’re trusted with harder problems.</p><p>Those small tasks were training wheels. And they happen to be exactly what AI is best at.</p><p>That doesn’t mean the on-ramp is gone. It means you can’t count on it arriving automatically anymore. You may have to build your own learning path more deliberately than the engineers who came before you. That sounds like a burden, but it’s also an opening: engineers who are intentional about how they learn will pull ahead of those who just drift with the tools.</p><p>The single biggest trap to avoid is this:</p><blockquote><strong>Don’t let the tool do your learning for you.</strong></blockquote><p>If you accept every suggestion without understanding it, you’ll ship fast and learn nothing. You’ll feel productive right up until something breaks in a way the tool can’t fix, and then you’ll discover there was never a foundation under you.</p><h3>The five skills that matter more now, not less</h3><p>Here’s what I’ve seen separate early-career engineers who are growing quickly with these tools from the ones who are stalling. None of these are new. What’s new is that they’ve become decisive.</p><h4>1. Reading code critically</h4><p>AI-generated code has a signature failure mode: it’s <em>plausible</em>. It looks clean, it’s confidently formatted, and it passes the happy path. The bugs it produces are rarely syntax errors. They’re wrong assumptions about your domain, missed edge cases, subtle race conditions, and security holes wearing tidy variable names.</p><p>Reading code skeptically is a different muscle from writing it, and most learning paths barely train it. But it’s the skill that lets you look at 200 generated lines and say, “this handles the retry, but it’ll double-charge on a timeout.”</p><p><strong>How to build it:</strong> Read other people’s code constantly. Review pull requests even when nobody asks you to. When the AI hands you something, don’t ask “does it run?” Ask “how could this be wrong?”</p><h4>2. Problem framing</h4><p>The quality of what comes out is bounded by the clarity of what goes in. That’s not a prompt-engineering trick. It’s the oldest truth in software, now with a much faster feedback loop.</p><p>Take a vague ask like “make the signup flow smoother.” Someone has to turn that into precise, testable, prioritized pieces. Engineers who can do this get remarkable results. Engineers who can’t get remarkable-looking results that solve the wrong problem very efficiently.</p><p><strong>How to build it:</strong> Before you write a prompt or a line of code, write two or three sentences describing the problem, who has it, and how you’ll know it’s solved. If you can’t, you’re not ready to build yet.</p><h4>3. Understanding how systems actually fit together</h4><p>An AI can write a function. It’s much shakier at holding an entire system in its head: the deployment constraints, the on-call burden, the migration from before you joined that explains why that table looks weird, the fact that three services quietly depend on the field you’re about to rename.</p><p>This is context-heavy, consequence-heavy knowledge, and it’s learned by getting close to real systems, not from tutorials.</p><p><strong>How to build it:</strong> Learn what happens <em>around</em> the code: how it gets deployed, monitored, and debugged in production. Ask “what breaks if this changes?” Trace a request from the frontend to the database and back. Read the postmortems your team has already written.</p><h4>4. Taste</h4><p>Taste is hard to define and easy to dismiss, but it’s one of the most durable skills you can build. It’s knowing that the clever solution is a maintenance trap. It’s knowing when to delete code instead of adding more. It’s the instinct that says “this is one layer of abstraction too many” before you can quite explain why.</p><p>When generating code is cheap, volume stops being impressive. Restraint becomes the scarce skill: shipping the smaller, simpler thing that’s easy to change later.</p><p><strong>How to build it:</strong> Notice which parts of your codebase you enjoy working in and which you dread, then ask what makes the difference. Pay close attention when a senior changes your code in review, not just to what they changed, but why.</p><h4>5. Ownership</h4><p>When something breaks, the AI isn’t the one who has to explain what happened. Someone has to understand the system well enough to diagnose it, fix it, and communicate honestly about it.</p><p>Ownership is also the fastest way to earn trust early in your career. “I’ll look into it,” followed by a clear write-up of what you found, is worth more than any volume of code output.</p><p><strong>How to build it:</strong> Treat everything you ship as yours, including the AI-assisted parts. If you merge it, you own it. Follow up after it deploys. Volunteer to shadow on-call before anyone asks you to.</p><h3>A practical playbook for using AI without hollowing out your skills</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*X8NYnqHkCFb9tTEXu8Il4A.jpeg" /></figure><p>A few habits worth building now, while they’re still forming:</p><p><strong>Explain it back.</strong> Before you commit generated code, be able to explain every line to a teammate. If you can’t, you don’t own it yet.</p><p><strong>Use AI as a tutor, not a vending machine.</strong> Ask <em>why</em> it chose this approach. Ask what the alternatives were. Ask it to critique its own solution. The difference between “give me the answer” and “help me understand the answer” compounds over years, even though it feels slower today.</p><p><strong>Try first, then ask.</strong> Spend a real, timeboxed effort on a problem before reaching for the tool. The struggle is where the learning actually lives. Then compare your approach to what the AI suggests and study the gap.</p><p><strong>Write some things by hand, on purpose.</strong> Not out of nostalgia, but the way a musician still practices scales. Fundamentals are what let you notice when the output is subtly wrong. If you can’t tell good code from plausible code, you can’t supervise anything.</p><p><strong>Chase the hard problems.</strong> Volunteer for the ambiguous bug, the incident review, the cross-team project nobody wants. That’s where judgment gets built, and it’s where you’ll actually stand out on a team.</p><h3>Standing out in this market</h3><p>The job search, or in your case, the next role, is where the anxiety hits hardest, so let’s get concrete.</p><p><strong>Show your thinking, not just your output.</strong> Anyone can now produce a polished side project in an afternoon, which means the project itself says less than it used to. What distinguishes you is evidence of judgment: why you made certain tradeoffs, what didn’t work, what you’d change with more time. A short write-up explaining your decisions is worth more than one more feature.</p><p><strong>Be fluent with AI tools, and honest about how you use them.</strong> Be ready to talk about how you use them, including where they’ve led you wrong. That answer signals more maturity than either “I use it for everything” or “I never touch it.”</p><p><strong>Get comfortable with interviews that test understanding over output.</strong> As take-home work becomes harder to trust, expect more live problem-solving, code reading, and design discussion. That plays directly to fundamentals, which is one more reason to invest in them now.</p><p><strong>Contribute somewhere real, even something small.</strong> Fixing docs, triaging issues, or patching a minor bug in an open-source project teaches you to read unfamiliar code and work within existing systems. That’s visible, real-world experience.</p><p><strong>Look for roles with real scope.</strong> Teams that let you touch more of the system, not just a narrow slice, will accelerate the skills above faster than a narrower, more prestigious role will.</p><h3>The honest caveats</h3><p>I’d be doing you a disservice if I wrapped this up with a bow.</p><p>The tools will keep improving, and I don’t know exactly where the ceiling is. Entry-level hiring may stay tight for a while yet. Some routine, commoditized kinds of work will keep shrinking. Anyone who tells you with total confidence how this ends, in either direction, is selling something, whether it’s a course, a newsletter, or a doom narrative.</p><p>What I can say, from watching this happen up close, is that betting your growth on <em>typing speed</em> was always a weak bet. Betting on <em>understanding problems and taking responsibility for solutions</em> still looks like a strong one.</p><h3>Here’s the advantage you actually have</h3><p>You’re not entering a smaller field. You’re entering a different one, and being early in your career means you’re close enough to the start of it to build your instincts around these tools from the ground up, rather than having to unlearn an old way of working.</p><p>You can learn to review, specify, and verify as core skills instead of retrofitting them later. You can grow up fluent with these tools in a way that’s genuinely hard for people trained in the old workflow to fully catch up to.</p><p>The junior developer I mentioned at the start? After the awe wore off, he spent the rest of the afternoon poking holes in that admin table. He found a pagination bug that would have bitten us on the second page of real data, then rewrote the filter logic to match how our support team actually searches.</p><p>The ninety seconds didn’t replace him. It bought him time to do the part that mattered, and he was better at it than <strong>he</strong> realized.</p><p>So, what is a software engineer supposed to do now?</p><p>Get curious about <em>why</em>. Stay close to the fundamentals. Treat the AI as a fast, occasionally overconfident collaborator you’re responsible for supervising. And remember that the job was never the typing. That was just the part that happened to be visible.</p><p>You’re not behind. You’re just starting to build the skills that actually matter, a little earlier than most people realized they needed to.</p><p><strong>Enjoyed this?</strong></p><p><strong>Support me </strong><a href="https://buymeacoffee.com/madhawaawishka"><strong>here</strong></a><strong> :)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b47db0d96099" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Cypress for E2E Testing — A Beginner’s Hands-On Guide]]></title>
            <link>https://medium.com/@madhawaawishka/getting-started-with-cypress-for-e2e-testing-a-beginners-hands-on-guide-86672672e642?source=rss-98bf05b9f0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/86672672e642</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[e2e]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[cypress]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Madhawa Awishka]]></dc:creator>
            <pubDate>Thu, 22 May 2025 03:49:06 GMT</pubDate>
            <atom:updated>2025-07-27T15:31:30.095Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting Started with Cypress for E2E Testing — A Beginner’s Hands-On Guide🚀</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SiT1IZMp4_-o7T8k6r0cag.png" /></figure><p>In today’s software development world, testing is no longer an afterthought. Whether you’re building a sleek frontend or a robust backend, automated testing plays a huge role in delivering reliable software. One powerful tool for frontend testing is <strong>Cypress</strong> — a fast, easy-to-use, and reliable testing framework for anything that runs in a browser.</p><p>If you’re someone just stepping into the world of end-to-end (E2E) testing, this hands-on lab is a perfect starting point. I decided to document the process to help others who might face a similar challenge. Let’s dive into the details! 💻</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*yBDwugx-ri-bhShYh5ZRpQ.gif" /></figure><h3>🛠 Prerequisites</h3><p>Before jumping into Cypress, make sure your development environment is ready:</p><ul><li>Install <a href="https://nodejs.org/">Node.js</a></li><li>Install <a href="https://code.visualstudio.com/">Visual Studio Code (VSCode)</a></li></ul><p>These two are essentials. Once installed, you’re all set to begin!</p><h3>📁 Step 1: Create Your Project Folder</h3><p>Start by creating a new folder where you’ll keep your lab files. For example:</p><pre>mkdir cypress-lab<br>cd cypress-lab</pre><h3>📦 Step 2: Initialize a Node.js Project</h3><p>Inside your project folder, run:</p><pre>npm init -y</pre><p>This command initializes a basic package.json file, which will track the dependencies you install.</p><h3>📥 Step 3: Install Cypress</h3><p>Now, let’s install Cypress locally:</p><pre>npm install cypress --save-dev</pre><p>Boom! You’ve now added Cypress to your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*GVQSuCgAlckZG1eLjah38w.gif" /></figure><h3>🧪 Step 4: Open Cypress for the First Time</h3><p>Next, let’s open Cypress and explore its UI. Open your terminal (make sure it’s <strong>Command Prompt</strong>, not PowerShell) and run:</p><pre>npx cypress open</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nNJc0TyIT2Mkx3F66lWrEw.png" /><figcaption>cypress window</figcaption></figure><p>This launches the Cypress Test Runner — a visual interface where you can manage and run tests. ✨</p><h3>🧭 Step 5: Configure E2E Testing</h3><p>By default, E2E testing isn’t set up yet. You’ll see an option to configure it — click on <strong>E2E Testing</strong>, then hit <strong>Continue</strong>.</p><h3>🌐 Step 6: Choose a Browser</h3><p>Select your browser of choice (Chrome, Edge, etc.) and click <strong>Start Testing</strong>. Cypress will now create a structure inside your project folder, including a default cypress/ directory.</p><h3>📂 Step 7: Add Your First Test</h3><p>Inside your project folder, navigate to:</p><pre>cypress/e2e/</pre><p>Create a new test file here. Let’s call it simple_test.cy.js.</p><p>You can do this easily from VSCode:</p><ul><li>Right-click on the e2e folder</li><li>Choose <strong>New File</strong></li><li>Name it simple_test.cy.js</li></ul><h3>✍️ Step 8: Write Your Test Script</h3><p>Now add your first test! Here’s a basic example:</p><pre>describe(&#39;My First Test&#39;, () =&gt; {<br>  it(&#39;Visits the Cypress docs&#39;, () =&gt; {<br>    cy.visit(&#39;https://docs.cypress.io&#39;)<br>    cy.contains(&#39;Introduction&#39;).click()<br>    cy.url().should(&#39;include&#39;, &#39;/introduction&#39;)<br>  })<br>})</pre><p>This test opens the Cypress docs, clicks on the “Introduction” link, and checks the URL to make sure the navigation worked.</p><h3>🔄 Step 9: Run the Test</h3><p>Save your file and re-open Cypress if it’s not already open:</p><pre>npx cypress open</pre><p>Choose <strong>E2E Testing</strong>, select your browser again, and you’ll see your simple_test.cy.js script listed. Double-click it to run the test.</p><h3>🖥 Step 10 &amp; 11: Visualize the Test Run</h3><p>Once the test starts:</p><ul><li>The <strong>left-hand side</strong> of the Cypress Test Runner shows real-time test logs and results.</li><li>The <strong>right-hand side</strong> gives you <strong>snapshots</strong> of your app at each step in the test — super useful for debugging and understanding what’s happening.</li></ul><p>This visual feedback is one of the biggest advantages Cypress has over other testing frameworks!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dWJuUcXxKOYv99bV.png" /></figure><h3>Wrap Up</h3><p>And there you have it! You’ve written, configured, and executed your first E2E test using Cypress.</p><p>If you’ve followed along, congrats! 🎉 You’re on your way to mastering one of the most popular testing tools in web development today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*u9HkhJ9TAlTV9FVPWvcflQ.gif" /></figure><p><strong>Happy Hacking!</strong></p><p><strong>Enjoyed this? Support me </strong><a href="https://buymeacoffee.com/madhawaawishka"><strong>here</strong></a></p><h3>🔗 Further References</h3><ol><li><a href="https://docs.cypress.io/"><strong>Official Cypress Documentation</strong></a>📚<br> The best place to get started, explore APIs, and deep-dive into Cypress features.</li><li><a href="https://github.com/cypress-io/cypress"><strong>Cypress GitHub Repository</strong></a> 💻<br> Explore the source code, issues, and updates from the Cypress team.</li><li><a href="https://www.freecodecamp.org/news/end-to-end-testing-with-cypress/"><strong><em>Introduction to End-to-End Testing with Cypress (FreeCodeCamp)</em></strong></a> 🧪<br> A beginner-friendly tutorial walking through key Cypress concepts.</li><li><a href="https://docs.cypress.io/guides/references/best-practices"><strong>Cypress Best Practices Guide</strong></a>✅<br> Tips and conventions recommended by the Cypress team for writing efficient tests.</li><li><a href="https://www.testim.io/blog/end-to-end-testing/"><strong>E2E Testing vs Other Testing Types (Testim Blog</strong></a><strong>)</strong>🔍<br> Understand how E2E testing compares with unit and integration testing.</li><li><a href="https://docs.cypress.io/api/table-of-contents"><strong>Common Cypress Commands Cheat Sheet</strong> </a>📄<br> Bookmark this for quick access to all commonly used Cypress commands.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86672672e642" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing the AI Interviewer App: Revolutionizing How You Hire Talent]]></title>
            <link>https://medium.com/@madhawaawishka/introducing-the-ai-interviewer-app-revolutionizing-how-you-hire-talent-8af56e048a47?source=rss-98bf05b9f0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8af56e048a47</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificalintelligence]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Madhawa Awishka]]></dc:creator>
            <pubDate>Wed, 07 May 2025 05:28:40 GMT</pubDate>
            <atom:updated>2025-05-07T05:28:40.396Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*lok1FpHOD5zZay9V5aI3Tw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KzDlWRwf2ROckPBY" /></figure><p>Hiring the right person can be a game-changer for any business, but let’s be honest — it’s no walk in the park. Whether you’re a small startup founder juggling a million tasks or an HR manager at a big corporation sifting through piles of resumes, the process can feel overwhelming. How do you know if you’re asking the right questions? How do you spot the perfect candidate without wasting hours — or worse, hiring the wrong person?</p><p>Say hello to <a href="https://www.skillchecker.ai/"><strong>Skillchecker.ai</strong></a>, your new best friend in the hiring world. This isn’t just another app — it’s an AI-powered partner that takes the guesswork out of interviewing and helps you find the talent your team needs. With <strong>Skillchecker.ai</strong>, you’re not just hiring smarter; you’re hiring better, faster, and fairer. Let’s dive into what makes <a href="https://www.skillchecker.ai/"><strong>Skillchecker.ai</strong></a> so special and how it’s about to transform your recruitment game.</p><h3>What Exactly is Skillchecker.ai?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/0*h0MZ6_S8qrEY56Cv.gif" /></figure><p>At its core, <strong>Skillchecker.ai</strong> is an innovative platform that uses artificial intelligence to streamline and enhance the interview process. Think of it as your personal hiring assistant, equipped with the smarts to craft tailored questions, analyze responses on the fly, and provide actionable insights — all while keeping things simple and intuitive. Whether you’re interviewing a software developer, a marketing guru, or a customer service pro, <strong>Skillchecker.ai</strong> adapts to your needs and ensures you’re always one step ahead.</p><p>But it’s more than just a tool — it’s a way to level up your hiring. With <strong>Skillchecker.ai</strong>, you get the expertise of a seasoned recruiter without the steep learning curve or hefty price tag. Ready to see how it works? Let’s break it down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IZn0-cYYO4316Loi" /></figure><h3>Why You Need Skillchecker.ai in Your Hiring Toolkit</h3><p>Hiring comes with its fair share of headaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/0*r-940-t-fO7HJgux.gif" /></figure><p>Maybe you’ve been there: staring at a stack of CVs, unsure how to evaluate a candidate’s skills, or worrying that your process isn’t as fair as it could be. <strong>Skillchecker.ai</strong> steps in to tackle those challenges head-on. Here’s how:</p><ul><li><strong>No More Guesswork:</strong> Struggling to assess a role you don’t fully understand? <strong>Skillchecker.ai</strong> generates expert-level questions so you don’t have to be the expert.</li><li><strong>Time-Saving Magic:</strong> Who has hours to craft interview questions or compare candidates manually? <strong>Skillchecker.ai</strong> automates the heavy lifting, letting you focus on the big picture.</li><li><strong>Bias? Not Here:</strong> Unconscious bias can sneak into hiring decisions, but <strong>Skillchecker.ai</strong> keeps things objective with standardized, data-driven evaluations.</li><li><strong>Consistency is Key:</strong> If your team’s interviewers are all over the place with their questions, <strong>Skillchecker.ai</strong> brings everyone onto the same page.</li></ul><p>In short, <strong>Skillchecker.ai</strong> turns hiring chaos into a smooth, reliable process. Let’s explore the features that make it happen.</p><h3>The Powerhouse Features of Skillchecker.ai</h3><p><strong>Skillchecker.ai</strong> isn’t a one-trick pony — it’s packed with tools designed to make every interview count. Here’s a closer look at what you’ll get:</p><h3>1. Tailored Questions That Hit the Mark</h3><p>Ever tried Googling “good interview questions” and ended up with generic fluff? With <strong>Skillchecker.ai</strong>, that’s a thing of the past. The app analyzes your job description and each candidate’s CV to whip up questions that are spot-on for the role. Hiring a graphic designer? Expect questions about their portfolio, design process, and software skills — all customized to their background. It’s like having a bespoke interview script, every time.</p><h3>2. Real-Time Analysis to Keep You Sharp</h3><p>Picture this: you’re mid-interview, and the candidate drops an interesting tidbit. Do you follow up? With <strong>Skillchecker.ai</strong>, you don’t have to guess. The app listens in real-time, suggesting smart follow-up questions to dig deeper. If they mention leading a team project, <strong>Skillchecker.ai</strong> might nudge you to ask about their leadership style or how they handled conflict. It’s like having a coach whispering in your ear.</p><h3>3. Technical Question Generator for the Win</h3><p>Not a tech whiz? No problem. <strong>Skillchecker.ai</strong> shines when it comes to technical roles, crafting questions that test candidates’ know-how — think coding challenges, system design scenarios, or troubleshooting hypotheticals. You don’t need to know Python from Java; <strong>Skillchecker.ai</strong> does the hard work, ensuring you can confidently assess even the geekiest candidates.</p><h3>4. Post-Interview Analytics That Tell the Story</h3><p>Once the interview’s over, <strong>Skillchecker.ai</strong> doesn’t leave you hanging. You’ll get a detailed breakdown of how the candidate did — strengths, weaknesses, and all. Did they nail the technical stuff but stumble on communication? The report lays it out clearly, so you can make informed decisions without second-guessing yourself.</p><h3>5. Candidate Comparison Made Easy</h3><p>Choosing between two great candidates can feel like flipping a coin. <strong>Skillchecker.ai</strong> changes that with its side-by-side comparison tool. See how they stack up on key skills, experience, and performance metrics — all in one glance. It’s decision-making made simple.</p><h3>6. Smart CV Analysis for Laser Focus</h3><p>Upload a CV, and <strong>Skillchecker.ai</strong> gets to work, pinpointing the candidate’s standout skills and experiences. It then tailors the interview to zoom in on what matters most. If their resume screams “project management,” expect questions that probe their organizational chops. It’s efficient and razor-sharp.</p><h3>7. Live Video Interviews, Anywhere, Anytime</h3><p>Remote hiring? <strong>Skillchecker.ai</strong> has you covered with built-in video interviewing. Conduct seamless virtual sessions while still tapping into all the AI-powered goodness. It’s perfect for today’s global workforce — no plane tickets required.</p><h3>How Skillchecker.ai Works: Your Step-by-Step Playbook</h3><p>Getting started with <strong>Skillchecker.ai</strong> is a breeze, whether you’re a company, an interviewer, or a candidate. Here’s the rundown:</p><h3>For Companies</h3><ol><li><strong>Set It Up:</strong> Input the job details — upload a description or type it out. <strong>Skillchecker.ai</strong> takes it from there.</li><li><strong>Craft Questions:</strong> Let <strong>Skillchecker.ai</strong> generate a mix of technical and behavioral questions, or tweak them yourself.</li><li><strong>Invite Candidates:</strong> Share the interview link or schedule a time. <strong>Skillchecker.ai</strong> keeps everything organized.</li></ol><h3>For Interviewers</h3><ol><li><strong>Log In:</strong> Access your <strong>Skillchecker.ai</strong> dashboard and see your upcoming interviews.</li><li><strong>Jump In:</strong> Pick a slot, start the interview, and let <strong>Skillchecker.ai</strong> guide you with questions and insights.</li><li><strong>Wrap Up:</strong> Review the analytics and decide who’s moving forward — all with <strong>Skillchecker.ai</strong>’s help.</li></ol><h3>For Candidates</h3><ol><li><strong>Get Invited:</strong> Receive a link or time slot from the employer.</li><li><strong>Show Up:</strong> Join the interview — virtual or in-person — and tackle questions powered by <strong>Skillchecker.ai</strong>.</li><li><strong>Shine:</strong> Answer thoughtfully, knowing you’re being evaluated fairly.</li></ol><p><strong>Skillchecker.ai</strong> supports virtual, in-person-with-device, and traditional in-person interviews, so you’ve got options galore.</p><h3>Skillchecker.ai and Fairness: Hiring with Integrity</h3><p>Here’s something we’re proud of: <strong>Skillchecker.ai</strong> isn’t just about efficiency — it’s about fairness, too. By relying on objective data and consistent criteria, the app cuts down on bias that can sneak into human-led interviews. No more snap judgments based on a handshake or a vibe. With <strong>Skillchecker.ai</strong>, every candidate gets a fair shot, and you get a more diverse, talented team. That’s a win-win.</p><h3>Privacy First: Skillchecker.ai Keeps Your Data Safe</h3><p>We get it — handling candidate info is serious business. <strong>Skillchecker.ai</strong> takes privacy to heart, with top-notch security measures to protect your data and your candidates’. Everything’s encrypted and compliant with the latest regulations, so you can focus on hiring without worrying about the fine print.</p><h3>Skillchecker.ai in Action: A Real-World Story</h3><p>Let’s paint a picture. Meet Sarah, a small business owner who’s hiring her first web developer. She’s a whiz at marketing but clueless about code. Enter <strong>Skillchecker.ai</strong>:</p><ul><li><strong>Step 1:</strong> Sarah uploads the job description to <strong>Skillchecker.ai</strong>.</li><li><strong>Step 2:</strong> The app spits out questions about HTML, CSS, JavaScript, and responsive design — stuff Sarah wouldn’t know to ask.</li><li><strong>Step 3:</strong> During the interview, a candidate mentions building an e-commerce site. <strong>Skillchecker.ai</strong> suggests asking about payment integration challenges.</li><li><strong>Step 4:</strong> Post-interview, Sarah gets a report showing the candidate’s coding skills are solid, but their problem-solving could use work.</li><li><strong>Step 5:</strong> Comparing two finalists, <strong>Skillchecker.ai</strong> highlights one’s stronger portfolio, sealing the deal.</li></ul><p>Without <strong>Skillchecker.ai</strong>, Sarah might’ve hired based on a hunch. With it, she’s confident she’s picked a winner.</p><h3>Why Skillchecker.ai Stands Out</h3><ul><li><strong>Small Teams:</strong> Get big-league hiring tools on a startup budget.</li><li><strong>Big Companies:</strong> Scale your process, keep it consistent, and hire like pros.</li></ul><p>In a world where talent is everything, <strong>Skillchecker.ai</strong> gives you the edge to snag the best, no matter your size.</p><h3>Start Hiring Smarter with Skillchecker.ai Today</h3><p>We’re thrilled to bring <strong>Skillchecker.ai</strong> to the table and can’t wait to see how it changes the way you hire. This blog is just the start — keep an eye out for more posts diving into each feature and sharing pro tips to maximize <strong>Skillchecker.ai</strong>.</p><p>Ready to ditch the hiring stress and find your dream team? Sign up for <strong>Skillchecker.ai</strong> today and see why it’s the future of recruitment. Let’s make hiring smarter, together.</p><p><a href="https://www.skillchecker.ai/"><strong><em>Skillchecker.ai </em></strong></a><strong><em>— Where great hires begin.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8af56e048a47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add an Interactive Map with React Leaflet and Leaflet Routing Machine]]></title>
            <link>https://medium.com/@madhawaawishka/how-to-add-an-interactive-map-with-react-leaflet-and-leaflet-routing-machine-787113e730b3?source=rss-98bf05b9f0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/787113e730b3</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-leaflet]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Madhawa Awishka]]></dc:creator>
            <pubDate>Thu, 13 Mar 2025 09:14:37 GMT</pubDate>
            <atom:updated>2025-03-13T09:14:37.390Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yID5DqpOB4CmkQYKlYER0A.png" /></figure><p>So, recently I had this idea to add an interactive map to a website. You know, one of those fancy maps where users can zoom in, zoom out, and feel like they’re on a digital treasure hunt. The only problem? I had no idea how to do it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*YK0IDT0ZuBic3GSG.gif" /></figure><p>I survived, and so can you. Here’s how I added a Leaflet map to my website without losing my sanity (mostly).</p><h4>Why Leaflet?</h4><p>You might be wondering why someone would use a library like Leaflet instead of just copying and pasting a Google Maps iframe. The main reason is that I needed to build my map interactively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*_hngwhRRaGIvvBdcD7yyAg.gif" /></figure><p>So, I did some research, tried to find the best possible solution. Then I stumbled upon Leaflet, the cool, lightweight, open-source react component. It&#39;s free, it’s flexible, and it doesn’t ask for your credit card.</p><blockquote><strong>The Case for Leaflet: Why It’s the Perfect Mapping Tool</strong></blockquote><ul><li>Lightweight &amp; Fast: At 42KB, it’s like a ninja — small, silent, and deadly efficient. Your website won’t feel like it’s hauling a sack of potatoes.</li><li>Flexible &amp; Customizable: Want unicorn-shaped markers? Leaflet won’t judge. It even lets you swap map styles like you’re trying on Halloween costumes.</li><li>Cross-Platform Magic: Works on desktops, phones, tablets, and probably your grandma’s toaster.</li><li>Active Community: If you get stuck, 10,000 developers on Stack Overflow will yell “DID YOU CHECK THE DOCS?” in unison.</li></ul><p>In this blog, I’ll be demonstrating this implementation using <strong>Next.js</strong> to ensure optimal performance and seamless integration</p><p><strong>Step 1: Setting Up the Leaflet</strong></p><p><strong>React Leaflet’s docs are great</strong>, but I wanted to optimize performance. Instead of importing the entire library upfront, I used <strong>dynamic imports</strong> so components load only when needed.</p><p>Here’s how I did it:</p><pre>import dynamic from &#39;next/dynamic&#39;;<br><br>// Dynamically import components to avoid SSR issues and reduce initial load<br>const MapContainer = dynamic(<br>  () =&gt; import(&#39;react-leaflet&#39;).then((mod) =&gt; mod.MapContainer),<br>  { ssr: false }  // Disable server-side rendering (Leaflet hates SSR)<br>);<br><br>const TileLayer = dynamic(<br>  () =&gt; import(&#39;react-leaflet&#39;).then((mod) =&gt; mod.TileLayer),<br>  { ssr: false }<br>);<br><br>const Marker = dynamic(<br>  () =&gt; import(&#39;react-leaflet&#39;).then((mod) =&gt; mod.Marker),<br>  { ssr: false }<br>);<br><br>const Icon = dynamic(<br>  () =&gt; import(&#39;react-leaflet&#39;).then((mod) =&gt; mod.Icon),<br>  { ssr: false }<br>)<br><br>const Popup = dynamic(<br>  () =&gt; import(&#39;react-leaflet&#39;).then((mod) =&gt; mod.Popup),<br>  { ssr: false }<br>);</pre><p><strong>Step 02:setting up use States</strong></p><p>Now, let’s define the state for our map</p><pre>const [position, setPosition] = useState([6.053519, 80.220978]);<br>const [icon, setIcon] = useState(null);</pre><p><strong>Step 03:Setting up the CSS</strong></p><p>Then you need to setting up the <strong>CSS </strong>for the map Container and link to the page.</p><pre>.leaflet-container{<br>    height: 100vh;<br>}</pre><p><strong>Step 4:Adding Markers icon and Popups</strong></p><pre>useEffect(() =&gt; {<br>    if (typeof window !== &quot;undefined&quot;) {<br>      const L = require(&quot;leaflet&quot;);<br>      setIcon(<br>        L.icon({<br>          iconUrl:<br>            &quot;https://storage.googleapis.com/traveller_app/0acbd3d5-000d-4e88-aea7-70ea93316511-3d-traveller-character-lying-on-big-gps-icon-png.png&quot;, // URL of the icon<br>          iconSize: [50, 50], // Set the size of the icon (e.g., 20x20 pixels)<br>          iconAnchor: [40, 60], // Adjust the anchor point relative to the icon size<br>        })<br>      );<br>    }<br>  }, []);</pre><p>Now all good. You are good to go now copy and paste the component to your desired location.</p><pre><br>    &lt;MapContainer center={[7.8731, 80.7718]} zoom={8} scrollWheelZoom={true}&gt;<br>        &lt;TileLayer<br>            attribution=&#39;&amp;copy; &lt;a href=&quot;https://www.openstreetmap.org/copyright&quot;&gt;OpenStreetMap&lt;/a&gt; contributors&#39;<br>            url=&quot;https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;<br>        /&gt;<br>        &lt;Marker position={position} icon={icon} &gt;<br>            &lt;Popup&gt;<br>                &lt;p&gt;exampleuser&lt;/p&gt;<br>            &lt;/Popup&gt;<br>        &lt;/Marker&gt;<br>    &lt;/MapContainer&gt;</pre><p>Leaflet is <strong>powerful, flexible, and surprisingly easy to use </strong>— even for someone who occasionally Googles “how to center a div.” If you’re thinking about adding a map to your website, give Leaflet a try. You might just surprise yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*WgAxy4t_j5JH8cRw.gif" /></figure><h3>Next Step:</h3><h4>Leaflet Routing Machine:</h4><p>So, you’ve got your shiny new Leaflet map up and running. Users can zoom, pan, and click around like they’re on a digital scavenger hunt. But what if you want to take it up a notch? What if you want to help users<strong> navigate from point A to point B</strong> like a GPS wizard? Enter Leaflet Routing Machine.</p><p><strong>What’s Leaflet Routing Machine?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/0*nOwcvdLF3ldoZlme.png" /></figure><p>Leaflet Routing Machine is a plugin for Leaflet that lets you add routing functionality to your map. Think of it as the brains behind the operation — it calculates routes, draws them on the map, and even provides turn-by-turn directions. It’s like having a mini Google Maps embedded in your website, but without the hefty price tag.</p><ol><li><strong>install the plugin</strong></li></ol><pre>npm install leaflet-routing-machine</pre><p><strong>Add this file to your directory</strong></p><pre>import { useEffect } from &quot;react&quot;;<br>import L from &quot;leaflet&quot;;<br>import &quot;leaflet-routing-machine/dist/leaflet-routing-machine.css&quot;;<br>import &quot;leaflet-routing-machine&quot;;<br>import { useMap } from &quot;react-leaflet&quot;;<br>import &quot;../app/style/routingStyles.css&quot;;<br><br>L.Marker.prototype.options.icon = L.icon({<br>  iconUrl: &quot;https://unpkg.com/leaflet@1.7.1/dist/images/marker-icon.png&quot;,<br>});<br><br>export default function Routing() {<br>  const map = useMap();<br><br>  useEffect(() =&gt; {<br>    if (!map) return;<br><br>    const routingControl = L.Routing.control({<br>      waypoints: [L.latLng(9.3803, 80.377), L.latLng(6.1395, 80.1063)],<br>      routeWhileDragging: false,<br>      show: false,<br>    }).addTo(map);<br><br>    // return () =&gt; map.removeControl(routingControl);<br>  }, [map]);<br><br>  return null;<br>}</pre><p><strong>Add this newly creating component to the map container</strong></p><pre>      &lt;MapContainer center={[7.8731, 80.7718]} zoom={8} scrollWheelZoom={true}&gt;<br>        &lt;TileLayer<br>          attribution=&#39;&amp;copy; &lt;a href=&quot;https://www.openstreetmap.org/copyright&quot;&gt;OpenStreetMap&lt;/a&gt; contributors&#39;<br>          url=&quot;https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;<br>        /&gt;<br>        &lt;Marker position={position} icon={icon}&gt;<br>          &lt;Popup&gt;<br>            &lt;p&gt;exampleuser&lt;/p&gt;<br>          &lt;/Popup&gt;<br>        &lt;/Marker&gt;<br>        &lt;Routing /&gt;<br>      &lt;/MapContainer&gt;</pre><p>I also created a Code Sandbox for your references.</p><blockquote><a href="https://codesandbox.io/p/devbox/reactleaflet-dptc4h">https://codesandbox.io/p/devbox/reactleaflet-dptc4h</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ssy8vKx6bkQflg1iBaYrYw.png" /><figcaption>codesandbox refernces image</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*B8I5c9WuB-kbt6gta7DUeA.gif" /></figure><p><strong>Resources:</strong></p><ul><li><a href="https://leafletjs.com/">Leaflet Official Documentation</a></li><li><a href="https://www.openstreetmap.org/#map=8/7.873/80.807,%20react">OpenStreetMap</a></li><li><a href="https://youtu.be/jD6813wGdBA?si=aReXh1M8S3732KTM">leaflet integration video</a></li><li><a href="https://www.liedman.net/leaflet-routing-machine/">Leaflet Routing Machine</a></li></ul><p>Leaflet and Leaflet Routing Machine are a match made in mapping heaven. They’re lightweight, flexible, and perfect for adding interactive maps and routing features to your website. Whether you’re building a travel app, a delivery tracker, or just a fun project, these tools have got you covered.</p><p>And that’s it! If you have any questions or just want to share your own map-making adventures, drop a comment below. Happy mapping, and may your markers always be on point!</p><p><strong>Enjoyed this?</strong></p><p><strong>Support me </strong><a href="https://buymeacoffee.com/madhawaawishka"><strong>here</strong></a><strong> :)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=787113e730b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Rich Text Editor in Your Next.js App Using Quill]]></title>
            <link>https://medium.com/@madhawaawishka/building-a-rich-text-editor-in-your-next-js-app-using-quill-de3069da05e7?source=rss-98bf05b9f0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/de3069da05e7</guid>
            <category><![CDATA[editor]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[dev]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Madhawa Awishka]]></dc:creator>
            <pubDate>Sat, 25 Jan 2025 18:21:24 GMT</pubDate>
            <atom:updated>2025-01-26T05:21:38.389Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFoWwk3mvd72FTrIQxh_ew.png" /></figure><p>Recently,i had a requirement to add a RichText Editor to a nextjs application.I explored several packages and frameworks to accomplish this but found that none fully met my needs. After further research, I came across a package called <strong>Quill</strong>, which turned out to be the perfect solution.So, I decided to document the process to help others who might face a similar challenge. Let&#39;s dive into the details!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*9rCWeml4LOXUA4x5.jpg" /></figure><p>Rich text editors are essential for creating content-rich web applications like blogging platforms, forums, or note-taking apps. In this guide, I’ll walk you through the steps to integrate <strong>Quill.js</strong>, a powerful and user-friendly rich text editor, into your <strong>Next.js</strong> application.</p><h3>Why Quill.js?</h3><p>Quill.js is a free and open-source WYSIWYG editor that offers a clean interface, extensive customization options, and ease of integration.</p><h3>Step 1: Setting Up the Next.js Project</h3><p>To get started, make sure you have a Next.js project. If you don’t, create one using the following command:</p><pre>npx create-next-app@latest rich-text-editor<br>cd rich-text-editor</pre><p>Install the required dependencies for Quill:</p><pre>npm install quill</pre><h3>Step 2: Create the RichTextEditor Component</h3><p>We’ll create a reusable RichTextEditor component. This component initializes Quill and provides a placeholder for user input.</p><p>Here’s the code for the component:</p><pre>&#39;use client&#39;;<br><br>import React, { useEffect, useRef, forwardRef, useImperativeHandle } from &#39;react&#39;;<br>import Quill from &#39;quill&#39;;<br>import &#39;quill/dist/quill.snow.css&#39;; // Import Quill styles<br><br>// Define the ref type for the RichTextEditor component<br>export type RichTextEditorHandle = {<br>  getContent: () =&gt; string;<br>};<br><br>const RichTextEditor = forwardRef&lt;RichTextEditorHandle&gt;((_, ref) =&gt; {<br>  const editorRef = useRef&lt;HTMLDivElement&gt;(null);<br>  const quillRef = useRef&lt;Quill | null&gt;(null);<br><br>  useEffect(() =&gt; {<br>    if (editorRef.current) {<br>      quillRef.current = new Quill(editorRef.current, {<br>        theme: &#39;snow&#39;,<br>        modules: {<br>          toolbar: [<br>            [{ header: [1, 2, 3, false] }],<br>            [&#39;bold&#39;, &#39;italic&#39;, &#39;underline&#39;, &#39;strike&#39;],<br>            [{ list: &#39;ordered&#39; }, { list: &#39;bullet&#39; }],<br>            [&#39;link&#39;, &#39;image&#39;],<br>            [&#39;clean&#39;],<br>          ],<br>        },<br>        placeholder: &#39;Write something...&#39;,<br>      });<br>    }<br><br>    return () =&gt; {<br>      quillRef.current = null; // Cleanup to avoid memory leaks<br>    };<br>  }, []);<br><br>  // Expose the getContent function to the parent component<br>  useImperativeHandle(ref, () =&gt; ({<br>    getContent: () =&gt; {<br>      if (quillRef.current) {<br>        return quillRef.current.root.innerHTML; // Return the HTML content<br>      }<br>      return &#39;&#39;;<br>    },<br>  }));<br><br>  return &lt;div ref={editorRef} style={{ height: &#39;300px&#39; }} /&gt;;<br>});<br><br>RichTextEditor.displayName = &#39;RichTextEditor&#39;;<br>export default RichTextEditor;</pre><h3>Step 3:Add the <strong>RichTextEditor </strong>component to your page</h3><p>Next,let’s include the <strong>RichTextEditor </strong>component in the Home page.you might encounter a common error <strong>Document is not defined.</strong>This happen because Quill is relies on the document object,which is unavailable during server-side rendering in Next.js.To slove this,use Next.js <strong>dyamic </strong>import with<strong> ssr:false</strong></p><p><strong>Home page</strong></p><pre>&#39;use client&#39;;<br>import dynamic from &#39;next/dynamic&#39;;<br>import React, { useRef,useState } from &#39;react&#39;;<br>const RichTextEditor = dynamic(() =&gt; import(&#39;@/app/component/RichTextEditot&#39;), { <br>  ssr: false <br>});<br><br>// Define the RichTextEditorHandle type<br>type RichTextEditorHandle = {<br>  getContent: () =&gt; string;<br>};<br><br><br><br><br>export default function Home() {<br>  const editorRef = useRef&lt;RichTextEditorHandle&gt;(null); // Ref for RichTextEditor<br>  const [editorContent, setEditorContent] = useState&lt;string&gt;(&#39;&#39;); // State to store the editor content<br><br>  const handleGetContent = () =&gt; {<br>    if (editorRef.current) {<br>      const content = editorRef.current.getContent(); // Get the editor content<br>      setEditorContent(content); // Update the state with the content<br>    }<br>  };<br><br>  return (<br>    &lt;div className=&quot;p-4&quot;&gt;<br>      &lt;h1 className=&quot;text-center font-bold my-5 text-xl&quot;&gt;Rich Text Editor&lt;/h1&gt;<br>      &lt;div&gt;<br>        &lt;RichTextEditor ref={editorRef} /&gt;<br>      &lt;/div&gt;<br>      &lt;button<br>        onClick={handleGetContent}<br>        className=&quot;mt-4 px-4 py-2 bg-blue-500 text-white rounded flex &quot;<br>      &gt;<br>        Show Content<br>      &lt;/button&gt;<br>      &lt;div className=&quot;mt-4&quot;&gt;<br>        &lt;h2 className=&quot;font-bold text-lg&quot;&gt;Editor Content:&lt;/h2&gt;<br>        &lt;div<br>          className=&quot;border p-4 rounded bg-gray-50&quot;<br>          dangerouslySetInnerHTML={{ __html: editorContent }}<br>        /&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>I’ve added my Next.js sample application to give you a hands-on experience with the Rich Text Editor. Feel free to clone the project, explore the code, and see the editor in action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PrLstdpTLdae1TWo9rFMVw.png" /></figure><p>GitHub Link:<a href="https://github.com/madhawaawishka/Next.js-RichTextEditor">https://github.com/madhawaawishka/Next.js-RichTextEditor</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*7PkFmFVzDvF8DiWp.png" /></figure><p>Key points you want to remember:</p><ul><li><strong>Dynamic import:</strong>Disabling server-side rendering for the TextEditor component ensures Quill works seamlessly in Next.js application.</li><li><strong>Customizable Toolbar</strong>: You can easily modify the toolbar options in the Quill configuration to fit your needs.</li><li><strong>Reusable Component</strong>: Encapsulating the editor as a reusable component allows you to include it in multiple places in your app.</li></ul><p><strong>Happy Hacking!</strong></p><p><strong>Enjoyed this? Support me </strong><a href="https://buymeacoffee.com/madhawaawishka"><strong>here</strong></a></p><h3>Further Reading and Resources</h3><ul><li><a href="https://www.npmjs.com/package/quill">NPM Package</a></li><li><a href="https://quilljs.com/">Quill Doc</a></li><li><a href="https://stackoverflow.com/questions/75626458/how-to-dynamic-import-js-lib-modules-non-components-in-next-js">dynamic import js next.js</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de3069da05e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker for noobs-Breaking Down The Basics]]></title>
            <link>https://medium.com/@madhawaawishka/docker-for-noobs-breaking-down-the-basics-78722f7976dd?source=rss-98bf05b9f0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/78722f7976dd</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[Madhawa Awishka]]></dc:creator>
            <pubDate>Sat, 11 Jan 2025 17:03:49 GMT</pubDate>
            <atom:updated>2025-01-11T17:12:10.609Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OKrKXRcXKs7C2dNilQCWWA.png" /></figure><p>Today, we are going to take a deep dive into Docker. In this blog, the focus is not on teaching how to use Docker or creating containerized applications. Instead, we’ll explore the core concepts behind Docker, why it has become a cornerstone of modern software development, and the advantages it offers. The goal is to help you understand the “why” and “what” of Docker, providing a clear picture of its importance in today’s tech landscape.</p><blockquote>That’s work only my computer, i dont know what happened to yours</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*fb2Db08PV_SmCkP58B7b_w.jpeg" /></figure><p>If you goal is to ship software in to the real world, one of the most powerful concept you need to understand is containerization.Containerization allows you to package an application along with everything it needs to run, ensuring that it behaves the same regardless of where it’s deployed — from a developer’s local machine to a production environment in the cloud.</p><p><strong>How everything works before containers?</strong></p><ul><li>Developers had to manually install all the dependencies, services, and tools required by the application on their local machines. This included configuring databases, runtime environments, and external libraries. Each installation was prone to errors and version conflicts, making it time-consuming to get the application running smoothly.</li><li>Applications often behaved differently depending on the operating system. For example, setting up an environment on Linux was vastly different from doing so on Windows or macOS. Developers had to create unique setup instructions for each OS, leading to inconsistent configurations and wasted effort.</li><li>Setting up the development environment was a repetitive and tedious process. Developers often spent a lot of time ensuring the environment matched the production setup, troubleshooting errors, and documenting the setup process for others. This significantly delayed actual development work.</li></ul><h3><strong>What is Docker?</strong></h3><p>At the heart of containerization technology is Docker, a tool that simplifies the process of creating, managing, and deploying containers. Docker not only makes it easier to develop and test applications in isolated environments, but it also ensures that your applications will run consistently across various platforms.<br>Docker is an open platform that enables users to develop, ship, and run applications with ease. it does by packaging an application something called container that has everything need application to run(application code,libraries,Dependancies,runtime and environment configuration)</p><h3><strong>Docker VS Virtual Machines</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GUZwfvNRB3EJjR6GAh9Oaw.png" /></figure><p>You can use Docker throughout multiple stages of your DevOps cycle, but it is especially valuable in the deployment stage, especially since it allows developers to use rapid deployment. In addition, the environment itself is highly portable and was designed with efficiencies that will enable you to run multiple Docker containers in a single environment, unlike traditional virtual machine environments.</p><h3><strong>Advantages of Docker?</strong></h3><p>We can do rapid development with docker because the environment is highly portable and was designed with efficiencies that allow you to run multiple Docker containers in a single environment, unlike traditional virtual machine environments.<br>You can build an application in one environment (e.g., a developer’s machine) and run it seamlessly in another (e.g., a server, cloud, or a colleague’s system) without worrying about compatibility issues.<br>Docker ensures that applications run the same way in development, testing, and production environments.This eliminates the “it works on my machine” problem, reducing debugging time and also makes it easy to scale applications by running multiple containers for different components or instances of an application<br>Docker integrates seamlessly with Continuous Integration/Continuous Deployment (CI/CD) tools, enabling automated builds, testing, and deployments.It ensures that every step in the pipeline uses the same containerized environment</p><h3><strong>How Docker Works</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TrIGcSixAJoA5L4U.png" /></figure><p>Docker works by using containerization to package an application and all its dependencies into a lightweight, portable unit called a container.The Docker Engine, which consists of the Docker Daemon and Docker CLI, is fundamentally responsible for managing these containers. To specify the environment for the application, developers create a Dockerfile that contains the base image, necessary dependencies, and commands to launch the program. After that, this file is used to create a Docker image, which is a template for building containers. Instances of these images, known as containers, are lightweight and effective because they operate in separate environments while sharing the host OS kernel. Additionally, Docker stores and shares images through registries like Docker Hub, which facilitates deployment and cooperation across several settings.</p><h3><strong>Key Docker Concepts</strong></h3><p><strong>Docker Image</strong></p><ul><li>The building blocks for containers are called Docker images. Like snapshots for virtual machines, Docker images are immutable, read-only files that include the source code. It also contains libraries, tools, dependencies, and additional files to run an application. Images are essential for reducing disk utilization, enhancing reusability, and accelerating Docker build. You can develop images and customized containers more quickly and easily if you’ve mastered producing Docker images from Dockerfiles.</li></ul><p><strong>Docker container</strong></p><ul><li>The active, operational instances of Docker images are known as containers. Docker images are read-only files, whereas containers contain executable, transient content. Users can interact with them, and administrators can use Docker commands to change their parameters.</li></ul><p><strong>Dockerfile</strong></p><ul><li>A Dockerfile is a script with instructions on how to make a Docker image. In these instructions, you can find information about the operating system, languages, environment variables, file locations, network ports, and other details needed to run the image. The commands in the file are placed in groups, and those groups are automatically executed.An image contains several layers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/0*kuOsbMKnWiT6tqA-.jpg" /></figure><h3><strong>what is kubernetes</strong></h3><p>Suppose like a situation we are creating a web application so in these situation we cant manage the whole process in one container.so we have to scale it up one container or we have manage multiple containers.then we need a system to manage that all the containers.this is where the kubernetes come.</p><h3><strong>Docker Hub</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/0*yUsDwwgX50UFcQtz.JPG" /></figure><p>Docker Hub is a Docker Registry, a cloud-hosted version, open-source, scalable server-side application, and stateless. It can manage the sharing and storage of Docker images. Using Docker, developers can access it as public and create their own private repositories space and automate application build custom functions, work-groups, and webhooks.For example, a DevOps-trained developer can download the official MongoDBSQL document-oriented database system container image from Docker Hub to practice on an application deployed within the containers.</p><h3><strong>What is the Docker Daemon?</strong></h3><p>The Docker Daemon is a background service responsible for managing all Docker-related tasks on your system. It listens for Docker API requests and performs actions such as building, running, and managing Docker containers.</p><h3>Conclution</h3><p>Docker revolutionizes the way we build, ship, and deploy applications by leveraging containerization to ensure consistency, portability, and efficiency across development, testing, and production environments. By addressing challenges like dependency management and environment discrepancies, Docker has become an essential tool for modern software development. Its seamless integration with CI/CD pipelines, support for scaling through Kubernetes, and accessibility via Docker Hub further solidify its role in streamlining DevOps workflows. Understanding Docker’s core concepts empowers developers to focus on innovation, reduce deployment complexities, and deliver reliable software faster than ever before.</p><p><strong>Happy Hacking!</strong></p><p><strong>Enjoyed this? Support me </strong><a href="https://buymeacoffee.com/madhawaawishka"><strong>here</strong></a></p><p>Futher Readings</p><ul><li><a href="https://www.docker.com/101-tutorial/"><em>Docker Docs</em></a></li><li><a href="https://docker-curriculum.com/">Docker curriculum</a></li><li><a href="https://www.tutorialspoint.com/articles/index.php">TutorialsPoint</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78722f7976dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing Effective Git Commit Messages: Best Practices for Clear Communication]]></title>
            <link>https://medium.com/@madhawaawishka/writing-effective-git-commit-messages-best-practices-for-clear-communication-33214fe3b9d3?source=rss-98bf05b9f0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/33214fe3b9d3</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Madhawa Awishka]]></dc:creator>
            <pubDate>Tue, 10 Sep 2024 17:58:22 GMT</pubDate>
            <atom:updated>2024-09-10T17:58:22.050Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s2dOBd_mdnRbLlKF" /><figcaption>Photo by <a href="https://unsplash.com/@synkevych?utm_source=medium&amp;utm_medium=referral">Roman Synkevych</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>What do Developers do day to day? we do a lot of stuff with git. so let’s talk about commit messages.</p><h4>What exactly is a Commit Message?</h4><p>A commit message is a piece of descriptive text that describes what changes you made to a codebase. The commit message is a crucial part of the commit process as it explains the reason behind the changes, what changes were made, and any relevant context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7uZeiSgWH6mZK6YNnyxamg.jpeg" /></figure><h4>Why Proper Commit Messages Matter</h4><ol><li>Enhance project readability and maintainability when maintaining very long-term projects.</li><li>It helps to identify what changes you have made.</li><li>Simplify debugging and tracking changes.</li><li>Future readers will have no trouble understanding what changed and why it changed.</li><li>looks more professional.</li></ol><ul><li>-m (for adding commit messages)</li></ul><pre>git commit -m &quot;your commit message here&quot;</pre><h4>The Anatomy of a Commit Message</h4><p>Basically commit message consist of five parts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q_zMoupriUsCYg6oWsdBXg.png" /></figure><h4>The Commit type can be</h4><ul><li><strong>feat</strong>: Commits, which adds a new feature</li><li><strong>fix </strong>: Commits, that fixes a bug</li><li><strong>refactor </strong>: Commits, that rewrite/restructure your code, however, do not change any behavior</li><li><strong>test</strong>: Commits are special refactor commits, that improve performance</li><li><strong>docs</strong>: Commits, that affect documentation only</li><li><strong>build</strong>: Commits, that affect build components like build tool, ci pipeline, dependencies, project version</li></ul><h4>The commit scope can be</h4><p>A scope MUST consist of a noun describing a section of the codebase surrounded by parenthesis.</p><h4>Best Practices for Writing Commit Messages</h4><ul><li>Limit the subject line to 50 characters</li><li>Capitalize the subject/description line</li><li>Do not end the subject line with a period</li><li>Separate the subject from the body with a blank line</li><li>Use the imperative mood in the subject line</li><li>Wrap the body at 72 characters</li><li>Use the body to explain what and why</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*KDG0H3NXPgPR8SK6.jpg" /></figure><h4>Common Pitfalls to Avoid</h4><ul><li>Writing long and unfocused commit messages.</li><li>Using commit messages to track personal progress.</li><li>Not writing any message at all (e.g., leaving it as “Update” or “Fix bug”).</li><li>Including multiple unrelated changes in a single commit.</li></ul><h4>Examples of Good Commit Messages</h4><ol><li>Fix typo in user registration form validation</li><li>Add search functionality to product catalog</li><li>Refactor authentication logic to improve performance</li><li>Update README to include setup instructions for Docker</li><li>Format codebase using Prettier to ensure consistency</li></ol><h4>conclusion</h4><p>Writing clear and concise Git commit messages is essential for maintaining a well-organized project, especially when collaborating with others. By following best practices — such as using the imperative mood, keeping messages short but informative, and providing context when necessary — you can ensure that your commits are understandable and helpful for future development. A good commit history can serve as both documentation and a tool for debugging, making it a vital part of software development.</p><p><strong>Happy Coding!</strong></p><h4>Further Reading</h4><ul><li><a href="https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53">commit message</a>, Guideline-Github Gist,</li><li><a href="https://www.conventionalcommits.org/en/v1.0.0/">Conventional commits</a></li><li><a href="https://www.gitkraken.com/learn/git/best-practices/git-commit-message">Writing a Good Commit message-GitKraken</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33214fe3b9d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[bcrypt Explained: Safeguarding Passwords with Advanced Hashing]]></title>
            <link>https://medium.com/@madhawaawishka/bcrypt-explained-safeguarding-passwords-with-advanced-hashing-7d175f99c21c?source=rss-98bf05b9f0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d175f99c21c</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[bcrypt]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Madhawa Awishka]]></dc:creator>
            <pubDate>Tue, 13 Aug 2024 07:15:23 GMT</pubDate>
            <atom:updated>2024-08-13T07:15:23.668Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JHrOmrU6wv2NcaCqhReHVw.png" /></figure><h3>Introduction to Password Hashing</h3><p>password hashing means turns your password(or any other piece of data) into a short strings of letters and/or numbers using an encryption algorithm.If a website is hacked, password hashing helps prevent cybercriminals from getting access to your passwords.Strong passwords are of the utmost importance. They protect your electronic accounts and devices from unauthorized access, keeping your sensitive personal information safe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WABXBexfCJCQIX69.png" /></figure><h3>Introduction to bcrypt</h3><p>Bcrypt is a lauded password-storing solution that uses complicated cryptographic algorithms, significantly reducing the chances of a hacker cracking your password.</p><h3><strong>How bcrypt works</strong></h3><p>Bcrypt runs a complex hashing process, during which a user’s password is transformed into a fixed-length thread of characters. It uses a one-way hash function, meaning that once the password is hashed, it cannot be reversed to its original form.nstead of simply hashing the given password, bcrypt adds a random piece of data, called salt, to create a unique hash that is almost impossible to break.</p><ol><li>salt generation:when user creates a account or sets a password bcrypt generates a random salt (a random string of characters). The salt is then combined with the password.</li><li>Hashing:Bcrypt uses a configurable “work factor” sometimes called “rounds” or “cost factor ” to determine the number of iterations the algorithm will run. For example, if the cost factor is 10, the algorithm will iterate ²¹⁰ (1024) times.</li><li>Password + salt + hashing: The password and salt are then concatenated, and the combined string is passed through the hash function multiple times(determined by the “cost factor”). Each iteration processes the output of the previous iteration, making the process computationally expensive.</li><li>Storage: The hashed password is then stored in the database along with generated salt and “cost factor” that was used. The salt (initial random string of characters)and cost factor must be stored alongside the hashed password for authentication purposes as the process is repeated when the user logs into their account.</li></ol><h3>why use bcrypt</h3><p>The purpose of using a salt in password hashing is to add uniqueness and randomness to each hashed password it makes it very difficult for hackers to reverse-engineer a password that has been hashed. However, not impossible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*-Yplmcw_DpoGhLRs.jpg" /></figure><h3>Implementing bcrypt in Node.js</h3><p>1. <strong>Setup and Installation</strong></p><pre>npm install bcrypt</pre><h4>2. Hashing a Password</h4><p>Here’s a simple example of how to hash a password using bcrypt in Node.js:</p><pre>const bcrypt = require(&#39;bcrypt&#39;);<br><br>const saltRounds = 10; // Number of salt rounds (cost factor)<br>const plainTextPassword = &#39;mySecretPassword&#39;;<br><br>bcrypt.hash(plainTextPassword, saltRounds, function(err, hash) {<br>    if (err) {<br>        console.error(&#39;Error hashing password:&#39;, err);<br>    } else {<br>        console.log(&#39;Hashed password:&#39;, hash);<br>    }<br>});</pre><h4>3. Verifying a Password</h4><p>To verify a password, use the compare function</p><pre>const bcrypt = require(&#39;bcrypt&#39;);<br><br>const plainTextPassword = &#39;mySecretPassword&#39;;<br>const hashedPassword = &#39;$2b$10$TTA/FRNq9Z.tAIUfu2XgYOBk3L9r4JrN7x1vIrrrXoR4lPu1dPApW&#39;; // Example hash<br><br>bcrypt.compare(plainTextPassword, hashedPassword, function(err, result) {<br>    if (err) {<br>        console.error(&#39;Error comparing passwords:&#39;, err);<br>    } else if (result) {<br>        console.log(&#39;Password matches!&#39;);<br>    } else {<br>        console.log(&#39;Password does not match.&#39;);<br>    }<br>});</pre><h3>Real-world Application</h3><p>Many websites like e commerce platofrms,social-media platforms use bcrypt to securely store passowrds.content Management systems like WordPress and Drupal can integrate bcrypt through plugins or configurations to enhance the security of user accounts.</p><h3>Further Reading and Resources</h3><p><a href="https://www.npmjs.com/package/bcrypt">Npm bcrypt documentation</a></p><p><a href="https://en.wikipedia.org/wiki/Bcrypt">Wikipedia</a>/bcryt</p><p><strong>Community and Support</strong></p><p><a href="https://stackoverflow.com/">Stack Overflow</a></p><p><a href="https://www.reddit.com/">Reddits</a></p><p><a href="https://github.com/discussions">Github discussions</a></p><p>Throughout this blog, we’ve explored the fundamental principles of password hashing and why bcrypt stands out as a reliable and secure option. We’ve seen how its adaptive nature and inclusion of a salt make it a robust choice for safeguarding passwords against modern threats. Given the rising number of data breaches and cyberattacks, securing user data is more important than ever. Implementing bcrypt in your projects can be a significant step toward protecting sensitive information and building trust with your users.</p><p><strong>Happy Coding!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d175f99c21c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Document Head Management Using React Helmet]]></title>
            <link>https://medium.com/@madhawaawishka/dynamic-document-head-management-using-react-helmet-e07078db3fdb?source=rss-98bf05b9f0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e07078db3fdb</guid>
            <dc:creator><![CDATA[Madhawa Awishka]]></dc:creator>
            <pubDate>Sat, 27 Jul 2024 18:33:05 GMT</pubDate>
            <atom:updated>2024-07-27T18:33:05.035Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2aM9StKvPLs4aYmIQmx50A.png" /></figure><p><strong>React hemlet</strong> is a reusable react component that will manage all of the changes with the document head. This makes server-side rendering and <strong>React Helmet</strong> a dynamic duo for creating apps that are SEO and social media-friendly.</p><p>When developing a react application we all know managing the document head is going to be crucial especially when considering Search Engine Optimization (SEO) and the overall user experience. This is where React Helmet comes into play. React Helmet makes it easy to manage meta tags, titles, and other head elements vital for SEO and social media sharing. By using it, developers can ensure that their React application presents the correct information in the head, which can significantly affect how the content is ranked and displayed in search results.</p><h3>Understanding the Document Head and the SEO</h3><p>The document head also referred to as a head section of the HTML document is a pivotal area that holds meta tags, title tags, and links for stylesheets and scripts.These tags are not visible to users of the web pages but these elements are essential for search engines to understand the content of the web page which is directly affecting to the SEO.Installation and Configuration of React Helmet</p><h3>Features</h3><ol><li>Supports all valid head tags: title, base, meta, link, script, noscript, and style tags.</li><li>Supports attributes for body, html and title tags.</li><li>Supports server-side rendering.</li><li>Nested components override duplicate head changes.</li><li>Duplicate head changes are preserved when specified in the same</li><li>component (support for tags like “apple-touch-icon”).</li><li>Callback for tracking DOM changes.</li></ol><h3>Installation and Configuration of React Helmet</h3><p>To get started with React Helmet, you’ll need to install it in your React project. You can do this by running the following terminal command</p><pre>npm install --save react-helmet</pre><p>or if you prefer using yarn,</p><pre>yarn add react-helmet</pre><p>Once installed, you can import React Helmet into your React components. Here’s a basic example of how to configure React Helmet in a component</p><pre>import React from &#39;react&#39;;<br>import { Helmet } from &#39;react-helmet&#39;;<br><br>const HomePage = () =&gt; (<br>  &lt;div&gt;<br>    &lt;Helmet&gt;<br>      &lt;title&gt;Home Page - My React App&lt;/title&gt;<br>      &lt;meta name=&quot;description&quot; content=&quot;Welcome to the home page of my React app&quot; /&gt;<br>      {/* Additional head elements */}<br>    &lt;/Helmet&gt;<br>    {/* Content of the home page */}<br>  &lt;/div&gt;<br>);</pre><p>In the above example, the Helmet component is used to set the title and meta description for the home page of the React app. This configuration ensures that when the home page is rendered, the document head will include these elements important for SEO and social media sharing.</p><h3>React Helmet and Server-Side Rendering (SSR)</h3><p>SSR is a technique designed to improve the performance and SEO of JavaScript-heavy apps, such as those developed using React. SSR generates the complete HTML for a page on the server before sending it to the client, allowing search engines to crawl the content more effectively.</p><p>React Helmet plays a vital role in SSR by allowing developers to manage head elements for each rendered page on the server. This ensures that when a search engine or social media crawler requests a page, it receives all the necessary meta tags and title tags that help index the content accurately.</p><p>React Helmet can be integrated into SSR workflows to manage the document head effectively. For instance, after rendering the React components on the server, React Helmet can collect all the head changes made by the components and include them in the server-generated HTML output.</p><h3>SEO Friendliness and Limitations of React Helmet</h3><p>React Helmet is a powerful tool for managing the head section of your React application, and it goes a long way in making your app SEO-friendly. By allowing you to dynamically set meta tags, such as meta name description content and other head elements, React Helmet helps ensure that search engines and social media platforms have the correct information to display your content effectively.</p><p>However, while it is excellent for managing the head, it could be a silver bullet for SEO. SEO encompasses many factors, including page performance, mobile-friendliness, backlinks, and high-quality content.</p><p>It helps with the on-page SEO aspect, but developers should know that a comprehensive SEO strategy involves much more than managing head tags.</p><h3>Conclusion</h3><p>In conclusion, It is an essential library for any React developer looking to improve the SEO and shareability of their applications. Developers can ensure that their applications are well-optimized for search engines and social media platforms.</p><p>Whether you’re a React beginner familiar with advanced techniques or a senior software engineer, mastering React Helmet is a valuable skill in today’s web development landscape.</p><p><strong>Happy Coding!</strong></p><p>Documentation:<br><a href="https://www.npmjs.com/package/react-helmet#features">https://www.npmjs.com/package/react-helmet#features</a></p><p><a href="https://stackoverflow.com/questions/52690820/what-is-the-purpose-of-react-helmet">https://stackoverflow.com/questions/52690820/what-is-the-purpose-of-react-helmet</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e07078db3fdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding REST APIs: The Backbone of Modern Web Development]]></title>
            <link>https://medium.com/@madhawaawishka/understanding-rest-apis-the-backbone-of-modern-web-development-f45ef57a5462?source=rss-98bf05b9f0b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f45ef57a5462</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Madhawa Awishka]]></dc:creator>
            <pubDate>Fri, 19 Jul 2024 09:25:25 GMT</pubDate>
            <atom:updated>2024-07-19T09:25:25.454Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6sPURrMLywx-Mnbs" /></figure><h3>What is a REST API?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*QNFW4Bx_rxU_AXBJ.jpeg" /></figure><p>REST API means any API that uses an architectural style called REST(Representational State Transfer). This architectural style was introduced by Mr.Roy Fielding in 2000. In this architectural style, it has 6 main constraints. Any API that uses these six constraints is called as REST API or RESTFUL API. What are those six constraints?</p><ol><li><strong>unifrom interface</strong></li></ol><p>The method that we use to access the API is always the same.The remaining resources are accessed in the same way as one resource is accessed</p><p><strong>2.client-server based</strong></p><p>Always the use should happen between the client and server. The client is the one who sends a request and the server reads it and responds to it. This will generate a loosely-couple behavior among the client and server.</p><p><strong>3.stateless</strong></p><p>Always server does not hold a state for a client in the client-server operation.</p><p>4.<strong>cacheable</strong></p><p>Caching means storing the frequently used data in a place that can be easily accessible.RESTful web services control caching by using API responses that define themselves as cacheable or noncacheable.</p><p><strong>5.Layered system</strong></p><p>The server works on different levels. One layer handles the security another layer handles the business logic. All of these together make a response to a request.</p><p><strong>6.Code on demand</strong></p><p>In REST architectural style, servers can temporarily extend or customize client functionality by transferring software programming code to the client. For example, when you fill a registration form on any website, your browser immediately highlights any mistakes you make, such as incorrect phone numbers. It can do this because of the code sent by the server.</p><h3>Benefits of using REST APIs</h3><ol><li>We can grow the client and server separately because of this client-server behavior.</li></ol><p>2.Flexibility is also high. If we want to change the database we can change it by doing anything change for the client.</p><p>3. we can use different languages and tools to write REST Apis. It has a wide range.</p><h3><strong>Challanges of REST APIs</strong></h3><ol><li>The consitency of the end points. ex:/books/:id</li><li>API versioning</li><li>Aunthentication</li><li>Testing</li></ol><h3>Summary</h3><p>REST, or Representational State Transfer, is an architectural style used in APIs to facilitate the exchange of data and resources between clients and servers in a standardized and scalable manner. By adhering to REST principles, APIs can achieve stateless communication, which simplifies interactions and improves scalability. Methods such as caching, pagination, and content negotiation further enhance the performance, efficiency, and flexibility of REST APIs. Despite their numerous benefits, implementing REST APIs can present challenges, such as handling complex queries and ensuring robust security measures. Understanding these aspects is crucial for leveraging the full potential of REST APIs in modern web development.</p><p><strong>Happy coding!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f45ef57a5462" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>