<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Prasad Rane</title>
    <description>The latest articles on DEV Community by Prasad Rane (@prasad_rane_dev).</description>
    <link>https://dev.to/prasad_rane_dev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3428548%2F4ef90e6e-a2f2-4119-9e62-9246a4a5b6a7.jpg</url>
      <title>DEV Community: Prasad Rane</title>
      <link>https://dev.to/prasad_rane_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prasad_rane_dev"/>
    <language>en</language>
    <item>
      <title>How I Use Coding Agents Without Losing My Mental Models</title>
      <dc:creator>Prasad Rane</dc:creator>
      <pubDate>Tue, 22 Sep 2026 19:02:50 +0000</pubDate>
      <link>https://dev.to/prasad_rane_dev/how-i-use-coding-agents-without-losing-my-mental-models-196l</link>
      <guid>https://dev.to/prasad_rane_dev/how-i-use-coding-agents-without-losing-my-mental-models-196l</guid>
      <description>&lt;p&gt;A junior developer recently asked me if he was falling behind because he used AI less than his peers.&lt;/p&gt;

&lt;p&gt;I said - "Using AI for everything early in your career buys speed at the cost of mental models".&lt;/p&gt;

&lt;p&gt;The cache bugs I wrote by hand years ago taught me why write ordering and TTL expiry interact badly. That lesson only stuck because I watched my own wrong intuition fail in production and had to trace the logs myself. A generated fix skips the failure, and the failure was the teacher.&lt;/p&gt;

&lt;p&gt;If you accept AI fixes without understanding the underlying failure, you trade a quick fix today for a system you cannot debug when something unusual breaks.&lt;/p&gt;

&lt;p&gt;Here is how I approach this now - &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Form a hypothesis first, &lt;/li&gt;
&lt;li&gt;use the model to find blind spots, and&lt;/li&gt;
&lt;li&gt;ration where AI is allowed to write code.&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;The Hypothesis-First AI Loop
The most common trap with coding agents is pasting an error log into the prompt and asking the model to fix it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When you do that, you skip the step where you build a mental model of the system. The model returns code that compiles and passes the immediate test, but you do not learn why the failure happened or what secondary effects the change introduces.&lt;/p&gt;

&lt;p&gt;A more reliable loop keeps the engineer responsible for the hypothesis while using the model to stress-test assumptions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F975n50gcl34b2hdej1st.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F975n50gcl34b2hdej1st.png" alt="Figure 1: The four-step loop for pairing with coding agents." width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 1: The four-step loop for pairing with coding agents.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  The Four Steps:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Form a hypothesis:&lt;/strong&gt; Before opening a prompt, write down what you think is failing and why. Even if your guess is wrong, stating it forces you to model the system in your head.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask the model for alternatives:&lt;/strong&gt; Instead of asking for code, ask the model what other failure modes could produce the same symptom. For example: "I suspect this timeout is caused by database connection pool saturation. What other downstream bottlenecks could produce this error pattern?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify against empirical evidence:&lt;/strong&gt; Check distributed traces, server logs, and queue metrics to see which explanation fits the data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update your understanding:&lt;/strong&gt; Compare the actual root cause with your original hypothesis. The gap between what you thought happened and what the telemetry showed is where your understanding improves.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  2. A Common Failure Mode: Naive Retries and Pool Exhaustion
&lt;/h2&gt;

&lt;p&gt;Here is an example I have seen in production code generated by AI assistants.&lt;/p&gt;

&lt;p&gt;A service calling an external API starts seeing intermittent HTTP 504 gateway timeouts. When given the error log, the model suggests adding a retry loop with an increased timeout.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Anti-pattern: Naive retry loop masking systemic failure
&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;call_upstream_service&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max_retries&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="c1"&gt;# Model suggested increasing timeout from 3s to 10s and retrying 5 times
&lt;/span&gt;    &lt;span class="n"&gt;timeout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;10.0&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max_retries&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exceptions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;RequestException&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;exc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;max_retries&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;RuntimeError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Service failed after &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;max_retries&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; attempts: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;exc&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

            &lt;span class="c1"&gt;# Predictable exponential backoff without jitter
