<?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 lakshmi on Medium]]></title>
        <description><![CDATA[Stories by lakshmi on Medium]]></description>
        <link>https://medium.com/@vlulakshmi?source=rss-e2b37c3d95e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rhxaDbd4RvC7BspiNWbKww.jpeg</url>
            <title>Stories by lakshmi on Medium</title>
            <link>https://medium.com/@vlulakshmi?source=rss-e2b37c3d95e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:25:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vlulakshmi/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[6 Front-End Patterns That Made My Code Cleaner]]></title>
            <link>https://medium.com/@vlulakshmi/6-front-end-patterns-that-made-my-code-cleaner-61c40c9ddb9e?source=rss-e2b37c3d95e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/61c40c9ddb9e</guid>
            <dc:creator><![CDATA[lakshmi]]></dc:creator>
            <pubDate>Mon, 05 May 2025 20:25:39 GMT</pubDate>
            <atom:updated>2025-05-05T20:25:39.282Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*wasoY0ZfxNHt2Z0u.jpg" /></figure><h3><em>Front-End Developer | Full-Stack Sleeper Agent | Occasional UI Therapist</em></h3><p>It was odd time.<br> My app re-rendered more than my existential crisis. Buttons weren’t clickable. State was everywhere and nowhere. I stared at my screen like, “Do I even React, bro?”</p><p>That night, after a deep session of yelling at useEffect, I knew I needed change. And I don’t mean switching to Vue out of spite (again).</p><p>So I started diving into patterns — not the boring kind from textbooks, but the real ones that keep you from flipping tables during sprint reviews.</p><p>Here are the 6 front-end patterns that made me saner, faster, and <em>slightly</em> less likely to break things on Fridays.</p><h3>1. 🧹 The “Component, Not Dump Yard” Rule</h3><p>We’ve all made <strong>The One Component</strong>™.<br> You know, the one that handles API calls, button logic, scroll tracking, and probably makes your coffee.</p><pre>// What not to do:<br>function Dashboard() {<br>  const [data, setData] = useState([]);<br>  useEffect(() =&gt; {<br>    fetchData().then(setData);<br>  }, []);<br>  return &lt;&gt;{data.map(d =&gt; &lt;Card data={d} /&gt;)}&lt;/&gt;;<br>}</pre><p><strong>Fix it like this:</strong></p><pre>function useDashboardData() {<br>  const [data, setData] = useState([]);<br>  useEffect(() =&gt; {<br>    fetchData().then(setData);<br>  }, []);<br>  return data;<br>}</pre><pre>function Dashboard() {<br>  const data = useDashboardData();<br>  return &lt;&gt;{data.map(d =&gt; &lt;Card data={d} /&gt;)}&lt;/&gt;;<br>}</pre><p><strong>Your component isn’t a Swiss Army knife.</strong> It’s a LEGO brick. Keep it focused.</p><h3>2. 🪝 The “Custom Hooks Are Sanity Pills” Pattern</h3><p>If your component is 80% useEffect, you’re doing it wrong.</p><p>Custom hooks keep your brain from melting. Here’s one I use everywhere:</p><pre>function useWindowSize() {<br>  const [size, setSize] = useState(window.innerWidth);<br>  useEffect(() =&gt; {<br>    const handler = () =&gt; setSize(window.innerWidth);<br>    window.addEventListener(&#39;resize&#39;, handler);<br>    return () =&gt; window.removeEventListener(&#39;resize&#39;, handler);<br>  }, []);<br>  return size;<br>}</pre><p>Now your component can breathe:</p><pre>const width = useWindowSize();</pre><p>Hooks = cleaner code = less crying.</p><h3>3. 📦 “Lift State, But Don’t Yeet It to the Moon”</h3><p>Yes, React said “lift state up.”</p><p>But React <em>didn’t</em> say “put every damn thing in your App component.”</p><p>If you’re passing props through 4 layers just to toggle a dropdown — you’ve gone too far.</p><p>Instead: keep state <strong>local</strong> unless it truly needs to be shared.</p><h3>4. ⚙️ “Composition &gt; Prop-pocalypse”</h3><p>Stop this:</p><pre>&lt;Modal title=&quot;Alert&quot; showCloseButton icon=&quot;warning&quot; footer=&quot;yes&quot; /&gt;</pre><p>Do this instead:</p><pre>&lt;Modal&gt;<br>  &lt;h2&gt;Heads up!&lt;/h2&gt;<br>  &lt;p&gt;This is composable. So are you.&lt;/p&gt;<br>  &lt;button&gt;Cool, got it&lt;/button&gt;<br>&lt;/Modal&gt;</pre><p>React loves composition. Use children like a boss.</p><h3>5. 📘 Context: For Settings, Not State Soup</h3><p>I’ve seen Context misused like duct tape on production bugs.</p><p>Use it for:</p><ul><li>Theme</li><li>Language</li><li>Auth</li></ul><p><strong>Not for:</strong></p><ul><li>37 booleans</li><li>Live-updating shopping carts</li></ul><p>For dynamic state, go for useReducer, Zustand, Redux Toolkit, or just plain ol’ prop passing.</p><h3>6. 🧠 CI/CD: The Silent Hero of Front-End Bliss</h3><p>Okay, this one’s not a React pattern… but oh man, <strong>CI/CD saved my butt</strong> more times than I’ll admit.</p><p>Pushing to main and watching a GitHub Action run linting, tests, and deploy to Netlify?</p><p>My setup:</p><ul><li><strong>GitHub Actions</strong> for build/test/lint</li><li><strong>Netlify</strong> for preview deploys</li><li><strong>Slack/Webhook</strong> notifications because I <em>like</em> knowing if I broke something</li></ul><p>Example ci.yml snippet:</p><pre>name: CI/CD Pipeline<br>on:<br>  push:<br>    branches: [main]<br>jobs:<br>  build:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - uses: actions/checkout@v3<br>      - uses: actions/setup-node@v3<br>        with:<br>          node-version: &#39;18&#39;<br>      - run: npm install<br>      - run: npm run lint<br>      - run: npm test<br>      - run: npm run build</pre><p>It catches bugs before they ship. And gives you time to grab coffee instead of debugging in prod.</p><h3>Final Thoughts: Write Like Hungover-You Will Understand It</h3><p>I don’t write code just for the compiler anymore. I write it for <em>future me</em> — the version who’s tired, cranky, and trying to fix something at 9 PM while watching Netflix. These patterns helped me get better, build cleaner apps, and keep my cool under pressure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61c40c9ddb9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Explained: How I Understand and Use It]]></title>
            <link>https://medium.com/@vlulakshmi/kubernetes-explained-how-i-understand-and-use-it-7dc16bfbe2d6?source=rss-e2b37c3d95e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7dc16bfbe2d6</guid>
            <dc:creator><![CDATA[lakshmi]]></dc:creator>
            <pubDate>Fri, 02 May 2025 17:21:41 GMT</pubDate>
            <atom:updated>2025-05-02T17:21:41.771Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VR9WXYJiXYJOmlge.png" /></figure><p>As someone who works with distributed systems and containerized applications, I’ve come to appreciate how essential Kubernetes has become in the world of modern software development. When I first started exploring it, it felt overwhelming. But once I got the hang of how it works, it completely changed how I approach deployment, scaling, and overall app management. I want to break down Kubernetes in a simple, straightforward way — not just what it is, but how it works and why it’s such a powerful tool.</p><h3>🔍 What is Kubernetes?</h3><p><strong>Kubernetes (K8s)</strong> is an <strong>open-source container orchestration platform</strong> designed to automate the deployment, scaling, and operation of application containers. It was originally developed by Google and is now maintained by the Cloud Native Computing Foundation (CNCF).</p><p>Before Kubernetes, managing multiple containers across environments was a huge challenge. Now, with K8s, I can handle dynamic applications and complex workloads with way less manual effort.</p><h3>⚙️ How Kubernetes Works</h3><p>At the heart of Kubernetes is the concept of a <strong>cluster</strong>, which is a collection of machines working together to run containerized applications.</p><ul><li>The <strong>Control Plane</strong> — kind of like the brain of the operation. It makes all the decisions about scheduling, monitoring, and managing.</li><li>The <strong>Worker Nodes</strong> — these are the machines (virtual or physical) that actually run the applications inside containers.</li></ul><p>Each Node runs <strong>Pods</strong>, which are the smallest deployable units in Kubernetes. A Pod can contain one or more containers and includes everything needed to run them — including storage and networking.</p><p>The Control Plane has several components working together:</p><ul><li><strong>API Server</strong> — it’s the front door. All cluster commands go through here.</li><li><strong>Scheduler</strong> — decides which Node will run which Pod, based on available resources.</li><li><strong>Controller Manager</strong> — ensures the actual state matches the desired state.</li><li><strong>etcd</strong> — a key-value store that holds all the cluster configuration and metadata.</li></ul><h3>🧠 Key Kubernetes Components I Use</h3><p>Here are some of the core components I find myself working with most often:</p><ul><li><strong>Node</strong> — a worker machine in the cluster.</li><li><strong>Pod</strong> — the smallest deployable unit, encapsulating containers.</li><li><strong>Service</strong> — exposes Pods and provides a consistent endpoint (IP or DNS).</li><li><strong>Ingress</strong> — manages external traffic, like HTTP/HTTPS routes.</li><li><strong>ConfigMap &amp; Secret</strong> — great for managing configuration and sensitive data separately from code.</li><li><strong>Helm</strong> — I often use Helm charts to simplify and standardize deployments.</li></ul><h3>🔹 Node Components</h3><ul><li><strong>Kubelet</strong>: An agent that runs on each node and ensures containers are running in a Pod.</li><li><strong>Kube-proxy</strong>: Maintains network rules and handles communication inside or outside the cluster.</li><li><strong>Container Runtime</strong>: The software responsible for running containers (e.g., Docker, containerd).</li></ul><h3>🔁 Features That Make Kubernetes a Game-Changer</h3><p>Once I started using Kubernetes in real projects, these features stood out:</p><ul><li>🔄 <strong>Self-Healing</strong>: If a container crashes, K8s will automatically restart it.</li><li>📈 <strong>Auto-Scaling</strong>: It scales apps up or down based on traffic or CPU usage.</li><li>⚖️ <strong>Load Balancing</strong>: Distributes incoming traffic to keep things running smoothly.</li><li>🚀 <strong>Rolling Deployments</strong>: Helps push updates with zero downtime.</li><li>📦 <strong>Declarative Configs</strong>: Using YAML or JSON, I define exactly what I want, and Kubernetes makes it happen.</li><li>🌐 <strong>Multi-Cloud Support</strong>: It works across AWS, GCP, Azure, or on-prem environments.</li></ul><h3>🔄 Integrating CI/CD with Kubernetes</h3><p>One of the most powerful aspects of using Kubernetes is how seamlessly it fits into <strong>CI/CD (Continuous Integration and Continuous Deployment)</strong> pipelines.</p><p>In my workflow, I use tools like <strong>GitHub Actions</strong>, <strong>Jenkins</strong>, or <strong>GitLab CI/CD</strong> to automate the entire build-test-deploy cycle. Once code is pushed to the repo, the CI/CD pipeline takes over:</p><p><strong>Code is built and tested automatically. Container images are built and pushed</strong> to a registry like Docker Hub or Amazon ECR. <strong>Kubernetes is updated using </strong><strong>kubectl or Helm</strong> to apply the new deployment. <strong>Rolling updates</strong> are triggered, and old Pods are replaced with new ones seamlessly.</p><p>This automation ensures that every commit can be safely and quickly deployed to a staging or production environment — without manual intervention. And if something breaks, rollbacks are just as easy.</p><p>For teams (or solo devs) looking to speed up development while improving reliability, pairing CI/CD with Kubernetes is a must.</p><h3>🔁 Core Features of Kubernetes</h3><p>Kubernetes offers several powerful features that make it an ideal choice for cloud-native application management:</p><ul><li><strong>Self-Healing</strong>: Automatically restarts failed containers, replaces unresponsive Pods, and reschedules workloads across Nodes.</li><li><strong>Horizontal Scaling</strong>: Scales applications up or down based on CPU utilization or custom metrics.</li><li><strong>Load Balancing and Service Discovery</strong>: Automatically distributes traffic and exposes services via stable IPs or DNS names.</li><li><strong>Automated Rollouts and Rollbacks</strong>: Gradually rolls out changes and automatically reverts if something goes wrong.</li><li><strong>Declarative Configuration</strong>: Define your application state using YAML or JSON, and let Kubernetes maintain that state.</li><li><strong>Multi-Cloud and Hybrid Support</strong>: Run seamlessly across AWS, GCP, Azure, or on-prem infrastructure.</li></ul><h3>🚀 Real-World Use Cases I’ve Worked With</h3><p>Kubernetes is highly versatile and supports a wide range of workloads. Here are some of the most common use cases:</p><ul><li><strong>Microservices Architecture</strong>: Efficiently deploy and manage distributed microservices.</li><li><strong>CI/CD Pipelines</strong>: Integrate seamlessly with Jenkins, GitLab CI, Argo CD, and other tools.</li><li><strong>Cloud-Native Applications</strong>: Build portable and scalable apps that thrive in dynamic environments.</li><li><strong>Batch Processing</strong>: Handle data-intensive batch jobs with managed resource allocation.</li><li><strong>Event-Driven Applications</strong>: Support real-time data streams, IoT devices, and event-based triggers.</li><li><strong>Stateful Workloads</strong>: Manage databases and applications that require persistent storage using StatefulSets and PersistentVolumes.</li></ul><h3>📌 My Takeaway</h3><p>Kubernetes definitely has a learning curve, and it took some time before I really felt comfortable with it. But now, it’s become a core part of how I manage and scale applications in both personal and enterprise-level projects.</p><p>If you’re starting to explore cloud-native development or container orchestration, learning Kubernetes is absolutely worth the effort. It’s not just another tool — it’s a platform that fundamentally improves how we build and run modern applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dc16bfbe2d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Weather Forecast App — Theory ️]]></title>
            <link>https://medium.com/@vlulakshmi/weather-forecast-app-theory-%EF%B8%8F-18a11b88ee1c?source=rss-e2b37c3d95e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/18a11b88ee1c</guid>
            <dc:creator><![CDATA[lakshmi]]></dc:creator>
            <pubDate>Fri, 25 Apr 2025 20:13:01 GMT</pubDate>
            <atom:updated>2025-04-25T20:13:01.657Z</atom:updated>
            <content:encoded><![CDATA[<h3>Weather Forecast App — Theory 🌤️</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y_qPh2BoSJihxz8I.jpeg" /></figure><h3>Project Overview</h3><p>The <strong>Weather Forecast App</strong> is a slick little web app I built with <strong>React.js</strong> that lets you check the current weather for any city around the globe. It pulls live data from the OpenWeather API and shows you the essentials — temperature, humidity, wind speed, and overall vibes (aka weather conditions). This project was a fun dive into hooking up an external API with React, managing state using Hooks, and whipping up a clean, responsive UI with Tailwind CSS.</p><h3>Objectives 🎯</h3><p>The primary goals of this project are:<br><strong>Provide real-time weather updates</strong> by fetching data from an external API.<br><strong>Allow users to search for a city</strong> and instantly get its weather details.<br><strong>Enhance user experience</strong> with a clean, interactive UI and dynamic weather-based backgrounds.<br><strong>Ensure responsiveness</strong>, so the app works seamlessly across different screen sizes (mobile, tablet, desktop).<br><strong>Deploy the application online</strong> so that anyone can access it via a live URL.</p><pre>weather-app/<br>│── src/<br>│   ├── components/   # UI components<br>│   ├── services/     # API calls<br>│   ├── assets/       # Images and icons<br>│   ├── App.js        # Main application file<br>│   ├── index.js      # Entry point<br>│── public/<br>│── package.json<br>│── tailwind.config.js<br>│── README.md</pre><h3>Technology Stack 🛠️</h3><h3>Frontend (User Interface)</h3><p>🔹 <strong>React.js</strong> — For building the UI and managing components.<br>🔹 <strong>Tailwind CSS</strong> — For creating a modern and responsive design.</p><h3>API Integration</h3><p>🔹 <strong>OpenWeatherMap API</strong> — Provides real-time weather data.<br>🔹 <strong>Axios</strong> — Handles HTTP requests to fetch data from the API.</p><h3>State Management &amp; Interactivity</h3><p>🔹 <strong>React Hooks (useState, useEffect)</strong> — Used to manage user inputs and API responses dynamically.</p><h3>Deployment</h3><p>🔹 <strong>Netlify</strong> — Hosts the application, making it publicly accessible.</p><h3>Core Features 🚀</h3><h3>City-Based Weather Search</h3><p>Users can enter a city name in the search bar and retrieve weather details instantly.</p><h3>Real-Time Weather Data</h3><p>The app displays essential weather information, including:</p><ul><li><strong>Temperature</strong> (in Celsius or Fahrenheit), <strong>Humidity levels, Wind speed, Overall weather conditions (sunny, cloudy, rainy, etc.)</strong></li></ul><h3>Dynamic UI Updates</h3><p>One cool feature I added: the app’s background and styles dynamically change based on the current weather. Clear skies? You’ll see a calm blue backdrop. Cloudy? It shifts to a moody gray. Raining? Boom — dark, stormy vibes to match the forecast. Just a small UX glow-up to make the experience feel more alive and immersive.</p><h3>Error Handling</h3><p>If a user enters an invalid city name, the app alerts them with a message like <strong>“City not found. Please try again.”</strong></p><h3>Responsive Design</h3><p>The UI is designed to be fully responsive, ensuring that it works on <strong>mobile, tablet, and desktop devices</strong> without issues.</p><h3>How the App Works 🔍</h3><h3>1️⃣ User Input Handling</h3><ul><li>The user types a city name into the search bar. They click the <strong>“Get Weather”</strong> button to fetch weather details.</li></ul><h3>2️⃣ API Request &amp; Response</h3><ul><li>The app sends a request to the <strong>OpenWeather API</strong> with the entered city name.</li><li>The API responds with <strong>real-time weather data</strong>.</li></ul><pre>import axios from &quot;axios&quot;;<br><br>const API_KEY = &quot;YOUR_API_KEY&quot;; // Replace with your OpenWeather API Key<br><br>export const getWeather = async (city) =&gt; {<br>  return axios.get(<br>    `https://api.openweathermap.org/data/2.5/weather?q=${city}&amp;units=metric&amp;appid=${API_KEY}`<br>  );<br>};</pre><h3>3️⃣ Data Processing &amp; Display</h3><ul><li>The received weather details are <strong>stored in the app’s state</strong> using React Hooks.</li><li>The UI updates automatically to reflect the new weather data.</li></ul><h3>4️⃣ Dynamic UI Updates</h3><ul><li>The app changes its <strong>background</strong> and <strong>theme</strong> based on weather conditions (e.g., sunny, cloudy, rainy).</li></ul><h3>5️⃣ Error Handling</h3><ul><li>If the city name is incorrect or misspelled, the app displays an error message.</li></ul><h3>Deployment Strategy 🚀</h3><h3>✅ Push Code to GitHub</h3><p>Because what’s a project without version control? The full source code lives happily in a GitHub repo — easy to track, share, or flex.</p><h3>✅ Deploy on Netlify</h3><ul><li>Hooked it up to Netlify for smooth deployment. One push, and boom — it’s live. Public URL and all. No server tantrums involved.</li></ul><h3>✅ Test for Responsiveness</h3><ul><li>Tested it across mobile, tablet, and desktop. Whether you’re checking the forecast from your couch or in line for coffee — it just works.</li></ul><h3>✅ Share Live URL</h3><ul><li>Yes, your friends can check the weather in Tokyo while you’re chilling in here. Just drop the link and go.</li></ul><h3>Future Enhancements 🔮</h3><p>💡 <strong>5-Day Forecast Support</strong> — Show weather trends for the next five days.</p><p>💡 <strong>Geolocation Support</strong> — Automatically detect the user’s current location and display the weather.</p><p>💡 <strong>Dark Mode Feature</strong> — Allow users to switch between light and dark themes for better visibility.</p><p>💡 <strong>Animated Weather Icons</strong> — Add animated icons for a more interactive UI.</p><h3>Conclusion 🎉</h3><p>The Weather Forecast App is a hands-on React.js project where I wired up an external API to serve <strong>real-time weather updates.</strong> It’s a solid example of how to fetch data, make it pretty, and keep it dynamic — all while giving users something actually useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18a11b88ee1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Online Voting System:]]></title>
            <link>https://medium.com/@vlulakshmi/online-voting-system-e950a70e101e?source=rss-e2b37c3d95e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e950a70e101e</guid>
            <dc:creator><![CDATA[lakshmi]]></dc:creator>
            <pubDate>Thu, 17 Apr 2025 22:43:42 GMT</pubDate>
            <atom:updated>2025-04-17T22:43:42.526Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/643/0*bcPUIoHK-Q1-M8nq" /></figure><p>Here’s a more detailed overview of the <strong>Online Voting System</strong> project I worked on:</p><h3>Project Background:</h3><p>The Online Voting System project aimed to create a safe and easy way to run elections and polls. There were two kinds of users in the system: admins and voters. Admins could set up, control, and check polls, while voters could take part in elections by submitting their votes. This project mainly worked on the backend, making sure that data is secure, users can interact easily, and results are generated in real-time.</p><h3>Technologies Used:</h3><ul><li><strong><em>Java (Spring Boot):</em></strong><em> The backend was built with Spring Boot, which is a strong tool for making REST APIs, processing business tasks, and working with databases.</em></li><li><strong><em>Spring Security:</em></strong><em> I used Spring Security to manage user login and access permissions. This helped the system tell apart admin and voter roles and kept different resources safe.</em></li><li><strong><em>JWT (JSON Web Tokens):</em></strong><em> To keep user logins and sessions safe, I used JWT. This let users sign in without having to type their password over and over again.</em></li><li><strong><em>PostgreSQL:</em></strong><em> Used PostgreSQL to build the database that keeps all information about users, polls, choices, and votes. This database setup allowed for complicated searches while making sure that data could be found quickly and correctly.</em></li><li><strong><em>Spring Data JPA:</em></strong><em> I used Spring Data JPA to make it easier to work with the database. It helped me to save, get, and manage things like Polls, Votes, and Users.</em></li><li><strong><em>JUnit &amp; Mockito:</em></strong><em> JUnit and Mockito were used for testing. This helped check that each part of the application worked properly and didn’t have any errors.</em></li><li><strong><em>Swagger/Thymeleaf (optional for documentation and API testing):</em></strong><em> swagger was used to create documents and test the REST APIs.</em></li></ul><h3>Key Features Implemented:</h3><p><strong>User Authentication &amp; Role Management:</strong></p><ul><li><strong>Registration &amp; Login:</strong> I created APIs for users to sign up and log in, using JWT for security. The system made sure that only signed-up users could vote, and only administrators could make or manage polls.</li><li><strong>Role-Based Access Control:</strong> Users were given different jobs: Admin and Voter. Admins could do more things, like make and manage polls, while voters could only see and vote in active polls.</li></ul><p><strong>Poll Creation &amp; Management by Admin:</strong></p><ul><li><strong>Poll Setup</strong>: Admins can make polls that have a title, a description, a start date, an end date, and choices for voting (like candidates or options). Each poll had its own ID and was linked to a specific admin.</li><li><strong>Poll Editing/Deletion</strong>: Admins could change or remove polls before they began or if there were any mistakes.</li><li><strong>Poll Status</strong>: We kept track of each poll’s status (like active, closed, or saved), so users couldn’t vote after a poll was closed.</li></ul><p><strong>Voting System:</strong></p><ul><li><strong>Vote Casting:</strong> Voters could see a list of current polls, pick an option (like a candidate or choice), and submit their vote. Each person could vote only one time for each poll.</li><li><strong>Vote Validation:</strong> I made sure the system stops users from voting more than once in the same poll by linking each vote to a unique user ID and poll ID in the database.</li><li><strong>Vote Anonymity:</strong> After a vote was made, it was saved in a database without linking it to any personal information. This made sure that votes stayed private.</li></ul><p><strong>Real-Time Voting Results:</strong></p><ul><li><strong>Live Results:</strong> <strong>Admin users had access</strong> to a real-time dashboard that displayed the number of votes each option had received. This allowed admins to monitor the voting process while it was still ongoing.</li><li><strong>Final Results:</strong> Once the voting period ended, admins could view the final results, which included the total votes for each option. These results could be locked and displayed to the public.</li></ul><p><strong>Audit Logs &amp; Security:</strong></p><ul><li><strong>Security:</strong> I implemented <strong>Spring Security</strong> with <strong>JWT</strong> to ensure that only authorized users (admins and authenticated voters) could access certain endpoints.</li><li><strong>Audit Logs:</strong> Every action (like voting, poll creation, or results viewing) was logged to ensure full traceability and accountability, especially for elections.</li></ul><p><strong>Database Structure:</strong></p><ul><li><strong>Users Table:</strong> Stores information like username, email, password (hashed), and role (admin/voter).</li><li><strong>Polls Table:</strong> Contains information about each poll (e.g., poll name, status, start/end dates).</li><li><strong>Options Table:</strong> Represents the different options (candidates or choices) available in a poll.</li><li><strong>Votes Table:</strong> Stores information about which user voted in which poll and for which option.</li></ul><h3>Challenges Overcome:</h3><ul><li><strong>Handling Concurrent Votes:</strong> One of the challenges was ensuring that voters couldn’t vote multiple times in the same poll. I implemented checks to ensure that once a user votes, their vote status is updated in the database, and they can’t vote again for that specific poll.</li><li><strong>Poll Expiry Logic:</strong> Managing the start and end dates of each poll was crucial. I used scheduled tasks to automatically close polls at the designated time and prevented voting after the poll ended.</li><li><strong>Database Optimization:</strong> As the number of polls and votes grew, database queries had to be optimized to ensure performance didn’t degrade. I used indexed columns for search operations like looking up active polls and tallying votes.</li></ul><h3>Testing &amp; Deployment:</h3><ul><li><strong>Unit &amp; Integration Testing:</strong> I wrote comprehensive tests for each endpoint and feature using <strong>JUnit</strong> and <strong>Mockito</strong> to ensure that the system worked correctly and that no functionality broke during updates.</li><li><strong>API Documentation:</strong> I used <strong>Swagger</strong> to document the backend APIs, which allowed easy testing and integration with the frontend. Swagger provided a user-friendly interface to explore the system’s available APIs.</li><li><strong>Deployment:</strong> I used <strong>Docker</strong> to containerize the application, ensuring smooth deployment in different environments (development, testing, production). The system was deployed on a cloud-based platform, ensuring scalability and availability.</li></ul><h3>Conclusion:</h3><p>The <strong>Online Voting System</strong> project was an excellent opportunity to implement important backend concepts like secure authentication, real-time data handling, and role-based access control. It also improved my understanding of database design, especially working with relational databases like PostgreSQL. This project can be further enhanced by integrating a frontend (e.g., React) and implementing features like email notifications, voter verification, or advanced analytics for voting trends.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e950a70e101e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transactions in MySQL: COMMIT, ROLLBACK, and SAVEPOINT]]></title>
            <link>https://medium.com/@vlulakshmi/transactions-in-mysql-commit-rollback-and-savepoint-8c3926e5575c?source=rss-e2b37c3d95e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c3926e5575c</guid>
            <dc:creator><![CDATA[lakshmi]]></dc:creator>
            <pubDate>Fri, 11 Apr 2025 17:10:17 GMT</pubDate>
            <atom:updated>2025-04-11T17:10:17.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ylbFh7dJsE__HNCn.jpeg" /></figure><p>I recently dove into the concept of transactions in MySQL, which play a critical role in maintaining data consistency and integrity. A transaction is essentially a set of operations executed as a single unit, ensuring that either all changes are committed or none are.</p><p>Here’s a breakdown of the important SQL statements for managing transactions:</p><p><strong>COMMIT</strong>: This is used to save all changes made during a transaction. Once committed, the changes are permanent.</p><pre>START TRANSACTION;<br>UPDATE users SET balance = balance - 100 WHERE user_id = 1;<br>COMMIT;</pre><p><strong>ROLLBACK</strong>: This reverts any changes made during the transaction. It’s useful if something goes wrong and you need to undo the changes.</p><pre>START TRANSACTION;<br>UPDATE users SET balance = balance - 100 WHERE user_id = 1;<br>ROLLBACK;</pre><p><strong>SAVEPOINT</strong>: You can create intermediate points within a transaction. If you want to roll back only part of the transaction, you can go back to a specific savepoint.</p><pre>START TRANSACTION;<br>SAVEPOINT save1;<br>UPDATE users SET balance = balance - 100 WHERE user_id = 1;<br>ROLLBACK TO SAVEPOINT save1;  -- Only reverts to this point<br>COMMIT;</pre><p><strong>Best Practice:</strong> Always ensure that successful transactions are committed, and errors are rolled back. Savepoints come in handy for large, complex transactions!</p><h3>MySQL Replication: How to Set Up Master-Slave Replication</h3><p>Setting up MySQL replication can be a game-changer when it comes to load balancing and data redundancy. MySQL allows for a <strong>master-slave</strong> replication configuration where the master database writes data, and one or more slave databases replicate that data.</p><p>Here’s how to configure it:</p><p><strong>Master Server Setup</strong></p><ul><li>Edit my.cnf and enable binary logging and server id.</li></ul><pre>[mysqld]<br>server-id = 1<br>log_bin = mysql-bin</pre><ul><li>Restart the server and create a replication user:</li></ul><pre>CREATE USER &#39;replicator&#39;@&#39;%&#39; IDENTIFIED BY &#39;password&#39;;<br>GRANT REPLICATION SLAVE ON *.* TO &#39;replicator&#39;@&#39;%&#39;;<br>FLUSH PRIVILEGES;</pre><ol><li><strong>Obtain Master Status:</strong> Run SHOW MASTER STATUS; to get the <strong>File</strong> and <strong>Position</strong> values.</li><li><strong>Slave Server Setup:</strong></li></ol><ul><li>Edit my.cnf on the slave server and set a unique server-id.</li></ul><pre>[mysqld]<br>server-id = 2</pre><ul><li>Configure the slave to point to the master:</li></ul><pre>CHANGE MASTER TO MASTER_HOST=&#39;master_ip&#39;, MASTER_USER=&#39;replicator&#39;, MASTER_PASSWORD=&#39;password&#39;, MASTER_LOG_FILE=&#39;mysql-bin.000001&#39;, MASTER_LOG_POS=154;<br>START SLAVE;</pre><p><strong>Check Replication Status:</strong></p><pre>SHOW SLAVE STATUS\G</pre><p>Ensure that Slave_IO_Running and Slave_SQL_Running are <strong>Yes</strong>.</p><h3>Using MySQL Partitioning for Large Datasets</h3><p>When dealing with massive datasets, MySQL’s partitioning feature is a lifesaver. It splits a large table into smaller, more manageable pieces, helping improve performance and maintainability.</p><p>There are several types of partitioning you can use:</p><ol><li><strong>Range Partitioning</strong>: Useful when you want to divide data based on a range of values (e.g., date ranges).</li></ol><pre>CREATE TABLE orders (<br>  order_id INT,<br>  order_date DATE<br>)<br>PARTITION BY RANGE (YEAR(order_date)) (<br>  PARTITION p0 VALUES LESS THAN (2019),<br>  PARTITION p1 VALUES LESS THAN (2020),<br>  PARTITION p2 VALUES LESS THAN (2021)<br>);</pre><p><strong>2. List Partitioning</strong>: For partitioning based on discrete values.</p><pre>CREATE TABLE employees (<br>  emp_id INT,<br>  department_id INT<br>)<br>PARTITION BY LIST (department_id) (<br>  PARTITION p1 VALUES IN (1, 2, 3),<br>  PARTITION p2 VALUES IN (4, 5)<br>);</pre><p><strong>3. Hash Partitioning</strong>: Distributes rows across a set number of partitions using a hash function.</p><pre>CREATE TABLE orders (<br>  order_id INT,<br>  customer_id INT<br>)<br>PARTITION BY HASH(customer_id) PARTITIONS 4;</pre><p><strong>4. Key Partitioning</strong>: Similar to hash partitioning but uses MySQL’s internal key function.</p><pre>CREATE TABLE transactions (<br>  trans_id INT,<br>  user_id INT<br>)<br>PARTITION BY KEY(user_id) PARTITIONS 4;</pre><h3>Triggers in MySQL: Automating Database Operations</h3><p>Triggers are a powerful tool for automating tasks in MySQL. They are special stored procedures that automatically execute when certain events (e.g., INSERT, UPDATE, DELETE) occur.</p><p>I’ve used triggers for things like logging changes and enforcing business rules. Here’s how to create triggers:</p><p><strong>Before Insert Trigger</strong>: Executes before a new row is inserted into the table.</p><pre>CREATE TRIGGER before_insert_trigger<br>BEFORE INSERT ON employees<br>FOR EACH ROW<br>BEGIN<br>  SET NEW.salary = 0;  -- Default salary<br>END;</pre><p><strong>After Update Trigger</strong>: Executes after a row is updated.</p><pre>CREATE TRIGGER after_update_trigger<br>AFTER UPDATE ON employees<br>FOR EACH ROW<br>BEGIN<br>  INSERT INTO audit_log (action, emp_id) VALUES (&#39;UPDATE&#39;, OLD.emp_id);<br>END;</pre><p><strong>Before Delete Trigger</strong>: Executes before a row is deleted.</p><pre>CREATE TRIGGER before_delete_trigger<br>BEFORE DELETE ON employees<br>FOR EACH ROW<br>BEGIN<br>  INSERT INTO audit_log (action, emp_id) VALUES (&#39;DELETE&#39;, OLD.emp_id);<br>END;</pre><h3>Handling Concurrency and Locking Mechanisms in MySQL</h3><p>Concurrency control in MySQL is critical for ensuring data consistency when multiple transactions are running simultaneously. MySQL provides various locking mechanisms to manage concurrent access to data.</p><p>Here are the main types of locks:</p><ol><li><strong>Shared Lock (Read Lock)</strong>: Allows multiple transactions to read a resource, but prevents others from modifying it.</li></ol><pre>SELECT * FROM orders WHERE order_id = 1 LOCK IN SHARE MODE;</pre><p><strong>Exclusive Lock (Write Lock)</strong>: Prevents other transactions from reading or modifying the resource.</p><pre>UPDATE orders SET status = &#39;shipped&#39; WHERE order_id = 1;</pre><p>MySQL also supports different <strong>Transaction Isolation Levels</strong>, from <strong>READ UNCOMMITTED</strong> to <strong>SERIALIZABLE</strong>, which control how transactions interact with each other.</p><p><strong>Deadlock Detection</strong>: MySQL automatically detects deadlocks (where two transactions are waiting for each other to release locks) and resolves them by rolling back one of the transactions. To check for deadlocks:</p><pre>SHOW ENGINE INNODB STATUS;</pre><h3><strong>Conclusion</strong></h3><p>Exploring these advanced MySQL concepts has really helped me understand how to manage data more effectively. Transactions using COMMIT, ROLLBACK, and SAVEPOINT are super useful for keeping things consistent, especially when something goes wrong. Setting up master-slave replication was interesting — it’s a great way to handle load and ensure redundancy. Partitioning is a game-changer when working with large datasets, and triggers make automating repetitive tasks a lot easier. Handling concurrency and understanding locking mechanisms also gave me better control over how data is accessed and modified in real-time. Overall, diving into all of this gave me a much stronger grip on building reliable and scalable database systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c3926e5575c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Library Management System]]></title>
            <link>https://medium.com/@vlulakshmi/library-management-system-fc2df716b084?source=rss-e2b37c3d95e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc2df716b084</guid>
            <dc:creator><![CDATA[lakshmi]]></dc:creator>
            <pubDate>Wed, 09 Apr 2025 15:38:44 GMT</pubDate>
            <atom:updated>2025-04-09T15:38:44.901Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j0CvoNKbxfqTp9d2" /></figure><p>As part of my academic and hands-on SQL learning, I designed and implemented a <strong>Library Management System</strong> using <strong>MySQL Workbench</strong>. The objective of this project was to create a robust, normalized relational database to manage data related to books, authors, borrowers, and borrowing transactions efficiently.</p><h4><strong><em>🔧 Project Highlights-</em></strong></h4><blockquote><strong>Database Modeling:</strong> Designed a well-structured relational schema with clearly defined entities and relationships.</blockquote><blockquote><strong>Normalization:</strong> Applied normalization principles to avoid data redundancy and ensure data integrity.</blockquote><blockquote><strong>Foreign Key Constraints:</strong> Implemented relationships using primary and foreign keys to maintain referential integrity between tables.</blockquote><h4><strong>Database Design and Structure-</strong></h4><p><em>A </em><strong><em>relational database</em></strong><em> organizes data into </em><strong><em>tables</em></strong><em> that are related to each other through </em><strong><em>foreign keys</em></strong><em>. In this project, the database will have several key tables, each storing a different type of information:</em></p><p><strong>Authors</strong>: Stores information about authors.</p><p><strong>Books</strong>: Stores information about books.</p><p><strong>Borrowers</strong>: Stores information about individuals who borrow books.</p><p><strong>Transactions</strong>: Tracks which books are borrowed by which borrowers, when they are borrowed, and when they are due for return.</p><h3>📊 <strong>Key Tables and Relationships-</strong></h3><ul><li><strong>Authors Table</strong>: This table contains details about authors, including their first and last names, birth date, and nationality. Each author will have a unique AuthorID.</li><li><strong>Books Table</strong>: This table contains information about books, including the title, genre, year of publication, and the author who wrote it. The AuthorID from the <strong>Authors</strong> table will be a foreign key, establishing a relationship between books and authors.</li><li><strong>Borrowers Table</strong>: This table stores information about individuals who borrow books. It includes the borrower’s first name, last name, email, and phone number. Each borrower has a unique BorrowerID.</li><li><strong>Transactions Table</strong>: This table records transactions (books borrowed by borrowers). It includes the BookID (foreign key from the Books table), BorrowerID (foreign key from the Borrowers table), the date when the book was borrowed, the due date for return, and the actual return date (if the book is returned).</li></ul><h4>Table Relationships</h4><ul><li>The <strong>Books</strong> table is connected to the <strong>Authors</strong> table via the AuthorID field.</li><li>The <strong>Transactions</strong> table is linked to both the <strong>Books</strong> and <strong>Borrowers</strong> tables through the BookID and BorrowerID fields, respectively.</li></ul><h3>Database Queries</h3><p>After creating the tables and inserting data, various SQL queries can be used to manage and extract useful information from the database. Here are some common queries for this project:</p><ul><li><strong>Adding Data (INSERT INTO)</strong>: Add new authors, books, borrowers, and transactions. For example, to add a new book, we would insert the title, genre, published year, and author reference (AuthorID).</li><li><strong>Searching for Data (SELECT)</strong>: Search for books by title, author, or genre. Example: Find all books written by a specific author or by genre.</li><li><strong>Managing Borrowing Records</strong>: Track which books have been borrowed by which borrower and when they are due. Example: To find overdue books, we check if the ReturnDate is NULL and the DueDate is in the past.</li><li><strong>Updating Data (UPDATE)</strong>: Update records, such as changing the return date when a borrower returns a book.</li><li><strong>Deleting Data (DELETE)</strong>: If a borrower deletes their account, all related borrowing transactions should be deleted.</li></ul><h3>Theoretical Queries for Common Library Tasks</h3><h4>Add a New Book</h4><p>To add a new book to the system, you would use an <strong>INSERT</strong> statement. For example:</p><pre>INSERT INTO Books (Title, Genre, PublishedYear, AuthorID)<br>VALUES (&#39;Harry Potter and the Philosopher\&#39;s Stone&#39;, &#39;Fantasy&#39;, 1997, 1);</pre><p>This would add a book with a reference to an author from the <strong>Authors</strong> table.</p><h4>Find All Books by an Author</h4><p>To search for all books by a specific author, you would use a <strong>JOIN</strong> query:</p><pre>SELECT Books.Title, Books.Genre, Books.PublishedYear<br>FROM Books<br>JOIN Authors ON Books.AuthorID = Authors.AuthorID<br>WHERE Authors.FirstName = &#39;J.K.&#39; AND Authors.LastName = &#39;Rowling&#39;;</pre><p>This query combines data from both the <strong>Books</strong> and <strong>Authors</strong> tables based on their shared AuthorID.</p><h4>Track Borrowed Books</h4><p>To see which books a specific borrower has borrowed, you can join the <strong>Transactions</strong>, <strong>Books</strong>, and <strong>Borrowers</strong> tables:</p><pre>SELECT Books.Title, Transactions.BorrowDate, Transactions.DueDate<br>FROM Transactions<br>JOIN Books ON Transactions.BookID = Books.BookID<br>JOIN Borrowers ON Transactions.BorrowerID = Borrowers.BorrowerID<br>WHERE Borrowers.FirstName = &#39;John&#39; AND Borrowers.LastName = &#39;Doe&#39;;</pre><p>This query shows the borrowed books, their borrow dates, and due dates for a specific borrower.</p><h4>List Overdue Books</h4><p>To find all overdue books, we check for transactions where the book is still marked as not returned (ReturnDate IS NULL) and the due date has passed:</p><pre>SELECT Books.Title, Borrowers.FirstName, Borrowers.LastName, Transactions.DueDate<br>FROM Transactions<br>JOIN Books ON Transactions.BookID = Books.BookID<br>JOIN Borrowers ON Transactions.BorrowerID = Borrowers.BorrowerID<br>WHERE Transactions.ReturnDate IS NULL AND Transactions.DueDate &lt; CURDATE();</pre><p>This query finds overdue books by checking the current date against the due date.</p><h4>Update Return Date</h4><p>When a borrower returns a book, you can update the ReturnDate field in the <strong>Transactions</strong> table:</p><pre>UPDATE Transactions<br>SET ReturnDate = CURDATE()<br>WHERE TransactionID = 1;</pre><p>This marks the book as returned, and the system can track return dates.</p><h3>Conclusion</h3><p>This Library Management System provides a practical example of how SQL can be used to manage real-world data. It includes creating tables, defining relationships between those tables, and writing SQL queries to manage data (inserting, searching, updating, and deleting records).</p><p>🧠 Through this project What I Learned:</p><ul><li>How to design and implement a real-world relational database from scratch.</li><li>Importance of entity relationships and how to define them using foreign keys.</li><li>Hands-on experience writing SQL queries for CRUD operations (Create, Read, Update, Delete).</li><li>Data validation and ensuring consistency using SQL constraints.</li></ul><p>This project helped me build a strong foundation in <strong>SQL database design</strong>, query execution, and understanding <strong>how back-end systems manage data</strong> in library or inventory-based applications. This system is scalable and can be expanded with additional features, such as tracking fines, generating reports, or adding a digital catalog system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc2df716b084" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Emotional Evolution of AI: A Journey from Indifference to Confidence]]></title>
            <link>https://medium.com/@vlulakshmi/the-emotional-evolution-of-ai-a-journey-from-indifference-to-confidence-15c7400d3b49?source=rss-e2b37c3d95e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/15c7400d3b49</guid>
            <dc:creator><![CDATA[lakshmi]]></dc:creator>
            <pubDate>Tue, 08 Apr 2025 16:31:26 GMT</pubDate>
            <atom:updated>2025-04-08T16:31:26.985Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*jIzN7YjNucKw91LX" /></figure><p>As I dove deep into researching <strong>the human-AI relationship</strong>, I came across an image that perfectly illustrates what I’ve been thinking about. It’s not just an artistic representation — it’s a <strong>timeline of our emotions</strong> as AI has evolved.</p><p>When I started looking into how people react to artificial intelligence, I noticed a pattern. It’s almost like a psychological <strong>evolution</strong>. And this image? It captures that shift beautifully.</p><h3>Indifference: AI? Meh.</h3><p>At first, no one cared. I found countless articles from the early 2000s where AI was dismissed as <em>“just an experiment.”</em> People saw it as a niche field, something only researchers in labs played with. Even when chatbots emerged, the general reaction was, <em>“Cool… but useless.”</em></p><h3>Fear: “Wait, AI Can Do That?”</h3><p>Then, everything changed. I noticed the moment AI <strong>became real</strong> in people’s minds — it was when tools like ChatGPT started <strong>writing, coding, and even making decisions</strong>. Suddenly, AI wasn’t just an idea; it was something that could replace jobs, challenge industries, and <strong>outthink humans in certain areas</strong>.</p><p>I saw professionals start to panic. Some dismissed it, while others began worrying about their careers. The fear was real, and the resistance was strong.</p><h3>Embarrassment: “Okay, Maybe AI Is Useful…”</h3><p>Then came what I call the <strong>awkward phase</strong>. People who once laughed at AI started using it in secret. I spoke to developers who initially called AI-powered tools “a joke” — but now they can’t live without them. Companies that mocked automation started <strong>integrating AI into their workflows</strong>.</p><p>It was almost embarrassing to admit: <em>“I was wrong about AI.”</em></p><h3>Confidence: “AI + Human = The Future”</h3><p>But here’s the twist — those who <strong>adapted</strong> gained an advantage. Businesses leveraging AI saw <strong>huge productivity boosts</strong>. Writers used it to brainstorm. Developers sped up coding. Scientists ran simulations in minutes instead of months.</p><p>I found that the most successful people weren’t the ones fighting AI, but the ones embracing it as a <strong>partner</strong> rather than a threat.</p><h3>What’s Next?</h3><p>The final figures in the image fascinated me. They don’t just show humans <strong>using</strong> AI — they show a future where AI and humans are deeply integrated.</p><p>Are we heading toward a <strong>coexistence model</strong>, where AI enhances our abilities? Or is this the beginning of <strong>a new era where AI surpasses human intelligence</strong>?</p><p>My research tells me one thing for sure: <strong>this evolution isn’t stopping.</strong> The only question is — where do you stand in this timeline?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15c7400d3b49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Battle: ChatGPT vs LLaMA vs Gemini vs Copilot vs DeepSeek — My Research Findings]]></title>
            <link>https://medium.com/@vlulakshmi/ai-battle-chatgpt-vs-llama-vs-gemini-vs-copilot-vs-deepseek-my-research-findings-172209ad012c?source=rss-e2b37c3d95e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/172209ad012c</guid>
            <dc:creator><![CDATA[lakshmi]]></dc:creator>
            <pubDate>Mon, 07 Apr 2025 14:28:21 GMT</pubDate>
            <atom:updated>2025-04-07T14:28:21.087Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI Battle: ChatGPT vs LLaMA vs Gemini vs Copilot vs DeepSeek — My Research Findings</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/0*DzZpCL-jHg20Kb0i" /></figure><p>Artificial Intelligence has significantly advanced in recent years, leading to the emergence of multiple AI models competing for dominance. Through my research, I explored five of the most prominent AI models — <strong>ChatGPT, LLaMA, Gemini, Copilot, and DeepSeek</strong> — to determine their strengths, weaknesses, and ideal use cases.</p><h3>1. ChatGPT — The Conversational Leader</h3><p><strong>Developed by:</strong> OpenAI<br><strong>Best for:</strong> General conversations, content writing, coding assistance</p><p>ChatGPT, available in multiple versions (GPT-3.5, GPT-4), is one of the most widely recognized AI models. It is extensively used for text generation, coding support, and creative writing. Integrated into various platforms, including Microsoft Copilot, it has demonstrated strong contextual awareness and adaptability.</p><h3>My Findings:</h3><ul><li>✅ Exceptional at natural, human-like conversations</li><li>✅ Versatile — effective for text, coding, brainstorming, and more</li><li>✅ Free version available (GPT-3.5)</li><li>❌ Occasional inaccuracies and hallucinations</li><li>❌ Limited real-time knowledge in some contexts</li></ul><h3>2. LLaMA — Meta’s Open-Source Challenger</h3><p><strong>Developed by:</strong> Meta (Facebook)<br><strong>Best for:</strong> AI research, privacy-conscious AI applications</p><p>LLaMA (Large Language Model Meta AI) is an open-source alternative to proprietary models, allowing developers to fine-tune it for custom applications. Although not as mainstream as ChatGPT, it is gaining traction in AI research and enterprise applications.</p><h3>My Findings:</h3><ul><li>✅ Open-source and highly customizable</li><li>✅ Efficient performance with lower computational costs</li><li>✅ Useful for specialized applications requiring control over AI behavior</li><li>❌ Requires technical expertise for setup and deployment</li><li>❌ Not as widely adopted for general users</li></ul><h3>3. Gemini — Google’s AI Powerhouse</h3><p><strong>Developed by:</strong> Google DeepMind<br><strong>Best for:</strong> Multimodal tasks (text, images, videos), Google integration</p><p>Google’s Gemini (formerly Bard) is designed for broader AI applications, handling text, images, and video inputs. Its integration with Google Search enhances its accuracy and information retrieval capabilities.</p><h3>My Findings:</h3><ul><li>✅ Strong real-time Google integration</li><li>✅ Multimodal capabilities (text, images, videos)</li><li>✅ Effective for summarization and fact-checking</li><li>❌ Initial versions had performance limitations</li><li>❌ Not as conversationally refined as ChatGPT</li></ul><h3>4. Copilot — The Developer’s AI Assistant</h3><p><strong>Developed by:</strong> OpenAI &amp; Microsoft<br><strong>Best for:</strong> Code suggestions, AI-powered development</p><p>GitHub Copilot is a specialized AI assistant tailored for software developers. It provides context-aware code suggestions and works directly within IDEs like VS Code, significantly improving development efficiency.</p><h3>My Findings:</h3><ul><li>✅ Increases productivity for software developers</li><li>✅ Seamless integration with code editors</li><li>✅ Reduces repetitive coding tasks</li><li>❌ Subscription required for full functionality</li><li>❌ Not always reliable for complex logic and edge cases</li></ul><h3>5. DeepSeek — The AI Research Expert</h3><p><strong>Developed by:</strong> DeepSeek AI<br><strong>Best for:</strong> Mathematical reasoning, technical research</p><p>DeepSeek is a relatively new AI model focused on advanced logical reasoning, mathematics, and scientific research. It outperforms general-purpose AI models in handling complex technical queries.</p><h3>My Findings:</h3><ul><li>✅ Strong mathematical and logical reasoning capabilities</li><li>✅ Useful for technical and research-oriented tasks</li><li>✅ Gaining popularity in AI research communities</li><li>❌ Limited adoption compared to mainstream AI models</li><li>❌ Lacks versatility for casual conversation</li></ul><h3>Conclusion: My Research-Based Verdict</h3><p>The answer depends on the intended use case:</p><ul><li><strong>For Conversations &amp; Writing:</strong> ChatGPT 🔥</li><li><strong>For Open-Source &amp; Custom AI Models:</strong> LLaMA 🛠️</li><li><strong>For Google-Powered AI Integration:</strong> Gemini 🌎</li><li><strong>For Coding &amp; Development:</strong> Copilot 👨‍💻</li><li><strong>For Advanced Research &amp; Math:</strong> DeepSeek 📊</li></ul><p>Through my research, I found that AI technology is rapidly evolving, and each model has unique advantages. ChatGPT remains the most well-rounded AI assistant, while Copilot excels for developers, and DeepSeek provides specialized expertise in logic and math. Ultimately, the best AI model depends on specific user needs and industry applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=172209ad012c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Task Management System API with Spring Boot]]></title>
            <link>https://medium.com/@vlulakshmi/building-a-task-management-system-api-with-spring-boot-08ad4a37564d?source=rss-e2b37c3d95e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/08ad4a37564d</guid>
            <dc:creator><![CDATA[lakshmi]]></dc:creator>
            <pubDate>Thu, 03 Apr 2025 22:02:07 GMT</pubDate>
            <atom:updated>2025-04-03T22:02:07.228Z</atom:updated>
            <content:encoded><![CDATA[<p>In my recent project, I developed a <strong>Task Management System API</strong> using <strong>Spring Boot</strong>, incorporating best practices in authentication, database design, and RESTful API development. This blog details my journey through the project, the challenges I faced, and the key takeaways.</p><h3>Why I Built This Project</h3><p>Task management is a crucial part of any organization or personal productivity system. I wanted to build a <strong>scalable, secure, and efficient</strong> backend for managing tasks, complete with <strong>JWT authentication, role-based access control, and filtering capabilities</strong>. This project is perfect for learning how to implement a full-fledged API using <strong>Spring Boot and PostgreSQL/MySQL</strong>.</p><h3>Tech Stack</h3><p>For this project, I chose the following technologies:</p><ul><li><strong>Spring Boot</strong> — Backend framework for building REST APIs</li><li><strong>Spring Security &amp; JWT</strong> — User authentication and authorization</li><li><strong>Spring Data JPA</strong> — ORM for database operations</li><li><strong>PostgreSQL/MySQL</strong> — Database for storing task data</li><li><strong>Lombok</strong> — Reduces boilerplate code</li><li><strong>MapStruct</strong> — Converts DTOs to entities and vice versa</li><li><strong>Swagger/OpenAPI</strong> — API documentation</li><li><strong>JUnit &amp; Mockito</strong> — Unit and integration testing</li><li><strong>Docker</strong> — For containerization (optional)</li><li><strong>AWS S3</strong> — For file storage (optional)</li></ul><h3>Project Features</h3><h3>1. User Authentication &amp; Authorization</h3><p>I implemented <strong>Spring Security with JWT</strong> to manage user authentication. Users can <strong>register, log in, and receive a JWT token</strong> for secure API access. Role-based access control ensures that only authorized users can create or manage tasks.</p><p><strong>Endpoints:</strong></p><ul><li>POST /api/auth/register – Registers a new user</li><li>POST /api/auth/login – Authenticates user and returns JWT token</li></ul><h3>2. Task CRUD Operations</h3><p>Users can <strong>create, update, delete, and fetch tasks</strong> from the database. Each task has a <strong>title, description, status (Pending/In Progress/Completed), priority (Low/Medium/High), and due date</strong>.</p><p><strong>Endpoints:</strong></p><ul><li>POST /api/tasks – Create a new task</li><li>GET /api/tasks – Get all tasks</li><li>GET /api/tasks/{id} – Get a specific task</li><li>PUT /api/tasks/{id} – Update task details</li><li>DELETE /api/tasks/{id} – Delete a task</li></ul><h3>3. Task Filtering &amp; Sorting</h3><p>I implemented <strong>dynamic filtering and sorting</strong> using query parameters. Users can filter tasks based on <strong>status, priority, or due date</strong>.</p><p><strong>Examples:</strong></p><ul><li>GET /api/tasks?status=completed – Fetch completed tasks</li><li>GET /api/tasks?priority=high – Fetch high-priority tasks</li><li>GET /api/tasks?sort=dueDate,asc – Sort tasks by due date</li></ul><h3>4. Role-Based Access Control (RBAC)</h3><ul><li><strong>Admin</strong>: Can manage all tasks and users</li><li><strong>User</strong>: Can manage only their own tasks</li><li>Implemented using <strong>Spring Security</strong> with <strong>custom filters</strong></li></ul><h3>5. Notifications (Optional Feature)</h3><p>To enhance usability, I integrated <strong>Spring Boot Mail</strong> to send reminders when a task is approaching its due date.</p><h3>6. File Upload (Optional Feature)</h3><p>I added <strong>AWS S3 storage</strong> to allow users to upload attachments related to tasks (e.g., documents, images).</p><h3>Database Design</h3><p>I structured the database using <strong>JPA entities</strong> with relationships:</p><ul><li><strong>User Entity</strong> — Stores user details and roles</li><li><strong>Task Entity</strong> — Stores task details with attributes like title, description, status, priority, and due date</li><li><strong>TaskAttachment Entity (Optional)</strong> — Manages file uploads</li></ul><p>Here’s a basic table structure:</p><p>Task ID Title Description Status Priority Due Date User ID 1 API Dev Complete API tasks In Progress High 2025–04–10 101 2 Testing Write unit tests Pending Medium 2025–04–12 102</p><h3>Challenges &amp; How I Solved Them</h3><h3>1. Securing API with JWT</h3><p>Initially, handling JWT tokens and securing endpoints was tricky. I overcame this by implementing a <strong>custom filter to validate tokens</strong> and restricting access using <strong>Spring Security annotations</strong>.</p><h3>2. Efficient Filtering &amp; Sorting</h3><p>Instead of writing multiple SQL queries for filtering tasks, I leveraged <strong>Spring JPA’s </strong><strong>Specification API</strong> to dynamically filter tasks based on user input.</p><h3>3. Testing the API</h3><p>Writing unit tests was time-consuming but helped catch bugs early. I used <strong>JUnit and Mockito</strong> to test authentication, task operations, and filtering logic.</p><blockquote><strong>Key Takeaways</strong></blockquote><p><em>🔹 </em><strong><em>Spring Boot + JWT makes authentication easy</em></strong><em><br>🔹 </em><strong><em>Dynamic filtering and sorting improve API usability</em></strong><em><br>🔹 </em><strong><em>Testing saves time in debugging later</em></strong><em><br>🔹 </em><strong><em>AWS S3 integration is great for file storage</em></strong></p><h3>Future Improvements</h3><p>While the project is fully functional, I have a few enhancements planned:</p><h3>1. WebSocket-Based Real-Time Task Updates</h3><ul><li>Implementing <strong>Spring WebSockets</strong> to provide real-time task status updates</li><li>Users will receive instant notifications when a task is updated or assigned</li></ul><h3>2. GraphQL Support for Flexible Queries</h3><ul><li>Instead of relying only on REST endpoints, I want to integrate <strong>GraphQL</strong> for more dynamic and efficient data fetching</li><li>Users will be able to request only the fields they need</li></ul><h3>3. Mobile-Friendly UI (React or Angular)</h3><ul><li>While this is a backend project, I plan to build a simple <strong>React or Angular frontend</strong> for task management</li><li>This will improve accessibility and usability for mobile users</li></ul><h3>4. Integration with Third-Party Apps</h3><ul><li>Adding integrations with tools like <strong>Google Calendar or Slack</strong> to enhance productivity</li></ul><h3>Conclusion</h3><p>This project helped me gain hands-on experience with <strong>Spring Boot, JWT authentication, database design, and API security</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08ad4a37564d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analyzing Volkswagen Data (2000–2016): Trends, Insights, and Future Outlook]]></title>
            <link>https://medium.com/@vlulakshmi/analyzing-volkswagen-data-2000-2016-trends-insights-and-future-outlook-da0e496f5382?source=rss-e2b37c3d95e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/da0e496f5382</guid>
            <dc:creator><![CDATA[lakshmi]]></dc:creator>
            <pubDate>Wed, 02 Apr 2025 20:43:53 GMT</pubDate>
            <atom:updated>2025-04-02T20:43:53.540Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kESQZFd4SEaZ1p7A" /></figure><p>In my recent data analysis project, I explored Volkswagen’s performance from 2000 to 2016. Using R, I uncovered trends that not only provided insights into the company’s historical operations but also highlighted areas that could shape its future growth.</p><h3>Data Preparation: Cleaning the Information</h3><p>The first step was to clean and preprocess the data. Volkswagen’s dataset included a variety of variables, from production numbers to sales figures, revenues, and stock prices. However, the raw data came with missing values, inconsistencies, and outliers. Using R packages like dplyr and tidyr, I handled missing data by applying imputation techniques and removed any obvious errors to ensure the analysis was based on accurate, clean data.</p><h3>Key Trends: Sales, Revenue, and Market Impact</h3><p>With the data prepared, I started analyzing key performance indicators such as sales and revenue over the 16-year period. Volkswagen showed impressive growth in the early 2000s, with steady increases in both production and sales volume. However, a noticeable dip occurred around the 2008–2009 period — likely due to the global financial crisis — followed by a strong recovery post-2010.</p><p>I used ggplot2 to create detailed visualizations showing Volkswagen’s sales trends by region, which revealed a shift towards emerging markets like China, where the company saw a significant increase in demand. This shift in geography was essential to understanding how global dynamics influenced Volkswagen’s operations during this period.</p><h3>Profitability and Stock Performance</h3><p>Volkswagen’s financial data was particularly interesting. By calculating profitability metrics such as Gross Margin and Operating Income, I was able to track how Volkswagen’s financial health changed over time. A key finding was the notable increase in profit after 2010, as the company seemed to gain momentum with its new model releases and focus on fuel-efficient vehicles.</p><p>Stock performance was another critical area of analysis. Using quantmod in R, I compared Volkswagen’s stock price against major market indices and industry peers. The results were mixed, with significant fluctuations during the 2015 diesel scandal, which caused a temporary dip in stock value.</p><h3>Dieselgate and Its Aftermath</h3><p>The most dramatic finding came when analyzing the impact of the diesel emissions scandal that broke in 2015. Stock prices plummeted in the aftermath, and there was a visible decline in sales in key markets. A time-series analysis showed a sharp drop in stock value immediately following the scandal, but it also illustrated the company’s recovery over time, despite the reputational damage.</p><blockquote><strong>Key Insights and Takeaways</strong></blockquote><ul><li><strong><em>Global Expansion</em></strong><em>: Volkswagen’s shift to emerging markets, particularly China, was a major factor in its growth post-2008.</em></li><li><strong><em>Financial Resilience</em></strong><em>: Despite the challenges, Volkswagen demonstrated strong financial recovery after the financial crisis and the emissions scandal, showing its resilience.</em></li><li><strong><em>Impact of External Events</em></strong><em>: The diesel emissions scandal had a lasting effect on Volkswagen’s stock price and reputation, but the company managed to stabilize its position in the market.</em></li></ul><h3>Conclusion: Looking to the Future</h3><p>The analysis reveals that Volkswagen, while facing challenges, has shown impressive adaptability and resilience. As we look forward, focusing on sustainability, technological innovation, and maintaining its stronghold in emerging markets will be key to the company’s future success. This analysis has not only shed light on the past but has also helped shape predictions for where the company might go in the next decade.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da0e496f5382" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>