<?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 Ömer Korkmaz on Medium]]></title>
        <description><![CDATA[Stories by Ömer Korkmaz on Medium]]></description>
        <link>https://medium.com/@okorkmaz?source=rss-4fb076801b7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dAZBy4dD8wkRE3YlP4X01A.jpeg</url>
            <title>Stories by Ömer Korkmaz on Medium</title>
            <link>https://medium.com/@okorkmaz?source=rss-4fb076801b7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 18:00:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@okorkmaz/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 LLM Reliability Paradox: Agents Aren’t Broken, Your Architecture Is]]></title>
            <link>https://medium.com/data-and-beyond/the-llm-reliability-paradox-5f179b677a36?source=rss-4fb076801b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f179b677a36</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Ömer Korkmaz]]></dc:creator>
            <pubDate>Mon, 11 May 2026 23:20:02 GMT</pubDate>
            <atom:updated>2026-05-15T09:36:24.157Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmEiQaMIDz6W8N6QDhJDHA.png" /></figure><p>The same system that failed your users on Tuesday passed every test on Monday. The model hadn’t changed. The prompts were identical. And yet something was clearly, reliably wrong. This is not bad luck. It’s a design problem! 🤔</p><p>I’ve been spending some time on this exact problem across the agentic systems. The design is almost always the same. However, the failure doesn’t start with the LLM. It starts with what gets <em>fed</em> to the LLM and what happens to the outputs afterward.</p><p>The root cause isn’t probabilistic decay or model fragility. The problem is that we build AI Systems by following the traditional practices we use for deterministic software. And those assumptions are quietly killing us in production.</p><h3>Why “Tests Passed!” Means Nothing Now</h3><p>The green checkmark is not lying to you. It’s just answering a different question than you think.</p><p>LLMs behave non-deterministically by nature, meaning that the same prompt, run twice, can take two different reasoning paths to two different conclusions. Your test suite runs it once, sees something reasonable, and marks it passing. What it never sees is the second run. Or the fifth. Or, as it sounds crazy, the one that happens at 2 AM in production when the context window looks slightly different.</p><p>What I see as the deeper problem is the architecture. Treating evaluation as a final gate — <em>does this output look right?</em> — made sense for deterministic systems. For multi-step agents where outputs become inputs, it’s like checking the last domino and ignoring the chain.</p><p>What you actually need is structural validation at every layer of the pipeline, before outputs become inputs, as follows;</p><p><strong>Deterministic Testing</strong> → <strong>Output Evaluation</strong> → <strong>Trajectory Observability</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LH3ewA6GFIDpM-OgdHPwrQ.png" /></figure><h3>The context window is your most risky dependency</h3><p>In a multi-agent system, agents communicate by passing context. This is so fundamental it barely gets mentioned, which is exactly why its failure mode goes unnoticed. <strong>Bad context compounds.</strong> If Agent A produces a subtly incorrect intermediate result and Agent B receives it as ground truth, Agent B’s output will be confidently wrong in a way that’s almost impossible to trace back to the source.</p><p>By the time a human notices the problem, three agents have already conditioned on a false premise. The logs show no error. The model performed as intended. But the system failed because the pipeline had no opinion about what was flowing through it.</p><p>We all know that pain! So, three practices that address this directly:</p><p><strong>1- Validate intermediate outputs before passing them downstream.</strong> Not with assert statements, with a schema check, a structured output parser, or a lightweight LLM-as-judge call. If Agent A is supposed to return a JSON object with five required fields, verify that before Agent B sees it. This sounds obvious. Almost nobody does it consistently.</p><p><strong>2- Summarize, don’t append.</strong> Long agentic workflows that keep growing the context window hit two problems simultaneously: the model’s effective attention on earlier content degrades, and you’re paying for tokens that add noise rather than signal. Compress completed stages into a structured summary before passing forward.</p><p><strong>3- Inject known facts as periodic sanity checks.</strong> For long-running agents, periodically inject a verifiable fact — a date you control, a value you know — and check whether the agent’s subsequent outputs remain consistent with it. It sounds simple. It catches drift that no other technique reliably surfaces.</p><blockquote>None of this requires understanding information theory. It requires treating your agent as a data pipeline and understanding that pipelines degrade when you don’t validate what flows through them.</blockquote><h3>Your Model Already Knows When It’s Guessing</h3><p>Here’s something many teams overlook: modern LLMs expose uncertainty signals that can sometimes correlate with unreliable outputs.</p><p>Some APIs expose this through log probabilities, token confidence distributions, or related scoring signals. When a model hesitates around a date, a name, a tool selection, or a critical number, that uncertainty can sometimes appear in the generation patterns before the error reaches your users.</p><p>These signals are not perfect confidence estimates. Models can still hallucinate confidently. But, when treated carefully, they can become useful operational indicators within a larger reliability system.</p><p>You don’t need a statistics degree to use them. The pattern is simple:</p><ul><li>identify the outputs that matter most,</li><li>monitor uncertainty around them,</li><li>and route ambiguous cases differently.</li></ul><p>High-confidence outputs may continue normally. Lower-confidence outputs can be:</p><ul><li>retried with tighter constraints,</li><li>validated through secondary checks,</li><li>routed to humans, or</li><li>logged for evaluation.</li></ul><p>This is where the paradox resolves: the model isn’t broken, and neither are our prompts. What’s missing is <strong>the architectural layer that decides how uncertain outputs should be handled </strong>before downstream systems treat them as truth.</p><h3>The Tooling That Exists Right Now</h3><p>You don’t have to build this infrastructure from scratch. The ecosystem has caught up faster than most people realize.</p><p><strong>Braintrust</strong> is the closest thing the industry has to a proper test suite for non-deterministic outputs, eval datasets, LLM-as-judge scoring, and regression tracking in one place. If you’re serious about output quality over time, start here.</p><p><strong>LangFuse</strong> is open-source observability for LLM applications. It gives you full agent trajectory visibility, every tool call, every context window, every retry with minimal instrumentation. You can’t fix what you can’t see.</p><p><strong>PromptFoo</strong> lives in your CI pipeline. CLI-first, fast, and built for engineers who want prompt regression testing to feel like any other automated test. Parallel seed execution, semantic similarity scoring, no dashboard required.</p><p><strong>RAGAS</strong> is purpose-built for RAG pipelines specifically, measuring faithfulness, answer relevance, and context recall as independent signals rather than a single blended score. If retrieval is part of your architecture, this belongs in your stack.</p><p><strong>LangSmith</strong> rounds out the observability side, tracing, debugging, and dataset management, with enough adoption that your team has probably already heard of it.</p><h3>Start Trusting Your Architecture over Your Model</h3><p>The engineers making the most impact on agentic systems right now are not the ones writing the cleverest prompts. They’re the ones who have made one fundamental mental shift: they treat LLM outputs as <strong>untrusted signals, </strong>such as <strong>incoming API data from a third-party service</strong> where you don’t know what’s on the other side, so you validate the schema, check the values, and handle the edge cases before anything downstream sees it.</p><p>If you think of it as a pipeline processing uncertain data, you build differently. You validate at boundaries. You observe trajectories. You design fallback paths for the responses that land in the ambiguous middle.</p><blockquote>Reliability is not a property of the model.</blockquote><blockquote>It’s a property of the system you build around it.</blockquote><p>The failure mode isn’t the LLM. The LLM is doing exactly what it was trained to do. The failure is the assumption that a capable model is sufficient for a reliable system.</p><p>It isn’t. That’s the paradox. And yes, you know what you’ll build now 🚀</p><p>If you’re building production agentic systems, I’d like to hear what failure modes you’ve encountered that aren’t covered here. Feel free to drop it in the comments 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f179b677a36" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-and-beyond/the-llm-reliability-paradox-5f179b677a36">The LLM Reliability Paradox: Agents Aren’t Broken, Your Architecture Is</a> was originally published in <a href="https://medium.com/data-and-beyond">Data And Beyond</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Combinatorial Testing: A Weapon in High-Scale Distributed Systems]]></title>
            <link>https://medium.com/data-and-beyond/combinatorial-testing-a-weapon-in-high-scale-distributed-systems-0828db8c725b?source=rss-4fb076801b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/0828db8c725b</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[combinatorial-testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Ömer Korkmaz]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 14:13:41 GMT</pubDate>
            <atom:updated>2025-09-01T15:31:57.169Z</atom:updated>
            <content:encoded><![CDATA[<p>Software testing has always carried a hidden paradox. The more complex our systems become, the more test cases we write. But the more test cases we write, the slower we move. At some point, testing stops being a safety net and starts being a bottleneck. If you’ve ever worked on a distributed system, you know this pain:</p><ul><li>Feature Flags. Suddenly, hundreds of new test combinations appear.</li><li>Roll out a new API version. Now you need to retest every integration.</li><li>A config change in a region causes unexpected side effects in another.</li></ul><p>I already smell that you catch the pain, huh? For sure, <strong>an endless spreadsheet of test cases</strong>, <strong>hours of regression runs</strong>, and<strong> releases slowed to a crawl</strong>. This is the daily trap of high-scale testing: you either accept coverage gaps or you drown in redundant tests. This dilemma always reminds me of two types of testers.</p><p>The first one, let’s call them the <strong>Mythical Tester</strong>, believes the only path to safety is exhaustive testing. If there are a million possible combinations, we must test a million cases. The second, the <strong>Practical Tester</strong>, sees the world differently. They know you’ll never have infinite time or infinite resources. Instead of testing everything, they test smart.</p><blockquote><em>This mindset shift is captured perfectly in </em><a href="https://en.wikipedia.org/wiki/The_Mythical_Man-Month">The Mythical Man-Month</a><em>. Just as Brooks explained why adding more people to a project makes it later, adding more tests doesn’t necessarily make systems safer. Sometimes (even mostly) it just makes them slower.</em></blockquote><p>Better late than never, this is where <strong>Combinatorial Interaction Testing (CIT)</strong> enters the game.</p><h4>What’s Combinatorial Interaction Testing (CIT)?</h4><p>CIT is not only an academic curiosity; it is a sophisticated model-based testing technique for generating a minimal, yet highly effective, test suite. Its core algorithm is engineered to satisfy a precise coverage criterion:</p><blockquote>Every possible combination of values for every subset of t parameters must be <strong>exercised at least once</strong>.</blockquote><ul><li><strong>t=2 </strong>ensures every possible pair of parameter values is covered.</li><li><strong>t=3 </strong>covers every triple, providing a higher interaction coverage.</li><li><strong>t=n</strong> degenerates into exhaustive testing.</li></ul><p>Consider a function under test with three parameters and values;</p><pre>Payment (P): {Card, Cash}<br>OS      (O): {Windows, macOS}<br>SSL     (S): {On, Off}</pre><p>Exhaustive testing requires 2 * 2 * 2 = 8 tests. A pairwise (t=2) suite, generated by tools like <a href="https://csrc.nist.rip/groups/SNS/acts/documents/comparison-report.html">ACTS</a> or <a href="https://cloud.google.com/python/docs/reference/bigframes/latest/bigframes.ml.metrics.pairwise">Google&#39;s Pairwise</a>, reduces this to just 4 test cases while guaranteeing all pairwise interactions are covered.</p><pre>Test | Payment |   OS    | SSL<br>------------------------------<br>1    |  Card   | Windows | On<br>------------------------------<br>2    |  Card   |  macOS  | Off<br>------------------------------<br>3    |  Cash   | Windows | Off<br>------------------------------<br>4    |  Cash   |  macOS  | On<br>------------------------------</pre><p>Mathematically, all the pairs are also verified in the following;</p><pre>(P, O): (Card, Windows), (Card, macOS), (Cash, Windows), (Cash, macOS) ✅<br>(P, S): (Card, On),      (Card, Off),   (Cash, Off),     (Cash, On)    ✅<br>(O, S): (Windows, On),   (macOS, Off),  (Windows, Off),  (macOS, On)   ✅</pre><p>For most commercial software, a t=2 suite provides an exceptional return on investment. For safety-critical systems (aerospace, medical), elevating to t=3 or t=4, is a necessary and justified step to mitigate residual risk with a still-manageable number of tests.</p><h4>A Real-World Problem: Global Payment Platform at Scale</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*yjX23azmRAGkE4K1TYLCPQ.png" /><figcaption>Global Payment Microservices Platform with various dependencies</figcaption></figure><p>Let’s talk about the facts. Imagine that your team is responsible for a global payment platform that maintains 20+ microservices, depending on 5+ payment gateways, 10+ currencies, and dozens of user roles. Each service is deployed across multiple regions and is delivered with feature flags, API versions, and various configurations. On paper, the system looks fancy, but in practice, it’s a combinatorial nightmare.</p><p>Mythical Developer in your team says, <em>“If we want to be safe, we need to test every possible combination.” </em>Sounds good, but what does it mean exactly?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*HB-34R9pNu59QhDT2icS8g.png" /><figcaption>System Dependencies and Values</figcaption></figure><p>In this scenario, you’ll have <strong>a minimum of 900 test cases</strong> covering all dependencies for a single microservice. Once you also extend these scenarios with feature flags, devices, and API versions, you’re easily into the thousands of those test cases!</p><p>On the other hand, as a Practical Tester, you highlight <em>“Most bugs don’t require 4 things to go wrong at once. They usually show up when two or three factors collide.”</em>, and<em> </em>exactly where <strong>Combinatorial Interaction Testing (CIT)</strong> helps. Instead of 900 exhaustive cases, CIT generates a <strong>minimal set</strong> that still covers all <strong>pairwise interactions. </strong>The following represents a sample of all 2-wise parameter combinations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*o6oM3jy4cAj-Q56YeCnQfw.png" /><figcaption>Pairwise CIT Test Cases where t = 2</figcaption></figure><p>That’s not just faster. It’s the difference between <em>deploying daily</em> vs <em>deploying weekly. </em>In distributed systems, CIT helps catch:</p><ul><li>Config misalignments between services</li><li>Version incompatibilities (API v1 vs v2)</li><li>Edge-case regional behaviors (currency mismatch, gateway rules)</li></ul><h4>T-Wise Testing in Your CI/CD Pipeline</h4><p>Integrating Combinatorial Interaction Testing (CIT) at scale is less about theoretical perfection and more about strategic, automated sampling. The goal isn’t to test everything, but to continuously probe the high-risk interaction spaces within your distributed system. Here’s how to implement it pragmatically.</p><p><strong>1. Model the Right Parameters</strong><br>Forget exhaustive parameter lists. Focus your CIT model on the high-impact, user-facing configurations where interaction bugs cause real outages. This includes:</p><ul><li><strong><em>Feature Flags:</em></strong><em> </em>Critical toggles that interact with each other.</li><li><strong><em>Service Configuration</em>:</strong> API version headers, data serialization formats (JSON/Protobuf), and timeouts.</li><li><strong><em>Environment &amp; Infrastructure:</em></strong> Cloud provider regions, database replicas, and caching strategies.</li></ul><p><strong>2. Generate &amp; Embed Tests Automatically</strong></p><ul><li><strong><em>Tooling</em>:</strong> Use a programmatic library like python-constraint or a dedicated tool (e.g., ACTS) invoked via a CLI in your build script.</li><li><strong><em>Generates</em></strong> the t-wise test suite from the defined model.</li><li><strong><em>Transforms</em></strong> each row in the suite into an executable test case (e.g., a set of environment variables or API request headers).</li><li><strong><em>Executes</em></strong> these tests against a staged integration environment.</li><li><strong><em>Breaks</em></strong> the pipeline if the tests fail and always <strong><em>runs</em></strong> on pre-prod.</li></ul><blockquote><strong>Key Engineering Practice:</strong> Serialize the generated test suite (e.g., to JSON) and store it as a build artifact. This provides auditable proof of your coverage.</blockquote><h4>Share From the Story</h4><p>Exhaustive testing will always drown you. Smarter testing will save you. Combinatorial Interaction Testing isn’t just a technique; it’s the mindset shift from Mythical to Practical. From chasing infinite tests to choosing the right ones. From bottlenecks to velocity. In high-scale systems, speed and safety don’t come from testing everything. They come from testing what matters. Also, remember: in software, every choice is a trade-off. There’s no silver bullet. Don’t worry about agreeing or disagreeing with the idea; just sit with it. Pair up with someone, study it together, and see what it really means in practice!⚡</p><h4>Resources</h4><ul><li><a href="https://ieeexplore.ieee.org/document/9440160?signout=success">IEEE SYSMODIS: A Systematic Model Discovery Approach</a></li><li><a href="https://csrc.nist.rip/groups/SNS/acts/documents/comparison-report.html">Advanced Combinatorial Testing Systems</a></li><li><a href="https://cloud.google.com/python/docs/reference/bigframes/latest/bigframes.ml.metrics.pairwise">Google Module Pairwise</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0828db8c725b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-and-beyond/combinatorial-testing-a-weapon-in-high-scale-distributed-systems-0828db8c725b">Combinatorial Testing: A Weapon in High-Scale Distributed Systems</a> was originally published in <a href="https://medium.com/data-and-beyond">Data And Beyond</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ADR: Deep Dive into Architecture Decision Records]]></title>
            <link>https://blog.stackademic.com/adr-deep-dive-into-architecture-decision-records-8c110ce7d74e?source=rss-4fb076801b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c110ce7d74e</guid>
            <category><![CDATA[architecture-decisions]]></category>
            <category><![CDATA[software-design]]></category>
            <category><![CDATA[adr]]></category>
            <category><![CDATA[architecture-document]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Ömer Korkmaz]]></dc:creator>
            <pubDate>Wed, 05 Jan 2022 22:13:27 GMT</pubDate>
            <atom:updated>2026-05-18T08:32:25.895Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d6W8KzHUrFjS2_FdpUCsXQ.png" /></figure><p>A software design or architecture has continually been a complicated, arguable, and considerable concept to develop a project with numerous features, fix the bugs, or even write the tests. Although miscellaneous parameters, such as <em>functional</em> or <em>non-functional requirements</em>, <em>constraints</em>, <em>technical know-how</em>, <em>etc.</em>, play a significant role in making an architectural decision, not all decisions will be carried out at once, nor will all of them be accomplished when the project launches.</p><p>Despite all these difficulties, consider that your team verbally discussed the cons and pros of separate approaches, spent lots of time and you finally made a decision. What happens if a new developer joins your team and tries to understand the motivations for your architectural decisions? Worse, what happens if you can’t remember the explicit reasons that impacted your decisions?</p><p>I believe you got the point. To comprehend the rationale or consequences, not to accept the decisions blindly or not to change those decisions haphazardly, documentation of the architectural decisions is an inevitable fact.</p><p>First, let’s look at the terminology, and then try to understand the benefits and how to record the architectural decisions with the best practices.</p><h3>Terminology</h3><ol><li>More specifically, an <strong>Architectural Decision (AD)</strong> is a software design preference that handles the functional or non-functional requirements, which are architecturally significant.</li><li>An <strong>Architecture Decision Record (ADR)</strong> is a document that captures a crucial architectural decision made along with its boundary and outcomes. In other words, <strong>ADR</strong> apprehends the key options available, the major requirements that force a decision, and the design decisions themselves. We usually store <strong>ADRs</strong> as a short text file within the related code base for that decision. If someone needs to understand the motivation of a specific architectural decision, they may easily scan the ADR with the associated code.</li><li>An <strong>Architecture Decision Log (ADL)</strong> is the collection of all ADRs generated and maintained for a particular project. All related ADRs are stored in the same collection.</li><li>An <strong>Architecturally-Significant Requirement (ASR)</strong> is a requirement that has an observable impact on the architecture of a software system.</li><li>All these terminologies are a part of <strong>Architecture Knowledge Management (AKM).</strong></li></ol><h3>How to document Architecture Decisions?</h3><p>There are a lot of ready-to-use templates from basic to more sophisticated for the documentation of the architecture decisions. (<a href="https://github.com/joelparkerhenderson/architecture-decision-record#adr-example-templates">Check Templates</a>) Primitively, there are 4 major sections we follow in the document, called <strong>Status</strong>, <strong>Context</strong>, <strong>Decision,</strong> and <strong>Consequences</strong>, respectively.</p><h4>1. Discussion for Context</h4><p>In this section, we explain the forces at play, including technological, political, social, and local projects. This part is the primary story describing the problem we are looking to resolve. You should be transparent and descriptive about your motivations for that decision or a change as much as possible. Discuss your ideas and the paths you follow with your teammates while defining the problem you face.</p><h4>2. Decision for Solution</h4><p>This section may be one of the most important parts of the document. Here, we describe the details of the decision for a specific problem we mentioned in the Context section. It is a kind of a response to the forces in the story. We present how to solve the problem with a given decision in detail. There is a correlation between decision and solution. Your decision affects the solution based on the approach you propose. That’s why readability and understandability have a huge impact from a technical perspective.</p><h4>3. Observation of Consequences</h4><p>This section refers to the results of the given decision for a specific problem mentioned in the story. We illustrate the long-term effects of the decision if any. All results should be documented here, not just the <strong>“positive”</strong> ones. A given decision may generate positive, negative, and neutral consequences, but all of them influence the team and project in the future. In addition, this part examines the questions as follows;</p><ul><li>Did the architecture decision work?</li><li>Did the architecture decision not work?</li><li>Was the architecture decision changed?</li><li>Was the architecture decision upgraded?</li></ul><h4>4. Describe Status</h4><p>This section primarily represents the status of an architecture decision to give information regarding which step AD currently is. A couple of examples are as follows;</p><ul><li>Accepted</li><li>Rejected</li><li>Proposed</li><li>Deprecated</li></ul><h3>Best Practices for ADR</h3><ul><li>Identify <strong>when</strong> the Architecture Decision was formed. Time is a significant factor to understand under which circumstances you made this decision.</li><li>Explain the rationale for making the certain Architecture Decision. Be <strong>descriptive</strong> for clear explanations.</li><li>The record must be <strong>immutable</strong>. The previously given decision in the ADR should not be modified.</li><li>Be <strong>cohesive</strong>. Each ADR should be regarding a single AD.</li><li>Create a new ADR, if the AD invalidates the previous one.</li><li>Explain your organization’s position and business precedences.</li></ul><h3>API Gateway Decision Example</h3><p>Time to make practice with a real scenerio! If you are interested with microservices, you probably heard API Gateways. Assume that your organization decided to migrate the current system to the microservices for various reasons (W<em>e don’t focus the reasons</em>). As a first step, you need to choose the most suitable API Gateway in terms of your motivations such as performance, stateless architecture, open-source development, etc.</p><p>From the point of a story we mentioned above, the <strong>context</strong> is obviously a choice of API Gateway for your organization. While deciding an API Gateway, you have two <strong>major needs: </strong>open-source options, the know-how about the language of the source code. Besides the major needs, you have <strong>constraints, </strong>that affect your choice, like high-throughput, performance, open-source community, etc.</p><p>Suppose that, in line with this information, you have 4 <strong>positions</strong> or <strong>options, </strong>which are KrakenD, Kong, Ocelot, and Tyk. Based on these options, you made research and provide the <strong>arguments </strong>as<strong> </strong>summary. In addition, you expressed the details as <strong>implications</strong> of these API Gateways.</p><p>At the end, you combined the arguments with implications and you made a <strong>decision </strong>and chose KrakenD considering the motivations<strong>. </strong>Then, you proposed this decision to your organization and the <strong>status</strong> of the decision was <strong>accepted</strong>.</p><p>Check to see what the final version of API Gateway ADR looks like;</p><p><a href="https://github.com/omeerkorkmazz/adr-examples">GitHub - omeerkorkmazz/adr-examples: Real Scenarios for Architecture Decision Records (ADRs)</a></p><h3>Conclusion</h3><p>In this post, I tried to explain what the architecture decision and architecture decision record were, how to document it, and most importantly, emphasized the significance of the architecture decision documents in our organizations.</p><p>I am welcome to see your opinions or additional information. I hope you enjoy and find this post useful :)</p><h3>Resources</h3><ul><li><a href="https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions">https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions</a></li><li><a href="https://github.com/joelparkerhenderson/architecture-decision-record">https://github.com/joelparkerhenderson/architecture-decision-record</a></li><li><a href="https://ozimmer.ch/practices/2021/04/23/AnyDecisionRecords.html">https://ozimmer.ch/practices/2021/04/23/AnyDecisionRecords.html</a></li><li><a href="https://adr.github.io/">https://adr.github.io</a></li><li><a href="https://github.com/omeerkorkmazz/adr-examples">https://github.com/omeerkorkmazz/adr-examples</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c110ce7d74e" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/adr-deep-dive-into-architecture-decision-records-8c110ce7d74e">ADR: Deep Dive into Architecture Decision Records</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why are we unhappy while writing tests?]]></title>
            <link>https://blog.stackademic.com/why-are-we-unhappy-while-writing-tests-e825c005a81c?source=rss-4fb076801b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e825c005a81c</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[software-design]]></category>
            <category><![CDATA[softwaretest]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Ömer Korkmaz]]></dc:creator>
            <pubDate>Mon, 14 Jun 2021 20:52:17 GMT</pubDate>
            <atom:updated>2026-05-18T08:32:37.925Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*hkGq17pJbIvN-ogxw7cEWQ.jpeg" /></figure><blockquote>Türkçeye çevrilmiş halini <a href="https://okorkmaz.medium.com/test-yazarken-neden-mutsuzuz-108ec2915e96"><strong>buradan</strong></a> okuyabilirsiniz.</blockquote><p>Hi everyone,</p><p>Today we are going to talk about a subject that I have been concentrating on for a long time and that I believe you also discuss with yourself from time to time. As the title suggests, instead of discussing the questions which we have read a lot such as “What is unit testing?”, “Why is unit testing important?”, “How to increase code coverage?” or “What kind of test approaches are there?”, we will be looking for the answers to <strong><em>“Why”</em></strong> questions by going deeper into the subject.</p><p>Let’s take a look at what these questions are before we go into detail.</p><ul><li><strong><em>Why</em></strong><em> don’t we write tests?</em></li><li><strong><em>Why</em></strong><em> can’t we write tests?</em></li><li><strong><em>Why</em></strong><em> do we give up while writing tests?</em></li><li><strong><em>Why</em></strong><em> do we struggle to write tests?</em></li><li><strong><em>Why</em></strong><em> are we not happy with tests?</em></li><li><em>…</em></li></ul><p>We can further increase the number of questions here. However, even if we produce more questions, we will realize that all the questions are related to each other and emphasize the same point.</p><h3>Are the facts as we expect?</h3><p>Although our daily work changes from time to time depending on the team and product we are assigned, at the end of the day, we continue the development on the production and solve product-related problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*jq_Z37tpOCA7ecm-DjDUkQ.png" /><figcaption>What we expect from the real world :)</figcaption></figure><p>As software developers, we prefer a smooth sailing workday. Carry out the development, ship, and refactor where needed, deploying these developments to the production environment, and refactoring the system if required. However, things may not go well :)</p><p>Our system on the production may encounter failures unexpectedly and our customers may expose these incidents. In fact, when the volume of these incidents increases and users become more vocal about their experiences, emotional and financial repercussions may start taking their tolls on the responsible team. At this point, perhaps most of our day will be spent first finding and understanding the cause of errors and then solving them.</p><p>Fortunately, in this instance, we managed to detect the problem and solve the issue by deploying changes to the production. Just as we were taking a sigh of relief, the number of errors started to rise again. While we were wondering whether it was because of the change we made or if we were encountering a new error, we all realized that we are now lost in that dead-end labyrinth. Things are starting to get worse, right?</p><blockquote>At this point, I seem to hear you say, <strong><em>“Well, if we had written tests, these wouldn’t have happened. It’s important to write tests. We already know that…” </em></strong>While you’re right, the important thing to note here is that although we wrote tests, we could still be going through this process (eg: wrong test design, abstraction errors, etc.). Since this is not our current focus, we will be discussing it again in a different article.</blockquote><h3>Deadline is coming!</h3><p>If we start with a more familiar problem, deadline, the date specified for the completion of the development, it is like a hand grenade with the pin pulled between the product team and the software team, which will partially explain the importance of the situation.</p><p>When making any development about the product, we promise a date for the completion of the work and we try to fulfill this promise. However, in some cases, we may not make it to the specified time. There are countless reasons why things can’t keep up. The vital point here is that we forget about the concept of testing by focusing on the point “We need to get the job done”.</p><p>In the end-to-end completion of a job (eg: a new development, debugging, code refactoring, etc.), we need to internalize that <strong><em>testing is a part of this process, calculating timeframes by including the testing period and not excluding it for the sake of meeting deadlines</em></strong></p><h3>Nobody writes tests anyway!</h3><p>This title, albeit rare (I hope so), can be interpreted as one of the problems we encounter. Here, the subject goes out of a technical point and evolves to a more intellectual and human point.</p><p>I would like to point out that it is not correct for me to question “No one else is writing a test anyway”. Because I think this is the same as “Nobody else is using interface anyway”. Just because someone else isn’t doing it doesn’t prevent you from doing it, or because you’re not doing it, it doesn’t prevent someone else from doing it.</p><p>The most important point we should mention under this title is <strong><em>the formation of a test culture within the team/company and the distribution of that culture inside</em></strong>. When such an environment is provided, contrary to what we have mentioned above, structures that will direct and support each other to test writing will be formed.</p><h3>Code is overly complex and untouchable!</h3><p>We come to the most important topic! I believe that what we will talk about under this title is the point that touches our <strong><em>“Why”</em></strong> questions the most, and information that we should always think about and never forget.</p><p>We have all come across projects that are difficult to manage, closed to development, and more often than not impossible to alter. Let alone testing, writing code, even developing, it is a dream. The thing that alienates us from testing or prevents us from writing tests even if we wanted to is to maintain the sustainability of such projects.</p><p>So why do we encounter such code structures or projects written this way? I’m sure there are various answers that we can all give to this question. But let’s change our perspective a little more and get to the core of the matter and ask Jack Revees master “What is Software Design?” Let’s draw attention to one part of the article.</p><blockquote><strong>“Coding is design, testing and debugging are part of design.”</strong> Jack W. Revees</blockquote><p>“Coding is a design, testing and debugging is part of that design.” what does he mean? You know, there was a task ahead of us and we weren’t opening the project, doing CRUD on the database with Repositories, and then developing business through Managers? You might be asking where did this design concept come from?</p><p>Developing software is not just solving problems and coding to solve that problem. Problem-solving is only part of our job. The main problem is to consider how to solve this problem completely, to develop this solution. At this point, the answer to the question <strong><em>“How”</em></strong> will be <strong><em>“Design”</em></strong>. Designing is the job of planning. In other words, it is a method of problem-solving by using what you have in the right way, by planning correctly.</p><p>When we look at the concept of design in terms of software, our source code is our actual design and we will need a good design for a flexible, maintainable code that is open to development. To achieve this design, we need to review concepts such as abstraction, coupling, and cohesion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*kld5ZZvCwZbNKMoE7pEvzQ.png" /><figcaption>Coding — Testing — Refactoring Relations</figcaption></figure><p>Now we come to the best part. This design (i.e., our code) we are talking about cannot exist without testing and debugging. In other words, the design would not be complete without this duo. At this point, we can see that a bridge has been established between the code and the test.</p><p>Lastly, we talked about debugging. Of course, there will be errors in the codes we develop. The important point is to find and fix these errors quickly. Refactoring, therefore, acts as a bridge between coding and testing. It should not be forgotten that not only the codes we write but also the tests should be refactored when necessary and that the concept of refactoring touches both the code and the test.</p><blockquote>Code and testing are together and cannot be separated! We must not forget that all problems started because of this. That is, we need to know that in order to eliminate code complexity and non-improvable code structures, we need <strong>a good and accurate design</strong>, and <strong>this design cannot be without testing</strong>.</blockquote><h3>So, how will we be happy?</h3><p>No matter how much we know the importance of the concept of testing, we talked in detail about why we couldn’t write a test, what difficulties we encountered while writing it, and the things that turned us off. We can offer many ways to get us back to write tests, but arguably the most important one says <a href="https://twitter.com/mhevery">Misko Hevery</a>.</p><blockquote><strong>“The secret of testing is writing testable code.” </strong>Misko Hevery</blockquote><p>If we summarize all these conversations, we need to keep the job tight from the beginning and develop testable structures so that we can write tests and be happy while writing tests. For this, the most important need is to have a good design, the design is our real source code, this design cannot be a whole without testing and debugging, the concept of refactoring will be in our lives not only once, but as long as the software development continues, and between the code and the test, there are both sides. We must not forget that it is in a touching position.</p><p>You can find a more detailed presentation I made at Farmazon on the subject <a href="https://speakerdeck.com/omerkorkmaz/the-atom-of-software-testing-unit-testing"><strong>here</strong></a>.</p><p>I would be very happy if you would indicate the points you find missing or wrong, or your experiences on the subject, in the comments section. Hope it was helpful :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e825c005a81c" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/why-are-we-unhappy-while-writing-tests-e825c005a81c">Why are we unhappy while writing tests?</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test Yazarken Neden Mutsuzuz?]]></title>
            <link>https://okorkmaz.medium.com/test-yazarken-neden-mutsuzuz-108ec2915e96?source=rss-4fb076801b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/108ec2915e96</guid>
            <category><![CDATA[software-design]]></category>
            <category><![CDATA[test]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Ömer Korkmaz]]></dc:creator>
            <pubDate>Mon, 14 Jun 2021 20:50:29 GMT</pubDate>
            <atom:updated>2021-06-14T20:59:06.503Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*hkGq17pJbIvN-ogxw7cEWQ.jpeg" /></figure><blockquote>You can read this article in English <a href="https://okorkmaz.medium.com/why-are-we-unhappy-while-writing-tests-e825c005a81c"><strong>here</strong></a>.</blockquote><p>Güneşli bir günden herkese merhaba :)</p><p>Bugün sizlerle uzun zamandır üzerinde yoğunlaştığım, sizlerin de zaman zaman kendinizle tartıştığınıza inandığım bir konu hakkında konuşacağız. Başlıktan da anlaşılacağı üzere <em>“</em>Unit Test nedir?<em>”</em>, “Unit Test Neden Önemlidir?<em>”</em>,<em> “</em>Code Coverage Nasıl Arttırılır?<em>” </em>ya da<em> “</em>Ne Tür Test Yöntemleri Vardır?<em>”</em> gibi üzerinde çokça okumalar yaptığımız sorulardan uzaklaşıp, konunun daha derinine inerek <strong><em>“Neden”</em></strong> sorularına cevap arıyor olacağız.</p><p>Konuyu detaylandırmadan önce bu soruların neler olduğuna bir göz atalım.</p><ul><li><strong><em>Neden</em></strong><em> test yazmıyoruz?</em></li><li><strong><em>Neden</em></strong><em> test yazamıyoruz?</em></li><li><strong><em>Neden</em></strong><em> test yazmayı bırakıyoruz?</em></li><li><strong><em>Neden</em></strong><em> test yazmak zor geliyor?</em></li><li><strong><em>Neden</em></strong><em> test yazarken mutsuzuz?</em></li><li><em>…</em></li></ul><p>Buradaki soruların sayısını daha da arttırabiliriz. Ancak her ne kadar daha çok soru üretsek bile, tüm soruların birbirleriyle ilişkili olduğunu ve aynı noktayı vurguladıklarını görüyor olacağız.</p><h3>Gerçekler Beklediğimiz Gibi Mi?</h3><p>İçinde bulunduğumuz ekip ve ürüne göre zaman zaman günlük yaptığımız işler değişse de, günün sonunda canlıdaki ürünü geliştirmeye ve ürünle ilgili problemleri çözmeye devam ediyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0BuJDQSD5lSJUsriq79IzQ.png" /><figcaption>İdeal Dünyada Beklediğimiz :)</figcaption></figure><p>İdeal dünyada yazılım geliştiriciler olarak, kahve eşliğinde gerekli geliştirmeleri yapıp, bu geliştirmeleri canlıya alıp ve gerekli yeni düzenlemeleri yaparak (refactoring) görseldeki gibi günü tamamlamak isteriz fakat gerçek dünyada işler bu şekilde ilerleyemeyebiliyor :)</p><p>Canlıdaki sistemimizde aniden çeşitli hatalarla karşılaşabilir ve müşterilerimiz bu hatalara maruz kalabilir. Hatta, müşterilerin hatalara maruz kalma süreci arttıkça bize maddi ve manevi anlamda kötü sonuçlara sebep olacaktır. Bu noktada, günümüzün belki büyük bir çoğunluğu önce hataların sebebini bulup anlamakla ve sonrasında çözmekle geçiyor olacaktır.</p><p>Neyse ki kısa bir süre içinde sorunu tespit ettik ve gerekli düzeltmeleri yaparak canlı ortama yeni bir paket çıktık. Tam rahat bir nefes alıyoruz derken tekrardan hata sayıları yükselmeye başladı. Acaba yaptığımız değişiklik yüzünden mi böyle oldu yoksa yeni bir hata ile mi karşılaşıyoruz diye düşünürken, artık o çıkmaz labirentin içinde kaybolduğumuzu hepimiz farketmişizdir. İşler daha da kötüleşmeye başlıyor, değil mi?</p><blockquote>Tam da bu noktada,<em> </em><strong><em>“Yani, test yazsaydık bunlar olmayacaktı. Test yazmak önemli. Bunu zaten biliyoruz..”</em></strong> dediğinizi duyar gibiyim. Haklı olmanızla beraber burada önemle bilinmesi gereken şey: test yazmamıza rağmen bu süreci yine yaşıyor olabilirdik (örn: yanlış test tasarımı, soyutlama hataları, vb.). Şuan ki odağımız bu olmadığı için farklı bir yazıda tekrardan tartışıyor olacağız.</blockquote><h3>Deadline Geliyor!</h3><p>Biraz daha bilindik bir sorunla başlayacak olursak, deadline — yapılan geliştirmenin tamamlanması için belirtilen son tarih — ürün ekibiyle yazılım ekibi arasında pimi çekilmiş el bombası gibidir örneği kısmen durumun önemini anlatıyor olacaktır.</p><p>Ürün ile ilgili herhangi bir geliştirme yaparken işin biteceği süre için bir tarih sözü veririz ve bu sözü de gerçekleştirmeye çalışırız. Ancak, bazı durumlarda belirtilen zamana işler yetişemeyebilir. İşlerin neden yetişemeyeceğiyle ilgili sayısız sebep sayabiliriz. Burada kritik nokta, “İşi yetiştirmemiz gerekiyor” noktasına odaklanarak test kavramını unutuyor oluşumuz.</p><p>Yapılan bir işin (örn: yeni bir geliştirme, hata ayıklama, kodu yeniden düzenleme, vb.) uçtan uca tamamlanmasında <strong><em>testin bu sürecin bir parçası olduğunu</em></strong>, <strong><em>işlere süre tanımlarken testi de içine katarak süre hesaplamayı</em></strong> ve <strong><em>baskı hissederek testin ekarte edilebilir olmaması</em></strong> gerektiğini özümsememiz gerekiyor.</p><h3>Kimse Zaten Test Yazmıyor!</h3><p>Bu başlık nadir de olsa (umarım öyledir) karşımıza çıkan sorunlardan biri olarak yorumlanabilir. Burada konu teknik bir noktadan dışarı çıkıp, daha düşüncesel ve insani bir noktaya evriliyor.</p><p>“Başkası zaten test yazmıyor” şeklinde sorgulamanın kendimce doğru olmadığını belirtmek isterim. Çünkü, bu sorgulamanın “başkası zaten interface kullanmıyor” ile aynı olduğu düşüncesindeyim. Başka biri yapmıyor diye bu sizin yapmanıza ya da siz yapmıyorsunuz diye başkasının da yapmamasına engel değildir.</p><p>Bu başlık altında değinmemiz gereken en önemli nokta, takım/şirket içinde <strong><em>test kültürünün oluşturulması</em></strong> ve <strong><em>o kültürün içeride dağıtılmasıdır</em></strong>. Böyle bir ortam sağladığında yukarıda bahsettiklerimizin aksine, birbirini test yazmaya yöneltecek ve destekleyecek yapılaşmalar oluşacaktır.</p><h3>Kod Aşırı Karmaşık ve Dokunulmaz Durumda!</h3><p>Geldik en önemli başlığa! Bu başlık altında konuşacaklarımızın, “<strong><em>Neden</em></strong>” sorularımıza en çok dokunan nokta ve üzerine hep düşünmemiz, asla unutmamız gereken bilgiler olduğuna inanıyorum.</p><p>Hepimiz belki çoğu zaman belki daha nadir de olsa yönetilmesi zor, gelişime kapalı, değiştirilmesi neredeyse imkansız olan projelerle karşılaşmışızdır. Bırakın test yazmayı, kod yazmak, geliştirme yapmak bile hayal desek yeri vardır. İşte bizleri testten soğutan ya da istesek bile test yazmamıza engel olan şey, bu tür projelerin sürdürülebilirliğini devam ettirmektir.</p><p>Peki neden bu tarz kod yapılarıyla ya da bu şekilde yazılmış projelerle karşı karşıya kalıyoruz? Bu soruya hepimizin verebileceği çeşitli cevaplar olduğuna eminim. Fakat, bakış açığımızı biraz daha değiştirip, işin daha özüne inelim ve Jack Revees üstadın “What is Software Design?” yazısındaki bir bölüme dikkat çekelim.</p><blockquote><strong>“Coding is design, testing and debugging are part of design.”</strong> Jack W. Revees</blockquote><p>“Kodlamak bir tasarım işidir, test etmek ve hata ayıklamak bu tasarımın bir parçasıdır.” derken ne demek isteniyor? Hani bizim önümüze iş geliyordu ve biz de projeyi açıp, Repository’ler ile veritabanı üzerinde CRUD yapıp, sonrasında Manager’lar üzerinden iş geliştirmiyor muyduk? Nerden çıktı bu tasarım kavramı diyor olabilirsiniz.</p><p>Yazılım geliştirmek sadece problem çözmek ve bu problemi çözmek için kodlama yapmak değildir. Problem çözmek işimizin sadece bir parçasıdır. Bu problemi bütünüyle nasıl çözeceğimizi ele almak, bu çözüm yolunu geliştirmek asıl problemdir. Tam bu noktada, <strong><em>“Nasıl”</em></strong> dediğimiz sorunun cevabı <strong><em>tasarım</em></strong> olacaktır. Tasarlamak bir plan işidir. Yani, elinizdekileri doğru şekilde kullanarak — doğru planlayarak — sorun çözme yöntemidir.</p><p>Yazılım açısından tasarım kavramına baktığımız zaman, kaynak kodumuz (source code) bizim gerçek tasarımımızdır ve gelişime açık, esnek, sürdürülebilir bir kod için iyi bir tasarıma ihtiyacımız olacaktır. Bu tasarımı elde edebilmek için <strong><em>soyutlama (abstraction)</em></strong>, <strong><em>bağımlılık (coupling)</em></strong>, <strong><em>bağlılık/bütünlük (cohesion)</em></strong> gibi kavramları gözden geçirmemiz gerekiyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*DsDuvQCYEtz6bWAGapvPNQ.png" /><figcaption>Kodlama — Test Etme — Kod Düzenleme İlişkisi</figcaption></figure><p>Şimdi işin en güzel kısmına doğru geliyoruz. Bu bahsettiğimiz tasarım (yani kodumuz) test (testing) ve hata ayıklama (debugging) olmadan olamaz. Diğer bir deyiş ile, bu ikili olmadan tasarım tamamlanmış sayılamaz. Tam bu noktada, kod ile test arasında bir bağın kurulduğunu görebiliriz.</p><p>Son olarak hata ayıklamadan bahsetmiştik. Elbette geliştirdiğimiz kodlar içerisinde hatalar olacaktır. Önemli olan nokta, bu hataları hızlı bir şekilde bulup, düzeltebilmektir. Refactoring bu yüzden kodlama ve test arasında ikisini birbirine bağlayan bir köprü görevindedir. Sadece yazdığımız kodların değil, testlerin de gerektiği durumda refactor edilmesi gerektiğini, refactoring kavramının hem koda hem teste dokunduğunu unutmamak gerekiyor.</p><blockquote>Kod ve test bir bütündür ve ayrı düşünülemez! Bütün problemlerin bu yüzden başladığını unutmamamız gerekiyor. Yani, kod karmaşıklığını ve geliştirilemez kod yapılarını ortadan kaldırmak için, <strong>iyi ve doğru bir tasarıma</strong> ihtiyacımız olduğunu ve <strong>bu tasarımın da test olmadan olmayacağını</strong> bilmemiz gerekiyor.</blockquote><h3>Sonuç Olarak Nasıl Mutlu Olacağız?</h3><p>Test kavramının önemini ne kadar bilsek de neden test yazamadığımızdan, yazarken hangi zorluklarla karşılaştığımızdan ve bizi soğutan şeylerden detaylıca bahsettik. Bizleri test yazmaya geri döndürecek birçok yöntem sunabiliriz ama tartışmasız en önemlisini <a href="https://twitter.com/mhevery">Misko Hevery</a> söylüyor.</p><blockquote><strong>“The secret of testing is writing testable code.” </strong>Misko Hevery</blockquote><p>Tüm bu konuşmalarımızı özetleyecek olursak test yazabilmemiz için, test yazarken mutlu olabilmemiz için işi baştan sıkı tutup test edilebilir yapılar geliştirmemiz gerekiyor. Bunun için en önemli ihtiyacın iyi bir tasarıma sahip olmak gerektiğini, tasarımın gerçek kaynak kodumuz olduğunu, bu tasarımın test ve hata ayıklama olmadan bir bütün olamayacağını, refactoring kavramının sadece bir kere değil yazılım geliştirme devam ettiği sürece hayatımızda olacağını ve kod ile test arasında iki tarafa da dokunan konumda olduğunu unutmamalıyız.</p><p>Konuyla ilgili Farmazon’da yapmış olduğum daha detaylı sunuma <a href="https://speakerdeck.com/omerkorkmaz/the-atom-of-software-testing-unit-testing"><strong>buradan</strong></a> ulaşabilirsiniz.</p><p>Eksik veya hatalı bulduğunuz noktaları ya da konuyla ilgili olarak yaşadığınız deneyimlerinizi yorumlar bölümünden belirtirseniz çok sevinirim. Umarım yararlı olmuştur :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=108ec2915e96" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>