&lt;/span&gt;            &lt;span class="n"&gt;sleep_duration&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt;
            &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sleep_duration&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In isolated unit tests, this snippet passes. Under production load, it causes several problems:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Synchronized retry storms:&lt;/strong&gt; Because the backoff uses fixed powers of two without jitter, hundreds of concurrent callers retry at the exact same intervals, overwhelming the upstream service as it tries to recover.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Socket and thread exhaustion:&lt;/strong&gt; Increasing the timeout from 3 seconds to 10 seconds means threads hold outbound connections three times longer. Under steady traffic, the web server exhausts its worker pool, and incoming requests queue up until the health check fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Latency amplification:&lt;/strong&gt; Instead of failing fast within 3 seconds so the caller can degrade gracefully, requests hang for up to a minute before failing anyway.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftnzr6ahxjtb1mk2tyk9j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftnzr6ahxjtb1mk2tyk9j.png" alt="Figure 2: How an unjittered retry loop exhausts connection pools compared to a bounded circuit-breaker pattern." width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 2: How an unjittered retry loop exhausts connection pools compared to a bounded circuit-breaker pattern.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The model suggested this implementation because retrying with exponential backoff is standard boilerplate in its training data. It has no visibility into your thread pool limits, traffic distribution, or upstream capacity.&lt;/p&gt;
&lt;h2&gt;
  
  
  3. Resilient Implementation: Bounded Retries and Circuit Breaking
&lt;/h2&gt;

&lt;p&gt;When you know the failure dynamics, you do not let the model pick the strategy. You define the bounds first: maximum latency, randomized jitter, and a circuit breaker that sheds load when the downstream service is down.&lt;/p&gt;

