<?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 Shiva_kalyankar on Medium]]></title>
        <description><![CDATA[Stories by Shiva_kalyankar on Medium]]></description>
        <link>https://medium.com/@shivakalyankar13?source=rss-7cec442e1e4e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1fZx8i91nz_xKT7FUQzqhg.jpeg</url>
            <title>Stories by Shiva_kalyankar on Medium</title>
            <link>https://medium.com/@shivakalyankar13?source=rss-7cec442e1e4e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:20:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shivakalyankar13/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[Multiple AI Agents, One Decision. Who Takes Responsibility?]]></title>
            <link>https://medium.com/@shivakalyankar13/multiple-ai-agents-one-decision-who-takes-responsibility-bf3c7d96ab26?source=rss-7cec442e1e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf3c7d96ab26</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[decision-making]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[goals]]></category>
            <dc:creator><![CDATA[Shiva_kalyankar]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 20:03:30 GMT</pubDate>
            <atom:updated>2026-11-21T20:03:30.087Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C4x4J4JVJtyhqg5gLCzPEQ.png" /></figure><p><em>If AI agents collaborate like a team, shouldn’t they also have a way to handle disagreements, mistakes, and accountability?</em></p><p>Imagine a team where one person researches, another develops, someone tests, and another reviews the final output.</p><p>Now imagine that nobody in this team is human. Every member is an AI agent.</p><p>One agent delegates tasks to another. Multiple agents work in parallel, exchange information, review results, and contribute towards a common goal.</p><p>Sounds like a well-organised team.</p><p>But what happens when two agents disagree? What if one makes a mistake and another accepts it? What if every agent agrees on a solution, but the solution itself is wrong?</p><p><strong>Who takes responsibility for the final outcome?</strong></p><p>I don’t think adding another agent to supervise the existing agents is always the answer.</p><p>Perhaps the solution starts with how we design and control these systems.</p><p>Here are three things I believe can make multi-agent systems more reliable.</p><h3>1. Guardrails — Give Every Agent Boundaries</h3><p>Think about a software application.</p><p>We don’t give every component unrestricted access to everything. We define permissions, responsibilities, and limitations.</p><p>Why should AI agents be any different?</p><p>A developer agent might be allowed to generate code but not directly deploy it to production. A testing agent can identify failures but shouldn’t independently modify business requirements.</p><p>Every agent should know what it can do, what it cannot do, and when it must stop and ask for intervention.</p><p><strong>More freedom without boundaries can create more problems than solutions.</strong></p><h3>2. Accountability &amp; Traceability — Keep Track of Decisions</h3><p>Imagine a production issue caused by an incorrect decision made somewhere between five collaborating agents.</p><p>Where do we start investigating?</p><p>We need to know which agent made the decision, what information it used, which agent reviewed it, and how the final outcome was approved.</p><p>Think of it like maintaining logs in a software application.</p><p>Every important decision should leave a trace.</p><p>Agents may share responsibilities, but the overall workflow must have a clearly identified accountable owner.</p><p><strong>If we cannot trace a decision, identifying where things went wrong becomes much harder.</strong></p><h3>3. Independent Validation — Don’t Confuse Agreement With Correctness</h3><p>Here’s an interesting possibility.</p><p>What if five AI agents agree on the same answer, but all five are wrong?</p><p>Agreement doesn’t automatically establish correctness.</p><p>Instead of allowing agents to simply approve each other’s responses, important decisions should go through independent validation.</p><p>Run actual tests. Verify results against trusted sources. Challenge assumptions. Escalate unresolved disagreements.</p><p>For high-impact decisions, introduce human approval.</p><p><strong>The goal shouldn’t be to make every agent agree. It should be to make sure the final decision is reliable.</strong></p><h3>Bringing It Together</h3><p>These three ideas work together:</p><ul><li>Guardrails define what agents are allowed to do.</li><li>Accountability &amp; Traceability help us understand who made which decisions.</li><li>Independent Validation checks whether those decisions are actually correct.</li></ul><p>None of these mechanisms alone guarantees a perfect system. But together, they provide a stronger foundation for designing reliable multi-agent workflows.</p><h3>One Final Thought</h3><p>We are becoming better at building AI agents that can collaborate, delegate, and solve complex tasks.</p><p>But perhaps our next challenge isn’t about creating more agents or making them communicate faster.</p><p>It’s about designing systems where every agent has boundaries, every important decision can be traced, and every critical outcome is validated.</p><p><strong>Because building a team of intelligent agents is one thing. Building a team whose decisions we can trust is another.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf3c7d96ab26" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Didn’t Notice When Normal Changed.]]></title>
            <link>https://medium.com/@shivakalyankar13/we-didnt-notice-when-normal-changed-9e94e2c411a6?source=rss-7cec442e1e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e94e2c411a6</guid>
            <category><![CDATA[capabilities]]></category>
            <category><![CDATA[bengaluru]]></category>
            <category><![CDATA[sleep]]></category>
            <category><![CDATA[india]]></category>
            <category><![CDATA[personal-development]]></category>
            <dc:creator><![CDATA[Shiva_kalyankar]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 18:04:19 GMT</pubDate>
            <atom:updated>2026-11-20T18:04:19.147Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How technology and modern lifestyles are silently reshaping our everyday habits.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*qyxaEZlF3R2SJxYrmeJPKA.png" /></figure><p>I’m 22, and recently I noticed something about myself.</p><p>A few years ago, sleeping at 9:30 PM was completely normal for me. But today, without consciously deciding to change that habit, my bedtime has gradually shifted to 11 PM or even midnight.</p><p>Initially, I thought it was just me.</p><p>So I started asking my friends and colleagues about their sleeping habits. Interestingly, many of them shared similar experiences. Their sleeping schedules had also shifted compared to a few years ago.</p><p>Here’s something even more interesting: whenever I visit my hometown, I naturally find myself sleeping earlier. But once I’m back in Bengaluru, the midnight routine returns.</p><p><strong>Same person. Different environment. Different habits.</strong></p><p>That made me wonder: What exactly has changed?</p><h3>Is technology changing more than just our lifestyle?</h3><p>Over the past few years, India has experienced an incredible technology boom. Smartphones, social media, OTT platforms, food delivery, instant messaging and digital services have become deeply integrated into our everyday lives.</p><p>Everything is accessible, almost instantly.</p><p>But somewhere along the way, our expectations and routines have changed too.</p><p>We no longer necessarily wait for entertainment; we scroll for it. We don’t always experience boredom; we immediately reach for our phones. Even when the day is over, our digital world doesn’t seem to have a closing time.</p><p>I started exploring research around this subject and came across studies examining smartphone usage, sleep quality, attention fragmentation and the changing lifestyles of young Indians.</p><p>Some findings suggest associations between excessive screen usage and sleep-related problems. Others explore how constant digital interruptions can affect our attention.</p><p>It made me think:</p><p><strong>We built technology to make our lives easier. But are we also unconsciously reorganising our lives around it?</strong></p><p>Perhaps the concern isn’t technology itself. It’s how naturally we’ve started accommodating it in almost everything we do.</p><h3>Three little changes I’m trying to make</h3><p>I’m not planning to disconnect from technology. Just trying to make a little more room for life beyond screens.</p><p><strong>01. A 6 AM experiment</strong></p><p>Planning to wake up at 6 AM and practise yoga. Haven’t started yet, but hopefully soon! 😄</p><p><strong>02. Finding joy in little things</strong></p><p>Started cooking and going on night rides, simply to enjoy nature and the little things around me.</p><p><strong>03. More conversations, more discoveries</strong></p><p>Spending more time talking to people and exploring different interests and capabilities within myself.</p><p>Small changes, but hopefully meaningful ones!</p><h3>One final thought</h3><p>Technology will continue evolving, and so will our lifestyles. That’s inevitable.</p><p>But perhaps we should occasionally pause and ask ourselves whether the habits we’re developing are actually the habits we want.</p><p>After all, we shouldn’t have to lose control of our everyday routines just because everything around us has become more convenient.</p><p><strong>Technology should adapt to our lives. Our lives shouldn’t have to revolve entirely around technology.</strong></p><p>When did your normal change?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e94e2c411a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Software Has a Version. But Who Manages It?]]></title>
            <link>https://medium.com/@shivakalyankar13/your-software-has-a-version-but-who-manages-it-34bc51b04c61?source=rss-7cec442e1e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/34bc51b04c61</guid>
            <category><![CDATA[evolution]]></category>
            <category><![CDATA[artifactory]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Shiva_kalyankar]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 15:52:20 GMT</pubDate>
            <atom:updated>2026-11-14T15:52:20.830Z</atom:updated>
            <content:encoded><![CDATA[<p><em>On software evolution, dependencies, Maven, plugins and the invisible management system behind our code.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VI4fS3yKfJ_jIqjk6MW_FQ.png" /></figure><h3>00.1 — A Number That Tells a Story</h3><p>Let’s start somewhere familiar.</p><p>You pick up your phone one morning and see a notification:</p><p><strong>A new software update is available.</strong></p><p>You update from Android 14 to Android 15. A few things change. Perhaps there’s a new feature, a security improvement, a redesigned interface or a bug that no longer exists.</p><p>A few months later, another update arrives.</p><p>The same happens with browsers, applications, operating systems and almost every piece of software we interact with.</p><p>But here’s something interesting.</p><p>Have you ever wondered what happens when an application needs to interact with another application that has also evolved through multiple versions?</p><p>Or when one piece of software depends on ten other pieces of software, each having its own release history?</p><p>That’s when version management becomes more interesting than just looking at a number.</p><h3>00.2 — Software Doesn’t Evolve Alone</h3><p>Let’s move away from smartphones and enter a developer’s workspace.</p><p>Imagine building a Java application.</p><p>You start with Java, but Java alone isn’t necessarily enough to build everything you need.</p><p>You might use Spring Boot for your application, PostgreSQL for database connectivity, Jackson for JSON processing and several other libraries for different functionalities.</p><p>And that’s not all.</p><p>You also have tools responsible for compiling your code, running tests, packaging your application and generating reports.</p><p>Now look at what you’ve assembled:</p><ul><li>A JDK with its own version.</li><li>A framework with its own version.</li><li>Multiple dependencies with their own versions.</li><li>Build plugins with their own versions.</li><li>Internal libraries potentially maintained by other teams.</li></ul><p>Your application is no longer just your code.</p><p><strong>It’s an ecosystem of software components, and every component has a lifecycle of its own.</strong></p><p>This raises a question:</p><p>How do we make sure all these components work together without turning our project into a compatibility nightmare?</p><h3>00.3 — Decoding the Language of Versions</h3><p>Before managing versions, we should understand how they’re represented.</p><p>Consider this:</p><p><strong>3.4.2</strong></p><p>It might look like three random numbers, but in Semantic Versioning (SemVer), each number has a purpose.</p><p>Version partMeaning3 — MAJORBreaking or incompatible changes4 — MINORNew backward-compatible functionality2 — PATCHBackward-compatible bug fixes</p><p>Think about a library that currently has version 3.4.2.</p><ul><li>Moving to 3.4.3 could mean a bug fix.</li><li>Moving to 3.5.0 could mean a new feature.</li><li>Moving to 4.0.0 could indicate breaking changes.</li></ul><p>It’s a convention that helps developers understand the nature of a release without having to inspect every line of code.</p><p>Of course, not every software project follows Semantic Versioning strictly. Versioning policies depend on the project.</p><p>But the underlying idea remains the same: <strong>we need a way to identify, track and distinguish software releases.</strong></p><h3>00.4 — Enter Maven: The Project’s Dependency Coordinator</h3><p>Let’s return to our Java project.</p><p>If you’ve worked with Maven, you’ve probably encountered a file called:</p><p>pom.xml</p><p>POM stands for Project Object Model.</p><p>It is where we describe our project’s configuration, dependencies, build settings and plugins.</p><p>Let’s look at a simple example.</p><pre>&lt;dependencies&gt;<br>    &lt;dependency&gt;<br>        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>        &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;<br>        &lt;version&gt;3.4.0&lt;/version&gt;<br>    &lt;/dependency&gt;<br>&lt;/dependencies&gt;</pre><p>Look closely at the version.</p><p>We’re not writing the implementation of Spring Boot ourselves. We’re telling Maven which artifact our project requires.</p><p>Maven takes that declaration, resolves the dependency and retrieves the required artifact from an available repository.</p><p>This is one of the biggest advantages of dependency management.</p><p>Instead of manually downloading and maintaining every external library, we declare what our project needs and let the build tool handle the resolution process.</p><p>But there’s another interesting question.</p><p>What happens when we have twenty dependencies?</p><p>Do we maintain every version independently?</p><p>What if multiple dependencies use the same underlying library?</p><p>That’s where dependency management becomes important.</p><h3>00.5 — Dependencies Are Only Half the Story. Meet Plugins.</h3><p>Here’s something that often gets overlooked.</p><p>When we talk about Maven, we usually talk about dependencies.</p><p>But Maven also uses plugins.</p><p>And plugins have versions too.</p><p>The difference is simple:</p><p><strong>Dependencies help our application perform its functionality. Plugins help Maven perform build-related tasks.</strong></p><p>For example:</p><p>PluginResponsibilityMaven Compiler PluginCompiles Java source codeMaven Surefire PluginExecutes unit testsMaven Clean PluginCleans generated build filesJaCoCo Maven PluginMeasures code coverage</p><p>Let’s look at one example.</p><pre>&lt;build&gt;<br>    &lt;plugins&gt;<br>        &lt;plugin&gt;<br>            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>            &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;<br>            &lt;version&gt;3.13.0&lt;/version&gt;<br>        &lt;/plugin&gt;<br>    &lt;/plugins&gt;<br>&lt;/build&gt;</pre><p>Notice that we are explicitly defining a plugin version.</p><p>Why?</p><p>Because our build process also needs consistency.</p><p>Imagine two developers building the same project, but using different versions of build plugins. Differences in plugin behaviour or configuration could produce different results.</p><p>This is why managing plugin versions is just as important as managing dependency versions.</p><p><strong>We don’t just manage what our application uses. We also manage the tools that build it.</strong></p><h3>00.6 — The Missing Piece: Where Do These Versions Live?</h3><p>So far, we’ve declared dependencies and plugins.</p><p>But where do these artifacts actually come from?</p><p>They aren’t magically created when Maven runs.</p><p>They are stored in repositories.</p><p>Think of an artifact repository as a central storage and distribution system for packaged software components.</p><p>Some examples:</p><ul><li>Maven Central</li><li>JFrog Artifactory</li><li>Sonatype Nexus Repository</li></ul><p>Let’s take this one step further.</p><h3>00.7 — JFrog: When Version Management Becomes an Enterprise Requirement</h3><p>Imagine a company with multiple development teams.</p><p>Team A builds an authentication library.</p><p>Team B builds a transaction-processing application.</p><p>Team C develops a reporting application.</p><p>Now, all three teams need access to certain common libraries.</p><p>How should they share them?</p><p>Should they send JAR files through email? Should every developer manually download and maintain them?</p><p>Obviously, that wouldn’t scale.</p><p>This is where JFrog Artifactory enters the picture.</p><p>Artifactory acts as an artifact repository manager.</p><p>Teams can publish their internally developed libraries, store multiple versions and allow other applications to consume them.</p><p>For example:</p><p>Team A publishes:</p><p>authentication-library:1.0.0</p><p>Later, the team improves the library and releases:</p><p>authentication-library:1.1.0</p><p>Team B can choose the appropriate version for its application.</p><p>Artifactory also supports remote repository proxying and caching, access controls and repository management.</p><p>This becomes particularly useful in enterprise environments where software is developed and shared across multiple teams.</p><p>And here’s an important distinction:</p><p><strong>Maven manages dependency resolution and builds. JFrog Artifactory manages the storage and distribution of artifacts.</strong></p><p>They complement each other, but they aren’t interchangeable.</p><h3>00.8 — Connecting the Dots</h3><p>Let’s bring everything together.</p><p>We have a Java project.</p><p>We declare dependencies and plugins in pom.xml.</p><p>Maven reads the configuration, resolves the required artifacts and retrieves them from the configured repositories whenever necessary.</p><p>These repositories could be Maven Central, an internal JFrog Artifactory repository or other configured repositories.</p><p>ComponentResponsibilityJava ProjectThe application we’re buildingpom.xmlDeclares dependencies, plugins and their configurationsMavenResolves dependencies and executes the buildMaven CentralProvides publicly available Java artifactsJFrog ArtifactoryStores and distributes internal artifacts and can proxy external repositories</p><p>Each component plays a different role, but together they help us manage the software our application depends on.</p><p>What starts as a few version declarations in an XML file is actually part of a much larger ecosystem.</p><h3>00.9 — The Interesting Part: What If Versions Clash?</h3><p>Now let’s introduce a real engineering problem.</p><p>Imagine your application directly uses Library A version 2.0.</p><p>But another dependency in your project also requires Library A, perhaps through a different dependency chain.</p><p>What happens when different versions enter the same project?</p><p>This is where dependency conflicts and transitive dependencies come into the picture.</p><p>Maven has mechanisms to resolve dependency versions, but the result isn’t always the version a developer expects.</p><p>This is why we need to understand concepts such as:</p><ul><li>Direct and transitive dependencies.</li><li>Dependency mediation.</li><li>Dependency exclusions.</li><li>Dependency Management</li><li>Bill of Materials (BOM).</li><li>SNAPSHOT and RELEASE versions.</li></ul><p>These mechanisms help us control dependencies and maintain predictable builds.</p><p>And there’s another reason to care: updating a dependency isn’t always as simple as replacing an old number with a new one.</p><p>Compatibility, breaking changes, security vulnerabilities and application behaviour all matter.</p><h3>01.0 — So, Who Really Manages the Versions?</h3><p>We started with a smartphone update.</p><p>We moved into the Java ecosystem, explored dependencies, plugins, Maven and JFrog Artifactory.</p><p>What looked like a simple version number turned out to be part of a much bigger system.</p><p>There isn’t one single tool responsible for everything.</p><ul><li>Developers decide which versions their projects should use.</li><li>Maven resolves dependencies and manages the build.</li><li>Artifact repositories store and distribute software components.</li><li>CI/CD pipelines help enforce consistent build and release practices.</li><li>Engineering teams establish policies around compatibility, upgrades and releases.</li></ul><p>Version management is not just about knowing which version is latest.</p><p>It’s about knowing which version is right for your project, why you’re using it and how to manage its evolution.</p><p><strong>Because in software engineering, writing code is only one part of building software. Understanding everything that your code depends on is another.</strong></p><p><em>One last thought:</em></p><p>The next time you see a software update notification, don’t just think about what’s new.</p><p>Think about everything that had to be managed to make that update possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34bc51b04c61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We often talk about writing clean code, designing efficient systems, choosing the right…]]></title>
            <link>https://dispatch.jsipe.com/we-often-talk-about-writing-clean-code-designing-efficient-systems-choosing-the-right-e61f57bf3eb4?source=rss-7cec442e1e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e61f57bf3eb4</guid>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[perspective]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Shiva_kalyankar]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 13:51:32 GMT</pubDate>
            <atom:updated>2026-11-07T13:51:32.075Z</atom:updated>
            <content:encoded><![CDATA[<pre>██████╗  ██████╗ ██╗   ██╗<br>██╔══██╗██╔═══██╗██║   ██║<br>██████╔╝██║   ██║██║   ██║<br>██╔═══╝ ██║   ██║╚██╗ ██╔╝<br>██║     ╚██████╔╝ ╚████╔╝<br>╚═╝      ╚═════╝   ╚═══╝<br><br>       P O I N T   O F   V I E W<br>       :: ENGINEERING PERSPECTIVES ::<br>       :: How Perspective Shapes the Way We Engineer Software</pre><p>We often talk about writing clean code, designing efficient systems, choosing the right architecture, and implementing the correct business logic.</p><p>But there’s something that influences all these decisions long before we write the first line of code.</p><p><strong>Perspective.</strong></p><p>The way we look at a problem often determines the solution we eventually build.</p><p>Two engineers can receive the same requirement, understand the same functionality, and still approach its implementation differently. Not necessarily because one is right and the other is wrong, but because they are looking at the problem from different perspectives.</p><p>And that difference matters.</p><h3>One Problem, Multiple Perspectives</h3><p>Consider a simple requirement:</p><p><em>A user should be able to transfer money from one account to another.</em></p><p>From a developer’s perspective, we might immediately think about:</p><ul><li>API endpoints.</li><li>Request and response structures.</li><li>Validations.</li><li>Database operations.</li><li>Transaction management.</li><li>Business logic.</li></ul><p>Our primary objective is to implement the functionality correctly.</p><p>But what happens when we change our perspective?</p><p>The same requirement, when approached from a testing perspective, raises different questions:</p><ul><li>What happens if the account has insufficient funds?</li><li>What if the source and destination accounts are the same?</li><li>What if the request is submitted twice?</li><li>What happens if the transaction fails halfway through?</li><li>What if two transfers happen simultaneously?</li><li>What happens if the destination account doesn’t exist?</li></ul><p>Suddenly, the problem looks much bigger.</p><p>The requirement hasn’t changed. The functionality hasn’t changed. Only the perspective has.</p><p>And with that change, our understanding of the problem expands.</p><h3>When a Different Perspective Changes the Development Approach</h3><p>This is where my own experience comes into the picture.</p><p>My primary working perspective has been development. When we receive a use case, we naturally start thinking about how to implement it, how the logic should flow, what conditions need to be handled, and how the expected functionality should work.</p><p>But getting the opportunity to work with those same use cases from the testing side introduced a different dimension to my thinking.</p><p>I was no longer looking at the functionality only from the perspective of building it. I was also looking at it from the perspective of evaluating how it behaves under different conditions.</p><p>And that experience gradually changed the way I approached development.</p><p>Earlier, I might have focused primarily on whether the intended functionality was implemented correctly. But looking at the same use cases through testing made me think more deeply about the conditions surrounding that functionality.</p><p>What assumptions am I making?</p><p>Have I considered all possible inputs?</p><p>What happens when multiple conditions interact?</p><p>Are there scenarios that the implementation doesn’t explicitly account for?</p><p>Could a particular combination of conditions produce an unexpected result?</p><p>These questions started becoming part of my development thinking itself.</p><p>The interesting part is that I wasn’t necessarily learning an entirely different technology or programming language. I was learning to look at the same problem differently.</p><p>And that difference influenced the way I approached the logic, the conditions I considered, and the decisions I made while developing.</p><h3>How Perspective Changes Logic and Code</h3><p>Code is not just a representation of requirements. It is also a representation of how we interpreted those requirements.</p><p>The logic we write is influenced by the questions we ask.</p><p>When we consider only the expected scenario, we tend to build around the expected flow.</p><p>When we consider alternative scenarios, exceptions, dependencies, and unexpected inputs, our implementation starts accounting for much more than the happy path.</p><p>This doesn’t necessarily mean writing more code.</p><p>Sometimes, a different perspective helps us remove unnecessary complexity. Sometimes, it exposes a missing validation. Sometimes, it makes us reconsider an entire approach.</p><p>The important distinction is that <strong>the quality of a solution is influenced not only by how we implement it, but also by how deeply we understand the problem before implementing it.</strong></p><h3>Beyond Development and Testing</h3><p>Perspective shouldn’t be limited to developers and testers.</p><p>A system can be viewed through several lenses:</p><ul><li><strong>Developer:</strong> Does the implementation satisfy the requirement?</li><li><strong>Tester:</strong> Under what conditions could the implementation fail?</li><li><strong>Architect:</strong> How does this decision affect the larger system?</li><li><strong>User:</strong> Does the functionality solve the actual problem?</li><li><strong>Maintainer:</strong> Will someone else be able to understand and modify this later?</li><li><strong>Business:</strong> Does the solution produce the intended outcome?</li></ul><p>Each perspective reveals something different.</p><p>The real value comes when these perspectives complement one another rather than operate independently.</p><p>A technically correct implementation might not provide a good user experience. A feature that passes functional tests might struggle under load. A solution that works today might become difficult to maintain tomorrow.</p><p>Looking at the same system through different perspectives helps us recognise these gaps earlier.</p><h3>A Different Way of Thinking About Engineering</h3><p>I don’t think engineering is simply about finding an answer to a problem.</p><p>It is also about learning to question the problem, challenge our assumptions, and examine the solution from different angles.</p><p>My experience of working with the same use cases from both development and testing perspectives has made me realise that these aren’t two completely isolated ways of thinking.</p><p>The questions we ask while testing can make us better developers. Similarly, understanding how something is developed can make us better at evaluating it.</p><p>Sometimes, the most valuable improvement doesn’t come from changing the code.</p><p>It comes from changing the way we look at it.</p><p>Perhaps that’s one of the important things I am learning through my experience: before evaluating or implementing a solution, understand the different perspectives from which it can be viewed.</p><p>Because better questions often lead to better logic, better implementations, and ultimately, better systems.</p><p><strong>The code reflects what we build. Our perspective influences what we choose to build.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e61f57bf3eb4" width="1" height="1" alt=""><hr><p><a href="https://dispatch.jsipe.com/we-often-talk-about-writing-clean-code-designing-efficient-systems-choosing-the-right-e61f57bf3eb4">We often talk about writing clean code, designing efficient systems, choosing the right…</a> was originally published in <a href="https://dispatch.jsipe.com/">Dispatch</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chapter 6 of Getting Closure: Functions — The Real Power of the Family]]></title>
            <link>https://medium.com/@shivakalyankar13/chapter-6-of-getting-closure-functions-the-real-power-of-the-family-046759a23fb6?source=rss-7cec442e1e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/046759a23fb6</guid>
            <category><![CDATA[clojure]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Shiva_kalyankar]]></dc:creator>
            <pubDate>Thu, 05 Mar 2026 13:44:04 GMT</pubDate>
            <atom:updated>2026-03-05T13:44:04.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XW2VPRR1JS7k_5zBQ583ug.png" /></figure><p>Until now, the family had:</p><ul><li>Rooms (lists &amp; vectors)</li><li>Records (maps &amp; keywords)</li><li>Rules (logic)</li><li>Discipline (exceptions)</li></ul><p>But something was still missing.</p><p>The family had structure.</p><p>It had laws.</p><p>But it didn’t have action.</p><p>That’s when I realized something:</p><blockquote><em>In Clojure, functions are not just tools.</em></blockquote><p>They are the most capable members of the family.</p><p>They are the real power.</p><h3>Functions Are First-Class Citizens</h3><p>In many languages, functions feel secondary.</p><p>In Clojure?</p><p>Functions are first-class citizens.</p><p>That means:</p><ul><li>You can store them in variables.</li><li>You can pass them as arguments.</li><li>You can return them from other functions.</li><li>You can create them on the fly.</li></ul><p>In our family story:</p><p>Functions are not workers.</p><p>They are family members.</p><h3>Defining a Function — Giving Someone a Role</h3><p>Basic function definition:</p><pre>(defn greet [name]<br>  (str &quot;Hello &quot; name))</pre><p>This is like assigning a family role:</p><p>“Whenever someone visits, greet them.”</p><p>Call it like this:</p><pre>(greet &quot;Arjun&quot;)</pre><p>Simple.</p><p>But this is just the beginning.</p><h3>Functions Can Have Multiple Arity (Multiple Personalities)</h3><p>This part changed how I think.</p><p>A function can behave differently depending on how many arguments you pass.</p><p>Example:</p><pre>(defn welcome<br>  ([] &quot;Welcome, guest!&quot;)<br>  ([name买马] (str &quot;Welcome, &quot; name)))</pre><p>Same function.<br>Two behaviors.</p><p>In our family:</p><ul><li>If no name is given → generic welcome.</li><li>If name is given → personalized welcome.</li></ul><p>This is called <strong>multiple arity</strong>.</p><p>One function.<br>Multiple entry points.</p><p>That’s powerful.</p><h3>Variadic Functions — Accepting Unlimited Inputs</h3><p>Now imagine a family feast.</p><p>Guests keep coming.</p><p>Instead of fixing the number of plates, the family says:</p><p>“Bring as many as needed.”</p><p>That’s variadic functions.</p><pre>(defn total-guests [&amp; guests]<br>  (count guests))</pre><p>The &amp; means:</p><blockquote><em>Collect all remaining arguments into a list.</em></blockquote><p>You can now call:</p><pre>(total-guests &quot;A&quot; &quot;B&quot; &quot;C&quot; &quot; аком&quot;)</pre><p>Unlimited flexibility.</p><h3>Anonymous Functions — Instant Helpers</h3><p>Sometimes you don’t need to name a function.</p><p>You just need it once.</p><p>That’s anonymous functions.</p><pre>(fn [x] (* x x))</pre><p>Or shorter:</p><pre>#(* % %)</pre><p>This is like:</p><p>Calling a cousin quickly to help with one task — no permanent role needed.</p><p>Temporary but powerful.</p><h3>Functions Returning Functions — The Real Twist</h3><p>Now things get serious.</p><p>Functions can return other functions.</p><pre>(defn multiplier [n]<br>  (fn [x] (* x n)))</pre><p>Now:</p><pre>(def double (multiplier 2))<br>(double 5)</pre><p>Output → 10</p><p>This means:</p><p>A function can create customized behavior.</p><p>In family terms:</p><p>A parent teaches a child a skill.<br>The child now performs independently.</p><p>This is advanced power.</p><h3>Higher-Order Functions — The True Strength</h3><p>A higher-order function is one that:</p><ul><li>Takes another function as argument<br>OR</li><li>Returns a function</li></ul><p>Example:</p><pre>(map inc [1 2 3])</pre><p>Here:</p><ul><li>map takes inc (a function)</li><li>Applies it to every element</li></ul><p>This is where Clojure shines.</p><p>Instead of writing loops…</p><p>You compose behavior.</p><p>Other examples:</p><pre>(filter odd? [1 2 3 4])<br>(reduce + [1 2 3 4])</pre><p>Functions operating on functions.</p><p>This is elite-level power.</p><h3>Pure Functions — The Honest Family Member</h3><p>Clojure encourages pure functions.</p><p>A pure function:</p><ul><li>Same input → same output</li><li>No side effects</li><li>Doesn’t mutate outside state</li></ul><p>Example:</p><pre>(defn add [a b]<br>  (+ a b))</pre><p>Always predictable.</p><p>This makes reasoning easy.</p><p>In our family:</p><p>Pure functions are trustworthy members.</p><p>They never lie.<br>They never secretly change things.</p><h3>Immutability + Functions = Safety</h3><p>Because data is immutable:</p><p>Functions don’t modify.</p><p>They transform.</p><p>Instead of:</p><p>“Change the room.”</p><p>It becomes:</p><p>“Create a new version of the room.”</p><p>This reduces bugs dramatically.</p><p>No hidden state.<br>No accidental changes.</p><h3>Lexical Scope — Functions Remember Their Environment</h3><p>Here’s something magical.</p><p>Functions remember the environment in which they were created.</p><p>Example:</p><pre>(defn make-greeter [greeting]<br>  (fn [name] (str greeting &quot; &quot; name)))</pre><p>Even after make-greeter finishes…</p><p>The inner function still remembers greeting.</p><p>That’s closure.</p><p>And this is the heart of Clojure’s power.</p><p>Functions carry context with them.</p><h3>Recursion Is a Function’s Superpower</h3><p>Instead of loops, functions call themselves.</p><pre>(defn factorial [n]<br>  (if (zero? n)<br>    1<br>    (* n (factorial (dec n)))))</pre><p>Functions solving problems by calling themselves.</p><p>Elegant.<br>Mathematical.<br>Pure.</p><h3>Why Functions Make Clojure Powerful</h3><p>After reading this chapter, I realized:</p><p>Clojure is powerful not because of syntax.</p><p>Not because of JVM.</p><p>Not because of tools.</p><p>It’s powerful because:</p><p>Functions are:</p><ul><li>First-class</li><li>Composable</li><li>Pure</li><li>Immutable-friendly</li><li>Higher-order</li><li>Lexically scoped</li><li>Variadic</li><li>Multi-arity</li><li>Returnable</li><li>Anonymous</li><li>Recursive</li></ul><p>Functions aren’t helpers.</p><p>They are the language.</p><h3>Final Realization (From the Lazy Programmer)</h3><p>Earlier I thought:</p><p>Data structures are important.</p><p>Now I see:</p><p>Functions give life to data.</p><p>Maps describe.<br>Lists organize.<br>Logic decides.</p><p>But functions?</p><p>Functions transform the world.</p><p>And in Clojure, they are treated with the respect they deserve.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=046759a23fb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Clojure by Writing Clojure]]></title>
            <link>https://medium.com/@shivakalyankar13/learning-clojure-by-writing-clojure-2edf2c60656a?source=rss-7cec442e1e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2edf2c60656a</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[clojure]]></category>
            <category><![CDATA[journey]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[Shiva_kalyankar]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 18:33:03 GMT</pubDate>
            <atom:updated>2026-03-03T18:33:03.845Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jl1Evz4xWuZwK5Y9kCZpLw.png" /></figure><pre>(def company &quot;Infosys Finacle&quot;)<br><br>(def role<br>  {:title &quot;Product Developer Intern&quot;<br>   :duration &quot;almost 1 month&quot;<br>   :focus &quot;trainings&quot;})<br><br>(def technologies<br>  [:docker   :git   :prompt-engineering   :reactive-spring   :kubernetes   :clojure])<br><br>(def soft-skills<br>  #{:communication :teamwork :confidence :presentation})<br><br>(defn my-journey [name time]<br>  (let [task &quot;Learn Clojure&quot;        feeling &quot;excited&quot;]<br><br>    (try<br>      (str<br>        &quot;It has been &quot; (:duration role) &quot; since I joined &quot; company<br>        &quot; as a &quot; (:title role) &quot;. &quot;<br>        &quot;Most of my days are currently focused on &quot; (:focus role) &quot;, &quot;<br>        &quot;and every session adds a new layer to my understanding. &quot;<br><br>        &quot;Recently, I met my team, and that moment made everything feel real. &quot;<br>        &quot;The task assigned to me was clear: &quot; task &quot;. &quot;<br>        &quot;Hearing that made me feel &quot; feeling &quot;. &quot;<br><br>        &quot;Before diving deep into Clojure, I explored technologies like &quot;<br>        technologies<br>        &quot;. Each keyword in this vector represents a skill I have started building. &quot;<br>        &quot;From Docker containers to Git version control, &quot;<br>        &quot;from Reactive Spring systems to Kubernetes orchestration, &quot;<br>        &quot;and even prompt engineering — the journey has been intense and inspiring. &quot;<br><br>        &quot;At the same time, I am developing soft skills such as &quot;<br>        soft-skills<br>        &quot;. Just like a set in Clojure, these skills grow uniquely without duplication. &quot;<br><br>        &quot;Then came Clojure. &quot;<br>        &quot;At first, the parentheses looked overwhelming. &quot;<br>        &quot;But I learned that everything in Clojure is an expression. &quot;<br>        &quot;Instead of writing 1 + 2, we write (+ 1 2). &quot;<br>        &quot;The first element in a list is the function, followed by its arguments. &quot;<br>        &quot;That simple structure changed the way I see programming. &quot;<br><br>        &quot;Using def, I bind names to values. &quot;<br>        &quot;Using defn, I define behavior. &quot;<br>        &quot;With let, I create local bindings that keep my logic clean and scoped. &quot;<br><br>        (when (= task &quot;Learn Clojure&quot;)<br>          &quot;Clojure is slowly teaching me immutability, functional thinking, and clarity. &quot;)<br><br>        &quot;When something goes wrong, try and catch allow me to handle errors gracefully, &quot;<br>        &quot;reminding me that even failures can be structured and managed. &quot;<br><br>        &quot;As I write this at &quot; time &quot;, &quot;<br>        &quot;almost one month into my internship at &quot; company &quot;, &quot;<br>        &quot;I realize I am not just learning tools — &quot;<br>        &quot;I am learning how to think in a completely new way. &quot;)<br><br>      (catch Exception e<br>        (str &quot;Even unexpected challenges are part of this journey.&quot;)))))<br><br><br>(def reflection<br>  (my-journey &quot;Charan&quot; &quot;12 AM&quot;))<br><br>(println reflection)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2edf2c60656a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chapter 5 of Getting Closure: Logic — When the Family Starts Making Decisions]]></title>
            <link>https://medium.com/@shivakalyankar13/chapter-5-of-getting-closure-logic-when-the-family-starts-making-decisions-4bcaf07a9a0d?source=rss-7cec442e1e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bcaf07a9a0d</guid>
            <category><![CDATA[clojure]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Shiva_kalyankar]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 18:10:34 GMT</pubDate>
            <atom:updated>2026-03-03T18:10:34.331Z</atom:updated>
            <content:encoded><![CDATA[<p>Until now, we built the family house.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4AQhBP-uRd5lgk43jD6mg.png" /></figure><p>We created:</p><ul><li>Lists (rooms in order)</li><li>Vectors (organized storage)</li><li>Maps (family records)</li><li>Sets (guest lists)</li></ul><p>Everything was structured.</p><p>Everything was clean.</p><p>But one thing was missing.</p><p>The family had no rules.</p><p>No decision-making.</p><p>No handling of mistakes.</p><p>That’s where logic comes in.</p><h3>The Family Rules Begin — What Is Considered “True”?</h3><p>Before making decisions, the family needed a basic rule:</p><blockquote><em>What counts as true in this house?</em></blockquote><p>In Clojure, the rule is surprisingly simple:</p><p>Only two things are false:</p><ul><li>false</li><li>nil</li></ul><p>Everything else is true.</p><p>Even:</p><ul><li>0</li><li>&quot;&quot;</li><li>[]</li><li>{}</li></ul><p>This makes the house very predictable.</p><p>If something exists and isn’t explicitly false — it’s treated as valid.</p><p>No overthinking.</p><h3>Rule #1: The Parent’s Basic Decision — if</h3><p>Imagine the father checking something simple:</p><p>“Did the child finish homework?”</p><pre>(def finished-homework true)</pre><pre>(if finished-homework<br>  &quot;You can play outside&quot;<br>  &quot;Go finish it&quot;)</pre><p>In this family:</p><p>Every decision must have two outcomes.</p><p>Clojure’s if always expects both:</p><ul><li>What happens if true</li><li>What happens if false</li></ul><p>No silent ignoring.</p><p>Decisions must be clear.</p><h3>Rule #2: Only Act When Needed — when</h3><p>Sometimes the parent doesn’t care about the “else”.</p><p>Only action when something is true.</p><pre>(when finished-homework<br>  &quot;Unlock TV&quot;)</pre><p>If not finished?</p><p>Nothing happens.</p><p>No drama.<br>No punishment.<br>Just silence.</p><p>That’s when.</p><h3>Rule #3: Multiple Conditions — cond</h3><p>Now imagine a bigger decision.</p><p>The family classifies people visiting the house:</p><pre>(def role :guest)</pre><pre>(cond<br>  (= role :family) &quot;Welcome home&quot;<br>  (= role :guest)  &quot;Come in, have tea&quot;<br>  (= role :stranger) &quot;Wait outside&quot;<br>  :else &quot;Who are you?&quot;)</pre><p>cond checks each rule in order.</p><p>The first true one wins.</p><p>Clean.<br>Readable.<br>No nested confusion.</p><h3>Combining Rules — and, or, not</h3><p>Now let’s say the family has stricter conditions.</p><h3>and</h3><pre>(and finished-homework cleaned-room)</pre><p>Both must be true.</p><p>If one fails → privilege denied.</p><h3>or</h3><pre>(or is-family has-invitation)</pre><p>Either condition is enough.</p><p>Flexible logic.</p><h3>not</h3><pre>(not grounded)</pre><p>Reverse the rule.</p><p>If grounded → no outing.<br>If not grounded → allowed.</p><p>Simple inversion.</p><h3>Temporary Discussions — let</h3><p>Sometimes parents calculate before deciding.</p><pre>(let [marks 85<br>      required 70]<br>  (&gt; marks required))</pre><p>let creates temporary bindings.</p><p>They exist only during the discussion.</p><p>After that — gone.</p><p>Clean thinking.<br>No leaking variables.</p><h3>The Repeating Reminder — Recursion</h3><p>Now imagine the mother reminding the child every 5 minutes:</p><p>“Did you clean your room?”</p><p>Instead of mutating a counter, Clojure prefers recursion.</p><pre>(defn remind [n]<br>  (if (zero? n)<br>    &quot;Okay, I’ll stop reminding&quot;<br>    (recur (dec n))))</pre><p>Each reminder is a new state.</p><p>No mutation.<br>No changing variables.<br>Just new values passed along.</p><h3>When Things Go Wrong — Throwing Errors</h3><p>Now here’s something real.</p><p>What if someone lies?</p><p>What if a serious rule is broken?</p><p>The family needs a way to signal:</p><blockquote><em>This is not acceptable.</em></blockquote><p>That’s where throw comes in.</p><pre>(throw (Exception. &quot;You broke the house rule!&quot;))</pre><p>This stops everything.</p><p>It’s like the parent shouting:</p><p>“Enough!”</p><p>The program halts unless someone handles it.</p><h3>Catching Mistakes — try and catch</h3><p>But in a mature family, shouting isn’t the end.</p><p>Sometimes they handle mistakes calmly.</p><pre>(try<br>  (throw (Exception. &quot;Forgot homework&quot;))<br>  (catch Exception e<br>    &quot;Let’s fix it together&quot;))</pre><p>What’s happening?</p><ul><li>Something goes wrong.</li><li>Instead of crashing the house…</li><li>The family catches the problem.</li><li>And responds gracefully.</li></ul><p>This is powerful.</p><p>Programs don’t always need to crash.</p><p>They can recover.</p><h3>Why This Matters in Real Applications</h3><p>Imagine:</p><ul><li>A database fails.</li><li>A user enters invalid data.</li><li>A file is missing.</li></ul><p>Without try/catch, the whole system collapses.</p><p>With proper handling:</p><ul><li>You catch the issue.</li><li>Log it.</li><li>Respond safely.</li></ul><p>Logic isn’t just about conditions.</p><p>It’s about resilience.</p><h3>The Bigger Realization</h3><p>Before this chapter, the family was static.</p><p>Now it:</p><ul><li>Makes decisions</li><li>Evaluates truth</li><li>Combines conditions</li><li>Repeats actions</li><li>Handles failures</li></ul><p>And here’s the most beautiful part:</p><p>All of this is still written as lists.</p><p>Even logic is just structured data being evaluated.</p><p>Clojure stays consistent.</p><h3>Final Thought (Hi I’m just declared a LIST (Fav Friend of Clojure)</h3><p>Data gave structure.<br>Maps gave meaning.<br>Sets gave boundaries.</p><p>Logic gave responsibility.</p><p>And exception handling?</p><p>That gave maturity.</p><p>Because a real system isn’t just about making decisions.</p><p>It’s about handling mistakes gracefully.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bcaf07a9a0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chapter 4 of Getting Closure: Maps, Keywords & Sets — A Functional Family Story]]></title>
            <link>https://medium.com/@shivakalyankar13/chapter-4-of-getting-closure-maps-keywords-sets-a-functional-family-story-e24f6e2cb6c9?source=rss-7cec442e1e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e24f6e2cb6c9</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[clojure]]></category>
            <category><![CDATA[technical-writing]]></category>
            <category><![CDATA[function]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Shiva_kalyankar]]></dc:creator>
            <pubDate>Sun, 22 Feb 2026 06:46:51 GMT</pubDate>
            <atom:updated>2026-02-22T06:46:51.884Z</atom:updated>
            <content:encoded><![CDATA[<p>By Chapter 4, I stopped seeing data structures as technical tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wJ3als3_UxG7X6iHcQaJzA.png" /></figure><p>I started seeing them as family roles.</p><p>Clojure doesn’t just give you collections.</p><p>It gives you relationships.</p><p>So let me explain <strong>maps, keywords, and sets</strong> the way I finally understood them — as a real family living in a house.</p><h3>Meet the Family</h3><p>In this house:</p><ul><li><strong>Maps</strong> → The Parents (they manage relationships)</li><li><strong>Keywords</strong> → The Names (they give identity)</li><li><strong>Sets</strong> → The Gatekeepers (they decide who belongs)</li></ul><p>They look similar at first.</p><p>But they behave very differently.</p><h3>The Parents: Maps (Who Is Related to Whom?)</h3><p>Imagine a family record notebook.</p><p>It says:</p><ul><li>Father → Ramesh</li><li>Mother → Sita</li><li>Son → Arjun</li></ul><p>That notebook is a <strong>map</strong>.</p><p>In Clojure:</p><pre>(def family {:father &quot;Ramesh&quot;<br>             :mother &quot;Sita&quot;<br>             :son &quot;Arjun&quot;})</pre><p>A map connects a <strong>key</strong> to a <strong>value</strong>.</p><p>It answers the question:</p><blockquote><em>“What is the relationship?”</em></blockquote><p>You don’t care about position.<br>You care about association.</p><p>You can access values like this:</p><pre>(:father family)</pre><p>Or:</p><pre>(family :mother)</pre><p>And if the key doesn’t exist?</p><p>It returns nil.</p><p>Maps are about structured information.</p><h3>The Names: Keywords (Identity Tags)</h3><p>Keywords look like:</p><pre>:father<br>:mother<br>:son</pre><p>They are:</p><ul><li>Immutable</li><li>Unique</li><li>Lightweight identifiers</li></ul><p>And here’s something beautiful:</p><blockquote><em>Keywords behave like functions.</em></blockquote><pre>(:father family)</pre><p>The keyword extracts its value from the map.</p><p>That’s elegant.</p><p>In serious Clojure code, keywords are everywhere — because they make data self-describing.</p><h3>The Gatekeepers: Sets (Who Is Inside the House?)</h3><p>Now imagine a different scenario.</p><p>Instead of a notebook of relationships…</p><p>Imagine a guest list at the entrance.</p><p>It only answers one question:</p><blockquote><em>“Is this person allowed in?”</em></blockquote><p>That’s a <strong>set</strong>.</p><pre>(def guests #{&quot;Ramesh&quot; &quot;Sita&quot; &quot;Arjun&quot;})</pre><p>Sets:</p><ul><li>Contain unique values</li><li>Do not allow duplicates</li><li>Don’t care about relationships</li><li>Don’t care about order</li></ul><p>They only care about membership.</p><p>If you try to add “Ramesh” again — nothing changes.</p><p>Because uniqueness is enforced.</p><h3>contains? — Asking the Gatekeeper</h3><p>Now let’s talk about something important.</p><p>The function:</p><pre>(contains? guests &quot;Ramesh&quot;)</pre><p>This returns true.</p><p>But:</p><pre>(contains? guests &quot;Rahul&quot;)</pre><p>Returns false.</p><p>That’s clear.</p><p>Now here’s where beginners get confused.</p><p>contains? behaves differently for maps and sets.</p><h3>For sets:</h3><p>It checks if the value exists.</p><h3>For maps:</h3><p>It checks if the KEY exists.</p><p>Example:</p><pre>(contains? family :father)   ;; true<br>(contains? family :uncle)    ;; false</pre><p>Notice something:</p><p>It doesn’t check values like “Ramesh”.</p><p>It checks the key.</p><p>So in our family analogy:</p><ul><li>In a <strong>set</strong>, you ask: “Is this person inside?”</li><li>In a <strong>map</strong>, you ask: “Does this relationship exist?”</li></ul><p>That difference is very important.</p><h3>Maps vs Sets — The Real Family Difference</h3><p>Let’s simplify this with one strong comparison.</p><h3>A Map is like a Family Tree</h3><p>It tells you:</p><ul><li>Who is father?</li><li>Who is mother?</li><li>Who is child?</li></ul><p>It stores relationships.</p><p>It connects labels to people.</p><h3>A Set is like a Guest List</h3><p>It only tells you:</p><ul><li>Is this person allowed?</li><li>Yes or No.</li></ul><p>It doesn’t tell you who they are in relation to anyone.</p><p>No roles.<br>No associations.<br>Just membership.</p><p>So:</p><p>MapSetStores key-value pairsStores unique valuesRepresents relationshipsRepresents membershipChecks for key with contains?Checks for value with contains?Used for modeling real-world objectsUsed for validation, uniqueness</p><p>Maps are about meaning.</p><p>Sets are about permission.</p><h3>The Rule of the House: Immutability</h3><p>Whether it’s maps or sets:</p><p>They are immutable.</p><p>If you update a map:</p><pre>(def updated-family (assoc family :daughter &quot;Anika&quot;))</pre><p>The original remains unchanged.</p><p>Same for sets:</p><pre>(def updated-guests (conj guests &quot;Anika&quot;))</pre><p>A new set is created.</p><p>Clojure doesn’t copy everything blindly.</p><p>Internally:</p><ul><li>Data is stored in tree-like chunks</li><li>Most of the structure is shared</li><li>Only small parts are recreated</li></ul><p>This is why immutability is efficient in Clojure.</p><p>You get safety without losing performance.</p><h3>Getting Wild: Maps in the Real World (Database Example)</h3><p>Now let’s step outside the house.</p><p>In real Clojure applications, maps are everywhere.</p><p>For example, configuring a database:</p><pre>(def db {:dbtype &quot;MySQL&quot;<br>         :dbname &quot;books&quot;<br>         :user &quot;russ&quot;<br>         :password &quot;secret&quot;})</pre><p>It’s just a map.</p><p>And when you query:</p><p>The result comes back as maps:</p><pre>{:id 10 :title &quot;Oliver Twist&quot; :author &quot;Dickens&quot;}</pre><p>Maps go in.</p><p>Maps come out.</p><p>Instead of complex objects — just data.</p><p>That’s powerful.</p><h3>Why Maps Are Used More Than Sets</h3><p>The author hints that in serious applications:</p><p>Maps are used much more frequently than sets.</p><p>Why?</p><p>Because most real-world systems are about relationships.</p><p>A user has:</p><ul><li>A name</li><li>An email</li><li>A role</li><li>An ID</li></ul><p>That’s a map.</p><p>Sets are useful when:</p><ul><li>You want to ensure uniqueness</li><li>You want to validate membership</li><li>You don’t care about structure</li></ul><p>So while sets are powerful…</p><p>Maps are the backbone of real applications.</p><h3>What This Chapter Taught Me</h3><p>Lists and vectors taught me structure.</p><p>Maps, keywords, and sets taught me modeling.</p><p>I learned:</p><ul><li>Maps describe relationships.</li><li>Sets enforce uniqueness.</li><li>Keywords give identity.</li><li>contains? behaves differently depending on collection type.</li><li>Everything is immutable.</li><li>Everything is data.</li></ul><p>And that’s the Clojure mindset.</p><h3>Final Thought (From the Lazy Programmer Who’s Now Thinking Differently)</h3><p>In object-oriented languages, we create classes to represent the world.</p><p>In Clojure, we model the world using maps.</p><p>Simple.<br>Readable.<br>Immutable.<br>Powerful.</p><p>This chapter didn’t just teach me collections.</p><p>It taught me how to think about data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e24f6e2cb6c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chapter 3 of Getting Closure to Clojure: Building a House with Lists and Vectors]]></title>
            <link>https://medium.com/@shivakalyankar13/chapter-3-of-getting-closure-to-clojure-building-a-house-with-lists-and-vectors-b35ad300b563?source=rss-7cec442e1e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b35ad300b563</guid>
            <category><![CDATA[vector]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[lists]]></category>
            <category><![CDATA[clojure]]></category>
            <dc:creator><![CDATA[Shiva_kalyankar]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 04:21:38 GMT</pubDate>
            <atom:updated>2026-02-21T04:21:38.193Z</atom:updated>
            <content:encoded><![CDATA[<p>In Chapter 3, I stopped feeling like a lazy programmer and started feeling like… an architect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VMI-tLcfgZBHgKF1DKFsKQ.png" /></figure><p>Not of buildings.</p><p>But of data.</p><p>Clojure introduced me to two powerful structures: <strong>lists</strong> and <strong>vectors</strong>. And instead of memorizing syntax, I decided to understand them the way I understand something real.</p><p>Like building a house.</p><h3>Step 1: Laying the Foundation (Declaring Data)</h3><p>Before building anything, you need a foundation.</p><p>In Clojure, that foundation is how you declare collections.</p><p>A <strong>list</strong> looks like this:</p><pre>(def materials &#39;(bricks cement sand))</pre><p>A <strong>vector</strong> looks like this:</p><pre>(def materials [&quot;bricks&quot; &quot;cement&quot; &quot;sand&quot;])</pre><p>Both hold multiple values.</p><p>But they behave differently — and that difference is everything.</p><h3>Step 2: Building with Vectors (Like Laying Bricks in Order)</h3><p>I like to think of a vector as neatly arranged bricks in a straight line.</p><p>You can directly point to any brick.</p><p>If I want the second item:</p><pre>(nth materials 1)</pre><p>Vectors support:</p><ul><li>nth → get element by index</li><li>first → get first item</li><li>rest → everything except the first</li></ul><p>Example:</p><pre>(def rooms [&quot;hall&quot; &quot;kitchen&quot; &quot;bedroom&quot;])</pre><pre>(first rooms)   ;; &quot;hall&quot;<br>(rest rooms)    ;; (&quot;kitchen&quot; &quot;bedroom&quot;)<br>(nth rooms 2)   ;; &quot;bedroom&quot;</pre><p>Vectors are great when:</p><ul><li>Order matters</li><li>You need fast access by position</li><li>You’re working like an array</li></ul><p>It feels structured. Predictable.</p><h3>Adding New Bricks: conj</h3><p>Now imagine adding a new room to the house.</p><p>With vectors:</p><pre>(conj rooms &quot;balcony&quot;)</pre><p>This adds the new element <strong>at the end</strong>.</p><p>Important detail:</p><blockquote><em>Clojure is immutable.</em></blockquote><p>The original vector is NOT changed.</p><p>Instead, a new vector is created efficiently.</p><p>So:</p><pre>(def new-rooms (conj rooms &quot;balcony&quot;))</pre><p>Now rooms is unchanged.<br>new-rooms has the extra value.</p><p>No destruction. Only evolution.</p><p>That’s powerful.</p><h3>Step 3: Lists (Building a Linked Structure)</h3><p>Now lists are different.</p><p>They are not like neatly arranged bricks.</p><p>They are more like a chain of connected rooms — each room points to the next one.</p><p>Example:</p><pre>(def tasks &#39;(design build paint))</pre><p>Lists are optimized for adding items at the <strong>front</strong>.</p><p>If you use conj on a list:</p><pre>(conj tasks &#39;inspect)</pre><p>The result is:</p><pre>(inspect design build paint)</pre><p>The new element goes to the <strong>front</strong>, not the end.</p><p>That surprised me.</p><h3>cons: Adding to the Front Intentionally</h3><p>cons is another way to add to a list:</p><pre>(cons &#39;plan tasks)</pre><p>Result:</p><pre>(plan design build paint)</pre><p>So:</p><ul><li>conj → behaves according to collection type</li><li>cons → always adds to the front of a list</li></ul><p>This shows something important:</p><blockquote><em>Clojure’s behavior depends on the type of collection.</em></blockquote><p>Same function. Different result.</p><p>That’s elegant design.</p><h3>Lists vs Normal Code (The Big Realization)</h3><p>Here’s where things got interesting.</p><p>When I saw this:</p><pre>(+ 1 2 3)</pre><p>I realized something shocking.</p><p>That is actually a <strong>list</strong>.</p><p>In Clojure, code itself is written in list form.</p><p>The first element is the function.<br>The rest are arguments.</p><p>So when you write:</p><pre>(+ 1 2)</pre><p>You are literally creating a list:</p><ul><li>+</li><li>1</li><li>2</li></ul><p>And Clojure evaluates it.</p><p>That means:</p><blockquote><em>Lists are not just data structures.<br>They are the structure of Clojure code itself.</em></blockquote><p>That’s deep.</p><h3>A Fun Example: Designing a Building</h3><p>Imagine we store rooms in a vector:</p><pre>(def house [&quot;hall&quot; &quot;kitchen&quot; &quot;bedroom&quot;])</pre><p>Now imagine we want to:</p><ul><li>Add a balcony</li><li>Get the first room</li><li>See remaining rooms</li></ul><pre>(def updated-house (conj house &quot;balcony&quot;))<br>(first updated-house)<br>(rest updated-house)</pre><p>Each operation returns a new version.</p><p>We are basically building house versions:</p><ul><li>House v1</li><li>House v2</li><li>House v3</li></ul><p>And none of them destroy the previous one.</p><p>This is the power of immutability.</p><h3>Real-World Example: Task Management System</h3><p>Imagine you have a to-do list:</p><pre>(def todos [&quot;buy cement&quot; &quot;call architect&quot; &quot;paint walls&quot;])</pre><p>When you add a new task:</p><pre>(conj todos &quot;install lights&quot;)</pre><p>Clojure doesn’t copy the whole vector.</p><p>Instead:</p><ul><li>It shares most of the structure</li><li>Only small parts are updated</li></ul><p>This is called <strong>persistent data structures</strong>.</p><p>Efficient copies.<br>No mutation.<br>No chaos.</p><p>The data is divided internally into chunks (like a tree structure), so only small parts change.</p><p>That’s how Clojure remains fast and safe.</p><h3>So… If Vectors Are So Good, Why Use Lists?</h3><p>This part confused me.</p><p>Vectors are:</p><ul><li>Fast for lookup</li><li>Easy to understand</li><li>Practical</li></ul><p>But the author mentions that we often use <strong>lists more than vectors</strong>.</p><p>Why?</p><p>Because:</p><ol><li>Clojure code itself is made of lists.</li><li>When writing macros or manipulating code, lists are natural.</li><li>Lists are simple linked structures — perfect for sequential processing.</li><li>Many functional operations conceptually work as sequences.</li></ol><p>Even when you use vectors…</p><p>Clojure often treats them as <strong>sequences</strong> internally.</p><p>So lists represent the <em>core philosophy</em> of the language.</p><p>Vectors represent practical usage.</p><h3>The Difference (Architect Version)</h3><p>Vectors:</p><ul><li>Like numbered bricks</li><li>Fast random access</li><li>Good for indexed data</li><li>Append at the end with conj</li></ul><p>Lists:</p><ul><li>Like a chain of connected rooms</li><li>Optimized for adding at the front</li><li>Natural for representing code</li><li>Perfect for recursive and sequential processing</li></ul><h3>What Chapter 3 Really Taught Me</h3><p>Before this chapter, data was just storage.</p><p>Now I see:</p><blockquote><em>Data structures define how you think about building systems.</em></blockquote><p>Vectors taught me order and efficiency.</p><p>Lists taught me that Clojure itself is built on simple linked ideas.</p><p>And immutability taught me:</p><p>You don’t modify your house.<br>You build a better version next to it.</p><h3>Final Thought (From the Formerly Lazy Programmer)</h3><p>Chapter 3 didn’t just teach me lists and vectors.</p><p>It taught me that Clojure is carefully designed.</p><p>Even small things like:</p><ul><li>conj</li><li>cons</li><li>nth</li><li>first</li><li>rest</li></ul><p>Reveal deep design choices.</p><p>And I’m starting to see that functional programming isn’t about complexity.</p><p>It’s about clarity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b35ad300b563" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chapter 2 of Getting Closure: A Lazy Programmer Meets Clojure]]></title>
            <link>https://medium.com/@shivakalyankar13/chapter-2-of-getting-closure-a-lazy-programmer-meets-clojure-a177c73e0322?source=rss-7cec442e1e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a177c73e0322</guid>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[clojure]]></category>
            <category><![CDATA[curious]]></category>
            <dc:creator><![CDATA[Shiva_kalyankar]]></dc:creator>
            <pubDate>Tue, 17 Feb 2026 13:26:06 GMT</pubDate>
            <atom:updated>2026-02-17T13:26:06.533Z</atom:updated>
            <content:encoded><![CDATA[<p>I opened Chapter 2 the same way I open most technical chapters — with curiosity on the outside and laziness on the inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jl1Evz4xWuZwK5Y9kCZpLw.png" /></figure><p>I already knew Clojure was a functional language. I already knew it was “different”. But I still hoped it would behave like the languages I’m comfortable with: Java, JavaScript, Python — you know, the usual.</p><p>It didn’t.</p><p>And that’s kind of the point.</p><h3>My First Real Encounter with Clojure Syntax</h3><p>The first thing I saw was the most basic program:</p><pre>(println &quot;hello world&quot;)</pre><p>No main method.<br>No semicolons.<br>No curly braces.</p><p>Just parentheses.</p><p>At first, it looked… wrong. Almost too simple.</p><p>But then I realized something important:</p><blockquote><em>Clojure has </em><strong><em>inbuilt naming and structure</em></strong><em>, so you don’t need commas, semicolons, or heavy syntax.</em></blockquote><p>Everything is just:</p><pre>(function arguments)</pre><p>Always.</p><p>No exceptions.</p><h3>Everything Is Inside Parentheses</h3><p>Then came simple expressions like:</p><pre>(+ 10 15)<br>(/ (+ 19 4) 2)<br>(count [1 2 3])</pre><p>At this point, my lazy brain wanted to say:<br>“Why would anyone write like this?”</p><p>But the more I looked at it, the more it made sense:</p><blockquote><em>In Clojure, </em><strong><em>code is just data in a list</em></strong><em>.</em></blockquote><p>You always put:</p><ul><li>The function first</li><li>Then the values</li></ul><p>This makes the language extremely consistent. Once you get this rule, almost everything else follows.</p><h3>Variables Without Drama</h3><p>Declaring variables was another surprise:</p><pre>(def x 10)</pre><p>That’s it.</p><p>No int.<br>No let.<br>No type declarations.</p><p>Just def.</p><p>Also:</p><ul><li>Everything is written in <strong>small letters</strong></li><li>No camelCase or snake_case drama</li><li>Only - (hyphens) are used</li></ul><p>It felt minimal. Almost… peaceful.</p><h3>Defining Functions (The Real Core)</h3><p>This is where Chapter 2 really clicked for me.</p><p>Defining a function looks like this:</p><pre>(defn say-welcome [name]<br>  (println &quot;welcome&quot;))</pre><p>And calling it:</p><pre>(say-welcome &quot;Clojure&quot;)</pre><p>That’s when I finally understood one key line from my notes:</p><blockquote>“One god, all in function.”</blockquote><p>In Clojure:</p><ul><li>Everything revolves around <strong>functions</strong></li><li>No classes</li><li>No objects</li><li>No heavy structures</li></ul><p>Just data + functions transforming data.</p><h3>Creating a Project with Lein (My First Real Step)</h3><p>Before writing anything serious, I had to create a project.<br>And that’s where <strong>Leiningen (lein)</strong> comes in.</p><p>Lein is basically the <strong>build tool for Clojure</strong>, like:</p><ul><li>Maven/Gradle for Java</li><li>npm for JavaScript</li></ul><p>To create a new project:</p><pre>lein new app my-first-clojure</pre><p>This instantly creates a full project structure.</p><p>Then you go inside the folder and run:</p><pre>lein run</pre><p>And boom — your first Clojure app is running.</p><p>As a lazy programmer, this felt magical:</p><blockquote><em>One command, and everything just works.</em></blockquote><h3>Writing a Real Program</h3><p>Inside the project, I saw something like this:</p><pre>(ns my-first-clojure.core)</pre><pre>(defn say-welcome [name]<br>  (println &quot;welcome&quot;))</pre><pre>(defn -main []<br>  (say-welcome &quot;Shiva&quot;))</pre><p>So the flow becomes:</p><ol><li>Create project with lein</li><li>Write functions</li><li>Call them inside -main</li><li>Run with lein run</li></ol><p>No complex setup. No configuration hell.</p><p>Just code.</p><h3>Errors: My Constant Companions</h3><p>Of course, being lazy comes with consequences.</p><p>I kept hitting errors like:</p><ul><li>Out of bounds</li><li>Arithmetic errors</li><li>Wrong function name</li><li>Not closing parentheses 😭</li></ul><p>And Clojure is <em>not forgiving</em> about parentheses.</p><p>Miss one ) and the whole program breaks.</p><p>But weirdly, this taught me something:</p><blockquote><em>Clojure forces you to be </em><strong><em>precise and intentional</em></strong><em>.</em></blockquote><p>You can’t write sloppy code and hope it works.</p><h3>The Real Lesson of Chapter 2</h3><p>Before this chapter, I thought learning Clojure meant:</p><blockquote><em>“Learn a new syntax.”</em></blockquote><p>Now I think it means:</p><blockquote><em>“Learn a new way to think.”</em></blockquote><p>Clojure doesn’t want you to:</p><ul><li>Control everything</li><li>Mutate everything</li><li>Manage state everywhere</li></ul><p>It wants you to:</p><ul><li>Describe transformations</li><li>Compose functions</li><li>Trust simple structures</li></ul><p>Which is… very different from how most of us learned programming.</p><h3>Final Thought</h3><p>Chapter 2 didn’t make me a Clojure expert.</p><p>But it did something more important:</p><p>It made me <strong>less afraid of functional programming</strong>.</p><p>Clojure still feels strange.<br>Parentheses still scare me.<br>Errors still appear.</p><p>But now, instead of feeling lazy and confused, I feel:</p><blockquote><em>Curious.</em></blockquote><p>And for a programmer, that’s probably the best state to be in.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a177c73e0322" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>