<?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 Kong To on Medium]]></title>
        <description><![CDATA[Stories by Kong To on Medium]]></description>
        <link>https://medium.com/@newlight77?source=rss-8b368a8ddc74------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5acilbdWmys-wN9S0BzLDw.png</url>
            <title>Stories by Kong To on Medium</title>
            <link>https://medium.com/@newlight77?source=rss-8b368a8ddc74------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 03:07:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@newlight77/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[Ensuring Zero Bugs is Impossible]]></title>
            <link>https://newlight77.medium.com/ensuring-zero-bugs-is-impossible-d5e42efb5613?source=rss-8b368a8ddc74------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5e42efb5613</guid>
            <category><![CDATA[testing-strategies]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Kong To]]></dc:creator>
            <pubDate>Sat, 11 Apr 2026 13:51:53 GMT</pubDate>
            <atom:updated>2026-10-10T19:50:27.999Z</atom:updated>
            <content:encoded><![CDATA[<h3>Chasing Zero Bugs is to slow down the delivery</h3><p>But ensuring testability is to balance speed, reliability and user trust.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7XK4e9E7T2-hzBKeKRyG7Q.png" /></figure><p>We need to enforce testability instead of aggressively writing exhaustive tests. Overdoing tests slows down team velocity and hurts product momentum. We want to ship fast, we want quality — but perfection comes at a cost. We live in an imperfect world, and bugs will inevitably appear.</p><blockquote>Aiming for zero bugs is not the smartest move. Aiming to fix bugs quickly and safely is.</blockquote><p>In every organization, teams deal with incidents every day. It happens — it’s normal. That’s why support teams exist. Every production incident has financial consequences, and the longer it lasts, the greater the impact — especially for critical ones.</p><blockquote>Imagine a banking system being down for three hours. What would be the impact on the business?</blockquote><p>Instead, we can deliberately accept that a product will have bugs and choose the right cursor for an acceptable level of quality, supported by sufficient test coverage. This allows teams to move faster. This is a strategic decision — both from a product and an architectural perspective.</p><h3>Time-to-Hotfix</h3><p>If the time needed to fix bugs is shortened, teams can address issues quickly without heavily disrupting backlog priorities. The workflow remains fluid. Teams retain autonomy and flexibility to adapt priorities based on urgency.</p><p>Development is part of the cycle time, which itself is part of the overall time-to-market. Time-to-hotfix is similar to cycle time, as it follows the same steps as feature delivery — but with shortcuts.</p><p>A typical cycle time process:</p><ul><li>Identification of needs and problems</li><li>System design and technical analysis</li><li>Coding</li><li>Testing and sign-off</li><li>Release</li></ul><p>For a hotfix, urgency requires shortcuts. There must be minimal delay at every step — especially in testing, sign-off, and release.</p><blockquote>Testability shortens cycle time, which in turn reduces both time-to-market and “time-to-hotfix”.</blockquote><h3>What is Testability?</h3><p>From a product perspective, shortening delivery time requires testing to be fast and easy. When designing a system, we must ensure features are easily testable so that product owners and QA engineers can validate them without friction.</p><p>The same applies to developers. When trying to implement a quick fix, components must be already easy to test. When changing any line of code, a developer should be able to quickly run a test — or quickly add one — to ensure the fix works and does not introduce regressions.</p><p>Testability is a principle.</p><blockquote>Testability is more important than tests themselves.</blockquote><p>The golden rule is:</p><blockquote><em>Every part of the system must be testable.</em></blockquote><p>Looking at the test pyramid, tests should exist at every level (E2E, integration, unit). However, it is not necessary to exhaustively cover every line of code. As long as at least one test exists for an element, it means it is testable.</p><ul><li><strong>E2E</strong>: If one feature is tested, more edge cases can be added later.</li><li><strong>Integration</strong>: If a component or subsystem is tested, additional scenarios can be added when needed.</li><li><strong>Unit</strong>: If a class or function is tested, more detailed tests can be added over time.</li></ul><p>More exhaustive tests can always be added later — when they are truly needed and relevant.</p><h3>Wrap-up</h3><p>Perfection in software is a seductive idea — but it’s also a costly illusion. Chasing zero bugs often leads to slower delivery, over-engineering, and diminishing returns. What truly matters is not the absence of bugs, but the system’s ability to <em>respond</em> to them quickly and safely.</p><blockquote>Testability is what makes that possible.</blockquote><p>When a system is designed to be testable, it becomes easier to understand, safer to change, and faster to repair. It reduces the friction between identifying a problem and delivering a fix. That’s where real reliability comes from — not in preventing every failure, but in mastering recovery.</p><p>By prioritizing testability over exhaustive testing, teams gain speed without sacrificing confidence. They create systems that support rapid iteration, empower developers, and maintain user trust — even when things go wrong.</p><p>In the end, the goal is not to build flawless software.<br> It’s to build software that can <em>adapt, recover, and improve</em> — continuously.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5e42efb5613" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Functional Core & Imperative Shell Architecture — to isolate the domain logic]]></title>
            <link>https://medium.com/bitsrc/functional-core-imperative-shell-architecture-to-isolate-the-domain-logic-2b60477b3bd1?source=rss-8b368a8ddc74------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b60477b3bd1</guid>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[hexagonal-architecture]]></category>
            <dc:creator><![CDATA[Kong To]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 05:06:58 GMT</pubDate>
            <atom:updated>2025-06-11T21:12:00.003Z</atom:updated>
            <content:encoded><![CDATA[<h3>Functional Core &amp; Imperative Shell Architecture — to isolate the domain logic</h3><h4>A Functional Programming Architecture equivalent to Hexagonal Architecture/Clean Architecture from OOP world</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-V9ewwxV0YAGpf_U4F92Rg.png" /></figure><p>Nowadays, <strong>Functional Programming</strong> (FP) is more and more practiced on projects, as typically many functional languages have emerged in the last decade, such as <em>F#, Elixir, Scala, Kotlin</em> and especially javascript developers promote <em>Typescript</em> for strong typing while going all functional programming. The functional programming, a.k.a FP, paradigm is quite different from object-oriented, a.k.a <em>OOP</em>, but is not compatible with it. In fact, in FP we still require to consume objects and produce objects as output.</p><p>One of the concept of FP is having pure functions, that have no side effects. That is, for the same input, it generated the same output. Hence, a pure function is idempotent. But writing programs made exclusively from functions without side effects can’t be useful in the real world, because application, and even small programs have to interact with the real world somehow. A program read inputs from somewhere and generate outputs to be displayed or passed on somewhere else. Inevitably, for the program to be useful, that means some parts of our programs must be connected to some infrastructure to which they apply effects.</p><p>You may read related articles in regards to Functional Programming :</p><ul><li><a href="https://medium.com/@newlight77/functional-programming-with-oop-41b069c7ef10">Function Programming — and OOP</a></li><li><a href="https://medium.com/@newlight77/functional-programming-toolkit-you-dont-need-to-fear-d987e46a9511">Functional Programming Toolkit — You Don’t Need to Fear</a></li></ul><h3>Why Functional Core &amp; Imperative Shell ?</h3><p>Let’s first remember the different between declarative and imperative programming. The focus of FP is on“What things are?” whereas OOP on “How do I get them?”. In other words, we can ask “what does it consist of?” in FP vs “What are the functions for building the house?” in OOP.</p><p>The <strong><em>Functional Core &amp; Imperative Shell</em></strong> (<strong>FCIS</strong>) pattern suggests to view the software with 2 separate concerns. How can deal with complexity of the domain separately from the complication of the real imperfect world? can see the <strong>functional core</strong> as an isolated and perfect world, whereas the <strong>imperative shell</strong> is the layer to deal with the real world with imperfection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KxVA-RQ8oQktc8OFkKacoQ.png" /></figure><p>This pattern enables us to use FP (<strong>declarative</strong>) for what it does the best, and to use OOP (<strong>imperative)</strong> for all the <em>messy</em>, <em>mutable</em>, <em>unpredictable</em> <em>side-effect</em> stuff that most applications also need to do. And what makes this pattern super nice is that it provides a clear separation between the two programming styles, so they can <strong>peacefully coexist</strong> in the same application.</p><h4>The Hexagonal &amp; Clean Architecture</h4><p>It resembles to the Hexagonal Architecture, which has a tight foundation with OOP. The similarities lie in the 2 concentric layers :</p><ul><li><strong>Outer</strong> hexagon corresponding to the <strong>Imperative Shell</strong></li><li><strong>Inner</strong> hexagon corresponding to the <strong>Functional Core</strong></li></ul><p>The Hexagonal Architecture (<strong>HA</strong>) — sometimes called ports and adapters — is designed to isolate the domain from external systems via ports (abstract interfaces) and adapters (concrete implementations).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBoweVV5i5ULISwlsMpEmA.png" /></figure><blockquote><em>For example, in a user export feature, the domain might define an </em>ExportUserport<em>, and different adapters such as </em>ExportUserToCSV<em> or </em>ExportUserToPDF<em> implementing that port.</em></blockquote><p>The Clean Architecture (<strong>AC</strong>) uses a similar concept, structuring software into concentric layers: the domain at the centre (entities and use cases), surrounded by the application layer, then the infrastructure. Both the hexagonal and the clean architectures aim to keep the domain “clean”, free from infrastructure details.</p><h4>Isolation of Domain</h4><p>The purpose of either the <strong>Hexagonal</strong>, <strong>Clean</strong> or <strong>FC&amp;IS</strong> is to have a way to set apart concerns to deal with them separately. The most important part that respond solely to business needs is the domain at the centre.</p><p>In <strong>FC&amp;IS</strong>, we want our application to be as pure functional and side-effect free as possible.<em> </em>With this in mind, we design the core of the application to be pure functional. That way, we make the business logic or <em>decision logic </em>purely functional.<em> W</em>e maximize the proportion of this core in comparison with the shell.</p><h4>The DDD in the Mix</h4><p>The Domain-Driven Design (<strong>DDD</strong>) is an other approach to help design our software. It aims to place the business domain at the centre of the software and to model it using <strong>rich domain objects</strong> (entities, value objects, aggregates). Entities encapsulate both data and behaviour in a rich domain. This means that the business rules remain in the model itself and are not scattered across application services. Again it’s domain centric.</p><h4>OOP Entanglement</h4><p>With the OOP approach, the domain layer can become entangled with technical exceptions or error handling. For example:</p><ul><li><strong>Functional dependencies:</strong> When the domain layer calls a repository interface (UserRepository) or a port (ExportUser), it may be handling errors that are inherently technical (e.g., a database connection failure), leaking external concerns into core entities or services.</li><li><strong>Increased testing overhead:</strong> Testing rich domain models that rely on external ports or repositories involves mocks and stubs. Although these interfaces are “abstract”, they still draw in logic related to side effects, making unit testing cumbersome.</li></ul><p>Over time, these hidden dependencies can make the domain harder to maintain and reason about. Instead of focusing on pure business logic, developers juggle partial technical concerns in the domain or application layer, moving away from the original promise of a “pure domain”.</p><p>When <strong>HA</strong>/<strong>CA</strong> is combined with Domain-Driven Design (<strong>DDD</strong>), by design the rich domain models the domain layer is object-oriented. Hence these hidden dependencies are difficult to avoid.</p><p>The Functional Core is there to avoid these problems.</p><h3>Functional Core</h3><p>The FCIS pattern is similar to HA/CA. It shares the same styles. It’s just a bit simplified, and is characterized by two key architectural attributes:</p><ol><li>There is a <strong>core </strong>with the core business logic, and a <strong>shell </strong>that handles interactions with the outside world, such as persisting data in databases or providing UIs to interact with end users.</li><li>The shell can call the core, but the core cannot call the shell and the core is even unaware of the existence of the shell. It follows the same <strong>Dependency Rule</strong> as in HA/CA.</li></ol><p>Testing the functional pieces is very easy, and it often naturally allows isolated testing with no test doubles. It also leads to an imperative shell with few conditionals, making reasoning about the program’s state over time much easier.</p><p>The <strong>Functional Core</strong> puts all business logic into pure functions. Each function is strictly dependent on its inputs and produces outputs with no side effects. This is in contrast to a rich domain object, which might call a repository or handle I/O directly.</p><p>Pure functions, by definition:</p><ul><li>Have no hidden dependencies on external systems.</li><li>Produce consistent outputs for given inputs.</li><li>Don’t mutate shared state or produce side effects.</li></ul><p>The complementary layer is the <strong>Imperative Shell</strong>. It handles I/O operations and orchestration.<em> </em>This shell reads data from a database, network or file, passes it to the Functional Core. It then takes the output and writes it back to the outside world. This design ensures that all domain logic remains “pure” and any side effects are safely dealt outside of the domain.</p><h4>Keeping the Domain Simple</h4><p>In contrast to the Layered Architecture with OOP approach, Instead of implementing a user entity with methods that call repositories or handle exceptions from the file system, it takes a plain data structure (<em>userData</em>), executes the logic, and returns a result (<em>newMembershipLevel</em>).<em> </em>If the logic requires more data (such as a HistoricalPurchaseData), the shell is responsible for collecting it, but never the function itself. The function does not call a repository layer to retrieve or persist data. This way, testing the domain function is as simple as passing sample data and checking the output.</p><h4>No mocking</h4><p>The functional version achieves isolation by taking a value in and return a value out. This saves us from the danger of mocked methods going out of sync. Tests are simple and don’t require to assume anything about the environment. So we don’t need to care about infrastructure, such as storage, external APIs, or network. We can focus on just testing the function behaviour: value in, value out.</p><p>Mocking requires to programmatically define behaviour of mock objects and/or dependencies, that requires more harsh work similar to double work, as we need to add logic to tests, in addition to business logic. That’s probably the reason why people don’t like very much to write tests.</p><h4>Behaviour Isolation</h4><p>As we can focus on the function behaviour, we are more safe external changes. The only thing that can affect the function is the data that changes. Hence, in our tests we should just care about the entry conditions we set, in other words data. So as long as we cover every corner cases for the functions, we are completely safe from any flaky surprise. That means no external component change would fail our tests, because we are not depending on any external component.</p><p>Better, if tests are doing properly in isolation, they can’t affect each other. Pure functions shall pull out isolated and idempotent tests, so the order of executing or executions in parallel would not matter at all.</p><h4>Fast and lightweight</h4><p>Unit tests that don’t depend on anything external, such as file system, network or other components, are obviously fast, because there is no waiting on other things except the logic within the function under test. As a consequence, those tests would be are quite light to write and to run.</p><h3>Imperative Shell</h3><p>Applications as a whole can not be composed of just pure functions. The business logic code always relies on the infrastructure (network, file system, database) and/or on other components. As mentioned earlier, there is always a layer of technical things to interact with that business logic code, called functional core. That layer is called imperative shell, and it is made of impure functions that creates some effects. Finally that shell, maybe thin or thick in microservices, is somehow similar to OOP. We may exactly combine the OOP and FP approaches with pure and impure functions to deal with states and synchronous/asynchronous calls.</p><p>Testing on that shell comes with the same problems as using OOP, but with a slight benefit that FP brings in.</p><p>The Imperative Shell manages all of the application’s side effects, such as database interactions, HTTP request handling, logging and external service calls. By placing these operations at the edge rather than in the core, the shell ensures that the pure logic in the functional core remains focused on the business rules.</p><p>Functionally, the shell acts as a translator between the outside world and the functional core.<em> </em>It accepts incoming data from various sources, adapting it (reformatting or mapping) so the pure functions of the core can compute then processes the output. It then applies any necessary side effects, such as updating a database or sending a response back to a client. This clear separation keeps external complication out of the core, making the system easier to understand, test and maintain.</p><h4>Unidirectional Data Flow</h4><p>A key aspect of the FCIS is the way in which the application workflow is composed — function composition. Rather than relying on a complex web of method calls scattered throughout the code in the workflow to manipulate data (retrieval, transformation, then persistence), the <strong>Functional Core</strong> idea advocates a simple function composition to transform data in one direction. Each function takes the output of the previous function as its input, creating a clear, unidirectional flow of data. A functions receive data, transform it and return new data, with no hidden dependencies or side effects. Less dependencies means that it’s simpler for developers when reasoning with code.</p><p>It’s a chain of functions, just like the chain of responsibility pattern, and each function has a single responsibility of computation with specific behaviour (algorithm). Each step in a workflow performs exactly one task. The business logic remains in the core as <strong>pure functions.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yvuS0lykhH-lt5UE4Uw4Vg.png" /><figcaption>Chain of functions</figcaption></figure><p>All side effects and I/O (such as database writes or network requests) live at the<strong> shell</strong>. This approach keeps the code coherent and maintainable, especially in larger systems. Data flows in one direction, first from the shell, then is passed to a pure function in the core that produces a result, then returns back to the shell. There are no back-and-forth calls or complicated callback patterns within the domain itself.</p><h4>Minimal Integration and E2E</h4><p>Integration and e2e tests tend to be complicated to set up and slow to run, while having flaky outcomes. The complications comes from the fact that these tests integrate many things together, including a lot of technical infrastructure. If we manage to minimize the logic that interacts with the infrastructure, the amount of tests required to achieve goo coverage is also minimized. In addition to that, we we structure our code to isolate the business logic from the infrastructure logic, we have absence of coupling. As a consequence, we can keep focus on things we want to tests, in isolation. So tests are smaller, and chances are we requires less tests to have a good technical and functional coverage.</p><h3>Function Core &amp; Imperative Shell with HA/CA</h3><h4>Where This Fits with HA/CA</h4><p>As most of you will have noticed from my recent posts, I am a big fan of HA.<em> </em>However, I’m seeking for improvement and still looking for a better way to structure the code in a clean and simplified way, while aiming for efficiency, for maintainability and flexibility. I come to realize that ironically, you can still use HA/CA as a structural blueprint while keeping the domain layer purely functional.</p><p>The ports/adapters concept can remain at the boundary between the imperative shell and the domain.<em> </em>On the other hand, instead of having Rich domain objects that implement those ports or handle external exceptions, you place pure functions in the domain. The shell becomes the single place responsible for all side effects. And the shell sits between those pure functions and the real world.</p><h4>The Use-Case Layer</h4><p>CA suggests to emphasize on use cases. And use case in FCIS need to deal with side effects. So why not dedicate a use-case layer wrapping all pure functions in the core?</p><p><strong>This approach addresses</strong> my biggest critique: HA/CA in practice introduces functional dependencies. By adopting pure functions, the domain logic is truly isolated, and the domain layer stops being burdened with handling technical exceptions or I/O logic. Instead, the use-case layer will implement policies and orchestrate everything requires to the use-case to fulfill the business needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ftB3w_Q-jvi4u-irAl2v7A.png" /></figure><p>The Functional Core holds pure functions and is <strong>not</strong> <strong>traversing.</strong> That means it does not interact with the adapter. The use case handles that interaction. Typically, the use case query a certain data from the driver adapter, calls a pure function which compute and returns a mapped or transformed data, the calls another adapter to publish or persist that data.</p><h3>Benefits of Pure Functions</h3><h4><em>Fewer Hidden Dependencies</em></h4><p>In the rich domain model approach, even if you hide infrastructure details behind interfaces, the domain often deals with exceptions or state changes that point to external concerns. Pure functions eliminate these hidden dependencies entirely: <strong>They only accept and return data.</strong></p><h4><em>Easier Testing Without Mocks</em></h4><p>Pure functions require <strong>no mocking</strong> of external dependencies because there are none. You can test them by passing input structures and comparing the result with what you expect. Unlike the hexagonal/clean architecture approach, where testing an entity’s method might require mocking a repository or a port interface, pure functions drastically reduce overhead. No need to set up a fake database or fake external services.</p><h4><em>Reduced Maintenance Overhead</em></h4><p>DDD Alignment: DDD focuses on capturing business rules. Pure functions still do exactly that, but now the domain logic is “pure”, with side effects moved to a separate shell. They remain small, composable, and stateless.When you must update or extend business logic, you modify a single function or create a new one, keeping changes isolated and explicit.</p><h4>Handling Errors</h4><p>One concern with pure functions is handling complex errors. This is especially true if your domain needs to respond to certain external errors (such as “database unreachable”). In a FCIS, such a failure is not a domain concern but a shell concern.<em> </em>The error handling is managed by the shell. As a result, business rules themselves remain focused on business data.</p><h4>Testability in Practice</h4><p>Once you adopt a FCIS, tests become more about verifying:</p><ol><li><strong>Functional correctness</strong> of each domain function (simple unit tests).</li><li><strong>Integration</strong> in the shell, ensuring side effects are invoked properly (mocking external systems only in the shell tests).</li></ol><blockquote><em>This separation often shortens feedback loops and increases developer confidence in delivering added-value.</em></blockquote><h3>Wrap up</h3><p>HA/CA, especially when coupled with DDD and rich domain models, were intended to isolate business logic from technical details. In theory, this is admirable. In practice, these designs can create functional dependencies (such as domain objects dealing with repositories or external ports) that make the domain more complicated and less testable.</p><p>In contrast, with FCIS, pure Functions, at the heart of a Functional Core, depend only on inputs, produce predictable outputs. Side effects are kept in the imperative shell. This approach is proven:</p><ul><li>Reduce hidden complexity</li><li>Simplify testing by eliminating mocks for domain logic</li><li>Align strongly with DDD’s emphasis on core business rules</li><li>Improve overall maintainability and adaptability</li></ul><p>If you’ve been struggling to keep your HA/CA or DDD layers free from external noise, consider moving to a functional core approach.<em> </em>You may find that the benefits of clarity, testability and reduced overhead are well worth the change.</p><blockquote><em>If you are a </em><strong><em>DDD</em></strong><em> practitioner, and try to apply the Functional Core &amp; Imperative Shell pattern, I strongly recommend reading the </em><a href="https://twitter.com/KennethLange/status/1370733250939924481"><em>Domain Modeling Made Functional</em></a><em> book or get in touch with Scott Wlaschin for a training. I have had the chance to get that wonderful training by Scott </em>Wlaschin <em>in person.</em></blockquote><h3>Glossary</h3><ul><li>FP : Functional Programming</li><li>E2E : End-to-end</li><li>DMMF : Domain Modeling made Functional</li><li>FC&amp;IS : Functional Core &amp; Imperative Shell</li><li>OOP : Object-Oriented Programming</li><li>DDD : Domain-Driven Design</li></ul><h3>References</h3><ul><li>DMMF book, by <a href="https://twitter.com/ScottWlaschin?s=20&amp;t=gtglnePZ7F60JCtE8DFegg">Scott Wlaschin</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b60477b3bd1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bitsrc/functional-core-imperative-shell-architecture-to-isolate-the-domain-logic-2b60477b3bd1">Functional Core &amp; Imperative Shell Architecture — to isolate the domain logic</a> was originally published in <a href="https://medium.com/bitsrc">Bits and Pieces</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Functional Programming Toolkit — You Don’t Need to Fear]]></title>
            <link>https://newlight77.medium.com/functional-programming-toolkit-you-dont-need-to-fear-d987e46a9511?source=rss-8b368a8ddc74------2</link>
            <guid isPermaLink="false">https://medium.com/p/d987e46a9511</guid>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Kong To]]></dc:creator>
            <pubDate>Mon, 26 May 2025 06:02:27 GMT</pubDate>
            <atom:updated>2026-10-10T19:51:01.419Z</atom:updated>
            <content:encoded><![CDATA[<h3>Functional Programming Toolkit — You Don’t Need to Fear</h3><h4>Functors, Monads, Monoid and More: Why Functional Programming Isn’t So Scary</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*xFoRDXyVb0ddQLFHDkEzfQ.png" /><figcaption>Functional Programming Toolkit</figcaption></figure><p>Following the article <a href="https://medium.com/@newlight77/functional-programming-with-oop-41b069c7ef10">Function Programming — and OOP</a>, I thought the FP toolkit could be useful to grasp.</p><blockquote>The <strong>functional programming</strong> community has a number of patterns with strange names such as monads, monoids, functors, and catamorphisms — Scott Wlaschin</blockquote><p>Years ago, people talked to me about <strong>functors</strong>, <strong>monads</strong> and <strong>monoids</strong>. Those words were mysterious to me, especially when I was participating in a training session given by Scott Wlaschin. Before we get to understand those terms, let’s walk through the core concepts of functional programming (<strong>FP</strong>).</p><h3>The Core Concepts of Functional Programming (FP)</h3><p>There are 3 major concepts :</p><ul><li>Immutability</li><li>Separation of Data and Functions</li><li>First-Class Functions</li><li>High-Order Functions</li></ul><p>Another tenet of FP philosophy is not to modify data outside the function. In practice, this means to avoid modifying the input arguments to a function. Instead, the return value of the function should reflect the work done. This is a way to avoid <em>side effects</em>. It makes it easier to reason about the effects of the function as it operates within the larger system.</p><h4>Immutability</h4><p>The first concept is <strong>immutability</strong>. It may surprise a lot of people, because this is different to OOP, in which we would talk about mutable objects, and we usually refer to the encapsulation principle. Encapsulation is about a class preserving its internal attributes, and these attributes can not be accessible and modified outsiders.</p><p>Similarly, the philosophy of immutability is to not modify data outside the function. In practice, this means to avoid modifying the input arguments to a function. Instead, the return value of the function should reflect the work done. This is a way of avoiding <strong><em>side effects</em></strong>. It makes it easier to reason about the effects of the function as it operates within the larger system.</p><p>On the other hand, in OOP we can modify the object as argument to a method, but using the object’s methods in respect to the encapsulation principle.</p><h4>Separation of Data and Functions</h4><p>In FP, a <strong>function</strong> takes <strong>data as input</strong>, <strong>compute</strong>, and last return another <strong>data as output</strong>. In short : <strong>data</strong> in, <strong>function, data</strong> out. The data holds information required for the computation, while the function is to compute using the data.</p><p>A value (data) is typically a constant (immutable), and does not change thorough its life cycle in a program. Conceptually there is no way to change it, but in practice, it strongly depends on the language. For example, <strong>python</strong> does not even have a dedicated <strong><em>constant</em></strong> keyword, as opposed to <strong>typescript</strong>. In FP, we <strong>don’t “assign”</strong> a value, instead we <strong>“define” a </strong>value. In other words, we name the value. A different value would have different name, so that makes values immutable.</p><h4>Fist-Class Functions</h4><p>When a function can be treated like any other variable, it is then a First-Class function. Nevertheless not all programming language has support for First-Class Functions. A programming language is considered to have First-Class functions support when it has <strong><em>no</em></strong> <strong><em>restrictions</em></strong> on how functions can be <strong><em>created </em></strong>or<strong> <em>used</em>.</strong></p><p>In general, a First-Class Function :</p><ul><li>Can be <strong>assigned</strong> to regular variables</li><li><strong>Passed</strong> as arguments to functions</li><li><strong>Returned</strong> as results of functions</li><li><strong>Included in any data structures</strong></li></ul><h4>Higher Order Functions</h4><p>A <strong>higher-order function</strong> is a function that <strong>takes one or more functions as arguments</strong>, <strong>returns a function</strong>, or <strong>does both</strong>.</p><p>This allows for greater flexibility, abstraction, and code reuse.</p><blockquote>Higher-order functions are a key element of FP that allow us to create abstractions over existing functionality and compose new functionality out of existing ones.</blockquote><p><strong>Function that takes a function : </strong>This is known as callback : A <strong>callback</strong> is a function passed into another function as an argument, which is then <strong>invoked inside the outer function</strong>.</p><p><strong>Function that returns a function : </strong>This is known as <strong>Closure</strong>. It is a function that <strong>remembers the variables</strong> from its lexical scope, even when executed outside that scope.</p><p><strong>Function that takes a function and returns a function : </strong>This pattern is at the heart of many functional utilities. It’s the combination of taking a function and returning a new one, often with modified behavior.</p><p><strong>Partial application : </strong>it means breaking functions into smaller ones wit fewer arguments, increasing reusability.</p><p><strong>Currying</strong> : It transforms a function with multiple arguments into a sequence of functions each taking a single argument.</p><p><strong>Recursion : </strong>A function is recursive when a function calls itself to solve a smaller instance of the same problem. It’s often used in place of loops in functional programming.</p><h3>Toolkit</h3><h4>Functor (mappable)</h4><p>A <strong>functor</strong> is anything that you can <strong>map</strong> over, while preserving the container’s structure. A functor provides a way to apply a function to values inside a “<strong>container</strong>”.</p><p>It must preserve:</p><ul><li>Identity: F(id) = id</li><li>Composition: F(g ∘ f) = F(g) ∘ F(f)</li></ul><pre>// Array&#39;s map method is the functor operation<br>const numbers = [1, 2, 3, 4];<br>const doubled = numbers.map(x =&gt; x * 2);<br>// [2, 4, 6, 8]<br><br>const words = [&#39;hello&#39;, &#39;world&#39;];<br>const uppercased = words.map(s =&gt; s.toUpperCase());<br>// [&#39;HELLO&#39;, &#39;WORLD&#39;]</pre><pre>// Identity law: mapping identity function doesn&#39;t change the container<br>const identity = x =&gt; x;<br>const arr = [1, 2, 3];<br>console.log(arr.map(identity)); // [1, 2, 3] - same as original<br><br>// Composition law: mapping composed functions equals composing mapped functions<br>const add1 = x =&gt; x + 1;<br>const mult2 = x =&gt; x * 2;<br>const compose = (f, g) =&gt; x =&gt; f(g(x));<br><br>const numbers = [1, 2, 3];<br>const method1 = numbers.map(compose(mult2, add1));<br>const method2 = numbers.map(add1).map(mult2);<br>console.log(method1); // [4, 6, 8]<br>console.log(method2); // [4, 6, 8] - same result!</pre><p>Think of functors as “<strong>mappable containers</strong>”. They let you transform contents while preserving the structure inside. The Javascript Array is a functor — it implements .map() .</p><h4>Catamorphism (Collapsable/Reducible)</h4><p>A <strong>catamorphism</strong> is a generalization of <strong>fold</strong> (reduce) — it collapses a structure into a single value. It’s how you turn a structure (like a list or tree) into a summary value. That reflects how it breaks down complex structures into simpler forms.</p><pre>[1, 2, 3].reduce((sum, x) =&gt; sum + x, 0); // 6</pre><p>The Javascript Array .reduce() function is doing a catamorphism. Catamorphisms guarantee termination (<strong>no infinite loops</strong>). It provides a way to process recursive data.</p><h4>Currying (Chain of Unary Functions)</h4><p>Transforms a function with multiple arguments into a chain of unary functions (taking a single argument). It’s named after mathematician Haskell Curry.</p><pre>function classicAdd(a, b, c) {<br>  return a + b + c;<br>}<br>// Usage:<br>add(1, 2, 3); // 6<br><br><br>function curriedAdd(a) {<br>  return function(b) {<br>    return function(c) {<br>      return a + b + c;<br>    };<br>  };<br>}<br><br>// Usage:<br>curriedAdd(1)(2)(3); // 6</pre><p>You can partially apply curriedAdd(2) to get a new function. Currying allows you to <strong>automatically</strong> partially apply by splitting arguments.</p><h4>Partial Application</h4><p>You can create <strong>partial application</strong> by fixing some arguments of a function to create a new function (.e.g. add2 = a =&gt; (a, 2)).</p><pre>function add(a, b) {<br>  return a + b;<br>}<br><br>const add2 = a =&gt; add(a, 2);<br>add2(3); // 5</pre><p><strong>Currying vs Partial Application</strong></p><p>The Currying And Partial Application patterns allow to create smaller, more flexible and reusable functions. It makes it easier to combine functions together. The key difference between them lies in the <strong>number of arguments</strong>. In currying, we transform a function into a chain of <strong>single-argument</strong> functions, while in a partial application, we creates a new function with <strong>n arguments pre-filled</strong>. Currying is more about mathematical function transformation, while partial application is more about practical code organization and reuse.</p><pre>function multiply(a, b, c, d) {<br>  return a * b * c * d;<br>}<br><br>// CURRYING - always creates 4 single-argument functions<br>const curried = (a) =&gt; (b) =&gt; (c) =&gt; (d) =&gt; multiply(a, b, c, d);<br><br>// Only one way to call it:<br>curried(1)(2)(3)(4);<br><br>// You can stop at any point and get a PARTIAL APPLICATION<br>const multiplyOne = curried(1);<br>const multiplyOneAndTwo = multiplyOne(2);<br>const multiplyOneAndTwoAnd3 = multiplyOneAndTwo(3);<br>const result = multiplyOneAndTwoAnd3(4);<br><br>// PARTIAL APPLICATION - flexible argument fixing<br>const partial1 = (a) =&gt; (b, c, d) =&gt; multiply(a, b, c, d);          // 1 + 3 args<br>const partial2 = (a, b) =&gt; (c, d) =&gt; multiply(a, b, c, d);          // 2 + 2 args  <br>const partial3 = (a, b, c) =&gt; (d) =&gt; multiply(a, b, c, d);     </pre><h4>Monad (Chainable)</h4><p>A <strong>monad</strong> is a structure that can be <strong>chained</strong> (using flatMap or bind) and preserves structure. It’s like a functor, but lets you <strong>chain operations that also return monads</strong>, flattening them as you go. Javascript Promises are actually monads. Javascript Arrays are also monads.</p><pre>// Promises follow monad laws<br>Promise.resolve(5)  // Unit/Return<br>  .then(x =&gt; Promise.resolve(x * 2))  // Bind (flatMap)<br>  .then(x =&gt; x + 1)  // Map<br>  .then(console.log); // 11<br><br>// Async operation chaining<br>function fetchUser(id) {<br>  return Promise.resolve({ id, name: &quot;John&quot; });<br>}<br><br>function fetchUserPosts(userId) {<br>  return Promise.resolve([{ title: &quot;Post 1&quot; }, { title: &quot;Post 2&quot; }]);<br>}<br><br>// Monadic chaining<br>Promise.resolve(1)<br>  .then(fetchUser)<br>  .then(user =&gt; fetchUserPosts(user.id))<br>  .then(posts =&gt; posts.map(p =&gt; p.title))<br>  .then(console.log); // [&quot;Post 1&quot;, &quot;Post 2&quot;]</pre><pre>// Array monad operations<br>const numbers = [1, 2, 3];<br><br>// Unit/Return<br>const singleValue = [5]; // Array.of(5)<br><br>// Bind (flatMap)<br>const result = numbers<br>  .flatMap(x =&gt; [x, x * 2])  // Bind operation<br>  .map(x =&gt; x + 1);          // Map operation<br><br>console.log(result); // [2, 3, 3, 5, 4, 7]<br><br>// Real example: nested loops flattened<br>const users = [<br>  { name: &quot;Alice&quot;, hobbies: [&quot;reading&quot;, &quot;swimming&quot;] },<br>  { name: &quot;Bob&quot;, hobbies: [&quot;coding&quot;, &quot;gaming&quot;] }<br>];<br><br>const allHobbies = users<br>  .flatMap(user =&gt; user.hobbies)  // Flatten the nested arrays<br>  .map(hobby =&gt; hobby.toUpperCase());<br><br>console.log(allHobbies); // [&quot;READING&quot;, &quot;SWIMMING&quot;, &quot;CODING&quot;, &quot;GAMING&quot;]</pre><p>Monads help to have more fluent code. The composability is safer as it discards nested conditionals, thus avoiding nested callbacks. This makes the side effect more predictable.</p><h4>Monoid (Aggregatable with identity)</h4><p>A <strong>monoid</strong> is a <strong>type</strong> with a binary <strong>combine</strong> operation and an <strong>identity</strong> element (neutral value). You can combine values repeatedly, and there’s a value that does nothing when combined. It’s simpler than a monad but equally powerful for combining and aggregating data.</p><p>A monoid must satisfy three laws:</p><ol><li><strong>Closure</strong>: The operation on two elements produces another element of the same type</li><li><strong>Associativity</strong>: (a ⊕ b) ⊕ c = a ⊕ (b ⊕ c)</li><li><strong>Identity</strong>: There exists an identity element e where a ⊕ e = e ⊕ a = a</li></ol><p><strong>Examples</strong></p><pre>// Addition Monoid<br>const AdditionMonoid = {<br>  // Binary operation<br>  concat: (a, b) =&gt; a + b,<br>  <br>  // Identity element<br>  empty: () =&gt; 0<br>};<br><br>// Laws verification:<br>// Associativity: (1 + 2) + 3 = 1 + (2 + 3) = 6<br>// Identity: 5 + 0 = 0 + 5 = 5<br><br>// Laws check:<br>console.log(AdditionMonoid.concat(5, 0)); // 5 (right identity)<br>console.log(AdditionMonoid.concat(0, 5)); // 5 (left identity)<br>console.log(AdditionMonoid.concat(AdditionMonoid.concat(1, 2), 3) ===  AdditionMonoid.concat(1, AdditionMonoid.concat(2, 3))); // true (associativity)</pre><pre>const ProductMonoid = {<br>  concat: (a, b) =&gt; a * b,<br>  empty: () =&gt; 1<br>};<br><br>// Calculate product of numbers<br>const numbers = [2, 3, 4, 5];<br>const product = numbers.reduce(ProductMonoid.concat, ProductMonoid.empty());<br>console.log(product); // 120</pre><p><strong>A user validation monoid</strong></p><pre>class Validation {<br>  constructor(errors = [], isValid = true) {<br>    this.errors = errors;<br>    this.isValid = isValid;<br>  }<br>  <br>  static success() {<br>    return new Validation([], true);<br>  }<br>  <br>  static failure(error) {<br>    return new Validation([error], false);<br>  }<br>  <br>  concat(other) {<br>    return new Validation(<br>      [...this.errors, ...other.errors],<br>      this.isValid &amp;&amp; other.isValid<br>    );<br>  }<br>  <br>  static empty() {<br>    return Validation.success();<br>  }<br>}<br><br>// Usage<br>function validateUser(user) {<br>  const validations = [];<br>  <br>  if (!user.name) {<br>    validations.push(Validation.failure(&#39;Name is required&#39;));<br>  }<br>  <br>  if (!user.email) {<br>    validations.push(Validation.failure(&#39;Email is required&#39;));<br>  }<br>  <br>  if (user.age &lt; 18) {<br>    validations.push(Validation.failure(&#39;Must be 18 or older&#39;));<br>  }<br>  <br>  return validations.reduce((acc, val) =&gt; acc.concat(val), Validation.empty());<br>}<br><br>const result = validateUser({ name: &#39;&#39;, email: &#39;test@example.com&#39;, age: 16 });<br>console.log(result.errors); // [&#39;Name is required&#39;, &#39;Must be 18 or older&#39;]<br>console.log(result.isValid); // false</pre><p>Monoids allow to have a safe parallel processing thanks to associativity. The identity element enables incremental building. With monoids, it’s easy to combiner multiple operations. Mathematical laws ensure consistent behavior.</p><h3>Wrap up</h3><p>Years ago, terms like <strong>functor</strong>, <strong>monad</strong>, and <strong>monoid</strong> sounded like abstract academic jargon — especially during Scott Wlaschin’s training, where these concepts were presented with elegance but also a layer of mystery. Today, we’ve peeled back that mystery.</p><p>By starting with the <strong>core foundations of functional programming</strong> — immutability, separation of data and functions, and the power of first-class and higher-order functions — we built a base to understand the deeper concepts that follow.</p><p>From <strong>functors</strong> (things you can map over), to <strong>catamorphisms</strong> (ways to collapse structures), <strong>currying and partial application</strong> (techniques for transforming and reusing functions), <strong>monads</strong> (structures for chaining computations), and <strong>monoids</strong> (types you can combine with identity), each of these tools adds a layer of expressiveness and safety to your programming toolkit. They represents patterns to write more optimized code, more more clarity, and better control of side effects.</p><p>Functional programming is not just a different syntax — it’s a different way of <strong>thinking about computation</strong>. It emphasizes <strong>predictability, composition, and correctness</strong>. The terminology may seem intimidating at first, but with patience and practice, these concepts become not only understandable — but empowering.</p><p>Whether you’re writing cleaner code in JavaScript, TypeScript, or any other language with functional features, these principles will help you write programs that are more <strong>robust, modular, and elegant</strong>.</p><p>So, if these concepts once felt mysterious to you — know that clarity comes with curiosity. Keep exploring.</p><h3>Glossary</h3><ul><li>FP : Functional Programming</li><li>DMMF : Domain Modeling made Functional</li><li>OOP : Object-Oriented Programming</li></ul><h3>References</h3><ul><li>DMMF book, by <a href="https://twitter.com/ScottWlaschin?s=20&amp;t=gtglnePZ7F60JCtE8DFegg">Scott Wlaschin</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d987e46a9511" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Functional Programming — and OOP]]></title>
            <link>https://newlight77.medium.com/functional-programming-with-oop-41b069c7ef10?source=rss-8b368a8ddc74------2</link>
            <guid isPermaLink="false">https://medium.com/p/41b069c7ef10</guid>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Kong To]]></dc:creator>
            <pubDate>Thu, 22 May 2025 05:32:29 GMT</pubDate>
            <atom:updated>2025-05-26T06:53:42.685Z</atom:updated>
            <content:encoded><![CDATA[<h3>Functional Programming — and OOP</h3><h4>What’s real difference compared to OOP — what about hybrid approaches ?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5lcELUK2HzPAp5k8R04Pw.png" /></figure><p>Myself have been using <strong>OOP</strong> for more than 20 years now. <strong>OOP</strong> and procedural programming have dominated the software world form decades now. Nowadays, Functional Programming (<strong>FP</strong>) has been a new trending, moving us to a new era. Is <strong>FP</strong> a new paradigm? Hell no! <strong>FP</strong> has been out there since 1930, starting with <a href="https://en.wikipedia.org/wiki/Lambda_calculus">Lambda calculus</a>, then <a href="https://en.wikipedia.org/wiki/Lisp_(programming_language)">LISP</a> appeared in the 1950s.</p><p>FP is sometimes seen in opposition to <strong>OOP</strong>. That is misleading. These approaches complementary and most systems tend to use both. I recommend reading this article, <a href="https://medium.com/p/2b60477b3bd1">Functional Core &amp; Imperative Shell</a> (<strong>FC&amp;IS</strong>) for more details about how we can use both approaches.</p><h3>The Functional Programming</h3><p>If we use OOP, we are likely talking about using a procedural programming language, such Java, C++, C, there are certainly bugs that are hard to fix, or recreate. It may take a long series of steps to make them show up, for many reasons. One reason is that we need to be able to track all changes that occurs while running the workflow or scenario inside the program, because there are likely hundreds of attributes used at different places (classes and methods) at runtime. Briefly, classes are intended to encapsulate states and are composed of several methods to change their state.</p><h4>Pure Functions</h4><p><strong>Functional programming </strong>(often abbreviated FP) is the process of building software by composing <strong>pure functions. </strong>The beauty of a pure function is its simplicity nature, exactly like a mathematical function. A <strong>pure function </strong>is a function which takes in given the same inputs, always returns the same output, and has no side-effects.</p><p>This is in contrast to OOP, in a procedural fashion, where object methods are designed to interact with its state. Pure functions often manipulates the external state by returning a modified copy of the data to the system. In practices, functions often end up needing to interact with the broader context of the system, by using high-order functions. React’s hooks are good examples.</p><h4>Side Effects</h4><p>The no side-effects bit is particularly important, because this is what allows us to trust that a function will always behave the same in any environment. Now side-effects aren’t inherently bad, but you should isolate them to parts of your codebase where you can easily identify them.</p><h4>Declarative vs Imperative Programming</h4><p>FP is a declarative style of programming. It is opposed to OOP and procedural programming, which are imperative style of programming. FP focuses on “what things are”, while in OOP we define “how to get them”.</p><p>As we get used to build complex software, a concrete example of this, would be if we were to talk about a car. If we want to describe a house in a declarative way, “what does a car consist of?”, we might say a car is made of 4 wheel, and engine, doors and seats, bumpers. On the other hand, if we describe a car in an imperative way, “how do we make a house?”, we may enumerate all steps in order to build a car.</p><h4><strong>Comparison</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RmoR4cauOc0IrW3TjWfUUA.png" /><figcaption>FP vs OOP</figcaption></figure><p>In OOP we model our software with classes, their respective attributes, methods and relations. In FP we model our software with data, functions and composition of functions.</p><p>If we look into details, and compare the characteristics between FP and OOP, we could highlight a key differences. In OOP we model our software with classes, their respective attributes, methods and relations. In FP we model our software with data, functions and composition of functions.</p><h4><strong>Simple example : average age</strong></h4><p>Let’s take a more simpler example. If we want to write a program to tell us the average age from a list of employees in a company. In an imperative way, we would specify the steps required to calculate the average.</p><p><strong>The procedure</strong> : set sum = 0, add age from first employee, repeat for all employees, and finally divide sum by number of employees.</p><pre>const employees = [<br>  { name: &#39;Alice&#39;, age: 30 },<br>  { name: &#39;Bob&#39;, age: 40 },<br>  { name: &#39;Carol&#39;, age: 35 }<br>];<br><br>let sum = 0;<br>for (let i = 0; i &lt; employees.length; i++) {<br>  sum += employees[i].age;<br>}<br>const average = sum / employees.length;<br><br>console.log(average); // 35</pre><p>This is probably how we are used to write programs. We would just think on how to get the result.</p><h4>What’s happening?</h4><ul><li>You <strong>manually control</strong> the loop.</li><li>You manage <strong>intermediate state</strong> (sum).</li><li>You focus on <strong>the steps</strong> rather than the meaning.</li></ul><p>If we want to solve the same problem in a declarative way, we could simply state that the average is the sum of all employees’ age divided by the number of employees.</p><pre>const employees = [<br>  { name: &#39;Alice&#39;, age: 30 },<br>  { name: &#39;Bob&#39;, age: 40 },<br>  { name: &#39;Carol&#39;, age: 35 }<br>];<br><br>const average = employees<br>  .map(emp =&gt; emp.age)<br>  .reduce((sum, age) =&gt; sum + age, 0) / employees.length;<br><br>console.log(average); // 35</pre><p>If it never occurred to you that it’s possible to write program in this way, you are not alone. It feels a lot more natural and obviously more easier for many problems. Does it remind you of mathematical functions you have learned at school? It does to me. That is exactly the main idea behind the functional programming.</p><p><strong>Mathematical function</strong> : Average<strong> = </strong>(Sum of employees’ age) ÷ (Numbers of employees)</p><p>It brings the procession of mathematical functions in our programs. The FP’s name comes from there. What does that mean? To answer to that question, let’s explore the major concepts of behind FP.</p><h4>Why is this functional?</h4><ul><li>You <strong>don’t manage loops or state</strong> directly.</li><li>You use <strong>pure functions</strong>: map and reduce.</li><li>You express the logic like a <strong>mathematical formula.</strong></li></ul><h3>Problems that FP is addressing</h3><p>Functional Programming (FP) isn’t just about syntax or academic purity — it’s a response to real problems that arise in software development. FP is not about avoiding all side effects — but about <strong>controlling them</strong>. By minimizing mutation, avoiding shared state, and making the async predictable. It leads to have code that’s easier to <strong>reason about, test, and scale</strong>.</p><p>FP tackles some of the most persistent challenges in modern software development:</p><ul><li>Mutation</li><li>Shared State</li><li>Asynchronous calls</li><li>Composition</li><li>Memoization</li><li>Testing</li></ul><h4>Mutation</h4><p><strong>Mutation</strong> is when variables or objects are modified after they’re created. This can lead to unpredictable behavior, especially in large or complex codebases. When data is mutable, it can change from many parts of the codebase, introducing bugs and making debugging difficult. FP encourages <strong>immutability</strong> — once data is created, it cannot be changed. Instead, use new copies of data instead of modifying the original.</p><blockquote><strong>Immutability makes code more predictable and reduces side effects</strong>.</blockquote><h4>Shared State</h4><p><strong>Shared state</strong> means multiple parts of a program access and modify the same data. However, a shared state across components or modules can lead to tight coupling and hard-to-trace bugs, especially in large applications. To solve that problem, FP promotes <strong>pure functions</strong> that don’t depend on or mutate shared state. Instead, functions receive all data as arguments and return new data.</p><blockquote><strong>No shared state means no unintended side effects.</strong></blockquote><p><strong>Why it’s a problem</strong>:</p><ul><li>Creates tight coupling between components.</li><li>Makes code hard to reason about, especially in concurrent systems.</li></ul><p><strong>FP approach</strong>:</p><ul><li>Eliminates shared state by using <strong>pure functions</strong> that rely only on their inputs.</li><li>Encourages <strong>stateless design</strong> where functions don’t rely on or change external state.</li></ul><h4>Asynchronous Code</h4><p><strong>Asynchronous code</strong> (e.g. API calls, event handling, with callbacks, and promises) introduces complexity like race conditions or callback hell. It can get messy with callbacks and side effects. Functional tools like <strong>Promises</strong>, <strong>monads</strong>, and <strong>composable async functions</strong> help structure async code more cleanly.</p><blockquote>Functional composition brings order and predictability to async workflows.</blockquote><p><strong>Why it’s a problem</strong>:</p><ul><li>Order of execution becomes harder to predict.</li><li>Makes debugging and control flow management more difficult.</li></ul><p><strong>FP approach</strong>:</p><ul><li>Treats async behavior as <strong>data flows</strong> (e.g., with map, reduce, flatMap on promises or streams).</li><li>Promotes <strong>composability</strong> of async operations (e.g., using monads or observables).</li></ul><h4>Composition</h4><p><strong>Composition</strong> means combining small, pure functions to build more complex logic — like snapping Lego bricks together. <strong>Composition</strong> replaces imperative “how-to” logic with declarative “what-to-do” chaining of behaviors. In imperative code, you often write step-by-step logic that’s hard to reuse or abstract cleanly. FP emphasizes <strong>function composition</strong> — building complex behavior by combining small, pure functions.</p><blockquote>Functions become building blocks.</blockquote><p><strong>Why it’s powerful</strong>:</p><ul><li>Encourages <strong>reusability</strong> and <strong>testability</strong>.</li><li>Makes behavior easier to predict.</li><li>Results in modular, maintainable code.</li></ul><p>Chaining, Combination or Pipe of functions,</p><h4>Memoization</h4><p>Repeated computation of the same inputs can slow performance. <strong>Memoization</strong> stores the results of expensive function calls and returns the cached result when the same inputs occur again.</p><blockquote>Memoization is ideal for pure functions where inputs always produce the same outputs.</blockquote><h4>Testing</h4><p>The real world is complicated and consisted of uncertainty and unpredictability. That makes tests more fragile, hard to write, slow and hard to reason about. FP provides <strong>predictability and isolation</strong> by design. There are pure and impure functions.</p><blockquote><strong>Pure function</strong>s are easy to test. Impure functions are difficult to tests, because they interact with the real complicated world.</blockquote><p><strong>Why it’s a problem:</strong></p><p>Mutable state introduces <strong>unpredictable behavior</strong> in tests. If one test changes a shared value, another test might break — even if it’s unrelated. This makes tests flaky and hard to debug.</p><p><strong>FP Approach</strong>:</p><p>FP embraces <strong>immutability</strong>. Data is never changed — only transformed. Each function receives input and returns a new output, ensuring tests are isolated and side-effect free.</p><h3>Wrap up</h3><p>FP isn’t a trend — it’s a timeless paradigm rooted in mathematical rigor, now rediscovered for its practical benefits in modern software development. While object-oriented programming still holds strong in many domains, FP offers an elegant answer to many of the challenges we face today: <strong>unpredictable state</strong>, <strong>tangled logic</strong>, <strong>asynchronous complexity</strong>, and f<strong>ragile tests</strong>.</p><p>By embracing <strong>pure functions</strong>, <strong>immutability</strong>, and <strong>function composition</strong>, we can write code that’s <strong>more predictable, easier to test</strong>, and <strong>less prone to side effects, </strong>and<strong> hidden bugs</strong>. Instead of telling our programs how to do something step by step, we describe what we want, and let declarative logic handle the rest.</p><p>This doesn’t mean abandoning OOP — but rather, <strong>augmenting it</strong> with the strengths of FP. Used together thoughtfully, these paradigms help us build more robust, understandable, and scalable systems. For that reaon, I will explore a way to combine the Hexagonal Architecture (HA) with the Functional Core in the inner hexagon (cf FC&amp;IS).</p><p>So whether you’re debugging a messy app, simplifying async flows, or writing tests that just work — <strong>FP gives you tools to tame complexity</strong> and make your code behave like well-behaved math: clear, reliable, and elegant.</p><p><em>The future of clean, maintainable code lies not in choosing OOP </em>or<em> FP — but in understanding both, and applying each where it shines.</em></p><p>Thank you for reading.</p><h3>Glossary</h3><ul><li>FP : Functional Programming</li><li>API : Application Programming Interface</li><li>FC&amp;IS : Functional Core &amp; Imperative Shell</li><li>OOP : Object-Oriented Programming</li></ul><h3>References</h3><ul><li>Linkedin Learning : <a href="https://www.linkedin.com/learning/learning-functional-programming-with-javascript-es6-plus-2019/a-functional-approach-to-transform-code">Learning Functional Programming with JavaScript ES6+ (2019)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41b069c7ef10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Path to True Behavior-Driven Development on a project — Breaking Silos with a progressive…]]></title>
            <link>https://newlight77.medium.com/the-path-to-true-behavior-driven-development-on-a-project-breaking-silos-with-a-progressive-8b147d66f0af?source=rss-8b368a8ddc74------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b147d66f0af</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[craftsmanship]]></category>
            <category><![CDATA[behavior-driven-dev]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Kong To]]></dc:creator>
            <pubDate>Mon, 14 Apr 2025 06:22:21 GMT</pubDate>
            <atom:updated>2025-04-14T07:28:31.984Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Path to Behavior-Driven Development on a project — Breaking Silos with a progressive rollout</h3><p>How did I streamline my team toward BDD practices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cQcgH2r8mG-hxNi3gNC-iQ.png" /></figure><p>It’s been already a while I’ve been working as lead developer. I’m currently taking the opportunity to put in place all best practices I’ve comprehended so far from my previous experiences. I envision my mission as to launch new offers in a lean way, with customer centricity, a product oriented approach, a quality focus, while aiming to optimize the Time-To-Market.</p><p>There are many aspects to address when trying to reduce the TTM :</p><ul><li>The CI and CD toolchain and pipeline must be simple and up to speed.</li><li>The team’s skillset must be sharp as required to move forward without harsh.</li><li>The product vision and objectives are clear.</li><li>The work load are properly sliced.</li><li>The codebase is well structured.</li><li>The testing strategy must also fit the context</li><li>And so on...</li></ul><p>In this article, we will just discuss about the testing matter. And I will elaborate my approach on how to setup the BDD in my team, and then operate the daily basis contribution model to the BDD test suite.</p><h3>What is at stake?</h3><p>Whatever we want to achieve, as sponsor or product manager or product marketer, we must consider the development team. That team is the one to write code and ship the piece of software in production. Hence, it is crucial to make sure they have a shared understand of the what we want them to build.</p><blockquote>A team shall understand the product vision, the business perspective, have clear overview of the product roadmap.</blockquote><p>An efficient team needs to be onboarded on the product construction journey, and have shared understanding of what is expected and when to get things done, so they can find a better way, in a creative way, to touch base with several milestones.</p><p>In short, a good <strong>communication</strong> between the business people, the product manager and the team is key to success. From a <strong>shared understand</strong> of the product and <strong>user’s needs</strong> would help developers to <strong>do the right thing</strong>, in terms of software development including the <strong>testing</strong> part.</p><h3>Testing</h3><p>To onboard developers in doing testing the best way that fit the circumstance, we must highlight the principles and objectives of testing, and twist things around ensure developers adopt the customer centricity angle.</p><blockquote>Each developer needs to see the added-value of testing, understand the expected system behaviour, and more importantly understand users’ behaviour.</blockquote><p>Once that is set, we can then tackle the testing part. I’ve seen a lot of videos and posts about TDD. TDD helps in responding to the need of testing in an efficient way, but it is only about coding, writing production code and writing test code. Then what about BDD?</p><p>Oh! BDD is not only about testing. BDD is also about behaviour. And it’s commonly seen as System under Test (SUT) behaviour. In my opinion, we should shift it left with another crank. Let’s also understand the user’s behaviour at the source when possible. Also let’s consider developer’s habits and behaviour. In order to adopt the BDD approach, we need to see things as a whole, else it would be hard or impossible to shift to real BDD. And BDD could including TDD in a double loop way.</p><h3>Start the BDD Journey with Progressive Rollout</h3><h4>First Get to know you environment, tools, the people</h4><p>What is the mindset of the team, including the PM/PO? Is everyone is open to new way of working? Is the built-in quality one of the priority? What is the pressure? Is the roadmap very tight? What are deadline? Do we have flexibility?</p><p>Identify obstacles. Is it the environment, the team or the roadmap? From that knowledge, define actions and weight each one and prioritize, and operate progressively.</p><h4>1. Focus on collaboration first</h4><p>The foundation of successful Behavior-Driven Development (BDD) lies in <strong>collaboration</strong>. Before diving into tools and processes, teams must first establish a culture where <strong>communication flows naturally</strong> between developers, testers, and business stakeholders. Without collaboration, BDD risks becoming just another technical practice rather than a <strong>valuable business-driven approach</strong>.</p><p>This first step is to <strong>actively engage with the Product Owner (PO) or Product Manager (PM)</strong>. Instead of working in isolation, developers and testers should <strong>collaborate early and often</strong> with the PO to understand the business goals. This ensures that the entire team aligns on <strong>what needs to be built and why</strong>, reducing misunderstandings later in the development cycle.</p><h4>2. Ensure a Shared Understanding</h4><p>Once collaboration is in place, the next step is to <strong>build trust</strong> and <strong>establish a shared understanding</strong> of the product vision. Discussing <strong>business needs, user flows, and business rules</strong> helps teams see the bigger picture, rather than just focusing on individual tasks. These discussions should be open and iterative, allowing for questions, clarifications, and refinements.</p><h4>3. Establish a Common Vocabulary</h4><p>A key challenge in software development is the <strong>gap between business language and technical language</strong>. To bridge this gap, teams should work on <strong>defining a common vocabulary</strong> that both technical and non-technical stakeholders understand. This common language is essential for writing <strong>clear, unambiguous scenarios</strong> that accurately represent user needs.</p><h4>4.Introduce Example Mapping to Structure Conversations</h4><p>Once the groundwork of collaboration and shared understanding is established, it’s time to introduce <strong>Example Mapping</strong>. This technique helps break down user stories into <strong>concrete examples</strong>, ensuring that all edge cases and variations are considered. Start with a <strong>simple, real-world use case</strong> to get familiar with the process, then <strong>gradually extend it</strong> to more complex scenarios. Experimentation is key — <strong>the more the team practices, the more natural it becomes</strong>.</p><h3>From Practice to Adoption</h3><p>As teams consistently <strong>engage in collaborative sessions </strong>and<strong> </strong>refine their approach, BDD becomes a <strong>habit </strong>rather than a<strong> forced process</strong>. When people experience the <strong>practical benefits</strong> of these discussions — clearer requirements, fewer misunderstandings, and faster feedback loops — they naturally <strong>adopt the practice</strong>.</p><h4>Move Forward with Scenarios</h4><p>Once the team is comfortable with the <strong>Example Mapping</strong>, the next step is to <strong>formalize scenarios</strong> using Gherkin syntax. These scenarios serve as <strong>executable specifications</strong>, making sure that business expectations are <strong>clearly defined, automated, and tested</strong>. This gradual progression — <strong>from collaboration to shared understanding, to examples map, and finally to automated scenarios</strong> — ensures a smooth transition to full BDD adoption.</p><h3>Conclusion</h3><p>Transitioning to BDD is not just about adopting a new testing methodology — it’s about transforming the way teams collaborate, communicate, and build software. By focusing on <strong>shared understanding, structured conversations, </strong>and<strong> user-centric behaviors</strong>, teams can bridge the gap between business expectations and technical implementation.</p><p>This journey requires a <strong>progressive rollout</strong>, starting with collaboration, aligning on business goals, and gradually integrating example mapping and scenario writing. The key to success is not just applying BDD principles mechanically but fostering a <strong>culture of continuous learning and improvement</strong>.</p><p>While challenges like siloed teams, lack of collaboration, and unclear testing strategies may arise, they can be addressed through <strong>collective intelligence, collaborative workshops, and open communication</strong>. The shift to BDD is not an overnight process, but with persistence and the right mindset, teams can unlock the full potential of <strong>quality-driven, behavior-focused development</strong> — ultimately delivering software that truly meets user needs.</p><p>You may read more about BDD with related articles :</p><ul><li><a href="https://medium.com/@newlight77/behavior-driven-development-df555b9fe277?source=your_stories_page--------------------------------------------">Behaviour-driven development (BDD) explained by example</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b147d66f0af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behavior-Driven Development (BDD) — Bridging the Gap Between Business and Development]]></title>
            <link>https://newlight77.medium.com/behavior-driven-development-bdd-bridging-the-gap-between-business-and-development-69a1aa76b7c5?source=rss-8b368a8ddc74------2</link>
            <guid isPermaLink="false">https://medium.com/p/69a1aa76b7c5</guid>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[test-first]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-craftsmanship]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Kong To]]></dc:creator>
            <pubDate>Fri, 11 Apr 2025 06:22:27 GMT</pubDate>
            <atom:updated>2026-10-10T19:51:27.362Z</atom:updated>
            <content:encoded><![CDATA[<h3>Behavior-Driven Development (BDD) — Bridging the Gap Between Business Requirements and Development</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3wLk6CjEtO8xGj8m9r-gxA.png" /></figure><h3>Introduction</h3><p>In modern software development, aligning business requirements with technical implementation is crucial for building applications. <strong>Behavior-Driven Development (BDD)</strong> is an software development approach that enhances collaboration between developers, testers, and product owners. By focusing on defining expected behaviors in a human-readable format, BDD ensures that software meets business objectives while improving clarity and reducing misunderstandings.</p><blockquote>Shared understanding is key, and collaboration is for efficiency.</blockquote><h3>What is Behavior-Driven Development (BDD)?</h3><p>BDD extends <strong>Test-Driven Development (TDD)</strong> by emphasizing the outcomes rather than just code correctness. It uses natural language to describe application <strong>behavior</strong> in a structured format, making it easier for all parties to contribute before and during the development.</p><h4>Key Principles of BDD</h4><ol><li><strong>Collaboration</strong>: Involves developers, testers, and business stakeholders (Business Analyst or Product Owner) in defining requirements.</li><li><strong>Executable Specifications</strong>: Uses scenarios written in plain language (Gherkin format) that serve as both documentation and automated tests. Test automation comes last.</li><li><strong>Focus on User Behavior</strong>: Ensures that the development aligns with expectations and business needs.</li><li><strong>Living Documentation</strong>: Keeps specifications up-to-date as they evolve with the project.</li></ol><h3>How BDD Works ?</h3><p>BDD revolves around discussion and shared understanding, then formulate by writing test scenarios and at last automation.</p><h4>Step 1: Discussion to enforce the shared understanding.</h4><p>This is the most important step in BDD, as if any that is misunderstanding will lead to discussion back-and-forth between the business stakeholders dans developers. The most accurate shared understanding will remove hassle and leave space for a more efficient development process. The <strong>Example Mapping</strong> is one of my favorite workshop to achieve that.</p><h4>Step 2: Formulate to mark everything down and build a dictionary</h4><p>The outcome of the discussion must result in Business Requirements as Scenarios. Scenarios in <strong>Gherkin</strong>, a structured format that uses Given-When-Then syntax:</p><ul><li><strong>Given</strong>: Sets up the initial context (preconditions).</li><li><strong>When</strong>: Defines the action taken by the user.</li><li><strong>Then</strong>: Specifies the expected outcome.</li></ul><p><strong>Example: Online Shopping Cart</strong></p><p>A simple BDD scenario for adding an item to an online shopping cart might look like this:</p><pre>Feature: Shopping Cart<br>  Scenario: Add item to the cart<br>    Given the user is on the product page<br>    When the user adds item to Cart<br>    Then the item should appear in the shopping cart</pre><h4>Step 3: Test Automation using scenarios in Your Project</h4><p>This scenario can be automated using BDD frameworks like <strong>Cucumber (Java, JavaScript), Behave (Python), or SpecFlow (.NET)</strong>.</p><p><strong>Example automation in Java with Cucumber:</strong></p><pre>@Given(&quot;the user is on the product page&quot;)<br>public void userIsOnProductPage() {<br>    driver.get(&quot;https://example.com/product&quot;);<br>}<br><br>@When(&quot;the user clicks the \&quot;Add to Cart\&quot; button&quot;)<br>public void userAddsItemToCart() {<br>    driver.findElement(By.id(&quot;add-to-cart&quot;)).click();<br>}<br><br>@Then(&quot;the item should appear in the shopping cart&quot;)<br>public void verifyItemInCart() {<br>    assertTrue(driver.findElement(By.id(&quot;cart-items&quot;)).isDisplayed());<br>}</pre><p><strong>Maintain and Evolve Scenarios</strong></p><ul><li>Regularly update BDD scenarios as new features are added.</li><li>Treat scenarios as living documentation to reflect the current system behavior.</li></ul><h3>Benefits of BDD</h3><h4><strong>Improved Communication</strong></h4><p>Using <strong>natural language</strong> scenarios bridges the gap between technical and non-technical team members, ensuring <strong>shared understanding</strong>. That is the most important and most valuable part of the BDD. The common language is a necessary tool for <strong>better communication</strong>, that would enforce the shared understanding of the business needs and specifications.</p><h4><strong>Early Bug Detection</strong></h4><p>By defining behavior before implementation, potential issues are caught early, reducing costly rework. The best way to capture issues from our software from functioning properly is <strong>Testing</strong>. As long as the software is testable, we can add more tests to ensure there is higher degree of trust against the software or specific feature. Hence, it would ensure to <strong>avoid mismatch between the delivery from expected system behavior.</strong></p><h4><strong>Better Test Coverage</strong></h4><p>BDD scenarios serve as both acceptance criteria and automated tests, leading to more robust software. The benefit out of this is having better <strong>functional coverage</strong>, and by the way code coverage.</p><h4><strong>Enhanced Maintainability</strong></h4><p>Since BDD scenarios describe behavior rather than code structure, tests remain relevant even as the code evolves. BDD relies on <strong>test-first approach</strong>, so the testability is key to ensure the software has a built-in quality.</p><h3>Challenges and Best Practices</h3><h4>Common Challenges</h4><ul><li><strong>Writing overly technical or ambiguous scenarios.</strong></li></ul><p>We must focus on relevant one and use them to challenges the implementation. Start with a minimal set of scenarios and with the happy path first.</p><ul><li><strong>Keeping scenarios up-to-date with changing requirements.</strong></li></ul><p>We must ensure to always maintain them as they represent the living documentation.</p><ul><li><strong>Ensuring collaboration between developers, testers, and business teams.</strong></li></ul><p>We must make sure that the 3 amigos are are aligned and shared the same understanding and then foster proper prioritization.</p><h4>Best Practices</h4><ul><li>Keep scenarios concise and focused on user behavior, as opposed to bottom-up with technical driver.</li><li>Use consistent naming conventions for clarity, as over time we would build a dictionary.</li><li>Continuously review and refine BDD tests with the team.</li></ul><h3>Conclusion</h3><p>Behavior-Driven Development (BDD) transforms the way teams define, develop, and test software by emphasizing collaboration, clarity, and alignment with business goals. By adopting BDD, organizations can improve software quality, enhance communication, and deliver user-centric applications with confidence.</p><p>You may read more about BDD with related articles :</p><ul><li><a href="https://medium.com/@newlight77/behavior-driven-development-df555b9fe277?source=your_stories_page--------------------------------------------">Behaviour-driven development (BDD) explained by example</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69a1aa76b7c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Shift in Mindset with BDD — Traditional vs Agile Software Development]]></title>
            <link>https://newlight77.medium.com/a-shift-in-mindset-with-bdd-traditional-vs-agile-software-development-0f8be94666e0?source=rss-8b368a8ddc74------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f8be94666e0</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[behavior-driven-dev]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[craftsmanship]]></category>
            <dc:creator><![CDATA[Kong To]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 06:21:39 GMT</pubDate>
            <atom:updated>2025-04-10T06:21:39.083Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Shift in Mindset with BDD — Traditional vs Agile Software Development</h3><p>Bridging Agile and BDD (Behavior-Driven Development)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cswY1CE-pKSfc79bVZsBuA.png" /></figure><h3>Introduction</h3><p>Software development has evolved significantly over the years, moving from rigid, sequential processes to more adaptive and iterative methodologies. The traditional <strong>Waterfall model</strong> has long been the standard, but the <strong>Agile approach</strong> has gained prominence for its flexibility, collaboration, and focus on delivering value incrementally and continuously.</p><p>This article compares <strong>Traditional Software Development</strong> with <strong>Agile Development</strong>, by highlighting the differences in workflows, roles, and decision-making processes. Additionally, we will explore how <strong>Behavior-Driven Development (BDD)</strong> aligns with Agile, fostering better communication and shared understanding among teams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*2LIqxfyzcxeh3Hx0TjoeMQ.png" /></figure><h3>Traditional Software Development Process</h3><p>Software development involves multiple stakeholders, each playing a specific role in the process. In a <strong>Waterfall approach</strong>, the key roles typically include <strong>customers, (end) users, business analysts, architects, developers, and testers</strong>. In contrast, an <strong>Agile</strong> environment consists of <strong>stakeholders, users, product owners, scrum/agile masters, developers, and testers</strong>. These roles look somehow similar, but they differ when each of them come into action in the process.</p><p>Despite Agile’s growing adoption, many teams still follow <strong>traditional development workflows</strong>, which are deeply ingrained in how software has been built for decades. This approach follows a <strong>sequential process</strong> where:</p><ol><li><strong>Business Analysts (BAs)</strong> document requirements in a <strong>Business Requirements Document (BRD)</strong>.</li><li><strong>Quality Assurance (QA) managers</strong> create a test plan to structure testing efforts, and then takes part in every testing activity and and plans all test execution later.</li><li><strong>Software Architects</strong> define or refine the system’s architecture, producing a design and architecture document, called <strong>System Detailed Specifications</strong> (<strong>SDS</strong>).</li><li><strong>Developers</strong> translate requirements into code — often without a deep understanding of the business context. They are just happy when having all requirements documented in their hands. They also maintain technical documentation.</li><li><strong>Testers</strong> execute a series of manual and automated tests, typically based on predefined test cases that may not fully capture the feature’s intent.</li><li><strong>Testers </strong>generate test reports, and if everything appears correct, the <strong>QA manager</strong> approves the release.</li></ol><p>All of these steps are sequential, divide in phases in the process.</p><h4>Challenges in Traditional Development</h4><ul><li><strong>Siloed Teams</strong> — Each role works independently, often with minimal collaboration.</li><li><strong>Mismatch in Expectations</strong> — The final product may not align with stakeholder expectations, leading to rework.</li><li><strong>Late-Stage Testing</strong> — Testing occurs <strong>only after development</strong>, leading to late discovery of defects.</li><li><strong>Delayed Feedback</strong> — Testing occurs at the end of the cycle, leading to late discoveries of defects.</li><li><strong>Rigid Documentation</strong> — BRD/SDS and test plans are often lengthy and inflexible, making changes difficult.</li><li><strong>Lack of Business Alignment</strong> — Developers and testers may not fully understand business goals, resulting in misaligned solutions.</li><li><strong>Slow Adaptation to Change</strong> — Any requirement change requires a formal process, often leading to delays.</li></ul><h3>Agile Software Development Process</h3><p>Agile development <strong>embraces change</strong>, promotes <strong>collaboration</strong>, and delivers <strong>incremental value</strong>. Unlike Waterfall, Agile follows an <strong>iterative approach</strong> through <strong>sprints</strong>.</p><h4>The Iterative Workflow</h4><p>Agile development introduces <strong>shorter cycles</strong> with <strong>continuous feedback loops</strong>:</p><ol><li><strong>Inception</strong> — Define the <strong>goal</strong> and <strong>desired outcomes</strong> of the product or feature.</li><li><strong>Story Mapping</strong> — Organize features into a <strong>visual roadmap</strong> for implementation.</li><li><strong>Refinement</strong> — Break down requirements, clarify uncertainties, and align expectations.</li><li><strong>Sprint Planning</strong> — Commit to delivering specific user stories in the sprint.</li><li><strong>Development &amp; Continuous Testing</strong> — Implement, test, and iterate.</li><li><strong>Feedback</strong> and <strong>iterate </strong>— Improve features and add more</li></ol><p>This is the common workflow of build software in an Agile way. If we dive into more details in the refinement phase — and we can see that as a process because it is cyclic from sprint to sprint — there are so many similarities to the two first steps of BDD along the 3 amigos concept.</p><h3>Refinement</h3><p>The refinement aims to refine items of the product backlog, thus get into details for each of them. This is the part in which the BDD can jump in to fill a gap to improve the process. The first step of BDD strongly suggest to have a 3 amigos workshop to <strong>discover</strong> and <strong>discuss</strong> about the business needs and specifications. That would lead to a <strong>shared understanding</strong>. And sometimes we can also start drafting a technical analysis to make sure everything is clear and understood by everyone before moving forward. Having a clear understanding does not mean having every single detail about the implementation. So it is <strong>not about implementation details</strong>. What matters here is the details about the <strong>business needs</strong>.</p><p>There are many things to consider when doing refinements:</p><ol><li><strong>Time-box </strong>as part of Agile.</li><li>Having a <strong>scope</strong> with <strong>focus</strong> on one or a few items.</li><li><strong>Involvement of several roles</strong> (product owner, testers and developers), they should discuss together.</li><li>Align people on a <strong>common understanding</strong> of each work items, thus an <strong>agreement</strong> of what has been defined.</li><li>Refine each item by adding details and/or sub-tasks, by defining what is to be accomplished, and what is the value out of it, as much <strong>explicit</strong> as possible.</li><li>Reduce or maybe <strong>clear off uncertainties</strong>. Here we should not focus on the solution, but on the problem. But if there is any doubt on how to implement the item, write it down in the item.</li><li><strong>Slice the work item</strong> into smaller and estimate (or not) the complexity of each item.</li><li>Having <strong>acceptance criteria</strong> defined — as part of Definition of Ready</li></ol><h4>The Issues</h4><ul><li>often specification are still unclear or lack of specifications in work items, devs define the <strong>Definition of Ready</strong>, or unclear specifications lead to misaligned delivered features.</li><li>one-way specification to development flow, lack of discussion for clarification. Depending on the team and developer’s maturity and soft skills, they do not feel comfortable to speak.</li><li>long meetings, or back and forth meetings to clarify be specifications. Most of the time, it’s because of lack of preparation.</li></ul><h4><strong>BDD stepped into the Refinement Process</strong></h4><p>Then if we look at the above list of best practices things in the refinement — above, we can see that a few are matched to what we have in the BDD discover and formulate steps, which are as followed:</p><ul><li><strong>3 amigos</strong> (product owner, testers and developers)</li></ul><p><em>— &gt; </em>matching <strong>bullet 3</strong> : <em>Invovlment of several roles (product owner, testers and developers), they should discuss together.</em></p><ul><li><strong>Discuss</strong> for covering uncertainties</li></ul><p><em>— &gt; </em>matching <strong>bullet 7</strong> : <em>Estimate (or not) the complexity of each item.</em></p><ul><li>Reach a <strong>shared understanding</strong></li></ul><p><em>— &gt; </em>matching <strong>bullet 4</strong> : <em>Align people on a common understanding of each work items, thus an agreement of what has been defined.</em></p><ul><li>Define a <strong>common language</strong></li><li>Having scenarios using examples with gherkin syntax</li></ul><p>Using <strong>Gherkin syntax</strong> helps teams align on expectations, thus building a dictionary at the same time.</p><ul><li>Having acceptance criteria defined</li></ul><p>Clearly defined in <strong>Given-When-Then</strong> scenarios to validate requirements.</p><p><em>— &gt; </em>matching <strong>bullet 8</strong>: <em>Having acceptance criteria defined — as part of Definition of Ready.</em></p><h3>BDD : How it Solves Waterfall’s Challenges</h3><ul><li><strong>Cross-functional Collaboration</strong> — Agile promotes the <strong>3 Amigos</strong> (Developers, Testers, Product Owners) working together.</li><li><strong>Working Software Over Documentation</strong> — Focus shifts from excessive documentation to tangible results.</li><li><strong>Faster Feedback Loops</strong> — Testing happens <strong>during each sprint</strong>, reducing surprises at the end.</li><li><strong>Embracing Change</strong> — Agile is adaptable, making changes easier to incorporate without disrupting the project.</li></ul><h3>Bridging Agile and BDD</h3><p>Agile introduces iterative workflows, but how do teams <strong>ensure quality while maintaining speed </strong>? This is where <strong>BDD </strong>becomes a game-changer.</p><p>Instead of working in silos and relying on rigid documentation, teams can adopt <strong>BDD</strong> to improve collaboration, clarity, and software quality. They would shift the focus to a <strong>shared understanding</strong> by fostering conversations between product owners, developers, and testers.</p><p>In the BDD method, there is the Example Mapping technic that helps in the discussion. By using <strong>concrete examples</strong> and a <strong>common language</strong> (such as Gherkin syntax), teams can ensure that requirements are clear and testable from the start.</p><h4>Why BDD Matters ?</h4><ul><li>Encourages <strong>cross-functional collaboration</strong> from the beginning.</li><li>Provides <strong>living documentation</strong> that remains relevant throughout development.</li><li>Helps teams <strong>build the right thing</strong> rather than just building things right.</li><li>Reduces rework by identifying <strong>misunderstandings early</strong>.</li></ul><h4>How BDD Strengthens Agile ?</h4><ul><li><strong>Enhances Communication</strong> — Teams speak a common language (business &amp; tech alignment).</li><li><strong>Prevents Misinterpretation</strong> — Concrete examples reduce ambiguity.</li><li><strong>Encourages Test Automation</strong> — Scenarios serve as automated tests, ensuring reliability.</li><li><strong>Shifts Left</strong> the testing— Issues are caught earlier, improving efficiency.</li></ul><h3>Conclusion</h3><p>The shift from <strong>Traditional to Agile</strong> is not just a process change — it’s a mindset shift. Agile prioritizes <strong>collaboration, adaptability, and delivering value continuously</strong>, while <strong>BDD strengthens Agile</strong> by aligning teams on expectations and ensuring quality from the start.</p><p>By embracing <strong>Agile and BDD</strong>, teams can break away from <strong>rigid silos</strong> and <strong>build software that truly meets business needs</strong> — efficiently and effectively. BDD is no longer just a trend — it has become a <strong>key enabler</strong> in modern software development. Ignoring BDD means missing out on a <strong>simpler, more efficient</strong> way to ensure quality and deliver value.</p><p>You may read more about BDD with related articles :</p><ul><li><a href="https://medium.com/@newlight77/behavior-driven-development-df555b9fe277?source=your_stories_page--------------------------------------------">Behaviour-driven development (BDD) explained by example</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f8be94666e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Atomic Vertical Slicing vs Horizontal Layered Architecture— Beyond the ‘Service’ Suffix — e.g.]]></title>
            <link>https://newlight77.medium.com/atomic-vertical-slicing-vs-horizontal-layered-architecture-beyond-the-service-suffix-e-g-991ca368f505?source=rss-8b368a8ddc74------2</link>
            <guid isPermaLink="false">https://medium.com/p/991ca368f505</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[solid]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Kong To]]></dc:creator>
            <pubDate>Wed, 09 Apr 2025 17:12:57 GMT</pubDate>
            <atom:updated>2025-04-09T17:12:57.831Z</atom:updated>
            <content:encoded><![CDATA[<h3>Atomic Vertical Slicing vs Horizontal Layered Architecture— Beyond the ‘Service’ Suffix — e.g. CarService — Toward Functional Single Responsibility with Atomicity</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B9L9r__sgxjqUDdoaFPlvA.png" /></figure><p>In many codebases, the use of UserService, CarService, or any other [Noun]Service is a common convention. I’ve been using that convention for many years. But now let’s look at it again to question its real intent. At first glance, it may seem like a valid separation of concerns. After all, we’re just grouping domain-related operations under a domain-named class. But is that truly <em>single responsibility</em>? Or is it merely <em>noun-based technical separation of concerns</em>?</p><p>I’ve been reflecting on this distinction, and I’ve come to believe that [Noun]Service often masks a deeper problem: lack of clear functional separation. While there’s no universal rule in software architecture—context always matters—there are principles that can guide us toward cleaner, more maintainable structures.</p><p>Let’s take a closer look.</p><h3>The Illusion of Single Responsibility</h3><p>Say we have a CarService class in our business logic layer. Over time, it accumulates methods like:</p><ul><li>addEngine(), addTransmission(), addMirror(), addBumper(), addWheel(), addSeats(), addDoors()</li><li>openDoors(), closeDoor(), lockDoor(), unlockDoor()</li><li>startEngine(), stopEngine(), lightOn(), lightOff(), accelerate(),break()</li><li>getDoors(), getWheel(), isLightOn(), isTankFull(), getMirrors()</li><li>drive()</li></ul><p>At first glance, they all relate to a “car”. Do they serve a single purpose?</p><p>Not quite.</p><ul><li>addEngine(), addTransmission(), addMirror(), addBumper(), addWheel(), addSeat(), addDoor() are <strong>builder</strong> operations.</li><li>openDoors(), closeDoor(), lockDoor(), unlockDoor(), startEngine(), stopEngine(), lightOn(), lightOff(), accelerate(),break() are <strong>functional </strong>operations — related to domain use cases</li><li>getDoors(), getWheel(), isLightOn(), isTankFull(), getMirrors() are a <strong>query</strong>, serving a read concern</li><li>getDoors(),getWheel(), isLightOn(), isTankFull(), getMirrors()</li><li>drive(), park()are <strong>use cases</strong> — actual business workflows</li></ul><p>Bundling them together in a single class like CarService is not about shared responsibility—it&#39;s just naming or having a title. In fact, it’s about <strong>technical separation of concerns</strong> : persistence vs business logic vs presentation. It&#39;s like putting all care-related functions into CarService and calling it cohesive. Over time, this structure leads to monoliths within modules, where unrelated behaviors live side by side under a convenient name.</p><h3>Vertical Slicing and Functional Cohesion</h3><p>Rather than sticking to a layered architecture where services get bloated, I’m now leaning more toward <strong>vertical slicing</strong> — organizing code by feature or <strong>functional unit</strong>. Just like in chemistry, with composition of atoms, or molecules, to make bigger things with responsibility. <strong>Molecule is composed of atoms</strong> that serve one functional purpose. That means decomposing responsibilities like so:</p><ul><li>CarBuilder: encapsulates construction-related logic (e.g., addDoor, addSeat)</li><li>CarUseCase: contains business workflows (e.g., drive, park)</li><li>CarQuery: handles read operations (e.g., isLightOn(), getWheel(),getDoors)</li></ul><p>Each of these is functionally cohesive. They serve a clear, distinct purpose and are easier to test, maintain, and evolve.</p><p>These can live together within a higher-level abstraction — perhaps a CarModel composite class, a CarFactory module or a CarDriving component —that acts as the boundary to the outside world.</p><h3>Moving Beyond [Noun]Service</h3><p>The main takeaway is this: UserService and CarService are naming conventions, not architecture patterns. They just serve as initial containers, but if left unchecked, they become bloated and violate the Single Responsibility Principle. Finally what are the boundaries?</p><p>By moving toward <strong>functionally segmented components</strong>, we gain clarity, modularity, and a codebase that speaks the language of intent — not just of structure. I’m referring to the <strong>Screaming</strong> <strong>Architecture</strong>.</p><blockquote>I personally prefer using the atomicity concept from chemistry.</blockquote><p>It’s not about throwing away the idea of services altogether. It’s about redefining what <em>service</em> means in a context-driven, maintainable system.</p><h3>Wrap up</h3><p>What starts as a seemingly clean and intuitive structure — naming a class CarService or UserService—can quickly devolve into a catch-all dumping ground for <strong>unrelated responsibilities.</strong> While naming gives a sense of organization, it doesn&#39;t guarantee clarity or cohesion. It does not provide a true meaning, explicitly. True maintainability comes not from grouping by nouns, but from aligning our code with the behavior it represents. What really matter are the <strong>intent</strong> and the <strong>behavior</strong>.</p><p>By embracing vertical and atomic slicing and functional separation, we shift from naming for convenience to designing for purpose. This approach not only respects the <strong>Single Responsibility Principle</strong> but also makes our code more expressive, testable, and adaptable to change.</p><p>The goal isn’t to abandon services, but to evolve them — to think beyond technical layers and design our systems around meaningful, functional units. In doing so, we create software that’s easier to understand, easier to extend, and ultimately more aligned with the expected behaviors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=991ca368f505" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hard skills vs Soft skills — Why Do We Need to Care About Skills?]]></title>
            <link>https://medium.com/bitsrc/hard-skills-vs-soft-skills-why-do-we-need-to-care-about-skills-d5b39d1c6552?source=rss-8b368a8ddc74------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5b39d1c6552</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[skills-development]]></category>
            <dc:creator><![CDATA[Kong To]]></dc:creator>
            <pubDate>Tue, 08 Apr 2025 20:38:47 GMT</pubDate>
            <atom:updated>2025-04-09T07:06:00.400Z</atom:updated>
            <content:encoded><![CDATA[<h3>Developer’s Hard skills vs Soft skills — Why Do We Need to Care About Skills?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CseO7Q2hcUqTCJYsvYB90Q.png" /></figure><p>In the ever-evolving world of technology, skills are the currency of progress. Whether you’re just beginning your career or navigating a mid-career transition, your skillset determines your value and relevance. It’s not only about what you know, but also how you apply it, how you learn, how you collaborate and how efficient you are.</p><p>Employers are not just looking for people who can <strong>code</strong>, <strong>design</strong>, or <strong>ship</strong> the features. They’re searching for those who can also <strong>communicate</strong>, <strong>lead</strong>, and <strong>solve problems</strong> under pressure. It’s about doing the right thing at the right moment, while aligning with the <strong>team’s and organization’s goal</strong>.</p><p>In short, caring about your skills means caring about your career longevity and growth.</p><p>In this article, I’ll highlight the differences between <strong>hard</strong> and <strong>soft</strong> skills and recommend a few things for those in need to kick start the software engineering career.</p><h3>Skills That Employers Are Looking For</h3><p>When companies evaluate talent, they look through several lenses. These include:</p><ul><li><strong>Technical Competency (Hard Skills):</strong> Can you do the job? Do you have the required technical knowledge? Can you do the right thing? And do it right?</li><li><strong>Adaptability &amp; Growth Mindset:</strong> Are you willing and able to learn?</li><li><strong>Communication &amp; Collaboration:</strong> Can you work well in a team and articulate your ideas clearly?</li><li><strong>Problem Solving &amp; Critical Thinking:</strong> How do you approach challenges?</li><li><strong>Ownership &amp; Initiative:</strong> Do you wait for instructions or proactively look for improvements?</li><li><strong>Culture Fit &amp; Emotional Intelligence:</strong> Will you positively contribute to the team dynamic?</li></ul><p>Most Employers aren’t just seek for someone who can just do what they are for. They hope developers can do more, with efficiency and with quality.</p><h3>Soft Skills vs Hard Skills</h3><h4>Hard skills</h4><p>They refer to the <em>technical know-how</em> . These are concrete abilities acquired through learning, training or experience. They are easy to test and quantify.</p><p><strong>Examples include:</strong></p><ul><li>Programming (e.g., JavaScript, Python)</li><li>Cloud infrastructure (e.g., AWS, Azure)</li><li>Database management</li><li>UI/UX design tools (e.g., Figma, Adobe XD)</li><li>Software testing</li><li>Data analysis and visualization</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e0Sb2wLaB1ZRVaeNcXMlCg.png" /></figure><h4><strong>Soft skills</strong></h4><p><strong>O</strong>n the other hand, soft skills are your <strong><em>interpersonal abilities</em></strong>. They shape how you work with others, approach problems, and behave in a team. They are harder to measure. Soft skills are subjective abilities. But they really matter. Team’s or organization’s efficiency depend on people’s soft skills, and often more than hard skills.</p><p><strong>Examples include:</strong></p><ul><li>Communication</li><li>Teamwork</li><li>Time management</li><li>Leadership</li><li>Empathy</li><li>Conflict resolution</li><li>Adaptability</li></ul><p>A developer who can write clean code is great. A developer who can write clean code is better. A developer who has a set of good methods and practices is even better. The one who has the <strong>user centricity</strong> or <strong>product</strong> <strong>oriented</strong> approach would perform far better. The one who <strong>collaborate</strong> efficiently with designers, product managers, and other developers is invaluable.</p><h3>Recommendations to Workout on Skills?</h3><ol><li><strong>Assess Yourself Honestly:</strong> Reflect on both your hard and soft skills. What are your strengths? Where are the gaps? Identify what you need to workout on.</li><li><strong>Create a Learning Plan:</strong></li></ol><ul><li>For <strong>hard skills</strong>, follow courses, certifications, or side projects.</li><li>For <strong>soft skills</strong>, focus on feedback, mentorship, or reading about emotional intelligence and communication.</li></ul><p><strong>3. Practice Both Deliberately:</strong></p><ul><li>Pair programming or code reviews help both technical and communication skills. Ask others to join you on a workshop or pair up on task together.</li><li>Leading meetings, demos, or retros improves confidence and clarity. Take any opportunity to take the lead and animate a meeting or do a presentation.</li><li>Work on a side project, explore and experiment things that can’t be done on an enterprise’s project, because most of the time you have to deliver the expected features with deadlines.</li></ul><p><strong>4. Seek Feedback Regularly:</strong> Feedback from peers or mentors is gold. Make it a habit. Most people are kind enough to provide constructive feedbacks.</p><p><strong>5. Step Out of Comfort Zones:</strong> Join cross-functional initiatives, contribute to open source, or lead a small team. These environments help develop both skillsets.</p><p><strong>6. Stay Curious &amp; Open:</strong> Skills aren’t static. The industry evolves fast. Be ready to learn continuously. The only way to keep up is to learn more and more.</p><h3>Wrap Up</h3><p>In tech, success isn’t built on hard skills alone. Your ability to <strong>navigate complexity,</strong> <strong>collaborate effectively</strong>, and <strong>keep learning</strong> is just as essential. While tools and frameworks come and go, soft skills have a lasting impact on your career. So yes, become a technical expert — but don’t forget to be human too. The most impactful professionals are those who master both sides of the skill spectrum : <strong>strong and large hard and soft skills.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5b39d1c6552" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bitsrc/hard-skills-vs-soft-skills-why-do-we-need-to-care-about-skills-d5b39d1c6552">Hard skills vs Soft skills — Why Do We Need to Care About Skills?</a> was originally published in <a href="https://medium.com/bitsrc">Bits and Pieces</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accidental vs Intentional — awareness, collaboration, and proactive management is key]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/bitsrc/accidental-vs-intentional-awareness-collaboration-and-proactive-management-is-key-c6e0b9deec87?source=rss-8b368a8ddc74------2"><img src="https://cdn-images-1.medium.com/max/1918/1*SDh2k17aKciPMIHxfZVawQ.png" width="1918"></a></p><p class="medium-feed-snippet">Software development is often a balancing act between delivering features quickly and maintaining long-term code quality. In this journey&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/bitsrc/accidental-vs-intentional-awareness-collaboration-and-proactive-management-is-key-c6e0b9deec87?source=rss-8b368a8ddc74------2">Continue reading on Bits and Pieces »</a></p></div>]]></description>
            <link>https://medium.com/bitsrc/accidental-vs-intentional-awareness-collaboration-and-proactive-management-is-key-c6e0b9deec87?source=rss-8b368a8ddc74------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6e0b9deec87</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[technical-debt]]></category>
            <dc:creator><![CDATA[Kong To]]></dc:creator>
            <pubDate>Sat, 29 Mar 2025 10:13:27 GMT</pubDate>
            <atom:updated>2025-04-11T22:15:53.028Z</atom:updated>
        </item>
    </channel>
</rss>