<?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 satyam saxena on Medium]]></title>
        <description><![CDATA[Stories by satyam saxena on Medium]]></description>
        <link>https://medium.com/@satyam2saxena?source=rss-b7be625173ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xkTvh46KwvqQCLq_cs4C-w.jpeg</url>
            <title>Stories by satyam saxena on Medium</title>
            <link>https://medium.com/@satyam2saxena?source=rss-b7be625173ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 00:41:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@satyam2saxena/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[VPC Endpoint Policies:
The Zero-Trust Feature
Nobody Talks About]]></title>
            <link>https://medium.com/technogise/vpc-endpoint-policies-the-zero-trust-feature-nobody-talks-about-7acbae9fdfe9?source=rss-b7be625173ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/7acbae9fdfe9</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-networking]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[vpc-endpoint]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[satyam saxena]]></dc:creator>
            <pubDate>Mon, 25 May 2026 13:04:05 GMT</pubDate>
            <atom:updated>2026-06-19T09:50:52.803Z</atom:updated>
            <content:encoded><![CDATA[<p><em>You locked down the network path. But did you lock down what’s accessible through it?</em></p><p>If you’ve used VPC Endpoints, you already know the value: keep traffic between your VPC and AWS services (like S3 or DynamoDB) off the public internet entirely. It’s one of those features that feels like a security win the moment you enable it.</p><p>But here’s the gap most developers don’t notice — a VPC Endpoint, by default, allows access to <em>every resource</em> of that service. Your EC2 instances can reach any S3 bucket in the world through that endpoint. That’s not zero-trust. That’s a locked front door with an open window.</p><p>VPC Endpoint Policies fix that. They let you define exactly which AWS resources, actions, and principals are allowed through the endpoint, at the network layer, before any IAM policy even gets evaluated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AFyMxlS5sMuFdwOUy9wAzA.png" /></figure><h3>What is a VPC Endpoint Policy?</h3><p>A VPC Endpoint Policy is a resource-based IAM policy that you attach directly to the endpoint itself. It acts as a gateway-level filter, an additional boundary that sits between your VPC and the AWS service.</p><blockquote><strong><em>How it fits in</em></strong><br>Endpoint policies don’t replace IAM policies or S3 bucket policies. They work in addition to them. A request must satisfy <em>all</em> applicable policies to succeed. This is the key to building genuine defense-in-depth.</blockquote><p>Every endpoint gets a default policy that looks like this:</p><pre>{<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: &quot;*&quot;,<br>      &quot;Action&quot;: &quot;*&quot;,<br>      &quot;Resource&quot;: &quot;*&quot;<br>    }<br>  ]<br>}</pre><p>Completely open. Any principal, any action, any resource all flowing through your private endpoint. If an attacker compromised an instance inside your VPC, they’d have unfettered access to every S3 bucket reachable through that endpoint, including ones belonging to other AWS accounts.</p><h3>How It Actually Works</h3><pre>  ┌─────────────────────────────────────────────────────┐<br>  │                    Your VPC                         │<br>  │                                                     │<br>  │   EC2 Instance ──► VPC Endpoint                     │<br>  │                         │                           │<br>  │                    Endpoint Policy                  │<br>  │                    (Resource-level filter)          │<br>  │                         │                           │<br>  └─────────────────────────┼───────────────────────────┘<br>                            │ Private AWS Network<br>                            ▼<br>                     AWS Service (S3, DDB...)<br>                            │<br>                    IAM + Bucket Policy<br>                    (still evaluated)</pre><p>Traffic flows from your instance to the endpoint, hits the endpoint policy first, and only if allowed it continues to the AWS service backend where IAM and resource-based policies still apply normally.</p><h3>Two Types of Endpoints to Know</h3><pre>Type                    Supports Policy?    Examples                            Notes<br>Gateway Endpoint✅       Yes                S3, DynamoDB                        Route-table based Free<br>Interface Endpoint✅     Yes                SQS, SNS, SSM, ECR, etc             ENI-based Billed per hour + data</pre><h3>Real-World Examples</h3><h3>1. Restrict S3 Access to Your Buckets Only</h3><p>This is the classic use case. You have an endpoint for S3, and you want to make sure nothing inside your VPC can exfiltrate data to an attacker-controlled S3 bucket.</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;AllowOwnBucketsOnly&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: &quot;*&quot;,<br>      &quot;Action&quot;: [<br>        &quot;s3:GetObject&quot;,<br>        &quot;s3:PutObject&quot;,<br>        &quot;s3:ListBucket&quot;<br>      ],<br>      &quot;Resource&quot;: [<br>        &quot;arn:aws:s3:::my-company-bucket&quot;,<br>        &quot;arn:aws:s3:::my-company-bucket/*&quot;,<br>        &quot;arn:aws:s3:::my-logs-bucket&quot;,<br>        &quot;arn:aws:s3:::my-logs-bucket/*&quot;<br>      ]<br>    }<br>  ]<br>}</pre><p>Now even if a compromised instance tries to aws s3 cp secret.txt s3://attacker-bucket/, the endpoint policy will block it before the request ever leaves your network boundary.</p><h3>2. Allow Only Specific IAM Roles</h3><p>You can lock down who can use the endpoint , not just what they can access.</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;AllowSpecificRolesOnly&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: {<br>        &quot;AWS&quot;: [<br>          &quot;arn:aws:iam::123456789012:role/AppServiceRole&quot;,<br>          &quot;arn:aws:iam::123456789012:role/DataPipelineRole&quot;<br>        ]<br>      },<br>      &quot;Action&quot;: &quot;s3:*&quot;,<br>      &quot;Resource&quot;: &quot;*&quot;<br>    }<br>  ]<br>}</pre><p><strong>Important Note<br></strong>If you restrict by Principal, make sure you include any IAM roles used by AWS services on your behalf (e.g., Lambda execution roles, ECS task roles). Forgetting these is the #1 cause of broken deployments after applying endpoint policies.</p><h3>3. Restrict DynamoDB to Specific Tables</h3><p>Same pattern works for DynamoDB gateway endpoints , useful in multi-tenant setups where you want to enforce table-level isolation at the network layer.</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: &quot;*&quot;,<br>      &quot;Action&quot;: [<br>        &quot;dynamodb:GetItem&quot;,<br>        &quot;dynamodb:PutItem&quot;,<br>        &quot;dynamodb:Query&quot;<br>      ],<br>      &quot;Resource&quot;: [<br>        &quot;arn:aws:dynamodb:us-east-1:123456789012:table/Orders&quot;,<br>        &quot;arn:aws:dynamodb:us-east-1:123456789012:table/Products&quot;<br>      ]<br>    }<br>  ]<br>}</pre><h3>4. Enforce AWS Owned Buckets for Package Managers</h3><p>A lesser-known pattern: some AWS services (like CodeBuild, ECR) use S3 buckets owned by AWS itself in the same region. If you’re locking down your endpoint policy, you need to explicitly allow these, or builds start failing mysteriously.</p><pre>{<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: &quot;*&quot;,<br>      &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:s3:::aws-codedeploy-us-east-1/*&quot;<br>    },<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: &quot;*&quot;,<br>      &quot;Action&quot;: [&quot;s3:GetObject&quot;, &quot;s3:PutObject&quot;],<br>      &quot;Resource&quot;: [<br>        &quot;arn:aws:s3:::my-company-bucket&quot;,<br>        &quot;arn:aws:s3:::my-company-bucket/*&quot;<br>      ]<br>    }<br>  ]<br>}</pre><p>💡 Pro Tip</p><p>Use aws:SourceVpc and aws:SourceVpce condition keys in your S3 bucket policies to enforce that access only comes through your specific endpoint. Combined with an endpoint policy, this creates a bidirectional lock — the bucket rejects requests not from your endpoint, and the endpoint rejects requests not to your bucket.</p><h3>The Bidirectional Lock Pattern</h3><p>Here’s the powerful pattern that combines both sides. Add this to your S3 bucket policy:</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;DenyNonVPCEAccess&quot;,<br>      &quot;Effect&quot;: &quot;Deny&quot;,<br>      &quot;Principal&quot;: &quot;*&quot;,<br>      &quot;Action&quot;: &quot;s3:*&quot;,<br>      &quot;Resource&quot;: [<br>        &quot;arn:aws:s3:::my-company-bucket&quot;,<br>        &quot;arn:aws:s3:::my-company-bucket/*&quot;<br>      ],<br>      &quot;Condition&quot;: {<br>        &quot;StringNotEquals&quot;: {<br>          &quot;aws:SourceVpce&quot;: &quot;vpce-0abc1234def56789&quot;<br>        }<br>      }<br>    }<br>  ]<br>}</pre><p>Now the bucket <em>only accepts requests from your VPC endpoint</em>. The endpoint <em>only allows your bucket</em>. Anyone outside your VPC even with valid credentials gets denied at the bucket policy level.</p><h3>Things That Will Trip You Up</h3><ol><li>Forgetting AWS-managed S3 buckets services like SSM, CloudWatch Logs, and Lambda layers use S3 under the hood. If your policy blocks * resources, these silently break.</li><li>Applying a policy mid-deployment, endpoint policies take effect immediately. Apply them during a maintenance window or test in a non-prod environment first.</li><li>Conflating endpoint policy with SCP — they look similar but SCPs apply account-wide and can’t reference specific VPC endpoints. Endpoint policies are endpoint-scoped and network-layer enforced.</li><li>Not testing with the Reachability Analyser — after applying an endpoint policy, run a reachability check between your instance and the target resource to catch silent denials before they hit production.</li></ol><h3>When Should You Use This?</h3><p>Endpoint policies are most valuable when you need to:</p><ul><li>Prevent data exfiltration through a legitimate AWS service path</li><li>Meet compliance requirements (PCI-DSS, HIPAA, SOC 2) that mandate network-level access controls</li><li>Build multi-tenant architectures where workloads share infrastructure but must be isolated</li><li>Add a second layer of defence on top of IAM without modifying existing IAM policies</li></ul><h3>🔑 Key Takeaways</h3><ul><li>The default endpoint policy allows everything — it’s a wide-open gate</li><li>Endpoint policies add a network-layer filter before IAM is ever evaluated</li><li>Restrict by Resource (which buckets/tables), Action (which API calls), and Principal (which roles)</li><li>Pair endpoint policies with bucket/resource policies for a true bidirectional lock</li><li>Watch out for AWS-managed S3 paths used by platform services — exclusions needed</li><li>Test changes with VPC Reachability Analyser before pushing to production</li></ul><h3>Final Thoughts</h3><p>VPC Endpoints solve the routing problem. Endpoint Policies solve the access control problem. Most teams stop at step one and assume they’re secure but routing traffic through a private path doesn’t mean only the right traffic flows through it.</p><p>If you’re already using VPC Endpoints in production and haven’t reviewed your endpoint policies lately, go check them now. Odds are they’re still wide open.</p><p>The best part? This is entirely free for Gateway Endpoints (S3 and DynamoDB). There’s no reason not to tighten these down today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7acbae9fdfe9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/technogise/vpc-endpoint-policies-the-zero-trust-feature-nobody-talks-about-7acbae9fdfe9">VPC Endpoint Policies:
The Zero-Trust Feature
Nobody Talks About</a> was originally published in <a href="https://medium.com/technogise">Technogise</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your Aadhaar Number Is Supposed to Be Boring]]></title>
            <link>https://medium.com/technogise/why-your-aadhaar-number-is-supposed-to-be-boring-f5ab7a13d847?source=rss-b7be625173ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5ab7a13d847</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[identitysystems]]></category>
            <dc:creator><![CDATA[satyam saxena]]></dc:creator>
            <pubDate>Fri, 24 Apr 2026 11:59:51 GMT</pubDate>
            <atom:updated>2026-04-24T13:35:00.163Z</atom:updated>
            <content:encoded><![CDATA[<p>Whenever we encounter something built at a massive scale, we instinctively assume there must be a hidden pattern behind it.</p><p>Twelve digits. A billion people. One identity system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tm9wJyVkTQmgeCj9R6DmIw.png" /></figure><p>You look at an Aadhaar number and wonder:<br><em>There has to be something here.</em><br>Maybe the first few digits mean a region.<br>Maybe the middle encodes time.<br>Maybe there’s a secret structure only insiders understand.</p><p>We are biologically wired to look for patterns — even where none exist.</p><h3>The Surprise</h3><p>The surprising truth is that there is <strong>zero</strong> personal meaning in an Aadhaar number. It isn’t trying to tell you anything. It doesn’t encode who you are, where you’re from, or when you joined the system.</p><p>It just… exists. And that isn’t a limitation; it is a masterpiece of intentional design.</p><h3>Why We Crave Patterns</h3><p>Patterns give us a psychological safety net. They provide:</p><ul><li><strong>A sense of control:</strong> If I know the code, I know the system.</li><li><strong>Easier interpretation:</strong> Labels help us categorize the world.</li><li><strong>The illusion of intelligence:</strong> We equate complexity with “smart” engineering.</li></ul><p>We’ve seen this everywhere:</p><ul><li>Phone numbers hint at geography</li><li>PIN codes map to post offices</li><li>old roll numbers were tied to graduation batches.</li></ul><p>So, when a system as gargantuan as Aadhaar arrives, we assume depth lies in the complexity of the string.</p><p>But in world-class systems design, <strong>depth often lies in what you choose to remove.</strong></p><h3>The Liability of Meaning</h3><p>In the world of data, “meaningful” identifiers are actually a liability. When you bake information into a code, you bake in a <strong>shelf-life.</strong></p><p>If a digit represents a State, what happens when a province is bifurcated? If a digit represents Gender, how does the system adapt as our understanding of identity evolves? If it encodes Age, the number becomes a ticking clock.</p><p>When an ID encodes attributes, the ID becomes fragile. If the attribute changes, the ID must change. By stripping the Aadhaar number of all context, it becomes <strong>anti-fragile.</strong> It is a “dumb” number that protects “smart” data.</p><p><strong>The design choice was simple:</strong> Make the identifier permanent. Keep the meaning in the database.</p><h3>It’s Not Random; It’s Mathematical</h3><p>While the number is non-descriptive, it isn’t a careless string of digits. It utilises a sophisticated bit of math called the <strong>Verhoeff Algorithm.</strong> The 12th digit is a “checksum.” It doesn’t tell the system who you are, but it tells the system if the number is <em>valid</em>. It’s a self-correcting mechanism — meaning the number’s only “intelligence” is dedicated to its own integrity, not your personal history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NsQ5VmRIclQvFHLL7CfVVQ.png" /></figure><h3>The SOS Illusion</h3><p>There’s a similar misconception we all carry about the universal distress signal. We’ve been told “SOS” stands for “Save Our Souls” or “Save Our Ship.”</p><p><strong>It doesn’t.</strong></p><p>SOS was chosen because in Morse Code, it is three dots, three dashes, and three dots ($… — — — …$). It is unmistakable, simple, and impossible to misinterpret even across a noisy, crashing ocean.</p><p>It doesn’t <em>mean</em> anything. It just <em>works</em>.</p><h3>The Deeper Insight</h3><p>At scale, we often confuse complexity with intelligence. But the most robust systems in the world follow a different set of rules:</p><ol><li><strong>Remove unnecessary meaning.</strong></li><li><strong>Avoid assumptions about the future.</strong></li><li><strong>Stay stable by staying “empty.”</strong></li></ol><h3>A Shift in Thinking</h3><p>This changes how you look at the world. Instead of asking, <em>“What does this ID tell me?”</em> you start asking, <em>“Why should this ID need to tell me anything at all?”</em></p><p>Not everything meaningful needs to “mean” something. Some things are powerful precisely because they refuse to be more than they need to be. Aadhaar numbers don’t tell a story. They don’t reveal a pattern. They simply exist — and that is exactly why they work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5ab7a13d847" width="1" height="1" alt=""><hr><p><a href="https://medium.com/technogise/why-your-aadhaar-number-is-supposed-to-be-boring-f5ab7a13d847">Why Your Aadhaar Number Is Supposed to Be Boring</a> was originally published in <a href="https://medium.com/technogise">Technogise</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Vicious Circle: Understanding and Breaking Circular Dependencies]]></title>
            <link>https://medium.com/technogise/the-vicious-circle-understanding-and-breaking-circular-dependencies-bf4e1bfcfc7e?source=rss-b7be625173ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf4e1bfcfc7e</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[code-quality]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[code-smells]]></category>
            <category><![CDATA[circular-dependencies]]></category>
            <dc:creator><![CDATA[satyam saxena]]></dc:creator>
            <pubDate>Tue, 16 Sep 2025 14:34:14 GMT</pubDate>
            <atom:updated>2026-06-19T09:52:21.993Z</atom:updated>
            <content:encoded><![CDATA[<p>My journey to understanding circular dependencies began with a casual code change. I was working on a feature where most of my changes involved two services — let’s call them UserService and ProfileService. At one point, I already had a userId and just needed to fetch the related profile. Instead of writing something new, I checked the ProfileService file, and luckily, there was already a neat little getProfileById function. Great, I used it, and the task moved forward smoothly.</p><p>But then, while scrolling through the same file, I noticed something that made me pause. Some of the functions inside ProfileService were already reaching back into UserService.</p><p><strong>My quick fix had unknowingly created a situation where both services depended on each other. That was the moment I realised I had brushed up against a classic circular dependency, </strong>not an obvious bug, but definitely a design smell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rV5ABFbmL5Jt5N0EepbibA.png" /></figure><p>Nothing broke immediately, the code still ran fine. But it didn’t sit right with me. What if I added one more call the other way? What if someone else on the team, unaware of this hidden relationship, made changes in one service without realising its impact on the other? The more I thought about it, the more it felt like a trap waiting to spring.</p><p>At its core, a circular dependency happens when two or more modules, classes, or even functions rely on each other to function. It’s like a snake eating its own tail. Neither can fully exist without the other, leading to a standstill.</p><h3>How Circular Dependencies Creep In</h3><p>The tricky part about circular dependencies is that they don’t always appear in one big obvious jump. They usually sneak in gradually, through small, reasonable-looking decisions. That’s exactly what happened in my case. I only needed one function from ProfileService. Later, someone else might need one from UserService. Step by step, the two files get tangled.</p><p>Here’s a simplified version of how it happens:</p><pre>// userService.js<br>import { getProfileById } from &quot;./profileService.js&quot;;<br>export function getUserById(userId) {<br>  return { id: userId, name: &quot;Alice&quot; };<br>}<br>export function getUserWithProfile(userId) {<br>  const user = getUserById(userId);<br>  const profile = getProfileById(userId); // &lt;-- getProfileById imports userService, completing the cycle<br>  return { ...user, profile };<br>}<br><br>// profileService.js<br>import { getUserById } from &quot;./userService.js&quot;;<br>export function getProfileById(profileId) {<br>  const user = getUserById(profileId); // This triggers the cycle!<br>  return { id: profileId, bio: &quot;Loves coding&quot;, user };<br>}<br><br>// Running this setup may cause errors like: <br>// TypeError: getUserById is not a function if <br>// Node.js cannot resolve the exports before <br>// one file tries to use the other&#39;s function.</pre><p>At first, both files make sense on their own. But if you look closer:</p><ul><li>userService.js imports profileService.js.</li><li>profileService.js also imports userService.js.</li></ul><p>That’s a <strong>circular dependency</strong>. Each service depends on the other, creating a cycle.</p><p>💡 Notice how natural this looks? You’re just trying to avoid duplicate logic and reuse what’s already there. But suddenly, the design has become fragile.</p><h3>What Does a Circular Dependency Look Like?</h3><p>While the application might sometimes run, in many cases this setup will cause errors at runtime. For example, Node.js may throw TypeError: getUserById is not a function because the dependent module’s exports are incomplete at the time they&#39;re imported.</p><p>At first glance, it doesn’t look like a problem. The application runs fine, the data flows as expected, and you don’t notice any errors. But the risk is lurking beneath the surface:</p><ul><li><strong>Tight Coupling</strong> → The two services are now locked together. Any change in one may ripple unexpectedly into the other.</li><li><strong>Initialisation Issues</strong> → In some languages, a circular dependency can cause a module to load only partially, leading to runtime errors that are hard to trace.</li><li><strong>Reduced Reusability</strong>: When modules are so intertwined, it becomes difficult to reuse one module independently in another project. You end up having to drag along unnecessary baggage.</li><li><strong>Harder Testing</strong> → It becomes difficult to isolate one service in unit tests because it drags the other one along.</li><li><strong>Fragility Over Time</strong> → As the codebase grows, the cycle becomes harder to untangle and makes refactoring painful.</li></ul><p>That’s why circular dependency is considered an <strong>architectural code smell</strong>. It might not bring your system crashing down on day one, but it leaves behind a fragile foundation that’s easy to trip over later.</p><h3>How to Break the Circle</h3><pre>// mediator.js<br>import { getUserById } from &quot;./userService.js&quot;;<br>import { getProfileById } from &quot;./profileService.js&quot;;<br>export function getUserWithProfile(userId) {<br>  const user = getUserById(userId);<br>  const profile = getProfileById(userId);<br>  return { ...user, profile };<br>}<br><br>// Then, neither service imports the other directly,<br>// and both can remain independent for testing and reuse.</pre><p>Breaking circular dependencies often involves rethinking your design and applying solid software engineering principles. Here are some common strategies:</p><h4>Introduce an Interface or Abstraction</h4><p>This is often the most elegant solution. If Module A needs a specific behavior from Module B, and Module B needs a specific behavior from Module A, define an interface for that behavior. Both modules can then depend on the interface, and concrete implementations can be provided elsewhere. For example, instead of a User class depending on an Profile class and vice-versa, both might depend on an IUserNotifier interface and an IProfileProcessor interface, respectively.</p><h4>Adopt an Event-Driven Architecture</h4><p>Instead of direct calls, modules can communicate by publishing and subscribing to events. Module A can emit an event when something happens, and Module B can listen for that event, and vice-versa. This decouples the modules significantly.</p><h4>Use the Dependency Inversion Principle (DIP)</h4><p>A core SOLID principle, DIP states that “high-level modules should not depend on low-level modules. Both should depend on abstractions.” By pushing dependencies toward abstractions, you naturally break circularity.</p><h4>Introduce a New Module (Mediator/Orchestrator)</h4><p>Sometimes, the circularity arises because two modules are trying to do too much. A new, higher-level module can be introduced to mediate the communication between the original two, taking on the responsibility of coordinating their interactions. This mediator then depends on both, but they don’t depend on each other.</p><h4>Refactor and Rescope</h4><p>Sometimes, the simplest solution is to refactor your code. Perhaps the functionality causing the circularity belongs in a different module, or the responsibilities of the existing modules need to be re-evaluated and separated more cleanly.</p><h4>Pass Dependencies as Arguments</h4><p>In some cases, especially with functions, you can break a circular dependency by passing the required dependency as an argument rather than relying on a direct import or global access.</p><h3>Prevention is Key</h3><p>While there are strategies to fix circular dependencies, the best approach is to prevent them in the first place. Adopting good design principles like the <strong>Single Responsibility Principle (SRP)</strong> and the <strong>Dependency Inversion Principle</strong> from the outset can significantly reduce the likelihood of encountering these issues.</p><p>Additionally, tools for <strong>static analysis</strong> can help identify circular dependencies early in the development cycle, allowing you to address them before they become deeply ingrained in your codebase.</p><h3>Conclusion</h3><p>Circular dependencies are a common pitfall that can lead to brittle, hard-to-maintain code. By understanding their causes and applying appropriate design patterns and principles, you can effectively break these vicious circles and build more robust, flexible, and understandable software systems.</p><h3>Next Steps</h3><p>Circular dependencies are just one type of “code smell” that can lead to a fragile codebase. The journey from a good programmer to a great one often involves learning to recognise these design flaws early and addressing them proactively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIrZSxtZzi6XJHpRqtj8Ww.png" /></figure><p>To help you on your journey, here is a more comprehensive list of common code smells. Use this as a checklist or a guide to reflect on your own code.</p><p><strong>A Quick Guide to Common Code Smells</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*udo886Hekb9QC--CkPj6ug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ixo2mRHwc6dDWc2S5Mv9JA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*alqL1cenXVS9vy0SFUFwkg.png" /></figure><p>What’s a code smell you’ve encountered that surprised you the most? Share your stories in the comments below, Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf4e1bfcfc7e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/technogise/the-vicious-circle-understanding-and-breaking-circular-dependencies-bf4e1bfcfc7e">The Vicious Circle: Understanding and Breaking Circular Dependencies</a> was originally published in <a href="https://medium.com/technogise">Technogise</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons from a Ceiling Fan: Why Everything Runs Better When you Care]]></title>
            <link>https://medium.com/technogise/lessons-from-a-ceiling-fan-why-everything-runs-better-when-you-care-f626d5582998?source=rss-b7be625173ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/f626d5582998</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[career-growth]]></category>
            <category><![CDATA[self-care]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[mindset]]></category>
            <dc:creator><![CDATA[satyam saxena]]></dc:creator>
            <pubDate>Wed, 13 Aug 2025 07:26:06 GMT</pubDate>
            <atom:updated>2025-08-13T10:01:15.081Z</atom:updated>
            <content:encoded><![CDATA[<p>The other day, I noticed my ceiling fan was spinning slower than usual. My first thought was a technical one: the capacitor must be bad. Ready to call an electrician, I almost gave up on it, but then decided to try something simple first: I cleaned it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*6xLbyO4O0HFZXbUhdE8bXw.jpeg" /></figure><p>There was a thick layer of dust on the blades, stuck on like it had lived there forever. After a good wipe, I switched it on again… and boom — the fan speed was back to normal.</p><p>No repair. No replacement. Just maintenance.</p><p>That small moment stayed with me for the rest of the day — because it wasn’t just about a fan. It felt like a metaphor for <strong>everything</strong>.</p><h3>Machines Run Smooth When You Care</h3><p>Think about your car. When you wash it regularly, keep it polished, check the oil, and drive it with care — it runs smoothly for years. It responds better, feels better, and rarely lets you down.</p><p>But leave it unattended — one ignored dent, missed servicing, low tire pressure — and suddenly, everything starts breaking down. It’s not the machine’s fault. It’s ours.</p><h3>The Metaphor Extends Beyond Machines</h3><p>The principle of maintenance isn’t just for inanimate objects. Our habits, skills, and even our mindset operate the same way.</p><p>You learn something new — let’s say a language or a coding framework. If you keep using it, even casually, it becomes second nature. But stop practicing, neglect it for months or years, and it becomes something distant. You try to pick it up again and it feels alien. Like you never learned it at all.</p><p>Learning fades without use. Habits decay without practice. And growth withers in neglect.</p><p>It’s not a lack of talent. It’s just dust.</p><h3>The Tech World Doesn’t Let You Sit Still</h3><p>If you’re in IT — whether you’re 25 or 55 — the world around you is changing faster than ever.</p><p>Frameworks, libraries, tools, platforms — something new launches before you finish mastering the old. And the only way to stay relevant isn’t working harder. It’s maintaining your mind like a well-oiled machine.</p><p>Clean the clutter. Learn the trends. Practice the basics. Reflect often.<br>Even the best developers grow obsolete if they stop updating. The difference between the one still building vs. the one struggling at 50? It’s usually not age, but <strong>attention</strong>.</p><h3>Dust Is Natural. So Should Be Cleaning.</h3><p>Dust <strong>will</strong> settle — on fans, on cars, on skills, on minds.<br>That’s not a sign of failure. That’s life.</p><p>But cleaning — regular, mindful maintenance — is a choice.</p><p>You don’t need to overhaul your life every day. You just need to stay aware, take small actions, and give attention to what matters. Whether it’s your fan, your career, or your health — a little care can restore a lot of speed.</p><h3>Final Thought: Be Your Own Technician</h3><p>We often look outside for fixes. We assume something is broken. But many times, things are just dusty. Neglected. Out of sync.</p><p>So next time something feels off — your energy, your productivity, your confidence — don’t rush to replace the part. First, ask: <strong><em>Have I been caring for it lately?</em></strong></p><p>Whether it’s a fan, a career, or your future, everything runs better when you <strong>care</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f626d5582998" width="1" height="1" alt=""><hr><p><a href="https://medium.com/technogise/lessons-from-a-ceiling-fan-why-everything-runs-better-when-you-care-f626d5582998">Lessons from a Ceiling Fan: Why Everything Runs Better When you Care</a> was originally published in <a href="https://medium.com/technogise">Technogise</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Beyond Your Role: Unlocking True Ownership in Tech]]></title>
            <link>https://medium.com/technogise/build-beyond-your-role-unlocking-true-ownership-in-tech-05cc810e8071?source=rss-b7be625173ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/05cc810e8071</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ownership]]></category>
            <category><![CDATA[professional-growth]]></category>
            <category><![CDATA[work-culture]]></category>
            <category><![CDATA[teamwork]]></category>
            <dc:creator><![CDATA[satyam saxena]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 06:11:36 GMT</pubDate>
            <atom:updated>2025-07-29T06:37:35.738Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve all been there: neatly tucked into our job descriptions, completing tasks within the lines. But what if those lines are actually holding us back? Developers code, QAs test, and everyone moves the feature down the pipeline. That identity tends to come with unspoken limits.</p><p><strong>The Role Trap:</strong><br> As developers, we sometimes aim just to get the feature done: implement, test a bit, and ship. “The QA will catch it if there’s anything wrong.” Sound familiar? It’s not laziness — it’s role conditioning. We’ve been told who does what, and we stick to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*njOxkMrZW0n7hd983R1vyQ.jpeg" /></figure><p>This isn’t just a tech problem. Think about <strong>cricket</strong>. Every player has a defined role: batsmen bat, bowlers bowl, and all-rounders do a bit of both. Yet, how often have we seen a dedicated batsman step up to bowl a crucial over when the team needs it most? Or a bowler dig in to score vital runs at the end of an innings?</p><p>These aren’t their primary roles, but in that moment, their <strong>silent ownership</strong> of the team’s success drives them to act. Their unexpected effort often becomes the very reason for a win. We see this same powerful dynamic at play in the world of tech.</p><blockquote><em>Job boundaries exist to keep teams aligned and efficient, and true progress comes when we challenge them with curiosity, ask the tough questions, step up with intention, and take ownership not just individually, but as a team.</em></blockquote><p><strong>Meet Bob:</strong><br> Bob isn’t just a teammate — he’s an attitude. He’s the one who, while implementing a feature, thinks beyond the immediate ticket.</p><p>Rather than stopping at the task list, he asks, “What else could go wrong?” and makes sure to address it, even if it’s “not his job.” On your best day, Bob is you.</p><p><strong>An Example We All Know:</strong><br> You’re working on a feature that needs a data validation. You add it on the frontend — works great. QA tests it — passes. But you know deep down it’s not foolproof. A user with Postman or a faulty client could still break it.</p><p>No one might notice today — but <em>you</em> know.</p><p>So, you add the validation to the backend too. Not because anyone asked, but because <em>you own the outcome</em>. That isn’t just responsibility — it’s integrity. Without that backend validation, a future bug or security vulnerability is almost inevitable, potentially costing the company far more in fixes or reputation damage.</p><p><strong>Why This Matters:</strong><br> Ownership builds trust, prevents failures, and grows careers. It raises the bar across teams. When you work like Bob — even when no one’s watching — you become the kind of teammate who lifts the whole product.</p><p><strong>Takeaway:</strong><br> Being great at your role is expected. But being Bob means you don’t stop there. Bob could be any one of us. You build things that last. You care when no one’s looking. That mindset isn’t just rare — it’s transformative.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05cc810e8071" width="1" height="1" alt=""><hr><p><a href="https://medium.com/technogise/build-beyond-your-role-unlocking-true-ownership-in-tech-05cc810e8071">Build Beyond Your Role: Unlocking True Ownership in Tech</a> was originally published in <a href="https://medium.com/technogise">Technogise</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Endpoint: The Hidden Layers of API Security]]></title>
            <link>https://medium.com/technogise/beyond-the-endpoint-the-hidden-layers-of-api-security-072f6818336b?source=rss-b7be625173ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/072f6818336b</guid>
            <category><![CDATA[idor-vulnerability]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[authorization]]></category>
            <category><![CDATA[api-security]]></category>
            <category><![CDATA[data-security]]></category>
            <dc:creator><![CDATA[satyam saxena]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 06:45:12 GMT</pubDate>
            <atom:updated>2025-07-18T12:42:11.570Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vnm4qcsVM8bE0Mvche0CVg.png" /></figure><p>When it comes to API security, most minds jump straight to authentication and authorisation at the endpoint. And while crucial, these are just the tip of the iceberg. This post dives into the <em>deeper layers</em> of API security, revealing how to protect your data from even authorised users.</p><h3>The Common Assumption: Endpoint-Level Security</h3><p>The standard approach to API security usually covers two things: Authentication and Authorisation. This focus often stems from their straightforward implementation and immediate impact on protecting routes. For most cases, securing an API <em>seems</em> to stop here…</p><p>If a user is authenticated and has access to /items/:id, that’s considered good enough. Right?</p><h3>The Deeper Problem: Data-Level Authorisation</h3><p>Let’s say your system has an API to fetch item details:</p><pre>GET /items/:id</pre><p>A user is authenticated, and they’re authorised to access this endpoint. But the question is — should they have access to <strong>that specific item</strong>?</p><p>Imagine the item has a companyId attribute. The authenticated user also belongs to a company. In that case, users should only be able to access items <strong>where </strong><strong>item.companyId === user.companyId</strong>.</p><p>This is where <strong>resource-level authorisation</strong> becomes essential. It’s not just about whether a user can call an endpoint — it’s about whether they can access the <strong>data behind it</strong>.</p><h3>Going Even Deeper: Field-Level Access Control</h3><p>Let’s say the user is authorised to access the item — does that mean they should see everything in it?</p><p>Not necessarily. Consider role-based visibility:</p><ul><li>A <strong>Manager</strong> role might be allowed to view salaries, internal notes, or audit logs.</li><li>A <strong>Viewer</strong> role might only see public-facing data.</li></ul><p>This is known as <strong>field-level security</strong>. It means the API should return <strong>different views of the same data</strong> based on the user’s role or context. Implementing a view layer to sanitise and filter the response is crucial.</p><h3>Real-World Pitfalls of Ignoring This</h3><ul><li><strong>Over-fetching sensitive data</strong>: APIs might return fields users shouldn’t see because no filtering was applied e.g. exposing an employee’s salary to a general user.</li><li><strong>Broken Access Control (BOLA/IDOR vulnerabilities):</strong> Without resource-level checks, a user authorised to access <em>their own</em> data might easily manipulate IDs to access another organisation’s or user’s sensitive information. This is a common and critical vulnerability.</li><li><strong>Relying on frontend filters</strong>: This is not security. Never trust the client to enforce access rules.</li></ul><h3>Practical Code Pattern (Node.js Example)</h3><p>Here’s a simple example of how to implement resource- and field-level control using Node.js with Express:</p><pre><br>// req.user.companyId and req.user.role would typically come from <br>// a prior authentication/authorization middleware (e.g., JWT decoding)<br><br>// Resource-level check<br>const item = await db.getItem(req.params.id); // Fetch the item from the database<br>if (item.companyId !== req.user.companyId) {<br>  return res.status(403).json({ error: &quot;Access denied&quot; });<br>}<br><br>// Field-level filtering based on role<br>const filterFieldsByRole = (item, role) =&gt; {<br>  if (role === &#39;manager&#39;) return item;<br>  if (role === &#39;viewer&#39;) return {<br>    id: item.id,<br>    name: item.name,<br>    description: item.description<br>  };<br>  return {};<br>};<br>const filteredItem = filterFieldsByRole(item, req.user.role);<br>res.json(filteredItem);</pre><p>Note: req.user typically holds user details extracted from an authentication token or session after a successful authentication step.</p><h3>Anti-Patterns to Avoid</h3><h3><em>❌ </em><strong><em>Common Mistakes</em></strong></h3><ul><li>Trusting frontend for access filtering</li><li>Returning raw database records (SELECT *) without field filtering</li><li>Doing access checks <em>after</em> fetching sensitive data from the database: This is inefficient and still exposes sensitive data to your application layer longer than necessary. Ideally, filter at the query level or before the data is fully materialised.</li><li>Exposing internal sequential or predictable object IDs/references (e.g., userId = 1, orderId = 123): Use UUIDs or obfuscated IDs to prevent enumeration attacks, where an attacker guesses valid IDs.</li></ul><h3>API Security Checklist (Server-Side)</h3><blockquote><em>✅ </em><strong>Enforce Authentication</strong> for all sensitive endpoints (no unauthenticated access to private APIs).</blockquote><blockquote><em>✅ </em><strong>Role-Based or Policy-Based Authorisation</strong> implemented at:</blockquote><blockquote>— Endpoint level</blockquote><blockquote>— Resource level (data ownership checks)</blockquote><blockquote>— Field level (role-based visibility)</blockquote><blockquote><em>✅ </em><strong>Use the Principle of Least Privilege</strong> — users should only see what they need.</blockquote><blockquote><em>✅ </em><strong>Apply Secure Defaults</strong> — deny access by default when unsure.</blockquote><blockquote><em>✅ </em><strong>Never Trust the Client</strong> for access enforcement.</blockquote><blockquote><em>✅ </em><strong>Validate Input Strictly</strong> — prevent injection attacks (SQL/NoSQL/Command).</blockquote><blockquote><em>✅ </em><strong>Sanitise Responses</strong> — remove sensitive fields before sending data.</blockquote><blockquote><em>✅ </em><strong>Paginate Large Responses</strong> — to avoid accidental data leaks.</blockquote><blockquote><em>✅ </em><strong>Log and Monitor</strong> failed or suspicious access attempts.</blockquote><blockquote><em>✅ </em><strong>Don’t Leak Info in Errors</strong> — return generic messages for unauthorised access.</blockquote><blockquote><em>✅ </em><strong>Use HTTPS/TLS Everywhere</strong> — no plain HTTP for APIs.</blockquote><blockquote><em>✅ </em><strong>Rotate and Secure Secrets</strong> (API keys, JWT signing keys) regularly.</blockquote><h3>Encourage Secure Defaults</h3><p>A key principle of secure design:</p><blockquote><em>If a user’s permissions are unclear — deny access by default.<br>If a field is not explicitly allowed for a role — don’t return it.</em></blockquote><p>Secure defaults protect against future gaps in role mapping or logic.</p><h3>Final Thoughts</h3><p>Securing APIs is not just about who can hit what endpoint. Real security drills down to what data is accessible, by whom, and to what extent. If your system handles sensitive data or supports multiple roles and organisations, make sure your API security model supports those real-world complexities.</p><p>Because at the end of the day, an endpoint might be secure — but the data behind it can still leak if you’re not careful. <strong>Prioritise data-level security in your API design — your users (and their data) will thank you.</strong></p><p><strong>Note:</strong> If you’ve ever been surprised by a seemingly safe API returning more than expected, this blog was written for you. Let’s build secure systems, not just secure routes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=072f6818336b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/technogise/beyond-the-endpoint-the-hidden-layers-of-api-security-072f6818336b">Beyond the Endpoint: The Hidden Layers of API Security</a> was originally published in <a href="https://medium.com/technogise">Technogise</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sprint Deadlines: How to Make Them Motivating Instead of Mental Burdens]]></title>
            <link>https://medium.com/technogise/sprint-deadlines-how-to-make-them-motivating-instead-of-mental-burdens-1153be0d152d?source=rss-b7be625173ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/1153be0d152d</guid>
            <category><![CDATA[retrospectives]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[deadlines]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[satyam saxena]]></dc:creator>
            <pubDate>Wed, 25 Jun 2025 13:14:02 GMT</pubDate>
            <atom:updated>2025-06-26T05:01:04.244Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“Deadlines are either your best coach or your worst critic.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DMJgNpczQUjRqEapK0hK_A.png" /></figure><p>In the scrum world, time is sliced into neat chunks called <strong>Srints</strong> — usually lasting one month or less. At the end of every sprint, there’s a <strong>retrospective</strong>: a chance to breathe, reflect, and improve. Sounds structured, right?</p><p>But within this structure lies a silent debate — <strong>do sprint deadlines really help us grow, or are they a hidden source of stress and burnout?</strong></p><p>Let’s open this up as a conversation between two developers, Alex and Sam, during a casual coffee break after sprint planning.</p><h3>☕ Alex (Pro-Deadline)</h3><p>“You know what, I kind of <em>need</em> deadlines. Without them, I’d just keep perfecting things forever. Having that end date makes me prioritise, plan better, and stay focused. Sprints teach you time-boxing and that’s a life skill.”</p><blockquote><em>“Remember that bug I kept procrastinating on? The deadline finally made me fix it in two days. Without the push, I’d still be polishing the UI instead.”</em></blockquote><h3>☕ Sam (Deadline Skeptic)</h3><p>“I get that. But have you ever had a task spill over? Or worse — when things go wrong and you miss a deadline even after working sincerely? It hits hard. It’s not just about the work — it feels personal. Like I failed.”</p><blockquote><em>“One sprint spill, and suddenly you’re questioning your competence. That kind of pressure isn’t always productive. It’s exhausting.”</em></blockquote><h3>🧠 The Psychology Behind It</h3><ul><li>According to <strong>Temporal Motivation Theory</strong>, urgency can boost focus — but also trigger anxiety when tasks pile up.<br>🔗 <a href="https://en.wikipedia.org/wiki/Temporal_motivation_theory?utm_source=chatgpt.com">Temporal Motivation Theory — Wikipedia</a></li><li><strong>Parkinson’s Law</strong> tells us work expands to fill the time available, so deadlines <em>can</em> make us sharper.<br>🔗 <a href="https://en.wikipedia.org/wiki/Parkinson%27s_law?utm_source=chatgpt.com">Parkinson’s Law — Wikipedia</a></li><li><strong>Procrastination and missed deadlines</strong> often lead to guilt, self-doubt, and reduced well-being.<br>🔗 <a href="https://en.wikipedia.org/wiki/Procrastination?utm_source=chatgpt.com">Procrastination — Wikipedia</a></li><li>While deadlines can create pressure, they also offer focus, structure, and most importantly, <strong>accountability</strong> — a shared sense of responsibility that drives progress.</li></ul><h3>🛠️ How Can Sprint Planning Be Improved?</h3><blockquote><em>If deadlines are affecting morale, maybe it’s the </em>way<em> we’re planning, not the deadline itself.</em></blockquote><h3>✅ 1. Break Down the Work (More Than You Think)</h3><p>Large backlog items= large risks. Breaking work into <strong>smaller, testable chunks</strong> allows better estimation and earlier feedback.</p><h3>✅ 2. Buffer Time Isn’t Laziness</h3><p>Always plan for slack. Not every hour should be booked.</p><blockquote><em>📌 Google’s Project Aristotle found that </em>psychological safety<em> — the ability to take risks without fear — is the #1 predictor of high-performing teams.</em></blockquote><h3>✅ 3. Sprint Isn’t for Everything</h3><p>Don’t overload the sprint with every wish list item.</p><h3>✅ 4. Talk Capacity Honestly</h3><p>Sick leave, meetings, releases? Count them. Don’t pretend you’re at 100% when you’re at 65%. It’s honest, not weak.</p><h3>🧍‍♂️ And If It’s On You? How to Stay Healthy &amp; Productive</h3><p>When the weight is on your shoulders and you want to avoid being demotivated or burnt out:</p><h3>💡 1. Maintain a journal</h3><p>Keep a rough log to compare what you thought vs. what happened. This helps improve your personal planning instincts.</p><h3>💡 2. Start With the Hardest Task First</h3><p>Known as the <strong>Eat That Frog</strong> technique — starting with the toughest work reduces procrastination.</p><h3>💡 3. Protect Focus Blocks</h3><p>Use <strong>Pomodoro</strong> (25–30 min focus, 5 min break) or <strong>time blocking</strong> to minimise distractions.</p><h3>💡 4. Reflect, Don’t Ruminate</h3><p>Missing a sprint task isn’t failure. Learn, adjust, and move on. Self-forgiveness improves long-term productivity.</p><h3>🤔 Back to Alex and Sam</h3><p><strong>Alex:</strong><br>“So maybe deadlines work when you’re in control of your workload. But when dependencies pile up, or scope changes last minute, the deadline feels like a trap.”</p><p><strong>Sam:</strong><br>“Exactly. That’s why I think retros should also ask, ‘Did the way we set goals this sprint help or hurt us?’ Not just what we did.”</p><p><strong>Alex:</strong><br>“Agreed. Maybe the goal isn’t about hitting every deadline, but about learning how to handle time without letting it handle us.”</p><h3>🧠 Why Planning Isn’t Just About Efficiency — It’s About Trust</h3><p>Good sprint planning is less about micromanaging and more about creating an environment where people feel safe to do their best work.</p><blockquote><strong><em>“Locks aren’t made to stop thieves — they exist to keep honest people from wavering. After all, breaking a lock is never a challenge for someone intent on stealing.”</em></strong></blockquote><p>Likewise, deadlines aren’t there to catch slackers — they’re meant to <strong>guide those who care</strong> and help them stay focused without fear. When trust is high and plans are realistic, people naturally stay aligned, not because of pressure, but because of purpose.</p><h3>🪄 Final Takeaway</h3><p>Deadlines aren’t inherently good or bad. Like any tool, their impact depends on <strong>how they’re used</strong> — and how much <strong>psychological safety</strong> the team has.</p><p>So next time a ticket spills over, don’t just ask “Why didn’t we finish?”<br>Ask, “What did we learn — and how can we set ourselves up better next time?”</p><p>After all, sprints are not races. They’re <strong>loops of learning</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1153be0d152d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/technogise/sprint-deadlines-how-to-make-them-motivating-instead-of-mental-burdens-1153be0d152d">Sprint Deadlines: How to Make Them Motivating Instead of Mental Burdens</a> was originally published in <a href="https://medium.com/technogise">Technogise</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a culture of Code Care — Small Improvement, Big Impact]]></title>
            <link>https://medium.com/technogise/building-a-culture-of-code-care-small-improvement-big-impact-13570bfe63e2?source=rss-b7be625173ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/13570bfe63e2</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[refactoring]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[team-collaboration]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <dc:creator><![CDATA[satyam saxena]]></dc:creator>
            <pubDate>Fri, 23 May 2025 10:05:59 GMT</pubDate>
            <atom:updated>2025-05-28T06:29:24.640Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a culture of Code Care — Small Improvements, Big Impact</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*rP8QrUVHYL3ZaiqEYlCzhQ.png" /></figure><p>In a real-world project, things move fast. Requirements land with tight deadlines, and developers are often expected to turn around features within a sprint. In that rush, it’s not always possible to give every piece of code the attention it truly deserves.</p><ul><li>Naming might be “good enough for now.”</li><li>Functions grow beyond their original scope.</li><li>That edge case? Let’s just handle it quickly and move on.</li></ul><p>These shortcuts are understandable — sometimes even necessary. But over time, they add up. What made sense in the moment becomes confusing a week later. What seemed harmless turns into a debugging nightmare.</p><p>Clean, readable code isn’t just nice to have — it’s essential for collaboration. It helps your teammates, your future self, and even the new person who joins the team next month.</p><p><em>Refactoring is like untangling cables — the structure matters.</em></p><h3>The Challenges of Refactoring 🧩</h3><p>“Code is like humor. When you have to explain it, it’s bad.”<br> — <em>Cory House</em></p><p>Refactoring is always worth it — but it’s not always easy.</p><ul><li><strong>Tight deadlines</strong> leave little breathing room to polish things.</li><li><strong>Context switching</strong> between features and cleanup is draining.</li><li><strong>Original authors move on</strong>, leaving behind unknowns.</li><li><strong>Businesses focus on shipping features</strong>, not tidying up.</li></ul><p>From a business standpoint, features have a clear ROI. Refactoring? Not so much — at least, not immediately. But poor code quality causes <em>invisible drag</em> on productivity and morale.</p><p><em>Tech debt is the iceberg under your ship — out of sight, but dangerous.</em></p><h3>Continuous Refactoring: The Real Goal 🔁</h3><p>Refactoring shouldn’t be a ticket or a post-sprint afterthought — it should be a mindset, built into the way we write code every day.</p><ul><li>When you’re debugging a method, take a moment to clean it up.</li><li>If you come across a confusing variable, rename it for clarity.</li><li>Spot some dead code during testing? Remove it.</li></ul><p>These small, continuous actions build a habit of care that keeps the codebase healthy without needing a separate process or permission.</p><p>Small wins, done consistently, become cultural.</p><h3>Friday Refactoring — One Hour, Real Impact ⏱️</h3><p>To make continuous refactoring a habit, we started a simple practice:</p><p><strong>Friday Refactoring<br></strong> A one-hour call every Friday. No features. Just improvements.</p><h3>What We Work On:</h3><p>We pick small but high-impact areas that benefit from discussion and shared input:</p><ul><li>🧠 <strong>Simplifying large or messy methods</strong> that have become hard to test or maintain</li><li>🔄 <strong>Introducing lightweight design patterns</strong> in places that need structure</li><li>⚠️ <strong>Refactoring fragile or “scary” parts of the code</strong> that no one wants to touch alone</li><li>🚪 <strong>Improving boundaries between modules or services</strong> to make the system more modular and understandable</li><li>🧼 <strong>Cleaning up code with inconsistent logic paths</strong>, unclear flow, or nested conditionals</li><li>💬 <strong>Revisiting legacy decisions</strong> to realign with how the system has evolved</li></ul><p>It’s not about big rewrites. It’s about reducing friction.</p><h3>Why Just One Hour?</h3><p>That limit is intentional.<br> It prevents scope creep. It respects everyone’s time.</p><p>One hour can:</p><ul><li>Prevent hours of confusion next week</li><li>Make PR review smoother and ease up the release</li><li>It gives everyone, especially new team members, a chance to focus on quality in small, manageable chunks</li></ul><h3>Mob-Pairing While Refactoring 🧑‍💻👩‍💻</h3><p>We do Friday Refactoring sessions as a <strong>mob-pairing activity</strong>:</p><ul><li>One person shares their screen.</li><li>Everyone joins in with ideas.</li><li>We take turns navigating and driving.</li></ul><p>Benefits?</p><ul><li>Team sees different perspectives</li><li>We discuss <strong>trade-offs and decisions</strong> in real time</li><li>It builds a shared understanding of <em>why</em> things are the way they are</li><li><strong>New team members</strong> learn the codebase by watching and participating</li></ul><p>Mob-refactoring lowers the intimidation factor. It creates a safe space for questions, discussions, and mentorship.</p><p>And honestly — it’s a great way to get to know your teammates better and strengthen team spirit.</p><p><em>Refactoring together = learning together.</em></p><h3>The Real Win: Building the Habit 🧠</h3><p>Friday Refactoring is a <em>small step</em>.<br>But the real win is when people start doing it naturally, all week long.</p><p>If every developer cleans up one thing when touching a file — without needing a meeting or a reminder — we’re winning.</p><p>“That’s when a team becomes self-sustaining.</p><p>That’s when the codebase becomes humane.”</p><p>No matter the project, this habit helps the team grow stronger.</p><h3>Final Thoughts</h3><p>Friday Refactoring isn’t about perfection.<br>It’s about <em>intentional, incremental progress</em>.</p><p>It’s about:</p><ul><li>Developers who care about craftsmanship</li><li>Teams that help each other level up</li><li>Codebases that don’t decay quietly</li></ul><p>So try it.<br>Start today — fix that little thing you noticed but skipped.</p><p>You’ll be surprised how far it takes you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13570bfe63e2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/technogise/building-a-culture-of-code-care-small-improvement-big-impact-13570bfe63e2">Building a culture of Code Care — Small Improvement, Big Impact</a> was originally published in <a href="https://medium.com/technogise">Technogise</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A thought that stuck after a movie night]]></title>
            <link>https://medium.com/@satyam2saxena/a-thought-that-stuck-after-a-movie-night-cdcd523b8e5b?source=rss-b7be625173ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdcd523b8e5b</guid>
            <category><![CDATA[filmmaker]]></category>
            <category><![CDATA[movıe]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[smoking]]></category>
            <category><![CDATA[rape]]></category>
            <dc:creator><![CDATA[satyam saxena]]></dc:creator>
            <pubDate>Tue, 13 May 2025 16:06:48 GMT</pubDate>
            <atom:updated>2025-05-14T07:12:51.443Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, my family and I went to the theatre to watch a movie titled <em>Jaat</em>. It was an action thriller, and I genuinely enjoyed it. The pace, the performances, and the dialogue ‘<em>Sorry bol</em>’ kept us all engaged. But even after the movie ended and we returned home, one particular scene stayed with me — a disturbing one involving a rape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1hdbD9RgYJoBwyeo" /></figure><p>It wasn’t the graphic nature of the scene that lingered, but the thought it provoked. Throughout the movie, whenever a character smoked, a mandatory health warning appeared at the bottom of the screen: <em>“Smoking is injurious to health.”</em> It’s a common sight now in Indian cinema, and the intent is to discourage viewers from adopting harmful habits. But what disturbed me was this: why don’t we see a similar warning for scenes that involve sexual violence?</p><p>Rape is not just a crime — it is a life-altering trauma for the victim, affecting mental health, emotional stability, and overall wellbeing. And for the perpetrator, it leads to severe legal consequences under the Bharatiya Nyaya Sanhita(BNS). For instance, Section 63, Section 64 and many more. These are not just rules written on paper — these are the laws that protect our society.</p><p>So why aren’t these consequences highlighted on screen the way we do with smoking or alcohol? A simple on-screen message during such scenes could read:<br> <em>“Rape is a criminal offence under BNS Section 64. It causes serious psychological harm to victims and can result in long-term imprisonment.”</em></p><p>Cinema has always been a powerful medium of influence. We say that people learn by watching — and that’s why those smoking and alcohol warnings exist. So isn’t it time we started doing the same for scenes involving sexual violence? Because while responsible filmmakers try to raise awareness, others may unintentionally glorify or normalise such acts, which can inspire misguided minds.</p><p>A message might not fix everything, but it’s a step. A reminder. A small act of responsibility from the filmmakers to the audience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdcd523b8e5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Experience with DynamoDB Streams Filter Events]]></title>
            <link>https://medium.com/technogise/my-experience-with-dynamodb-streams-filter-events-52bb50ee30cf?source=rss-b7be625173ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/52bb50ee30cf</guid>
            <category><![CDATA[dynamodb-stream]]></category>
            <category><![CDATA[filter-events]]></category>
            <dc:creator><![CDATA[satyam saxena]]></dc:creator>
            <pubDate>Wed, 30 Apr 2025 08:58:01 GMT</pubDate>
            <atom:updated>2025-04-30T09:42:21.353Z</atom:updated>
            <content:encoded><![CDATA[<p>In a setup involving DynamoDB Streams and Lambda, it’s useful to trigger actions whenever data changes on a specific table. This can improve response times for end users, as the process runs asynchronously.</p><p>However, there is a small but significant inefficiency:</p><p>In this structure, not every change to a DynamoDB item actually need to trigger a Lambda. At times we only care about a subset of attributes, but DynamoDB Streams would trigger the Lambda every time — regardless of whether the updated attribute is relevant. Insertions, updates on irrelevant fields — everything trigger the sync Lambda. This seems wasteful, especially when considering the cost of Lambda invocations.</p><p>This leads us to explore filter events on DynamoDB Streams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P-PEHV0lcnZkPYQnMKf-0g.jpeg" /></figure><p><strong>What are Filter Events?</strong></p><p>Think of filter events as a smart gatekeeper for your Lambda triggers.</p><p>Instead of invoking the Lambda for every single change in the stream, you can define rules such as:</p><ul><li>“Only invoke me if the event is an INSERT,” or</li><li>“Only if a specific attribute equals a specific value.”</li></ul><p><strong>Important to know:</strong><br> It accepts up to <strong>5 filter patterns by default</strong>, and up to <strong>10 with a quota extension</strong>. If an event matches <em>at least one</em> pattern, the Lambda will be triggered.</p><p>List of supported filter operator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7C1XQBrJrli725eFjxCkXg.png" /><figcaption>Source of image — AWS</figcaption></figure><p><strong>How We Used Filter Events</strong></p><p>We applied a simple set of filter rules to the Lambda trigger:</p><ul><li>Only invoke the Lambda for MODIFY events.</li><li>Additionally, filter based on key attribute values when necessary, in our case invitationStatus.</li></ul><p><strong>The impact was huge:</strong></p><ul><li>We significantly reduced the number of Lambda invocations, as the table contains around 100 attributes, but the Lambda is triggered by changes to only a single attribute.</li><li>Saved on AWS costs.</li><li>Reduced processing load, making the system faster and lighter.</li></ul><p><strong>Example: Filter Events Setup in Serverless Framework</strong></p><p>Here’s how we defined it using the Serverless Framework (serverless.yml):</p><pre>functions:<br>  dynamoDbStreamHandler:<br>    handler: handler.preprocess<br>    events:<br>      - stream:<br>          arn: streamArn<br>          filterPatterns:<br>            - eventName: [MODIFY]<br>              dynamodb:<br>                NewImage:<br>                  invitationStatus:<br>                    S: [ACCEPTED]</pre><p>Which converts in below format in console:</p><pre>{ &quot;eventName&quot;: &quot;MODIFY&quot;, &quot;dynamodb&quot; : { &quot;NewImage&quot; : { &quot;invitationStatus&quot; : { &quot;S&quot; : [ &quot;ACCEPTED&quot; ] } } } }</pre><p><strong>Quick breakdown:</strong></p><ul><li>First filter: Only trigger Lambda for MODIFY events.</li><li>Second filter: Only if the invitationStatus attribute (a String) equals &quot;ACCEPTED&quot;</li></ul><p>You can customise and combine more filters based on your table structure and needs!</p><p><strong>Common Mistakes to Watch Out For 🔥</strong></p><p>Here are a few things that can trip you up while setting up filter events:</p><p><strong>1. Incorrect Attribute Path</strong></p><p>Use the correct path format for DynamoDB records.</p><p>DynamoDB event filtering doesn’t support numeric operators (like numeric equals or numeric range). Even if items are stored as numbers, they appear as strings in the JSON event record. For example:</p><pre>&quot;quantity&quot;: { &quot;N&quot;: &quot;50&quot; }</pre><p>We know it’s a number because of the &quot;N&quot; property.</p><p>If you miss the N, the filter won’t match!</p><p><strong>2. Event Name Matching is Case-Sensitive</strong></p><p>Event names must be in <strong>ALL CAPS</strong>.<br> Use INSERT, MODIFY, REMOVE — not Insert or Modify.</p><p><strong>3. Filters are ANDed Together</strong></p><p>Multiple conditions in a filter pattern are combined with AND logic — <strong>all</strong> conditions must be satisfied for the Lambda to trigger.</p><p>So: it must be a MODIFY event <strong>and</strong> the attribute condition must be met.</p><p><strong>4. Local Testing Can Be Limited</strong></p><p>Some local DynamoDB emulators don’t fully support Streams + filtering.</p><p>Always test your filter configurations directly in AWS.</p><p>5.<strong>Using the Exists operator</strong></p><p>Because of the way that JSON event objects from DynamoDB are structured, using the Exists operator requires special care. The Exists operator only works on leaf nodes in the event JSON, so if your filter pattern uses Exists to test for an intermediate node, it won’t work. Consider the following DynamoDB table item:</p><pre>{<br>  &quot;ID&quot;: {&quot;S&quot;: &quot;UID&quot;},<br>  &quot;IdentityDocType&quot;: {&quot;L&quot;: [<br>      {&quot;S&quot;:&quot;Aadhar&quot;},<br>      {&quot;S&quot;:&quot;Passport&quot;},<br>      {&quot;S&quot;:&quot;Voter Card&quot;}<br>    ]<br>  }<br>}</pre><p>You may want to check if &quot;IdentityDocType&quot; exists:</p><pre>{ &quot;dynamodb&quot; : { &quot;NewImage&quot; : { &quot;IdentityDocType&quot; : [ { &quot;exists&quot;: true } ] } } }</pre><p>However, this filter pattern would never return a match because &quot;IdentityDocType&quot; is not a leaf node. Correct format to check existance would be:</p><pre>{ &quot;dynamodb&quot; : { &quot;NewImage&quot; : {&quot;IdentityDocType&quot;: {&quot;L&quot;: {&quot;S&quot;: [ {&quot;exists&quot;: true } ] } } } } }</pre><p><strong>Final Thoughts</strong></p><p>DynamoDB Streams + Lambda is a powerful combination for async processing, especially when you don’t want to implement an SQS queue. But if you’re not careful, you might pay for a lot of unnecessary noise.</p><p>Using filter events helps you focus only on the changes that actually matter to your app — saving costs, reducing processing, and keeping your architecture clean.</p><p><strong>Small change, massive impact. 🚀</strong></p><p><strong>Thanks for reading!</strong><br> Have you used filter events in your projects? Faced similar challenges? Drop a comment below! 👇</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52bb50ee30cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/technogise/my-experience-with-dynamodb-streams-filter-events-52bb50ee30cf">My Experience with DynamoDB Streams Filter Events</a> was originally published in <a href="https://medium.com/technogise">Technogise</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>