<?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 Venuri Perera on Medium]]></title>
        <description><![CDATA[Stories by Venuri Perera on Medium]]></description>
        <link>https://medium.com/@venuriperera419?source=rss-ee772c574c1e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cB0NTnLy94mNuVsKlLbIEA.jpeg</url>
            <title>Stories by Venuri Perera on Medium</title>
            <link>https://medium.com/@venuriperera419?source=rss-ee772c574c1e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:06:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@venuriperera419/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[PUT vs. PATCH: What’s the difference?]]></title>
            <link>https://medium.com/@venuriperera419/put-vs-patch-whats-the-difference-1bfe56488e6f?source=rss-ee772c574c1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bfe56488e6f</guid>
            <category><![CDATA[put]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[patch]]></category>
            <dc:creator><![CDATA[Venuri Perera]]></dc:creator>
            <pubDate>Sat, 05 Sep 2026 07:37:30 GMT</pubDate>
            <atom:updated>2026-09-05T07:37:30.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tKyCFag_aWHmMkqzC6uryQ.jpeg" /><figcaption>Image generated using Gemini AI</figcaption></figure><p>When working with REST APIs, you will often come across two HTTP methods for updating resources: <strong>PUT</strong> and <strong>PATCH</strong>.</p><p>Although both can be used to update a resource, the main difference is <strong>how much of the resource they are intended to modify</strong>.</p><p>A simple way to remember it is:</p><p>| <strong>PUT:</strong> “Here is the new version of the resource.”</p><p>| <strong>PATCH:</strong> “Here are the changes I want to make to the resource.”</p><h4><strong>PUT</strong></h4><p><strong>PUT</strong> is used to <strong>replace a resource with a new representation</strong>.</p><p>In a typical REST API, a PUT request contains the complete resource that should exist after the update.</p><p><strong>Key points</strong></p><ul><li>Purpose: <strong>Replace/update the whole resource</strong></li><li>Usually sends <strong>all the fields</strong></li><li>If fields are missing, the server may reset them to null, apply default values, or reject the request, depending on how the API is implemented.</li><li>The payload is usually larger because the complete resource is sent.</li><li>PUT is commonly used when you want to provide the complete new state of a resource.</li></ul><p>Example:</p><p>Suppose the existing user is:</p><pre>{ &quot;name&quot;: &quot;John&quot;, <br>  &quot;email&quot;: &quot;john@gmail.com&quot;, <br>  &quot;age&quot;: 25 <br>}</pre><p>Now suppose we want to change John’s email and age:</p><pre>PUT /users/1</pre><pre><br>{<br>  &quot;name&quot;: &quot;John&quot;,<br>  &quot;email&quot;: &quot;new@gmail.com&quot;,<br>  &quot;age&quot;: 26<br>}</pre><p>The resulting resource would be:</p><pre>{ &quot;name&quot;: &quot;John&quot;,<br>  &quot;email&quot;: &quot;new@gmail.com&quot;, <br>  &quot;age&quot;: 26 <br>}</pre><p><strong>What if we don’t send age?</strong></p><p>Suppose we send:</p><pre>PUT /users/1</pre><pre>{<br>  &quot;name&quot;: &quot;John&quot;,<br>  &quot;email&quot;: &quot;new@gmail.com&quot;<br>}</pre><p>What happens to age depends on the backend implementation. It might:</p><ul><li>become null</li><li>receive a default value</li><li>cause a validation error</li><li>or, in some implementations, remain unchanged.</li></ul><h4>PATCH</h4><p><strong>PATCH</strong> is used to <strong>partially modify a resource</strong>.</p><p>Instead of sending the complete resource, you send only the fields or changes that you want to apply.</p><p><strong>Key points</strong></p><ul><li>Purpose: <strong>Partially update a resource</strong></li><li>Usually sends only the fields that need to change</li><li>Fields that are not included usually remain unchanged</li><li>The payload is generally smaller</li><li>Useful when you only need to modify one or a few fields</li></ul><p>Example</p><p>Suppose the existing user is:</p><pre>{ &quot;name&quot;: &quot;John&quot;, <br>  &quot;email&quot;: &quot;john@gmail.com&quot;,<br>  &quot;age&quot;: 25 <br>}</pre><p>We only want to change the user’s email.</p><pre>PATCH /users/1</pre><pre>{<br>  &quot;email&quot;: &quot;new@gmail.com&quot;<br>}</pre><p>The resulting resource would be:</p><pre>{ &quot;name&quot;: &quot;John&quot;,<br>  &quot;email&quot;: &quot;new@gmail.com&quot;,<br>  &quot;age&quot;: 25 <br>}</pre><p>Only the email field changes.</p><p>The name and age fields remain unchanged because we didn&#39;t ask the server to modify them.</p><h4>PUT vs. PATCH at a glance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*a0Jd-5mocdCsZRmaUne4AA.png" /><figcaption>comparison between PUT and PATCH</figcaption></figure><h4>Idempotency</h4><p>Another important concept when comparing PUT and PATCH is <strong>idempotency</strong>.</p><p><strong>What does idempotency mean?</strong></p><p>An operation is <strong>idempotent</strong> if performing the same operation multiple times has the same intended effect as performing it once.</p><p>For example, suppose we have:</p><pre>PUT /users/1</pre><pre>{<br>  &quot;name&quot;: &quot;John&quot;,<br>  &quot;email&quot;: &quot;john@gmail.com&quot;,<br>  &quot;age&quot;: 26<br>}</pre><p>If we send this request once:</p><p>age → 26</p><p>If we send exactly the same request five times:</p><p>age → 26</p><p>The final state is still the same.</p><p>Therefore, <strong>PUT is idempotent</strong>.</p><p><strong>What about PATCH?</strong></p><p>PATCH can be idempotent or non-idempotent depending on the operation being performed.</p><p>For example, this PATCH:</p><pre>PATCH /users/1</pre><pre>{<br>  &quot;age&quot;: 26<br>}</pre><p>is effectively idempotent.</p><p>Whether we send it once or five times, the final age is still 26.</p><p>However, consider a PATCH operation that means:</p><pre>{ &quot;operation&quot;: &quot;increment&quot;,<br>  &quot;age&quot;: 1 <br>}</pre><p>If the operation means “increase the age by 1”, sending it once might produce:</p><p>25 → 26</p><p>Sending it again could produce:</p><p>26 → 27</p><p>In that case, the operation is <strong>non-idempotent</strong>.</p><p><strong><em>PUT is idempotent by definition. PATCH is not necessarily idempotent; it depends on the patch operation.</em></strong></p><h4>One Important Note</h4><p>The exact behavior of PUT and PATCH can vary depending on how the API is designed and implemented.</p><p>For example, a backend might reject a PUT request if a required field is missing instead of setting it to null.</p><p>Similarly, PATCH can be implemented in different ways and can support different patch formats.</p><p>Therefore, the safest way to understand the distinction is:</p><p><strong><em>| PUT is intended to replace the resource.</em></strong></p><p><strong><em>| PATCH is intended to partially modify the resource.</em></strong></p><p>The behavior you actually observe also depends on the API’s implementation</p><h4>A Real-World PATCH Example from My Spring Boot Project</h4><p>In one of my projects, I used @PatchMapping to partially update a room.</p><pre>@PatchMapping(&quot;/update&quot;) public ResponseEntity&lt;Room&gt; updateRoom(@RequestBody RoomDto roomDto) { <br>     Room updatedRoom = roomService.updateRoom(roomDto); <br>     return new ResponseEntity&lt;&gt;(updatedRoom, HttpStatus.OK); <br>}</pre><p>In the service layer, I check whether a field has been provided in the request. If the field is not null, its value is updated. Fields that are not provided remain unchanged.</p><p>This is how I implemented <strong>partial updates with PATCH</strong> in my project</p><pre>if (roomDto.getBlockName() != null) { <br>    room.setBlockName(roomDto.getBlockName()); <br>} <br>if (roomDto.getCapacity() != null) { <br>    room.setCapacity(roomDto.getCapacity()); <br>}</pre><p>For example, suppose existing room is:</p><pre>{ &quot;roomNumber&quot;: 101,<br>  &quot;blockName&quot;: &quot;A&quot;,<br>  &quot;capacity&quot;: 4 <br>}</pre><p>If I only want to change the capacity, I can send:</p><pre>PATCH /rooms/update</pre><pre>{<br>  &quot;roomNumber&quot;: 101,<br>  &quot;capacity&quot;: 6<br>}</pre><p>Here, roomNumber is used to identify which room should be updated. The capacity field is provided with a new value, so the backend updates it.</p><p>Since blockName wasn&#39;t provided, its existing value remains unchanged.</p><p>The result is:</p><pre>{<br>  &quot;roomNumber&quot;: 101,<br>  &quot;blockName&quot;: &quot;A&quot;,<br>  &quot;capacity&quot;: 6<br>}</pre><p>This is a practical example of <strong>partial updating with PATCH</strong>.</p><p><strong>An example of PUT</strong></p><p>Now let’s look at the same scenario using PUT.</p><p>Suppose the existing room is:</p><pre>{<br>  &quot;roomNumber&quot;: 101,<br>  &quot;blockName&quot;: &quot;A&quot;,<br>  &quot;capacity&quot;: 4<br>}</pre><p>With PUT, we would typically send the <strong>complete new representation</strong> of the room:</p><pre>PUT /rooms/101</pre><pre>{<br>  &quot;roomNumber&quot;: 101,<br>  &quot;blockName&quot;: &quot;B&quot;,<br>  &quot;capacity&quot;: 6<br>}</pre><p>The idea here is that we are telling the server:</p><p><strong><em>“Replace the existing room with this new representation.”</em></strong></p><p>The resulting resource would be:</p><pre>{<br>  &quot;roomNumber&quot;: 101,<br>  &quot;blockName&quot;: &quot;B&quot;,<br>  &quot;capacity&quot;: 6<br>}</pre><p><strong><em>So the simplest way to remember it is:</em></strong></p><p><strong>PUT:</strong> “Here is the new version of the resource.”</p><p><strong>PATCH:</strong> “Here are the changes I want to make to the resource.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bfe56488e6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Building Crave House Taught Me About Software Engineering]]></title>
            <link>https://medium.com/@venuriperera419/what-building-crave-house-taught-me-about-software-engineering-0b89763969da?source=rss-ee772c574c1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b89763969da</guid>
            <dc:creator><![CDATA[Venuri Perera]]></dc:creator>
            <pubDate>Fri, 28 Aug 2026 11:58:21 GMT</pubDate>
            <atom:updated>2026-08-28T11:58:21.451Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GYICHhySHxOrETKKPCBAvA.png" /><figcaption>Image generated using Gemini AI</figcaption></figure><p><strong>Crave House</strong> became my first experience working on a software product as part of a team, where different modules had to communicate with each other, business rules had to be respected, security had to be considered, and a change in one part of the system could affect another.</p><p><strong>What is Crave House?</strong></p><p>Crave House is an enterprise-grade restaurant management platform designed to streamline restaurant operations across multiple branches. The platform supports both QR-based dine-in ordering and online ordering.</p><p>Some of the major capabilities of the platform include:</p><p>· Contactless QR ordering — dine‑in and online with real‑time order tracking</p><p>· Smart reservations with capacity checks, auto‑locking, and timed payments</p><p>· Stripe integration with automated full/partial refunds</p><p>· Multi‑branch menu and customer profile management for unified control</p><p>· GPS‑based delivery via a dedicated app with dynamic distance fees</p><p>· Table management with floor configuration and QR code mapping</p><p>· Analytics &amp; performance dashboards with administrative configurations</p><p>· Real‑time kitchen display system (KDS) with chef‑ and item‑level tracking</p><p>· Automated inventory control with low‑stock alerts and replenishment workflows</p><p>· Role‑based access control with comprehensive audit logging</p><p><strong>The Technology Behind It</strong></p><p>We used React for the frontend, Spring Boot for the backend, and MySQL as the database.</p><p>· Frontend: React.js, Tailwind CSS, Axios, React Google Maps API, Stripe Elements, React Native (Delivery App)</p><p>· Backend: Java Spring Boot, Spring Security + JWT, STOMP WebSockets, Hibernate / Spring Data JPA</p><p>· Database &amp; Cache: MySQL (Aiven Cloud), Redis Enterprise Cloud</p><p>· Cloud &amp; Integrations: AWS S3, Cloudinary, Text.lk SMS, Stripe, Google Gmail API</p><p>· DevOps: Docker, GitHub, Render(Backend) , Netlify(Frontend)</p><p>· Testing: JUnit</p><p><strong>My Contribution to Crave House</strong></p><p><strong>Menu Management, Menu Approval, and Governance</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q6vnJeagj1Zd60d4Y_ncwg.png" /><figcaption>Menu management UI</figcaption></figure><p>I built a comprehensive, branch-specific menu management system that allows the restaurant to handle complex food items. It supports tracking prices, descriptions, image uploads, preparation times, and even the specific ingredients (recipes) that make up each dish.</p><p>I engineered the backend to handle operations like fetching branch-specific items, toggling availability, and updating menu items</p><p>I built a dashboard for admins to view and filter the current catalog. To handle media efficiently, I integrated a custom <strong>Cloudinary</strong> image upload component so food items are securely uploaded to the cloud and linked to the database via URL.</p><p>In menu governance, I built a system where Chefs can propose new items or changes, but they are placed in a PENDING state until an Admin reviews and approves or rejects them.</p><p>I engineered a state machine using status enums: PENDING, APPROVED, REJECTED.</p><p>I built a dedicated portal for Admins to fetch all pending update requests, allowing the admin to review the Chef’s notes, inspect the menu items that require update, and definitively approve or reject the request with a note, closing the governance loop.</p><p>This was one of the first places where I started thinking about a feature as a <strong>workflow rather than a CRUD operation</strong>.</p><p><strong>Category Management</strong></p><p>When working on category management<strong>, instead</strong> of treating the menu as one large flat list, the system organizes food items into categories and sub-categories.</p><p>The categories are global, while sub-categories are branch-specific.</p><p>Instead of retrieving everything and filtering unnecessarily on the frontend, I worked on backend queries that could retrieve the relevant distinct sub-categories based on the selected branch and category.</p><p><strong>QR creation, deletion and revocation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ik9t765DTtYSFCIU5XJZdw.png" /><figcaption>UI for QR management</figcaption></figure><p>I built a system that generates secure, rotatable QR codes tied strictly to a specific Branch and Table.</p><p>Rather than storing large image files in the database, I mapped logical QRs to a Restaurant Table, tracking crucial lifecycle metrics like active status, lastGeneratedAt, and revokedAt.</p><p>The QR code isn’t just a basic link; it encodes a JSON Web Token (JWT). When you generate a QR code, the backend specifically packs the following payload (claims) into the token:</p><p>· <strong>qr_id</strong> — The primary key ID of the specific QR Code record in the database.</p><p>· <strong>branch_id</strong> — The exact branch this QR belongs to.</p><p>· <strong>table_id</strong> — The specific table inside that branch.</p><p>· <strong>token_type </strong>— Hardcoded as “table_qr” to ensure this token can’t be accidentally used as an admin or customer login token.</p><p>It is unique across the entire system because it explicitly binds the physical table and branch to a specific database qr_id.</p><p>More importantly, the JwtService cryptographically signs this payload using the server’s secret key.</p><p>In my implementation, the QR token has a dual-layer lifecycle:</p><ol><li>The token is injected with an expiration time (exp claim) that defaults to 31,536,000,000 milliseconds (exactly 1 Year). Why a whole year? Because physical QR codes are printed and pasted onto the tables in the restaurant.</li></ol><p>2. The Administrative Lifecycle (Instant Revocation): Even though the token mathematically lasts for a year, I built an Active State Governance over it. If an admin notices fraudulent orders coming from a specific table, they can click “Regenerate” or “Delete” on the Admin Dashboard. This immediately sets active = false in the database.</p><p>I built the QR with options like generate, download, delete, and revoke(both delete and generate at the same time)</p><p>I engineered the QrCodeGenerator.java utility utilizing the Google <strong>ZXing</strong> library. It securely encodes a specific payload (likely a URL embedded with a secure JWT token) and renders it instantly into a raw PNG byte array.</p><p><strong>Base64 Rendering</strong>: I efficiently fetched the active QR code through our backend API and rendered the raw Base64 string directly onto the screen.</p><p>Also, I implemented a <strong>seamless download handler</strong> that converts the backend byte stream into a blob, creating a temporary local URL to let the admin instantly download the table QR for printing.</p><p>To prevent accidental breakage of active sessions, I implemented a custom warning modal when an admin attempts to delete or regenerate an active QR.</p><p><strong>Table Management</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sttr44LYI4jnz6u2rVIEEg.png" /><figcaption>Table management UI</figcaption></figure><p>A restaurant table isn’t simply a table number.</p><p>The system tracks:</p><p>Branch, Table number, capacity, current state, Current guest count, Active orders</p><p>The table state can be:</p><p>AVAILABLE, RESERVED, OCCUPIED</p><p>I implemented functionality to create, update, and deactivate tables.</p><p><strong>Soft Deactivation</strong></p><p>Deleting its database record could create problems because that table may already have historical relationships with orders or reservations. So, I used deactivation instead.</p><p>I also added frontend safety logic that prevents an administrator from deactivating a table while it is currently OCCUPIED or RESERVED.</p><p><strong>Coupon Management</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZkftE5R_rajMxII5CWR8Q.png" /><figcaption>Coupon management UI</figcaption></figure><p>I built a robust, enterprise-grade Coupon Management System. It provides strict administrative control over discounts, promotional campaigns, and minimum order validations.</p><p>Instead of just basic string matching, I modeled a system that handles expiration dates, usage limits, and different discount types (e.g., flat amount vs. percentage).</p><p>Coupon code generation — I engineered the CouponGeneratorUtil.java utilizing Java’s cryptographically strong SecureRandom.</p><p>I defined a strict, 8-character generation length, pulling from a custom CHAR_POOL (“ABCDEFGHJKLMNPQRSTUVWXYZ23456789”). I intentionally excluded confusing characters like 0 (zero), O (letter), 1 (one), and I (letter) so customers don’t make typos.</p><p>To prevent collisions, I wrapped the generation inside a do-while loop. This ensures the system repeatedly generates a new string until it guarantees absolute uniqueness in the database before saving.</p><p>For automatic transition, I built a highly efficient “Dynamic/Lazy Evaluation” model.</p><p>Every time a coupon is queried by the frontend (or an admin attempts an update), it passes through your updateCouponStatusDynamically() method, which evaluates it against the exact current server time.</p><p><strong>SCHEDULED → ACTIVE</strong>: If a coupon is scheduled for the future, but the current time has finally surpassed its startDate, the system automatically flips it to ACTIVE and saves it back to the database.</p><p><strong>ACTIVE/INACTIVE → EXPIRED</strong>: If the current time surpasses the coupon’s endDate, the system instantly drops it into an EXPIRED state, cutting off its usability.</p><p><strong>Editing EXPIRED Coupons</strong>: An admin is blocked from editing an expired coupon unless they are explicitly extending the expirationDate into the future. If they do extend the date, your system is smart enough to “resurrect” the coupon, automatically recalculating the dates and pushing it back into ACTIVE or SCHEDULED status.</p><p><em>Note: Super Admins are completely blocked from manually toggling the active/inactive status switch on an expired coupon.</em></p><p><strong>Editing SCHEDULED Coupons</strong>: Admins are allowed to freely modify the startDate of a scheduled coupon, provided they don’t push the start date into the past.</p><p><strong>Editing ACTIVE Coupons</strong>: If an admin modifies an active coupon and pushes its startDate into the future, our system automatically demotes the coupon’s status back to SCHEDULED, pausing it until that new date arrives.</p><p>These rules made me realize that status is not just a field stored in a database. It represents a <strong>state machine governed by business rules</strong>.</p><p><strong>Admin Dashboard and Real-Time Updates</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blvTpfitX1IAEh9kXH5OLQ.png" /><figcaption>Admin dashboard</figcaption></figure><p>I built a secure analytics engine that dynamically scopes data based on the admin&#39;s branch.</p><p>Instead of pulling all orders into memory, I wrote highly optimized JPA repository queries that calculate totalRevenue, totalOrders, activeOrderCount, and activeUsers strictly bounded by the startOfToday.</p><p>Real-time admin dashboard -</p><p>Real-Time WebSockets- I integrated the useWebSocket hook tied to the admin’s specific branch topic (/topic/branch/{branchId}/admin-notifications). When a new order is placed or completed, the dashboard instantly refetches the stats and pops a toast notification — no manual refreshing required.</p><p>I built a SVG line chart for revenue performance. It allows admins to filter the revenue performance for the last 3 days, 7 days, and 30 days.</p><p>CSS Conic Donut Chart: To show order distribution (Preparing, Ready, In Delivery, Completed)</p><p><strong>Challenges I Faced</strong></p><p>Building these features wasn’t always straightforward.</p><p><strong>1.</strong> <strong>Understanding an Existing Codebase</strong></p><p>Since this was a team project, I wasn’t working in isolation.</p><p>I had to understand code written by other members, including the existing project structure, APIs, entities, authentication mechanisms, and frontend patterns.</p><p>This taught me that professional software development isn’t just about writing your own code.</p><p>You also need to be comfortable reading and understanding someone else’s code.</p><p><strong>2.</strong> <strong>Connecting Frontend and Backend</strong></p><p>Another challenge was connecting the two sides correctly.</p><p>A feature isn’t complete when the backend API works.</p><p>The complete flow is something like:</p><p><strong>Database</strong></p><p>→ <strong>Repository</strong></p><p>→ <strong>Service</strong></p><p>→ <strong>Controller</strong></p><p>→ <strong>REST API</strong></p><p>→ <strong>Frontend API call</strong></p><p>→ <strong>TanStack Query</strong></p><p>→ <strong>React component</strong></p><p>→ <strong>User interface</strong></p><p>If something is wrong at any point in that chain, the feature doesn’t work properly.</p><p>Working on Crave House helped me understand that full-stack development is about connecting these layers, not just knowing individual technologies.</p><p><strong>3.</strong> <strong>Delete vs Deactivate</strong></p><p>One of the biggest conceptual lessons came from deciding whether certain records should be deleted.</p><p>When dealing with real business data, historical information matters.</p><p>Orders, reservations, and other records may depend on existing entities.</p><p>So instead of always thinking:</p><p>“How do I delete this?”</p><p>I started asking:</p><p>“Should this actually be deleted?”</p><p>That change in thinking influenced how I approached categories, tables, menu items, and other state-based entities.</p><p><strong>4.</strong> <strong>Working as a Team</strong></p><p>Working with Git and GitHub also gave me practical experience with collaborative development.</p><p>I had to work with branches, pull requests, integrate changes, and make sure my changes didn’t break functionality implemented by other team members.</p><p>I learned that collaboration isn’t just dividing the project into pieces.</p><p>The pieces still have to fit together.</p><p><strong>What I Learned About Software Engineering</strong></p><p>The technical skills were important, but I think the bigger lessons were about how to think about software.</p><p><strong>1.</strong> <strong>A feature is more than a screen</strong></p><p>Before this project, I could think of a feature as a page with some buttons and an API behind it.</p><p>Now I think about the complete flow.</p><p>A feature has:</p><ul><li>A business requirement</li><li>A user workflow</li><li>Database implications</li><li>Backend logic</li><li>API design</li><li>Authorization</li><li>Frontend behavior</li><li>Error cases</li><li>Edge cases</li><li>Interactions with other features</li></ul><p><strong>2.</strong> <strong>CRUD is only the beginning</strong></p><p>A lot of beginner applications revolve around:</p><p><strong>Create → Read → Update → Delete</strong></p><p>But real systems quickly become more complicated.</p><p>A menu item can be pending approval.</p><p>A coupon can be scheduled.</p><p>A coupon can expire.</p><p>A QR code can be active or revoked.</p><p>A table can be occupied or reserved.</p><p>A menu change can be approved or rejected.</p><p>These states and transitions are where much of the actual business logic lives.</p><p><strong>3.</strong> <strong>Business rules matter</strong></p><p>The system shouldn’t just operate because technically it can.</p><p>For example:</p><ul><li>An occupied table shouldn’t be deactivated.</li><li>A chef’s menu modification shouldn’t automatically become live.</li><li>An expired coupon shouldn’t simply become active through a normal toggle.</li><li>A QR code should belong to the correct branch and table.</li><li>An administrator should only access information they are authorized to see.</li></ul><p>These rules are what turn a collection of CRUD operations into a software product.</p><p><strong>Looking Back at My First Software Product</strong></p><p>Crave House was much more than my first project using React, Spring Boot, and MySQL.</p><p>It was the first time I experienced what it means to work on a software product where different modules, users, workflows, and business rules have to work together.</p><p>I started the project thinking mostly about implementation:</p><p><strong>How do I create this page?</strong><br> <strong>How do I build this API?</strong><br> <strong>How do I connect this to the database?</strong></p><p>By the end, I was thinking more about:</p><p><strong>Who is allowed to do this?</strong><br> <strong>What happens to existing data?</strong><br> <strong>What if the state changes?</strong><br> <strong>What happens when this feature interacts with another one?</strong><br> <strong>Can this operation be safely performed?</strong></p><p>That shift in thinking is probably the most valuable thing I gained from the project.</p><p>Crave House was my first software product, and it taught me that software engineering isn’t simply about writing code that works.</p><p>It’s about understanding a problem, designing a system around it, making thoughtful decisions, handling unexpected situations, working with others, and continuously improving what you’ve built.</p><p>And for me, that was the real beginning of understanding what it means to be a software engineer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b89763969da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Comparison Steals Your Peace]]></title>
            <link>https://medium.com/@venuriperera419/how-comparison-steals-your-peace-7d0961a4087d?source=rss-ee772c574c1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d0961a4087d</guid>
            <category><![CDATA[consistency]]></category>
            <category><![CDATA[discipline]]></category>
            <category><![CDATA[mindset]]></category>
            <dc:creator><![CDATA[Venuri Perera]]></dc:creator>
            <pubDate>Thu, 12 Feb 2026 09:49:14 GMT</pubDate>
            <atom:updated>2026-02-12T09:49:14.209Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever felt behind?…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*trQXZWKVay3QaH3_x2M-vg.png" /><figcaption>Image generated using Gemini AI</figcaption></figure><p>Have you ever felt behind while others are achieving and celebrating?<br>Like everyone is moving forward, and you feel stuck somewhere in between?</p><p>Stop comparing yourself with others.<br>Comparing yourself is one of the harshest punishments you can give yourself.</p><p>We all have different timelines in our lives.<br>Some may start early. Some may start late.</p><p>What matters is the dedication, determination, consistency, and effort you put into your journey. That is what shapes you.</p><p>Pay attention to becoming better than you were yesterday.<br>Your only competitor is the person you were yesterday.<br>Focus on how you can improve today.</p><p>Look at what others have done, not to compare, but to feel motivated and inspired.<br>Let their success encourage you to work on yourself and become the person you dream of being.</p><p>Be patient with yourself.<br>You are exactly where you need to be, and every small step forward matters.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d0961a4087d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>