&lt;p&gt;Here is a Python implementation that enforces those boundaries:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;dataclasses&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;dataclass&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;enum&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Enum&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;typing&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Callable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Any&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;CircuitState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Enum&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;CLOSED&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;CLOSED&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="n"&gt;OPEN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;OPEN&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="n"&gt;HALF_OPEN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;HALF_OPEN&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="nd"&gt;@dataclass&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frozen&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ResilienceConfig&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;max_attempts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
    &lt;span class="n"&gt;base_backoff_sec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.2&lt;/span&gt;
    &lt;span class="n"&gt;max_backoff_sec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;2.0&lt;/span&gt;
    &lt;span class="n"&gt;failure_threshold&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;
    &lt;span class="n"&gt;recovery_timeout_sec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;15.0&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;CircuitBreakerOpenException&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;Raised when requests are shed immediately because the circuit is open.&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="k"&gt;pass&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;BoundedResilientClient&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;
    Client that limits retry duration, adds full jitter,
    and protects thread pools through circuit breaking.
    &lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ResilienceConfig&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CircuitState&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CLOSED&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;failure_count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;last_state_change&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;monotonic&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_on_failure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;failure_count&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;failure_count&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;failure_threshold&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CircuitState&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;OPEN&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;last_state_change&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;monotonic&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_on_success&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;failure_count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
        &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CircuitState&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CLOSED&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_compute_backoff_with_jitter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;ceiling&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;max_backoff_sec&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;base_backoff_sec&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uniform&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ceiling&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Callable&lt;/span&gt;&lt;span class="p"&gt;[[],&lt;/span&gt; &lt;span class="n"&gt;Any&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;Any&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;monotonic&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;CircuitState&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;OPEN&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;last_state_change&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;recovery_timeout_sec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;CircuitState&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;HALF_OPEN&lt;/span&gt;
            &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="c1"&gt;# Fail immediately to protect local thread and connection pools
&lt;/span&gt;                &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;CircuitBreakerOpenException&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; circuit is OPEN. Request shed.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;max_attempts&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
            &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;action&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;_on_success&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;
            &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;max_attempts&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;CircuitState&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;HALF_OPEN&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                    &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;_on_failure&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                    &lt;span class="k"&gt;raise&lt;/span&gt;

                &lt;span class="n"&gt;backoff&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;_compute_backoff_with_jitter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;backoff&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This pattern prevents cascading issues in three ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Immediate rejection:&lt;/strong&gt; When the circuit is open, requests fail in fractions of a millisecond, leaving thread pools free for healthy routes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;De-synchronized traffic:&lt;/strong&gt; Full jitter spreads retries evenly across time, avoiding thundering herd spikes on recovering services.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strictly bounded wait time:&lt;/strong&gt; Retries cap out quickly rather than holding resources for long timeouts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. The AI Task Rationing Matrix
&lt;/h2&gt;

&lt;p&gt;To build and preserve engineering judgment, categorize engineering tasks by the risk of outsourcing understanding:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyohir16dwzonh55d9t54.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyohir16dwzonh55d9t54.png" alt="Figure 3: Framework for delegating engineering tasks to AI based on cognitive value and risk" width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 3: Framework for delegating engineering tasks to AI based on cognitive value and risk.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Typical Tasks&lt;/th&gt;
&lt;th&gt;Role for AI&lt;/th&gt;
&lt;th&gt;Review Rule&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Low Risk (High Leverage)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Syntax lookups, boilerplate, regular expressions, test setup, CLI flags&lt;/td&gt;
&lt;td&gt;Full delegation&lt;/td&gt;
&lt;td&gt;Verify syntax and run existing tests. Relearning these syntax details adds little value.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Medium Risk (Collaborative)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Edge cases, schema validation, test coverage gaps, local refactoring&lt;/td&gt;
&lt;td&gt;Sounding board&lt;/td&gt;
&lt;td&gt;Write the core logic yourself first. Ask the model what inputs or boundaries you missed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;High Risk (Critical Core)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Concurrency controls, database transactions, auth/permissions, cache invalidation&lt;/td&gt;
&lt;td&gt;Adversarial reviewer&lt;/td&gt;
&lt;td&gt;Design and write alone. Use the model only to generate adversarial test cases against your finished contracts.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  5. Practical Guidelines for Teams
&lt;/h2&gt;

&lt;p&gt;Before merging code authored or suggested by an agent, review against these checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Can you explain the execution path and edge cases without consulting the prompt?&lt;/li&gt;
&lt;li&gt;[ ] Did you state a hypothesis about the bug before asking the model for a fix?&lt;/li&gt;
&lt;li&gt;[ ] Are failure modes (timeouts, 429 rate limits, partial payloads) verified with actual test assertions rather than happy-path mocks?&lt;/li&gt;
&lt;li&gt;[ ] Are retries, timeouts, and resource pools strictly bounded?&lt;/li&gt;
&lt;li&gt;[ ] Does the change solve the root cause rather than increasing a buffer or timeout to mask a bottleneck?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. Summary
&lt;/h2&gt;

&lt;p&gt;Coding tools are fast, but they do not build mental models for you.&lt;/p&gt;

&lt;p&gt;Point AI at the parts of your work where being wrong has low consequence: typing boilerplate, scaffolding tests, and looking up syntax. Keep your hands on the core logic: state management, failure modes, and system boundaries.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>learning</category>
      <category>programming</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>The Part of AI Coding Agents I Didn't Expect to Care About: Latency</title>
      <dc:creator>Prasad Rane</dc:creator>
      <pubDate>Mon, 07 Sep 2026 06:19:42 +0000</pubDate>
      <link>https://dev.to/prasad_rane_dev/the-part-of-ai-coding-agents-i-didnt-expect-to-care-about-latency-44ak</link>
      <guid>https://dev.to/prasad_rane_dev/the-part-of-ai-coding-agents-i-didnt-expect-to-care-about-latency-44ak</guid>
      <description>&lt;p&gt;I spent the last few months pretty much living in Claude Code.&lt;/p&gt;

&lt;p&gt;It became a regular part of how I worked: give it a task, let it work through the codebase, review what it changed, and keep iterating.&lt;/p&gt;

&lt;p&gt;Today I ran the same multi-step agentic task through Google Antigravity, and the difference surprised me.&lt;/p&gt;

&lt;p&gt;Antigravity, running Gemini Flash 3.8, finished the task in about half the time Claude Code took with Sonnet 5.&lt;/p&gt;

&lt;p&gt;The speed was nice, but that's not actually what stood out to me.&lt;/p&gt;

&lt;p&gt;It was the waiting.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hidden cost of waiting
&lt;/h2&gt;

&lt;p&gt;When an AI coding agent is working through several tool calls, there are moments where you can be staring at the screen for a minute or two waiting for the next step.&lt;/p&gt;

&lt;p&gt;At first, I didn't think much of it.&lt;/p&gt;

&lt;p&gt;But I've noticed what I do during those waits.&lt;/p&gt;

&lt;p&gt;I check Slack.&lt;/p&gt;

&lt;p&gt;I look at another tab.&lt;/p&gt;

&lt;p&gt;I start thinking about something else.&lt;/p&gt;

&lt;p&gt;And when the agent finally finishes, I have to spend a few seconds — sometimes longer — figuring out where I was in the problem.&lt;/p&gt;

&lt;p&gt;That's a surprisingly expensive interruption.&lt;/p&gt;

&lt;p&gt;It's not just the two minutes spent waiting. It's the context switch that happens during those two minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the feedback loop gets tight
&lt;/h2&gt;

&lt;p&gt;With a faster agent, the interaction feels different.&lt;/p&gt;

&lt;p&gt;You make a change.&lt;/p&gt;

&lt;p&gt;The agent runs a tool.&lt;/p&gt;

&lt;p&gt;It comes back.&lt;/p&gt;

&lt;p&gt;You review the result and give it the next instruction.&lt;/p&gt;

&lt;p&gt;Repeat.&lt;/p&gt;

&lt;p&gt;When those cycles happen in seconds rather than minutes, it's much easier to stay focused on the problem.&lt;/p&gt;

&lt;p&gt;You still have the architecture in your head. You remember why you made the previous change. You know what you want to try next.&lt;/p&gt;

&lt;p&gt;You don't have to reconstruct the mental model every time the agent finishes a long operation.&lt;/p&gt;

&lt;p&gt;That was the part I didn't expect to notice as much as I did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Speed isn't just about tokens per second
&lt;/h2&gt;

&lt;p&gt;When we compare coding agents, we tend to focus on things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which model writes better code?&lt;/li&gt;
&lt;li&gt;How good is the reasoning?&lt;/li&gt;
&lt;li&gt;How well does it understand a large codebase?&lt;/li&gt;
&lt;li&gt;How accurate are its tool calls?&lt;/li&gt;
&lt;li&gt;How fast does it generate tokens?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those things obviously matter.&lt;/p&gt;

&lt;p&gt;But there's another metric that is harder to measure:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How long does it take to get back into the interaction?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A coding agent isn't operating in isolation. There's a human sitting in the loop.&lt;/p&gt;

&lt;p&gt;If the agent takes two minutes to complete a step, the human doesn't necessarily remain in the loop for those two minutes.&lt;/p&gt;

&lt;p&gt;That's where latency starts affecting productivity in a way that raw benchmark numbers don't really capture.&lt;/p&gt;

&lt;h2&gt;
  
  
  I'm not abandoning Claude Code
&lt;/h2&gt;

&lt;p&gt;Claude Code is still very good, and I wouldn't make a broader conclusion from one task or one comparison.&lt;/p&gt;

&lt;p&gt;The point isn't that one tool is universally better than another.&lt;/p&gt;

&lt;p&gt;What surprised me was how much &lt;strong&gt;low latency changed the way I interacted with the agent&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After experiencing an agent that keeps the feedback loop moving quickly, long waits feel much more noticeable.&lt;/p&gt;

&lt;p&gt;Maybe that's one of the next things we'll start paying more attention to with agentic development:&lt;/p&gt;

&lt;p&gt;Not just &lt;em&gt;how capable is the model?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;But also:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How well does the system keep the developer in the loop?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Because sometimes the biggest productivity improvement isn't getting the agent to do more.&lt;/p&gt;

&lt;p&gt;It's simply not giving the developer enough time to get distracted.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devrel</category>
      <category>programming</category>
      <category>agents</category>
    </item>
    <item>
      <title>Starting Enterprise-wide Kafka Governance</title>
      <dc:creator>Prasad Rane</dc:creator>
      <pubDate>Wed, 06 May 2026 17:35:52 +0000</pubDate>
      <link>https://dev.to/prasad_rane_dev/starting-enterprise-wide-kafka-governance-14e2</link>
      <guid>https://dev.to/prasad_rane_dev/starting-enterprise-wide-kafka-governance-14e2</guid>
      <description>&lt;p&gt;Technical leadership isn't always about having the right title; it’s about having the right influence. When you are operating without direct authority, setting standards across autonomous teams requires a shift from "enforcing mandates" to "solving shared pain."&lt;/p&gt;

&lt;h2&gt;
  
  
  The Mess: Visualizing the Chaos
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftfbw8nxbumjc34vafo97.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftfbw8nxbumjc34vafo97.png" alt="Visualizing the Chaos" width="649" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It began on a Tuesday in a conference room, facing a whiteboard filled with chaotic arrows representing event flows. The AWS MSK dashboard displayed a patchwork of inconsistent topic names.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;loan-processing.loancreated
LoanService.Events.Created
mortgage.v2.loan.originated
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These topics often performed the same functions but were impossible to correlate during system failures. Same intent. Same cluster. Completely different conventions.&lt;/p&gt;

&lt;p&gt;When something broke, tracing ownership or flow was guesswork.&lt;/p&gt;

&lt;p&gt;But naming inconsistencies were just the symptom.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;IAM policies ranged from overly permissive to painfully restrictive&lt;/li&gt;
&lt;li&gt;Schema evolution had no guardrails&lt;/li&gt;
&lt;li&gt;Ownership was unclear&lt;/li&gt;
&lt;li&gt;Every team used Kafka differently&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The real issue was simple:&lt;/p&gt;

&lt;p&gt;Everyone depended on Kafka. Nobody owned its governance.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;That’s how technical debt quietly compounds; until it becomes operational risk.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The Realization: Governance is a Missing System, Not a Missing Rule
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftinoe0zk0sn3wfvn54yn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftinoe0zk0sn3wfvn54yn.png" alt="The Realization" width="270" height="421"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sitting down, one thought became clear:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We’re building technical debt faster than we can document it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Without intervention, cross-service debugging would become unsustainable within a year. But there was a constraint:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No central authority&lt;/li&gt;
&lt;li&gt;No mandate power&lt;/li&gt;
&lt;li&gt;Fully autonomous teams
This wasn’t a tooling problem. It was a coordination problem.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Meeting Invite: Start with Pain, Not Policy
&lt;/h2&gt;

&lt;p&gt;Instead of proposing a solution, I invited collaboration by framing it as a way to fix shared frustrations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F45y3t4krbx3ro5ujt0ql.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F45y3t4krbx3ro5ujt0ql.png" alt="Meeting Invite" width="359" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That framing mattered. No one wants another rulebook. But everyone wants their pain heard. &lt;br&gt;
Five engineers showed up:&lt;br&gt;
2 from platform engineering&lt;br&gt;
3 from application teams&lt;/p&gt;

&lt;p&gt;That was enough to start.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Meeting: Shifting from Skepticism to Engagement
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7htckrxe9ig5b2u4jhby.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7htckrxe9ig5b2u4jhby.png" alt="Shifting from Skepticism to Engagement" width="639" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the meeting, I led with pain points rather than solutions, showing real examples of redundant and confusing topics on the MSK dashboard.&lt;br&gt;
Then someone said:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“We got paged last week because a producer couldn’t write to a topic. Nobody knew how to fix it.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That changed the room. We moved from:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Why are we here?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“We need to fix this.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That shift from abstract discussion to shared pain is where influence begins.&lt;/p&gt;

&lt;h2&gt;
  
  
  Drafting Standards: The Technical Blueprint
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsz002l1w9n59vbe9ff1e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsz002l1w9n59vbe9ff1e.png" alt="Drafting Standards" width="577" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Over the next two weeks, I drafted the first version of a governance framework. It focused on three pillars:&lt;/p&gt;

&lt;h3&gt;
  
  
  1.Topic Naming Convention
&lt;/h3&gt;

&lt;p&gt;Convention: &lt;code&gt;{domain}.{service}.{event-type}.{version}&lt;/code&gt;&lt;br&gt;
Example: &lt;code&gt;loan.loanservice.loan-created.v1&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Goal: Make the topic names - discoverable, searchable, self-descriptive, and future-proof with versioning.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  2. IAM Policies (Least Privilege)
&lt;/h3&gt;

&lt;p&gt;Creating mandatory least-privilege templates tied to service roles to eliminate wildcards.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Goal: Make the secure path the default path.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  3. Schema Evolution (Avro + Compatibility)
&lt;/h3&gt;

&lt;p&gt;Enforced Avro with BACKWARD compatibility which is integrated with schema registry and gets checked before deployment.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Goal: Prevent breaking downstream consumers silently&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Automation: If It’s Not Enforced, It’s Optional
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fptsjr6p1g7agh1uyygvx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fptsjr6p1g7agh1uyygvx.png" alt="Enforcing the rules" width="631" height="421"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Documentation alone doesn’t scale. So we embedded the standards into tooling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Terraform Modules&lt;/strong&gt;: Topic provisioning templates now included regex validation for naming and pre-configured IAM defaults.&lt;br&gt;
&lt;strong&gt;CI/CD Linters&lt;/strong&gt;: We built a linter to flag violations in service configuration files before deployment. &lt;br&gt;
Example failure: &lt;code&gt;FAILED: topic name 'test_topic' does not match pattern&lt;/code&gt;&lt;br&gt;
Example success: &lt;code&gt;PASS: topic 'loan.loanservice.loan-created.v1'&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Gate&lt;/strong&gt;: Automation turned guidance into a "gate," ensuring that the right way was also the only way to deploy.&lt;br&gt;
That’s when governance becomes real:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Not a suggestion. A system constraint.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The Tipping Point: Adoption Without Intervention
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft8ui608c6g8ay5gbgqxu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft8ui608c6g8ay5gbgqxu.png" alt="Adoption" width="645" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Three months later, something subtle happened. I was reviewing a PR from a team I’d never worked with.&lt;/p&gt;

&lt;p&gt;Everything passed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Naming ✔&lt;/li&gt;
&lt;li&gt;IAM ✔&lt;/li&gt;
&lt;li&gt;Schema ✔&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No feedback needed. That’s when I knew:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The system didn’t need me anymore.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And that’s the goal of good governance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaway
&lt;/h2&gt;

&lt;p&gt;This experience reshaped how I think about technical leadership:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Standards don’t succeed because they’re correct.&lt;br&gt;
They succeed because people believe in them.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  What Actually Worked
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Start with pain, not policy&lt;/li&gt;
&lt;li&gt;Involve stakeholders early&lt;/li&gt;
&lt;li&gt;Facilitate, don’t dictate&lt;/li&gt;
&lt;li&gt;Bake standards into tooling&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final Thought
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr2lf6hw306it01avbp3q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr2lf6hw306it01avbp3q.png" alt="Result" width="638" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're working on platform or architecture problems in a multi-team environment, remember:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You don’t need authority to create alignment. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;clarity&lt;/li&gt;
&lt;li&gt;empathy&lt;/li&gt;
&lt;li&gt;and systems that reinforce good decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Standards stick when they make people’s lives better — not when they add gates.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>kafka</category>
      <category>microservices</category>
      <category>softwareengineering</category>
      <category>leadership</category>
    </item>
    <item>
      <title>The Feynman Algorithm: A Developer’s Guide to "Thinking Very Hard"</title>
      <dc:creator>Prasad Rane</dc:creator>
      <pubDate>Mon, 27 Apr 2026 16:06:50 +0000</pubDate>
      <link>https://dev.to/prasad_rane_dev/the-feynman-algorithm-a-developers-guide-to-thinking-very-hard-384h</link>
      <guid>https://dev.to/prasad_rane_dev/the-feynman-algorithm-a-developers-guide-to-thinking-very-hard-384h</guid>
      <description>&lt;p&gt;If you search for Richard Feynman’s methods, you’ll likely stumble upon the famous Feynman Technique, a brilliant framework for learning new concepts by explaining them to a child.&lt;/p&gt;

&lt;p&gt;But there’s another, lesser-known Feynman method. It was jokingly coined by his colleague, physicist Murray Gell-Mann, who said that Feynman’s process for solving problems looked like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;Write down the problem.&lt;/li&gt;
&lt;li&gt;Think very hard.&lt;/li&gt;
&lt;li&gt;Write down the solution.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;At first glance, this sounds like a meme. "Draw the rest of the owl," right? But if we look closer at this "Feynman Algorithm," it actually perfectly outlines the lifecycle of debugging and writing software.&lt;br&gt;
Let’s break down how this tongue-in-cheek algorithm can actually help you become a better developer.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 1: Write down the problem ✍️
&lt;/h3&gt;

&lt;p&gt;Albert Einstein supposedly said, &lt;em&gt;"If I had an hour to solve a problem, I'd spend 55 minutes thinking about the problem and 5 minutes thinking about solutions.&lt;/em&gt;"&lt;/p&gt;

&lt;p&gt;In programming, we often skip this. We see an error log and immediately start changing variables and refreshing the browser. But "writing down the problem" forces you to define exactly what is going wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bad Problem Definition:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The login page is broken."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Good Problem Definition:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"When a returning user tries to log in with Google OAuth, the API returns a 500 server error, but only on mobile Safari."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When you write the problem down clearly, the scope narrows. Half the time, simply defining the problem accurately reveals the solution.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 2: "Think very hard" 🧠
&lt;/h3&gt;

&lt;p&gt;This is the punchline of the joke. To outsiders, Feynman just stared at a chalkboard and magically found the answer. But "thinking very hard" doesn't mean having a massive IQ; it means engaging in &lt;strong&gt;structured, focused analysis&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;How do developers "think very hard"?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We Rubber Duck&lt;/strong&gt;: We explain the code line-by-line to an inanimate object (or a patient coworker).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We Isolate&lt;/strong&gt;: We comment out chunks of code to see if the bug still happens. We narrow down the variables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We Step Away&lt;/strong&gt;: Sometimes, "thinking very hard" means taking a shower or going for a walk. Your brain's "diffuse mode" keeps working on the problem in the background.&lt;/p&gt;

&lt;p&gt;"Thinking very hard" means resisting the urge to copy-paste the first Stack Overflow answer you see without understanding why it works.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 3: Write down the solution 💡
&lt;/h3&gt;

&lt;p&gt;You figured it out! You fixed the bug! Time to push to production and go home, right? Not quite.&lt;/p&gt;

&lt;p&gt;In the context of coding, "writing down the solution" means three things:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Writing clean code&lt;/strong&gt;: Making sure your solution isn't just a hacky workaround, but a readable, maintainable piece of logic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Writing tests&lt;/strong&gt;: Proving that your solution actually works and ensuring it won't break in the future.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Writing documentation&lt;/strong&gt;: Leaving comments explaining why you did what you did.&lt;/p&gt;

&lt;p&gt;Your future self (and your team) will thank you when they read a comment like:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;// Using a Set here instead of an Array because checking for duplicates was causing a massive performance bottleneck.&lt;/code&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Final Thoughts
&lt;/h3&gt;

&lt;p&gt;The Feynman Algorithm might have started as a joke among Nobel Prize-winning physicists, but it’s remarkably practical for software engineers.&lt;/p&gt;

&lt;p&gt;Next time you are stuck on a nasty bug, don't just start mashing the keyboard. Stop. Write the problem down. Take a walk to think very hard. And when you solve it, document it for the next developer.&lt;/p&gt;

&lt;p&gt;Let me know in the comments how you practice "thinking very hard" when you are stuck on a tricky coding problem!&lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>beginners</category>
      <category>developer</category>
    </item>
  </channel>
</rss>
