<?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 Kiran H M on Medium]]></title>
        <description><![CDATA[Stories by Kiran H M on Medium]]></description>
        <link>https://medium.com/@imKiranSuvarna?source=rss-f874a04b0097------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ivIMGrQ8x7GjQR7jA-eFIA.jpeg</url>
            <title>Stories by Kiran H M on Medium</title>
            <link>https://medium.com/@imKiranSuvarna?source=rss-f874a04b0097------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:47:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@imKiranSuvarna/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[The AI heavyweight championship of April 2026: Claude Opus 4.7 vs GPT-5.5]]></title>
            <link>https://levelup.gitconnected.com/the-ai-heavyweight-championship-of-april-2026-claude-opus-4-7-vs-gpt-5-5-f274fd3e56e4?source=rss-f874a04b0097------2</link>
            <guid isPermaLink="false">https://medium.com/p/f274fd3e56e4</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Kiran H M]]></dc:creator>
            <pubDate>Mon, 27 Apr 2026 14:57:45 GMT</pubDate>
            <atom:updated>2026-04-28T03:19:29.333Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DXp20sTTuQK4QMWcH6FnyA.png" /><figcaption>Note: This image is generated with AI</figcaption></figure><p>The heavyweight boxing match of the AI Industry that has been building for over two years has happened this week. On one corner, <br>Claude Opus 4.7: Disciplined southpaw, methodical, precise and devastating on technical complexity and on the other corner, GPT-5.5, an effective counter-puncher, fast, efficient and able to land combinations that move the real world, not just the tokens on screen.</p><h4><strong>Round 1: The Autonomous Speedster; GPT-5.5</strong></h4><p>If GPT-5.5 were a car, it would have been Formula 1, not the biggest engine, but the most aerodynamic. OpenAI presented a headline stating 72% token efficiency, meaning it generates the right output with 28% fewer tokens than its predecessors.</p><p>Here is the simpler analogy: You asked two kids why the sky is blue, one kid writes three paragraphs with a lot of “umm, so, basically, like…” and the other kid writes “Air molecules in the atmosphere scatter sunlight, which contains all colours in all directions, with shorter blue light waves scattering more strongly than other colours.” same answer but with fewer words, GPT-5.5 is that second kid at an industrial scale.</p><p>But the major showstopper was the Terminal bench 2.0, the industry’s hardest benchmark for agentic and real-world use cases.</p><blockquote>GPT-5.5 scored 82.7% on Terminal-Bench 2.0, setting a new record for AI that can autonomously use a computer terminal to solve complex software engineering tasks, beating Claude Opus 4.7 (69.4%) by over 13 points. It excels at planning multi-step coding tasks, self-correcting errors, and operating in sandboxed environments.</blockquote><p>These kinds of tasks previously needed human babysitting for every third click. If your primary use case is automations, integrations and orchestrated workflows, then GPT-5.5 is the go-to.</p><h4><strong>Round 2: The Precision Architect; Claude Opus 4.7</strong></h4><p>Claude Opus 4.7 took a different path. While GPT 5.5 optimises for actions, Opus 4.7 optimises for correctness under complexities. Claude 4.7 achieved a score of <strong>64.3%</strong> on the SWE-bench Pro benchmark, which is currently the <strong>highest score</strong> for any generally available AI model, and Claude 4.7’s score is roughly 6 points higher than GPT-5.5 (58.6%). SWE-bench Pro is a stress test for the AI coding assistants; instead of small puzzles and Leetcode problems, it uses real production issues.</p><p>Here is the simpler analogy: You hand someone with 10,000 LEGO pieces already built with a castle and ask to fix the bride, and don’t knock anything down. Most of them will fiddle with the bridge and knock down the castle, but the Opus 4.7 will fix the bridge and hand you back the sturdier castle.</p><p>Also, Opus 4.7 vision capabilities are very good; it’s like giving AI a pair of high-definition glasses. It can see images in 3x higher resolution than before. At that resolution, it can read tiny fine print in legal documents, small numbers on a complex stock market chart and detailed labels on a scientific diagram.</p><h4><strong>Round 3: The Context Window; Library vs Sticky Notes</strong></h4><p>Claude Opus 4.7 has a 1M token context window, and GPT-5.5 has a 400,000 token context window, less than half, but still, GPT-5.5 does efficient memory optimisations.</p><p>Think of it this way, Opus 4.7’s context is a vast library. It can work on huge codebases, a year of meeting transcripts and multiple technical specifications simultaneously and cross-reference them easily. But the GPT 5.5’s context is a smaller desk, but it comes with clever sticky notes. It compresses, chunks and retrieves information more efficiently than double its stated window.</p><p>In practice, what it means is that if you are working with a codebase of 300,000 lines of code and want to debug a specific method, Opus 4.7 wins. If you are doing iterative tasks where you are cycling through short and high-frequency prompts, GPT-5.5 wins. Neither approach is universally better; they are different architectural bets on different use cases.</p><h4>Round 4: The Cost Equation, why “Cheaper” is more complicated than you think</h4><p>Imagine two cars, one costs ₹13,00,000 and gets 15 kmpl, and the other costs ₹18,00,000 and gets 20 kmpl. If you drive 30,000 kms a year. The expensive car costs thousands less in total. GPT-5.5 with 72% token efficiency is the second car. If your workload is high volume, repetitive and agentic, you will pay meaningfully less per task even if the per-token rate is similar or higher.</p><p>Claude Opus 4.7, on the other hand, earns its cost where mistakes are expensive. One bug in a financial system. In those scenarios, the cheaper model has to be re-prompted. So, choose your model based on where your risk lives.</p><h4>Result: There Is No Clear Winner, The Future Is a Tag Team</h4><p>Here is the result that most benchmark-obsessed coverage missed: there is no winner. Most AI deployments in 2026 aren’t built with a single model; they are built with multiple models. These intelligent systems ask, &quot; Which model is the right tool right now? Routes agentic automations to GPT-5.5 and code review, and architectural analysis to Claude Opus 4.7, so that each fighter plays to their strength.</p><p>Let’s step away from the heavyweight championship lens, the real story for the builders is: we now have two exceptional, differentiated tools in the same era, that’s not a fight, that’s a tag team. If you are building something serious in 2026, you should probably have both in your corner.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f274fd3e56e4" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/the-ai-heavyweight-championship-of-april-2026-claude-opus-4-7-vs-gpt-5-5-f274fd3e56e4">The AI heavyweight championship of April 2026: Claude Opus 4.7 vs GPT-5.5</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Code Passed Every Test. The System Still Burned. ]]></title>
            <link>https://levelup.gitconnected.com/the-code-passed-every-test-the-system-still-burned-10b1eb952ec9?source=rss-f874a04b0097------2</link>
            <guid isPermaLink="false">https://medium.com/p/10b1eb952ec9</guid>
            <category><![CDATA[tech-trends-2026]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Kiran H M]]></dc:creator>
            <pubDate>Mon, 06 Apr 2026 17:07:52 GMT</pubDate>
            <atom:updated>2026-04-06T17:07:52.550Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cUzxa31rFnNgjbF6TW9mtw.png" /><figcaption>Note: The image is made with AI</figcaption></figure><p>AI agents promised us 10x more productivity. But, in my experience, I’ve noticed a shift: we are not writing less code, we are stuck in AI-written code reviews, and we have started to think differently, not always for the better. The growing friction is that the AI agents are exceptionally good at being “locally correct” while remaining “architecturally blind”.</p><h3>Observation: The Illusion of Professionalism</h3><p>The trap is that the AI agents don’t write bad code; they write professional-looking bad code. Here is an example, while building a microservice backend using an AI coding agent to scaffold a user session management service in Node.js.</p><p>The agent produced a clean, well-commented, passing test code</p><pre>// session.service.js<br>const sessions = {};<br><br>export const createSession = (userId) =&gt; {<br>  const token = crypto.randomUUID();<br>  sessions[token] = { userId, createdAt: Date.now() };<br>  return token;<br>};<br><br>export const validateSession = (token) =&gt; {<br>  return sessions[token] ?? null;<br>};</pre><p>The code looks perfectly fine, and it works well locally. The code was then deployed to Kubernetes with horizontal scaling with multiple pod replicas, which means</p><ul><li>Pod A creates a session, and the token lives in Pod A’s memory</li><li>The next request gets load-balanced to Pod B. Pod B does not know that the token and session validation fail intermittently</li></ul><p>The bug was nondeterministic, meaning it appeared under load. It was untraceable on a single machine locally. The agent was reasoning at the functional level rather than the deployment topology level. The agent doesn’t know the complete context of</p><ul><li>The Kubernetes manifest</li><li>The horizontal pod autoscaler config</li><li>The fact that this was a distributed system</li></ul><p>The agent generated locally correct code, but the architectural constraints are invisible to a model which doesn’t hold the full system in context.</p><p>That debugging session took longer than it should have , not because the bug was complex, but because the code looked trustworthy. Nobody stopped to ask the uncomfortable question: <em>“where does this actually live at runtime?”</em> And that’s the silent tax of agent-first development. The professionalism of the output suppresses the skepticism that would have caught it. When you write that sessions = {} line yourself, something in your brain whispers — <em>wait, is this ephemeral? is that okay here?</em> The agent doesn&#39;t whisper. It just ships. And because you didn&#39;t build it, that whisper never fires.</p><h3><strong>The Insight: from Builder to Editor</strong></h3><p>There is a psychological cost to using the AI agents, which we don’t discuss: the loss of builder satisfaction.</p><blockquote>When we write code from scratch, we are forced to slow down, sit with the edge cases, and wrestle with the trade-offs. That “slow thinking” is where the mental model of the system is built. When we move to an agent-first workflow, we shift from a <strong>Builder</strong> to a <strong>Reviewer</strong>.</blockquote><p>As a reviewer, our brain stays in “editorial mode.” We skim for syntax and obvious errors, but we often miss the underlying architectural heresy. We are trading the deep satisfaction of creation for the cognitive drain of constant auditing.</p><h3>The Action: Reclaiming Ownership</h3><p>If you want to use AI agents without losing your edge, you have to reintroduce intentional friction. Here is how I advise my team to handle “Agent-Augmented” development:</p><ol><li><strong>Before the agent touches anything:</strong> Tell it the rules of your world. Not just the task, the constraints. <em>“No in-process state. Use the existing repository pattern. This runs on ten pods simultaneously.”</em> Agents aren’t architecturally blind by nature; they’re blind on context you never gave them. That’s on us.</li><li><strong>Once the code lands: </strong>Step away from the IDE. Open a notebook, and write exactly three lines without looking back at the output:</li></ol><blockquote>1. What the code does,</blockquote><blockquote>2. Why it is structured this way</blockquote><blockquote>3. One specific assumption that, if changed, would break the entire thing</blockquote><p><strong>3. The “Ownership Check”:</strong> If you cannot write those three lines without looking back at the agent’s output, you don’t own that code yet. You are just a passenger. Go back and read it until you can explain it to a human.</p><p><strong>4. Audit for System-Wide Impact:</strong> Agents optimize for the function, not the cluster. Always ask: “How does this behave when there are ten instances of it running simultaneously?”</p><p>The tools aren’t the problem. The passive trust is. If we aren’t careful, we’re going to end up with a generation of engineers who can critique a function but can’t explain the system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10b1eb952ec9" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/the-code-passed-every-test-the-system-still-burned-10b1eb952ec9">The Code Passed Every Test. The System Still Burned. 🔥</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From IDE Sidebars to Terminal Power: Why are Senior Devs reclaiming the CLI with Claude Code?]]></title>
            <link>https://levelup.gitconnected.com/from-ide-sidebars-to-terminal-power-why-are-senior-devs-reclaiming-the-cli-with-claude-code-4f336c0ff17a?source=rss-f874a04b0097------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f336c0ff17a</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[tech-trends-2026]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Kiran H M]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 10:51:19 GMT</pubDate>
            <atom:updated>2026-04-06T13:46:25.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LxkyCzvbhmOZIwVNQBUz5g.png" /><figcaption><strong>Note: The image is made using AI.</strong></figcaption></figure><p>In the early 2020s, we were told the future of coding is seamless, an AI-integrated IDE. We flocked to Cursor and Copilot, enjoying the chat window next to our editor. However, as codebases grew and tasks changed from “write this function” to “refactor this microservice,” a subtle friction arose</p><p>The IDE, despite its visual appeal, has a fundamental limitation: it <strong>treats your screen as the only source of truth.</strong></p><p><strong>The Observation: The context ceiling</strong></p><p>When you use an IDE-based agent, its world is often bounded by what’s “active”. Even with the codebase indexing, these tools struggle with “distant” logic; like one config file three subdirectories up or a dependency mismatch hidden in a lockfile.</p><p>In my experience, tools like Cursor excel at line-level speed but hit a “context ceiling” during large-scale orchestration. Industry data suggests a massive shift: In a 2026 survey of 900 engineers, <strong>46% named Claude Code as their favorite AI coding tool. T</strong>he same report highlights stronger enthusiasm among senior leaders because<em> </em>it bypasses the GUI. By operating directly in the terminal, these agents don’t just see code but they interact with the environment.</p><p><strong>The Insight: The “Screen vs Filesystem” Trade-off</strong></p><p>I’ve realised is that the <strong>IDE is actually a distraction for high-level reasoning. </strong>When an agent lives in your terminal, it treats the <strong>filesystem as the source of truth. </strong>This isn’t just a UI preference; it’s a functional advantage. A CLI-native agent like Claude Code can autonomously execute <em>docker-compose, </em>and verify Git state without waiting for a human to click “Allow” on every change.</p><p>I recently saw this in practice during a massive refactor across 15+ files. Where an IDE agent would lose the thread and start hallucinating variable names from a previous session, a CLI agent mapped the entire dependency tree, ran the tests and fixed its own linting error before I even looked at the diff. It turns the AI into a “Partner” rather than a “Smart Highlighter”.</p><p><strong>The Action: How to Reclaim the Terminal</strong></p><p>If you want to move beyond “vibe coding” and into true agentic orchestration, stop using AI for autocompletion and start using it for automation.</p><ol><li><strong>Start Small &amp; Local: </strong>Don’t try to refactor your entire monolith on day one. Install a CLI agent(like Claude Code) on a small, existing local repository.</li><li><strong>The Test-Drive Entry: </strong>Task the agent with writing a unit test for a single, complex function. This forces you to learn how to guide the agent through prompting and, crucially, how to spot when its architectural reasoning starts to drift.</li><li><strong>Audit the Diff: </strong>Use the terminal’s native Git interaction to review changes. CLI agents are superior at multi-file orchestration, but they require you to be a “Lead Reviewer” rather than just a “Coder”</li><li><strong>Leverage MCP: </strong>Connect your CLI agent to external tools (like Jira or Slack) via Model Context Protocol to give it real-world context beyond just the <em>.go</em> files</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f336c0ff17a" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/from-ide-sidebars-to-terminal-power-why-are-senior-devs-reclaiming-the-cli-with-claude-code-4f336c0ff17a">From IDE Sidebars to Terminal Power: Why are Senior Devs reclaiming the CLI with Claude Code?</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I cracked the system design interview with simple core concepts]]></title>
            <link>https://levelup.gitconnected.com/how-i-cracked-the-system-design-interview-with-simple-core-concepts-2a2c5681fe12?source=rss-f874a04b0097------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a2c5681fe12</guid>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Kiran H M]]></dc:creator>
            <pubDate>Wed, 02 Nov 2022 12:10:18 GMT</pubDate>
            <atom:updated>2022-11-02T12:10:18.469Z</atom:updated>
            <content:encoded><![CDATA[<h4>If you never designed a system before, this is the place to start</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SWUagggjv5hrwfoEAyeZMg.jpeg" /><figcaption>Image from pexels.com by Tima Miroshnichenko</figcaption></figure><p>If you’re preparing for a system design interview or you’re a Software Engineer with a full-time 9 to 5 job and want to start a side hustle or a weekend project, or if you already have one that’s getting traction and you want to scale it, fasten your seatbelt and read on.</p><p>Honestly, designing a system is very challenging and takes years for big companies but it all starts with a single step. As Will Smith famously said,</p><blockquote><em>You don’t set out to build a wall. You don’t say I’m going to build the biggest, badest, greatest wall that’s ever been built. You don’t start there. You say I’m gonna lay this brick as perfectly as a brick can be laid, and you do that every single day, and soon you have a wall.</em></blockquote><h4>Single server setup</h4><p>Let’s start with something simple where your web application, cache, and database are running on a single server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AGk7QpI95Imj3GOeywD8HQ.png" /><figcaption>Single server setup</figcaption></figure><h4>Separate Database</h4><p>Once your user base grows, a single server is not enough. We can add one more server for the database. Separating the web-tier and data-tier allows us to scale them independently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*viIuzPXkzVWJqAKPI3EIsg.png" /><figcaption>Seperate database setup</figcaption></figure><p>Now comes the question, which database to use? A traditional relational database or a non-relational database? It’s a hotly debated topic on the internet, but there is no definite answer, it depends on what kind of data you are storing. Both store the data but differently.</p><p>A relational database is a good fit</p><ul><li>If your application needs complex transactions and data integrity</li><li>You need to ensure ACID compliance</li><li>You don’t anticipate a lot of feature updates</li></ul><p>A non-relational database is a good fit</p><ul><li>If your application needs flexible or no predefined schema</li><li>If your application needs constant features addition</li><li>You are not concerned about 100% data consistency</li></ul><h4>Scaling the Web Servers</h4><p>When demand for your application skyrockets, you’ll realize the importance of the accessibility, availability, and capacity of your application. You want to scale the system and, you have two options, vertical scaling (scale-up) and horizontal scaling (scale-out). The difference between these two scaling types depends on the way computing resources are added to your system.</p><p>Vertical scaling increases the computational power of your current instances. Vertical scaling is like upgrading your old car with a Ferrari because you want more horsepower.</p><p>There is a hard limit to vertical scaling. It is not practical to add an infinite amount of CPU and RAM to a single server and if the server goes down, the entire application goes down.</p><p>Horizontal scaling adds capacity to a system by adding more instances to the system and distributing the processing and memory across multiple instances. It’s similar but you won’t ditch your old car to buy a Ferrari but keep your old car and add a Ferrari to your garage.</p><h4>Load Balancing</h4><p>To address the increased load, we’ve added more servers. We need a load balancer to distribute the load among multiple servers. A load balancer keeps a single server from getting overloaded, causing it to slow down or drop requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*lJUW7Ue6EbNxws4IUjdD5A.png" /><figcaption>Load balancer setup</figcaption></figure><p>This is how the load balancer works,</p><ul><li>A browser or an application gets a request and attempts to connect to a server.</li><li>The load balancer takes the request and forwards it to one of the servers in a server group depending on the predefined algorithm.</li><li>The server takes the connection request and, using the load balancer, responds to the client.</li></ul><p>One important thing to notice here is that the clients interact with the system using public IPs and the interaction between the load balancer and the servers happen via private IPs for increased security.</p><h4>Database Replication (Master-Slave)</h4><p>Assume your application becomes large-scale and your server crashes for whatever reason. After a few debugging sessions, you discover that the problem is caused by heavy read/write requests to your database server. In such instances, a master-slave database design is recommended. This design, which distributes the load across multiple nodes, can enable your application scale-out to meet your growing user base.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*FFgBg1v_jxhseuag6fdubw.png" /><figcaption>Database replication (Master-Slave)</figcaption></figure><p>A master database will only support write and update operations and, slave databases get copies of master data and supports only read operations.</p><p>If one of the slave databases crashes, the incoming requests will be forwarded temporarily to the healthy slave database or the master database. And if the master database is down, a slave database is promoted as the new master and incoming requests are forwarded to the new master.</p><h4>Cache data as much as you can</h4><p>A large-scale application experiences high traffic, which can gradually compromise application performance; we can cache the data to address this. Caching can be done at different layers like client-side, web application, database, and DNS. Here we are interested in the database layer, but the purpose is the same at every layer.</p><p>A Cache is a high-speed, temporary storage area that stores frequently accessed data. It can store previously retrieved or computed expensive responses so that future requests to the same data can be served faster than the primary database. The key advantages of caching are that it minimizes database workloads, lowers costs, and improves overall application performance.</p><p>There are several caching strategies and each will have a distinct influence on your system and its performance. A caching strategy defines the interaction between the data source and the caching system, as well as how your data may be retrieved. Consider how your data will be accessible so that you can choose which technique is ideal. Some of the more popular ones are listed below</p><ul><li>Cache aside</li><li>Read through</li><li>Write Through</li><li>Write back</li><li>Write Around</li></ul><p>The diagram below illustrates a simple read-through caching strategy. In my coming blog, I’ll go through all the caching strategies in detail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*1HCJDOVYs-df7SIHGXXqCA.png" /><figcaption>Read-through caching strategy</figcaption></figure><h4>Use Content Delivery Network (CDN) for static assets</h4><p>Your application may be hosted in a single location, but when users from other countries access it, the contents, such as images, videos, CSS, and JavaScript files, must travel around the world, which might cause an increased latency in your application. We can make use of CDN to address this issue.</p><p>A CDN is a network of servers across the globe. It is a method of delivering content to users depending on their geographic location more quickly and effectively.</p><h4>Support Multiple Geo-Diverse Data Centers</h4><p>You can lower the latency and further improve the overall performance of your application by forwarding the user’s request to the application to the nearest data centers. Moreover, if a disaster hits, such as a flood or an earthquake, only the data center closest to the disaster would be affected, while other data centers will be able to store the data for emergency access.</p><p>The geo-diverse strategy reduces the distance that your data must travel and, as a result, the time it takes for the data to reach its destination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*JcFI2X_s_AE70Ax1W_wDBA.png" /><figcaption>Multiple Geo-Diverse Data centers</figcaption></figure><p>The above figure shows how geo-diverse data centers work with two data centers in different locations. The users are geo-routed to the closest data center.</p><h4>Use of Message Queues</h4><p>You can decouple your application into independent, smaller building blocks which makes them easier to design, deploy, and manage. These distributed applications can effectively communicate, thanks to message queues.</p><p>The core concept of a message queue is simple and clear; messages are created by input services, sometimes known as producers or publishers, and they are published to a message queue. Consumers and subscribers are other services or servers that connect to the queue and carry out the tasks specified by the messages. The below figure shows the basic architecture of a message queue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*Xu8RnlfibaHx1zzf9w5QeQ.jpeg" /><figcaption>Source: <a href="https://www.cloudamqp.com/blog/what-is-message-queuing.html">https://www.cloudamqp.com/blog/what-is-message-queuing.html</a></figcaption></figure><p>The best use case of the message queues is they can act as a middleman between the microservices.</p><p>Another use case is that users can upload data to a website via an application. The website will handle this data, create an Excel, and email the user a copy of it. In this example, processing the data, creating Excel, and sending the email will take a few seconds, so a message queue can be used here.</p><h4>Database Scaling</h4><p>Our database becomes more overburdened as the number of data increases daily. This data layer needs to be scaled. Database scaling may be divided into two categories: vertical scaling and horizontal scaling.</p><p><strong>Vertical Scaling (Scaling-up):</strong></p><p>Assume you have a database server with 5GB of RAM that has reached its limit. To manage additional data, you now purchase a costly server with 2TB of RAM. Your server is now capable of handling massive volumes of data.</p><p>Vertical scaling, on the other hand, has several drawbacks:</p><ul><li>Powerful servers for vertical scaling are more costly.</li><li>Hardware limits.</li><li>A single point of failure is more likely.</li></ul><p><strong>Horizontal Scaling (Sharding):</strong></p><p>The below figure shows the difference between vertical and horizontal scaling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*94PAOGF0GY8WP7oIM8tLIQ.png" /><figcaption>Source: <a href="https://www.section.io/blog/scaling-horizontally-vs-vertically/">https://www.section.io/blog/scaling-horizontally-vs-vertically/</a></figcaption></figure><p>Horizontal scaling, as seen in the figure, is the horizontal expansion of the database by adding extra servers. It separates the data and distributes it over different servers, known as shards. Each shard is a separate database and shares the same schema, but the actual data on each shard is unique to the shard.</p><p>Think about the figure below. Users are kept in the database which is divided into shards according to user IDs. The incoming request will be sent to the appropriate shard via a hash function. We used user-id% 4 as the hash function on the four shards. Data is stored and retrieved from shard 0 if the hash function yields a value of 0. Shard 1 is utilized if it’s 1, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*U8j2ri-SpFvtNFsedrcbEA.png" /><figcaption>Database shards</figcaption></figure><p>Sharding is a fantastic approach, but oftentimes it challenges the system with new challenges.</p><ul><li>It is difficult to carry out join operations across database shards.</li><li>Some shards can be overloaded more rapidly than others. This is caused by the inconsistent distribution of data. This may be addressed by changing the shard function and redistributing data across shards.</li></ul><h4>Stateless over Stateful</h4><p>An application can be stateful or stateless depending on how long and how the state of interaction with the users is stored.</p><p>A stateful application, like any other application, utilizes a database, but it stores state data like user authentication and past requests on the server, making the application faster. It labels if the user is <em>connected</em> or <em>disconnected</em>. It also keeps track of previous requests from the same users. When processing subsequent user requests, it uses all of this information as context.</p><p>Here’s a simple example: A stateful application is equivalent to visiting your local bank, where you’ve been a customer for many years. Everyone in the bank knows who you are, so you don’t need to present your ID before making a transaction. The bank also keeps details of your previous transactions on a file. Simply walk up, ask questions about your balance, and tell them what transactions you want to do. This approach is quick and efficient as long as the bank can handle the number of clients attempting to make transactions at the same time.</p><p>Now imagine a queue of 1,000 individuals waiting to make a transaction at the same branch location — and there’s only one in town. There will be a long wait since the bank cannot handle this many requests at once. You can’t just go to a new bank since they won’t know who you are and won’t have access to your past bank account data. The fact that you must continue to visit the same bank branch, even when it is overcrowded and unable to complete your transactions, is a scalability issue.</p><p>We can address this issue by using a stateless application. A stateless application does not keep any data about past transactions on its server. Statelessness does not mean the absence of a state, it simply means that the state is stored elsewhere other than on the server. The state is transferred to clients and/or databases. Clients that store their state and the context for later transactions are required for stateless applications. As a result, stateless apps and their clients can communicate more independently and it adds the ability to scale.</p><h4>Logging and Monitoring your system</h4><p>Logging generates a set of events that happen in your applications and error monitoring can be used to identify the issues with your application and tells you whether your application is running or not. Both work well together just like bread and butter.</p><p>We’ve discussed each concept briefly; please go over each one in depth to fine-tune your system. Now, pat yourself on the back for learning the basic concepts and scalable components of a system design.</p><h4>References and further reading</h4><ul><li>System Design Interview by Alex Xu</li><li><a href="https://www.redhat.com/en/topics/cloud-native-apps/stateful-vs-stateless">https://www.redhat.com/en/topics/cloud-native-apps/stateful-vs-stateless</a></li><li><a href="https://blog.dreamfactory.com/stateful-vs-stateless-web-app-design">https://blog.dreamfactory.com/stateful-vs-stateless-web-app-design</a></li></ul><h3>Level Up Coding</h3><p>Thanks for being a part of our community! Before you go:</p><ul><li>👏 Clap for the story and follow the author 👉</li><li>📰 View more content in the <a href="https://levelup.gitconnected.com/?utm_source=pub&amp;utm_medium=post">Level Up Coding publication</a></li><li>🔔 Follow us: <a href="https://twitter.com/gitconnected">Twitter</a> | <a href="https://www.linkedin.com/company/gitconnected">LinkedIn</a> | <a href="https://newsletter.levelup.dev/">Newsletter</a></li></ul><p>🚀👉 <a href="https://jobs.levelup.dev/talent/welcome?referral=true"><strong>Placing developers like you at top startups and tech companies</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a2c5681fe12" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-i-cracked-the-system-design-interview-with-simple-core-concepts-2a2c5681fe12">How I cracked the system design interview with simple core concepts</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why is Decentralized Digital Identity the future of the web?]]></title>
            <link>https://medium.com/@imKiranSuvarna/why-is-decentralized-digital-identity-the-future-of-the-web-a5166718e478?source=rss-f874a04b0097------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5166718e478</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[decentralization]]></category>
            <dc:creator><![CDATA[Kiran H M]]></dc:creator>
            <pubDate>Tue, 11 Oct 2022 13:29:09 GMT</pubDate>
            <atom:updated>2022-10-11T13:29:09.535Z</atom:updated>
            <content:encoded><![CDATA[<h4>Blockchain-based identity</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b1rkgqKeTe8qpIxFQTSYTg.jpeg" /><figcaption>Source: <a href="https://phemex.com/academy/what-is-decentralized-identity">https://phemex.com/academy/what-is-decentralized-identity</a></figcaption></figure><p>I recently came across the concept of Decentralized Digital Identity and read a few articles online which were too technical. So I’m writing this blog that is easy to read with minimal effort. So sit back, relax and keep reading.</p><p>Our internet identity is broken. Don’t worry. We can still shop from amazon and browse social media, but the issue is we have to give away our personal information to use it. And only recently, we started to unlock the true potential of the internet with decentralization.</p><h3>What is decentralization?</h3><p>According to cryptodefinitions.com</p><blockquote><em>Decentralized is a term used to describe a system that is not owned or controlled by a single entity, such as a government, bank, or company. Instead, the product or service is run and maintained using the computing power contributed by a global network of participants.</em></blockquote><p>Now let’s see how the blockchain is used to bring digital identity into reality.</p><h3>What is Decentralized Digital Identity?</h3><p>An informal definition is,</p><blockquote><em>Decentralized Digital Identity is an emerging self-owned identity management concept that allows users to generate, manage and control their identity without depending on any third party service or identity provider.</em></blockquote><p>Let me give you an example. You visit different websites and provide user name and password to log in, which means you have different identities with each website. But if you set up your Dentantralized Digital Identity, your identity stays the same across the websites. And let’s say you visit a website and log in using Google. In this case, Google manages your identity, but if you set up your identity in the blockchain, you can manage your identity yourself.</p><p>Before going slightly deep, let’s see what’s the issue with the current system.</p><p>The current problem with Centralized Identity Management is that it is owned and maintained by a single issuer. They are used to get access to certain services provided by the issuer. Still, they cannot be used with other service providers.</p><p>An example of Centralized Identity is logging in to websites like Facebook. If Facebook decides to terminate your account, your identity is gone. Some E-commerce and social media platforms share our data with online businesses without our knowledge, so our identity is at the mercy of these centralized providers.</p><h3>How Decentralized Digital Identity works.</h3><p>Let’s say you have a decentralized identity wallet application on your phone. You use the application to generate an identity. Now, you can provide these identity credentials to different websites. These websites validate your identity credentials and give you the necessary access.</p><p>It is trustworthy because the identity wallet application uses cryptographic systems. Once the identity is created, the wallet application generates cryptographic private and public keys. The application then submits the public key to the blockchain, which generates a unique identifier against your wallet. The biometric data or a pin that only you know will secure the private key. The private key remains with your device/identity wallet and is used during the authentication.</p><p>One main advantage is once your identity is presented, you can revoke it at any point with just a single click.</p><h3>Final words</h3><p>With decentralized identity, there is no user name and password but rather cryptographic keys to log in to a website, and you only share the data relevant to a specific service. While the decentralized identity is an excellent concept, in theory, there is a low level of adaptation. Most users are still unaware of this, and governments are trying to figure out how to deploy the decentralized identity at scale.</p><p>Overall, decentralized identity is a big paradigm shift in the web. It can open the door to many other things you could do with blockchain once we solve the current digital identity issues.</p><p>So, now a question for you. What do you think about the decentralized identity, and are you gonna use it when it’s there?</p><p><strong><em>I’m so new to this medium thing, so I could use all the help I could get. So please consider following me, and if you do, I’ll appreciate it and see you in the comment section.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5166718e478" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Moonlighting in the tech industry]]></title>
            <link>https://levelup.gitconnected.com/moonlighting-in-tech-industry-6cef7d468e02?source=rss-f874a04b0097------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cef7d468e02</guid>
            <category><![CDATA[employment]]></category>
            <category><![CDATA[moonlighting]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kiran H M]]></dc:creator>
            <pubDate>Thu, 29 Sep 2022 09:44:53 GMT</pubDate>
            <atom:updated>2022-10-06T14:51:14.558Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B25h_LyhKkwqWvkPJmRc7A.jpeg" /></figure><p>Moonlighting is the practice of performing a secondary job, typically secretly in addition to one’s primary job, without the knowledge of one’s employer.</p><p>Wipro Chairman Rishad Premji stated recently that the company discovered 300 of its employees were working for one of its competitors at the same time, adding that such incidents were dealt with by terminating their employment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*AgSO_aOzMuuDzrVItnFx0g.png" /><figcaption>Rishad Premji’s tweet on moonlighting</figcaption></figure><p>Many companies have a finance department that checks UAN numbers of employees on the EPFO employer dashboard to see if they are associated with other companies.</p><p>Even at Google, any code written by a developer during his or her employment will be owned by Google.</p><h4>Why are people moonlighting?</h4><ul><li>Firstly, Work From Home saves employees a lot of time. They no longer have to travel a great distance in hectic traffic to get to work. And all of the time you spend in the workplace sitting down and chatting with everyone and everything is gone after Work From Home.</li><li>Layoffs are becoming more and more common across industries so now the employees started to think “Does it make sense to devote all of my time to just one company where one day my boss can come into the office and suddenly says, guess what? no more job.”</li><li>And traditionally growing one’s income by being promoted may look less attractive.</li></ul><h4>Reasons why you should not consider moonlighting</h4><ul><li>You may get fired. Companies will have dual employment policies and if the company is looking to downsize you are just giving them an excuse to get rid of you. No one wants to get fired, it sucks.</li><li>If you work two jobs, you must accept as little responsibility as possible and neither of the companies will see you at your best, putting your career in danger. You may make big money in the near term, but it will kill you in the long run.</li><li>Mental burnout</li></ul><h4><strong>Conclusion</strong></h4><p>In India, unless banned by the employment contract, a person can perform many jobs without violating the law. It is a strict NO if the company contract forbids moonlighting.</p><p>The companies will have the leverage, that they can fire someone who does moonlight because they have 100s of other people lining up to the interview and the employee’s leverage is, “Okay fire me because I have two other companies I’m already working on” I think it’s a game and if you don’t play you’re gonna get played.</p><p>Moonlighting is an open secret, everybody knows everybody else does it but nobody talks about it.</p><blockquote>But all the money you earn by moonlighting at what cost? You’ll burn out. If you are too busy to enjoy life, then that’s a problem.</blockquote><h4>Reference:</h4><p><a href="https://swarajyamag.com/ideas/moonlighting-is-here-to-stay-big-tech-must-read-the-writing-on-the-wall"><em>https://swarajyamag.com/ideas/moonlighting-is-here-to-stay-big-tech-must-read-the-writing-on-the-wall</em></a></p><p><strong><em>I’m so new to this medium thing so I could use all the help I can get so please consider following and if you do I’ll appreciate it and see you in the comment section.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cef7d468e02" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/moonlighting-in-tech-industry-6cef7d468e02">Moonlighting in the tech industry</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Short Intro on Concurrency and Parallelism]]></title>
            <link>https://levelup.gitconnected.com/a-short-intro-on-concurrency-and-parallelism-1417bd04e881?source=rss-f874a04b0097------2</link>
            <guid isPermaLink="false">https://medium.com/p/1417bd04e881</guid>
            <category><![CDATA[parallelism]]></category>
            <category><![CDATA[concurrency]]></category>
            <category><![CDATA[go]]></category>
            <dc:creator><![CDATA[Kiran H M]]></dc:creator>
            <pubDate>Fri, 09 Sep 2022 16:14:44 GMT</pubDate>
            <atom:updated>2022-10-06T14:50:19.842Z</atom:updated>
            <content:encoded><![CDATA[<h4>Two best friends with a clear separation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*vTtjb_6qfLIXMcEJZadl6Q.png" /></figure><p>I want to thank you for stopping by and reading this blog instead of scrolling through Instagram and swiping right. The real reason I’m writing this blog is to brush up on my knowledge of concurrency and parallelism.</p><p>I recently discovered a learning method by reading about Richard Feynman. The method states,</p><blockquote>Write the idea down as simply as you can and consider how you would explain it to someone who has little or no prior knowledge of the idea.</blockquote><p>So I’m giving it my all here. Before we get into the definitions, consider some practical examples.</p><p><strong>Concurrency</strong> is having only one hand and doing something with it, stopping, starting something else, stopping, and returning to the first thing. You’re splitting one hand between several activities.</p><p><strong>Parallelism</strong> is when you use both of your hands to brush your teeth with one hand while styling your hair with the other.</p><p><strong>Concurrency</strong> is two lines of customers ordering from a single cashier (lines take turns ordering); <strong>Parallelism</strong> is two lines of customers ordering from two cashiers (each line gets its own cashier).</p><h4>Definitions:</h4><p>By Rob Pike, famous programmer, and author</p><blockquote><strong>Concurrency</strong> is <strong>dealing</strong> with multiple things at the same time while <strong>Parallelism</strong> is <strong>doing</strong> multiple things at the same time.</blockquote><p>In the book <strong><em>The Pragmatic Programmer</em></strong></p><blockquote>Concurrency is when the execution of two or more pieces of code act as if they run at the same time. <strong>Parallelism</strong> is when they do run at the same time.</blockquote><p>On the surface, both seem similar and also I’ve seen some developers use these words interchangeably but both have clear separations.</p><p>Let’s dive a little deeper with some diagrams</p><h4><strong>Concurrency:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_zj53jzmDQm91Ql8NgtfA.png" /><figcaption>Concurrency in a single CPU</figcaption></figure><p>Under modern terminology, the CPU and processor mean more or less the same thing. So consider the above scenario in a single CPU / processor. A <strong>thread</strong> of execution is the smallest sequence of programmed instructions that can be managed independently.</p><p>A computer with only one CPU cannot perform more than one task at a time. When given multiple tasks, such as making requests to the Google, Twitter, and Medium websites, it simply switches between them. This switching is so quick and seamless that it appears to the user to be multitasking.</p><h4>Parallel execution:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*80emj62LPiqNIXTe2qYEXw.png" /><figcaption>Parallelism in multiple CPUs</figcaption></figure><p>We looked at a single CPU / processor in concurrency, but most computers now have more than one processor, and most processors have more than one core. Parallel execution occurs when a computer has more than one CPU or CPU core and works on multiple tasks at the same time.</p><h4>Let’s go a little further with some code samples in Go:</h4><p>Go was designed to take advantage of multiple cores natively, and it knows how to do so effectively. To support concurrency, Golang provides goroutines.</p><blockquote>A goroutine is a lightweight thread managed by the Go runtime.</blockquote><p>A goroutine requires only 2kB of stack space to initialize. A standard thread, on the other hand, can take up to 1MB of memory, so creating a thousand goroutines requires far fewer resources than creating a thousand threads.</p><p><strong>Concurrency</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ECsYlEPDBnupQ0vRiCPxDQ.png" /><figcaption>Concurrency in Go</figcaption></figure><p>As seen in the above example, a method in Go may be made run concurrently by simply prepending the method call with the “go” keyword. The pingWebsite method is called from main method concurrently and prints the website’s status to the console. Run and debug it once on your PC to better understand it.</p><p><strong>Parallelism</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZO8oItODn1VZ3ezHCeNj3A.png" /><figcaption>Parallel execution in Go</figcaption></figure><p>The above example is almost similar to the previous example but a major change is we have introduced a lock mechanism to mimic the parallel execution.</p><p>The line</p><p>runtime.GOMAXPROCS(runtime.NumCPU())</p><p>sets the number of CPUs that can be used, if not set it uses all available CPUs</p><blockquote>GOMAXPROCS sets the maximum number of CPUs that can be executed simultaneously and returns the previous setting. It defaults to the value of runtime.NumCPU.</blockquote><p>The line</p><p>runtime.LockOSThread()</p><p>prevents goroutines from reusing existing threads by locking the thread and unlocking it after the task is completed in the following line.</p><p>runtime.LockOSThread().</p><p>The pingWebsite method is called from main method parallelly and prints the website’s status and the number of threads before and after the execution to the console. The number of threads after the code execution is greater than before the execution. And remember Go can automatically create the required number of threads dynamically.</p><p>To better understand it, please run and debug both examples on your computer.</p><p>That is how we can implement parallel execution in Go. By default, the Go scheduler reuses threads that are not blocked.</p><p>You can find the code samples <a href="https://github.com/KiranSuvarna/Medium-Blogs/tree/main/A%20short%20intro%20on%20Concurrency%20and%20Parallelism">here</a>.</p><h4><strong>Final thoughts</strong></h4><p>Concurrency and parallelism have a very distinct meanings in the realm of computers and engineering and I hope you are crystal clear on what each one exactly means. So if you ask which one is better, there is no single answer, you have to figure out which one is better for your use case. What do you think? Is concurrency better than parallelism? or is parallelism better than concurrency? Are apples better than oranges?</p><p>Thank you so much if you’ve made it this far. You are now free to scroll through random cat videos on the internet. If you enjoyed this blog, please give it a clap, leave a comment, and follow for more.</p><h4>References:</h4><ol><li><a href="https://jenkov.com/tutorials/java-concurrency/concurrency-vs-parallelism.html">https://jenkov.com/tutorials/java-concurrency/concurrency-vs-parallelism.html</a></li><li><a href="https://pkg.go.dev/runtime#GOMAXPROCS">https://pkg.go.dev/runtime#GOMAXPROCS</a></li><li><a href="https://levelup.gitconnected.com/how-to-implement-concurrency-and-parallelism-in-go-83c9c453dd2">https://levelup.gitconnected.com/how-to-implement-concurrency-and-parallelism-in-go-83c9c453dd2</a></li><li><a href="https://youtu.be/oV9rvDllKEg">https://www.youtube.com/watch?v=oV9rvDllKEg</a></li><li><a href="https://stackoverflow.com/questions/1050222/what-is-the-difference-between-concurrency-and-parallelism">https://stackoverflow.com/questions/1050222/what-is-the-difference-between-concurrency-and-parallelism</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1417bd04e881" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/a-short-intro-on-concurrency-and-parallelism-1417bd04e881">A Short Intro on Concurrency and Parallelism</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How “Planning Ahead” has helped me become a better programmer]]></title>
            <link>https://levelup.gitconnected.com/how-planning-ahead-has-helped-me-become-a-better-programmer-5a154a500f51?source=rss-f874a04b0097------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a154a500f51</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Kiran H M]]></dc:creator>
            <pubDate>Thu, 04 Aug 2022 10:16:31 GMT</pubDate>
            <atom:updated>2022-10-06T14:50:32.258Z</atom:updated>
            <content:encoded><![CDATA[<h4>If you want to make programming easier, develop a plan in advance.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vRfaDn43kyjoY01pJCQW2g.jpeg" /></figure><p>Pseudocode Programming Process (PPP), which I had never used before, was something I recently learned and found to be quite simple to understand. PPP enables you to “Plan Ahead” by reducing the amount of thinking that must be done when coding. I discovered that planning a project out in advance makes coding much simpler and results in far better code. By making plans in advance, you become proactive and can foresee many potential obstacles in your path.</p><blockquote>Before beginning to code, I believe it’s always preferable to have a birds-eye view.</blockquote><p>I used to believe that everything is in my head, thus I always found it tempting to go right in and start coding. But that wasn’t a good idea until I learned about PPP.</p><p>PPP is described by Steve McConnell in Code Complete as</p><p>The term “pseudocode” refers to an informal, English-like notation for describing how an algorithm, a routine, a class, or a program will work, the Pseudocode Programming Process defines a specific approach to using pseudocode to streamline the creation of code within routines.</p><h3>How do you put it to use?</h3><p>You’re right, there is no standard pseudocode syntax, there are a few guidelines for its efficient use.</p><ol><li>Use simple language for your statements.</li><li>The pseudocode should be language-independent; do not employ programmatic syntax; instead, keep it simple.</li><li>If necessary, capitalize the key commands like IF and ELSE.</li><li>Be sure to indent properly.</li><li>Be sure to include a detailed header comment.</li><li>Finally, place the code immediately after each pseudocode statement.</li></ol><p>Let’s look at a straightforward example.</p><pre><strong>This routine returns a success or an error message depending on an Email address that is given by the caller routine. If the email is valid, it returns a success message; otherwise, it returns an error message.</strong></pre><pre># Derive an email regular expression to test the Email address</pre><pre># IF the email does not adhere to the regex rule. <br>    # Keep a record of the email and error message by logging <br>    # Return the message &quot;Invalid Email&quot; </pre><pre># ELSE, if the above condition is false the email address matches the regex, determine to see if the database already contains a similar email address. </pre><pre># IF it already does, <br>    # Keep a record of the email and error message by logging <br>    # Return &quot;Email already exists!&quot; error message</pre><pre># IF the above criteria are not met, <br>    # Log the email and success message to keep a record <br>    # Return the success message to the caller</pre><h3>Final Thoughts</h3><p>PPP assists you to break down a large problem into manageable pieces. It’s an iterative process, you could able to review the pseudocode statements and make changes easily because it’s easier to change the statements than the code itself.</p><blockquote>It’s easier to change a line in the blueprint than rip out the wall</blockquote><p>You can turn pseudocode statements into code comments, it will benefit code reviewers as well. It makes developer life easy when debugging an issue in the production at 3 A.M.</p><h3><strong>Inspired by</strong></h3><p>Complete Code 2 by Steve McConnell</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a154a500f51" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-planning-ahead-has-helped-me-become-a-better-programmer-5a154a500f51">How “Planning Ahead” has helped me become a better programmer</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>