<?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 Carlo Verano on Medium]]></title>
        <description><![CDATA[Stories by Carlo Verano on Medium]]></description>
        <link>https://medium.com/@carlo.verano?source=rss-417b7fe08518------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KXA28TowVSmSZXob.</url>
            <title>Stories by Carlo Verano on Medium</title>
            <link>https://medium.com/@carlo.verano?source=rss-417b7fe08518------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:43:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@carlo.verano/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[Festina Lente!]]></title>
            <link>https://medium.com/@carlo.verano/festina-lente-485ec9fddd03?source=rss-417b7fe08518------2</link>
            <guid isPermaLink="false">https://medium.com/p/485ec9fddd03</guid>
            <dc:creator><![CDATA[Carlo Verano]]></dc:creator>
            <pubDate>Mon, 15 Jul 2019 12:38:28 GMT</pubDate>
            <atom:updated>2019-07-15T12:38:28.298Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“Cosimo I de Medici di una tartaruga con vela ne fece l’emblema della sua flotta, come monito di ponderazione delle imprese perché avessero successo. La tartaruga, animale famoso per la sua lentezza, ma anche sinonimo di prudenza, è abbinata alla vela gonfiata dal vento, ovvero ciò che spinge le navi, quindi sinonimo di forza d’azione.” (Wikipedia)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=485ec9fddd03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Festina Lente!]]></title>
            <link>https://medium.com/@carlo.verano/festina-lente-25a049772a58?source=rss-417b7fe08518------2</link>
            <guid isPermaLink="false">https://medium.com/p/25a049772a58</guid>
            <category><![CDATA[english]]></category>
            <dc:creator><![CDATA[Carlo Verano]]></dc:creator>
            <pubDate>Mon, 15 Jul 2019 12:37:29 GMT</pubDate>
            <atom:updated>2019-07-15T12:37:29.548Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“Cosimo I de Medici of a turtle with sail made the emblem of his fleet, as a warning of well weigh all the aspects of war campaigns to have them succeed. The turtle, an animal famous for its slowness, but also a synonym of prudence, is combined with the sail blown by the wind, which is what drives ships, therefore synonymous with force of action. “(Wikipedia)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25a049772a58" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The unsustainable inertia of the code]]></title>
            <link>https://medium.com/festina-lente-2/the-unsustainable-inertia-of-the-code-80dd86aa3173?source=rss-417b7fe08518------2</link>
            <guid isPermaLink="false">https://medium.com/p/80dd86aa3173</guid>
            <category><![CDATA[english]]></category>
            <category><![CDATA[quality-software]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[domain-driven-development]]></category>
            <dc:creator><![CDATA[Carlo Verano]]></dc:creator>
            <pubDate>Mon, 15 Jul 2019 12:06:36 GMT</pubDate>
            <atom:updated>2019-11-15T10:19:33.024Z</atom:updated>
            <content:encoded><![CDATA[<h4>‘Agility’ defines the ability to react to changes, but is our code designed to change?</h4><h3>Premise</h3><p>Today being “Agile”, means introducing protocols to keep light and flexible the software production process, allowing you to continuously increase the added value of a project, through an incremental process done by an important and continuous exchange of information between the developers and the client.</p><p>To manage the development of complex systems, however, specific strategies must also be included to ensure the maintenance of architectural guidance, the implementation of non-functional specifications and the re-use of components. In fact, these strategies have been adopted in important frameworks, which try to respond, consistently with their nature, to the need for scalability of important projects.</p><h3>The Paradox</h3><p>The tools that help to keep the software development process economical and sustainable, act on the organizational, relational and resource management processes and have the precise objective of reducing the distance between the definition of a business need and its realization, trying to harmoniously integrate Development, Operations and Quality Assurance.</p><p>The agile methods have made the process that stay between the conception of the feature and the feedback of its consumer so fast and frictionless that <strong>the fundamental moment of the “design and building” appears slow and inadequate </strong>leading to opportunistic behavior in favor of rapidity of execution.</p><p>In practice, the adoption of these methodologies leads developers with long experience to <strong>behaviors in contrast with the good practices evolved in decades of work and study</strong> because the latter, also together with the interactions with Architecture, can become elements of disturbance to the system agility.</p><p>If the development team has a strong presence of young and poorly structured developers, they will have difficulty in spontaneously introducing correct techniques and coding strategies alongside agile principles, inevitably favoring the latter.</p><p>When these actors are focused on the need to keep constant or increase the outcome of iterations, <strong>a paradox is generated and the potential productivity suffers a collapse: the code grows in a linear and uncoordinated way</strong>, the total cost will be higher than necessary and the ratio between resources employed and the evolution of the product undergoes a decline.</p><p>The cost of maintenance will be high and will increase with the aging of the product, accelerating its obsolescence and reducing profitability due to the scarce reusability of the components.</p><p>Advanced frameworks such as Scaled Agile introduce different tools to solve the weaknesses of a destructured creative process and to manage technical debt while remaining faithful to Agile principles, but do not want to directly influence the style and programming methodology, with respect to which they are rightly agnostic.</p><p>(<a href="https://www.scaledagileframework.com/">https://www.scaledagileframework.com/</a>)</p><p>These evolved frameworks leave a methodological gap, making the act of conception and of writing the code, that is the true heart of each project, orphaned and abandoned to itself.</p><h3>In the void, we act.</h3><p>The “agile” frameworks emphasize the <strong>need for the technical and operational autonomy of the individual teams</strong> and the components of the solution, but this <strong>should not lead to the renunciation of supervision and architectural control</strong> when they are consciously and positively adopted as work tools.</p><p>The coding process must be interpreted and re-evaluated as a creative and central act for the production of value. <strong>The code must not be understood as a mere materialization of a specification, rather it must be reconsidered as a fundamental and primary element of its documentation</strong>, structuring and “mapping” of the business model.</p><p>Thus <strong>are promoted the growth and formalization of corporate knowledge and its crystallization in a proprietary model</strong>. These objectives have always been pursued in every major development project.</p><p>The adoption of technologies and methods oriented to the process of code building (design and writing), favor the distillation in concepts of the processes and values ​​that make up an organization; <strong>their documentation can emerge from the code itself, which will speak a focused and specific language for the reference business</strong>.</p><p>In this way, targeted actions can be carried out considering peoples with their level of skills and attitudes, still respecting the existing technological, marketing and framework constraints.</p><p>In this operational context, it is necessary to claim the central and non-plethoric role of the code, by the adoption, a priori, of simple general principles:</p><h4>Abstraction in a ubiquitous language</h4><p>The code must be structured and designed to express, at its highest level, the concepts and processes that underlie the company organization.</p><p>Therefore, <strong>the most important tool for the realization of the software product is the formal description of the transactions and data structures in a language of high expressivity and specialization</strong>. This language, universal and shareable among all the actors participating in the value chain, becomes the cornerstone of business modeling.</p><h4>Code first. (The truth is in the code)</h4><p>Whatever the documentation processes, they can only produce partial representations of a model to drive production. <strong>The map more adherent to the truth can only be the code itself</strong>, which is, functionally and symbolically, the operational realization of business models.</p><h4>Stratification</h4><p>It is necessary to define an “onion architecture”, where <strong>at the center reside the models of universal structures and transactions and where, moving outwards, the use cases are progressively specialized, up to the interaction with the real world.</strong></p><p>The dependencies of the components are only in the opposite sense, from the particular to the general.</p><p>This involves an action of isolation from infrastructures and technological dependencies, whose implementations remain hidden by proprietary abstractions. <strong>Privacy is also increased, exposing a smaller area of ​​the business logic</strong> to the front-ends and the role of the backend is fundamentally re-evaluated.</p><h4>Horizontal and reactive integration.</h4><p><strong>Decoupling and interoperability between the components that manipulate business entities are promoted, propagating state changes</strong> in a neutral, natural and representative way, through communication mechanisms, preferably asynchronous, based on the exchange of messages.</p><p>It is important to grant the separation of responsibility between those who express the change of state, through the emission of a well-known event message, and who receives it and manages the consequences in the system. <strong>Reactive design is introduced, where business processes are expressed by the action of multiple interoperating but independent agents.</strong></p><h3>The action</h3><p>In practice, the intervention can be divided into phases: the initial ones aimed at delimiting and agreeing on the limits of the intervention itself and the goals for the subsequent actions, because we know that every organization that produces software has peculiar characteristics and obscure recipes that allow its success.</p><p>This can be a balance dangerous to be altered, therefore, <strong>where the interventions carried out can threaten the functioning of a well-oiled machine</strong>. This machine cannot be disassembled to know its components and the success is given by emerging properties, where the whole is greater than the sum of the parts.</p><p>We move in a holistic context and we need the support of a unified philosophy and liturgy, which becomes the reference for the people who drive the change.</p><p>That is why before introducing values, processes and tools, aimed at improving the code, we need to define constraints and commitments, shared in the organization, expressed as a will to:</p><ul><li>Give visibility and guarantee the <strong>unitary design</strong> (Architecture), introducing it if absent.</li><li>Pursue the adoption of a <strong>shared</strong> <strong>style </strong>by programmers to facilitate the readability and maintainability of the code.</li><li>Ensure maximum <strong>re-use of components</strong>, avoiding redundancy and re-processing of documentation.</li><li>Facilitate synchronization and<strong> collaboration between teams</strong>.</li><li>Offer a rapid and profitable<strong> implementation of non-functional specifications</strong> (NFR).</li><li>Improve or maintain team speed during the <strong>reaction to changes</strong>.</li><li>Building a system that is easy to<strong> integrate, validate and test</strong> with a high degree of automation.</li><li><strong>Reduce the distance</strong> between the conception of business ideas and their realization.</li><li><strong>Reduce the phenomenon of vendor-lock</strong>, favoring portability.</li></ul><p>Following we can perform the following actions:</p><ul><li>We define <strong>guidelines and best practices</strong> oriented to the quality and structure of the code, in collaboration with the developers. We lead teams to the adoption of shared paradigms and patterns.</li><li>We drive towards the development of a <strong>highly stratified solution</strong>, where the code is a high-level “talking” representation of business processes.</li><li>We drive, whenever possible, the choices of storage and infrastructure technologies, according to the principles of ease of maintenance and portability.</li><li>We integrate, in a syncretic way, the agile/DevOps strategies favoring the implementation of the CI / CD.</li></ul><p>The action is aimed at creating knowledge and awareness in the target organization and transferring the necessary skills.</p><p>The culture and values ​​communicated during the interventions will be the matrix of the evolution of the “enterprise model” and of the processes underlying its implementation.</p><p>We need to reject the idea of ​​uncritically applying more or less exotic or famous recipes.</p><p>We need to keep visible the concreteness of the actions undertaken, finalizing a solid science to a specific use that preserves the peculiarities and the points of excellence of the organization.</p><p><strong>The Tool Guide</strong></p><p>Once the scope, objectives and, above all, the founding philosophy of the interventions have been defined, we take advantage of the possibility of adapting and integrating well-known principles and patterns to create a virtuous path evolution and change.</p><h3>Elements oriented to the agile framework and to the teamwork:</h3><h4>Technological Debt / Technical Backlog</h4><p>We need to introduce corrective tools and procedures if the productive agile framework does not manage the need to respond to technical and infrastructural needs, originating from individual teams.</p><p>(Two owners, Enablers)</p><h4>Code / Technical Retrospective</h4><p>It is important to impose the revision of the code and of the production processes, in search of violations of indications related to these corrective interventions. The process can use the results of automatic metric systems and code analysis.</p><p>We also need to introduce a transversal mechanism for the teams, to involve them in a cross review on topics of common interest.</p><p>This process evidently integrates the typical retrospectives of agile processes.</p><h4>Architectural review.</h4><p>A process of comparison and verification, done by the Architecture role, is required, even if it must be compatible with the reference framework and aimed at validating the result of the agile iterations, checking the coherence with the requirements of Architecture and with the generally agreed values ​​and principles.</p><p>This action is important to bring out the general design as a form of knowledge widespread and agreed among developers.</p><h4>Tools and automation (Tools not rules)</h4><p>When a process involves a repeated action by the team members and it is oriented to the respect of rules or principles, it deserves to be automated, whenever possible, with the creation of a proprietary tool. The formalization of the process involves the distillation of knowledge, reduces human errors and accelerates the process of adaptation to change.</p><p>The creation of these tools offers greater integration of development, operations and QA.</p><h4>BDD</h4><p>Through the adoption of a “Behavior-driven” approach, some limits of the “Agile” processes can be overcome. The common sense of “responsibility” is reversed, requiring that the highest level definition of the feature or specification expresses a process in a formal, descriptive business language and the complete context necessary for its testability.</p><p>Synergy with other interventions and its integration with more extensive DevOps strategies or the use of AI tools is promoted.</p><h3>Elements oriented to the code and architecture:</h3><h4>Domain-Driven Development</h4><p><em>A set of principles, ideas and patterns to introduce expressiveness and common sense into complex software constructions.</em></p><p>The DDD is the key instrument of the strategies implemented to re-establish the primacy of the backend as a place where the corporate value resides. In general, the adoption of the DDD guides towards the coherent stratification and the isolated and encapsulated identification of the business entities;</p><p>The DDD favors</p><ul><li>a <strong>well-modeled code</strong> on business entities and a correct correspondence with the real world documents and their flows.</li><li>The definition of a business dictionary and a portable, shareable high-level vocabulary, up to the <strong>definition of a “ubiquitous language”</strong>, common to all corporate actors.</li><li>sustainable <strong>growth of the complexity, </strong>manageable testability and the easiness identification of a single point of maintenance and failure.</li><li>The <strong>representation and manipulation of the state of the business entities</strong> distinct from tabular views that are often badly driven by a single final use case.</li></ul><p>Strongly, structured, entities and domain isolation, they guarantee high portability of the solution towards NoSQL technologies and microservices-based. The ease of mapping entity states and their transitions facilitates a reactive event-oriented design <strong>and immediate integration with ESB or message brokering infrastructures.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/0*p8aXVmcv5HT-3xla" /></figure><h4>CQRS</h4><p>Separating the responsibilities between changing the state of an entity (Command) and its consumption as structured and filtered information (Querying) is the natural complement to DDD.</p><p>Similar to human processes, information can be used in different ways, but <strong>only one process will be responsible for validating and historicizing a transaction.</strong></p><p>The solidity and durability of the model are guaranteed. The information may be consumed in ways that are independent of each other respecting the underlying logic and implementation techniques. A primary set of queries needs to be distinguished and it must respond to the logic of queries relevant to the main business model; other queries that implement all possible peripheral use cases will be developed independently granting flexibility and consistency with the model.</p><h4>Message-based. (Write, don’t call)</h4><p>Common sense acknowledges the advantages of writing a message to get a service or to communicate a fact.</p><p>Post-it on the fridge, e-mails, registered mail, text messages, are all communication techniques that we are able to use to the best, according to their particular characteristics and for the obvious advantages compared to a phone call or a meeting.</p><p>These strategies are equally valid in the more formal world of IT and allow to build processes and interactions between the components of a solution, analogous to those of everyday life.</p><p>Messages can replace direct invocations, carrying Requests / Responses, or they can underlie an event-driven architecture; in it, <strong>the states for isolated entities are documented and the messages communicate their transitions </strong>to the rest of the world.</p><p>The chain of events that leads to a stable state of the system, will represent both an analysis of the flow and its validation from the business point of view.</p><p><strong>Message bus</strong></p><p>The exchange of messages, which share only protocol and format between the components of the solution, is an undisputed advantage for architectures based on disconnected and weakly coupled services and components.</p><p>The adoption of a paradigm based on a backbone that propagates observable events (publish/subscribe), can further favor the adoption of reactive architectures and the isolation of responsibilities.</p><h4>Enterprise Service Bus (ESB)</h4><p>ESB is an infrastructure paradigm that provides coordination, security, messaging, routing intelligent and enterprise-level transformation services. <strong>It allows the integration of heterogeneous modules</strong>, including point-to-point and synchronous ones, favoring the diffusion of a message-based architecture, capable of integrating heterogeneous components.</p><p>On this basis <strong>it is possible to implement formal patterns for the manipulation of messages [EIP Enterprise integration pattern]</strong>, favoring design, standardization and documentability.</p><h4>Microservices based architecture</h4><p>Weak coupling and isolation are the basic advantages of every SOA design. By adopting DDD-type design and message-based infrastructures, we favor the separation of functions and we promote the shift to a microservice architecture. <strong>This architecture guarantees scalability, reactivity and evolvability </strong>of the system and many advantages for testability and deployment.</p><p>Non-relational data storage</p><p>In the design of native Repositories, the adoption of <strong>NoSql storage and CQRS pattern reduces dependence on ORMs</strong>, allowing the reduction of maintenance costs and of database design and enhancing performance and scalability.</p><p><strong>In fact, it is not convenient to model in a relational way the state of complex entities, which have been defined according to the DDD principles </strong>and with a high level of abstraction. Despite that, the data presented in tabular form remain more favorable for presentation or filtering operations.</p><h4>Presentation model</h4><p>Thanks to PM, some of the <strong>advantages of DDD can be brought into the UX domain</strong>, by mediating some principles. The centricity of the business process model is maintained, as the model underlying the user interfaces is distilled and formalized.</p><p>The Presentation Model allows extending, to the user experience, the principles of valorization of the backend<strong> limiting to the maximum the responsibilities of the local code of the UI:</strong> this can favor generalization, universality and testability.</p><h4>AOP (Aspect-oriented programming)</h4><p>When the code is richly decorated with repetitive elements of infrastructure and setup, its background noise increases, making it difficult to concentrate on the parts that contain the true model of the implemented process. AOP can be the perfect tool for reducing this noise. It must be used with intelligence and experience above all to avoid masking significant contents of the code.</p><h4>Object-Oriented Programming</h4><p>Too often, in current practice, OOP is used to locally implement specific cases of reusability and to structure the code, rather than as <strong>an organic tool to shorten the value chain and impose a universal method of organizing a well-thought design and its models.</strong></p><p>The OOP guarantees conciseness and order of the code, but above all, it helps to <strong>make the code itself an expressive “Language” and as such suitable for describing business processes</strong>. It helps to distill the concepts and makes them formal, communicable and reusable.</p><p>Maintaining the five SOLID principles and the ubiquitous and a strong abstract typing of data structures is the basis of a well-structured code, an excellent tool to rapidly increase the value of the code and its semantic content, reducing the need for heavy documentation.</p><h3>The structure of the intervention.</h3><p>The variety and richness of the tools and strategies available to developers and architects are enormous. You can really manage the drifts of agile processes, reduce misalignments between documentation and implementation and improve maintainability and testability.</p><p>Unfortunately, applying this wealth requires discipline and competence to carry out interventions that can be scaled over time and in their extension, in an economic and sustainable way.</p><p>Moreover, if the right synergy and combination of techniques are winning, a slightly different one can turn out to be totally unsuitable, due to an overlapping mechanism of effects.</p><p>Here then are some laws that generally regulate the success of an injection of methods and technologies:</p><ol><li><strong>You cannot see the forest when you are surrounded by trees.</strong> Those who feel the need for a course correction should not decide their direction and nature by their self but rely on external and impartial help.</li><li><strong>You can’t change or predict the direction of the wind but you can direct the sails to get you into the port</strong> Complexity cannot be resolved, but it can be managed. The synergistic effects of the interventions only intuited, but the experience and vision of experienced consultants lead, each time for different routes, to the intended destination.</li><li><strong>From the knowledge experienced, individuals grow their awareness and from these elements, shared in an organization, culture is born. </strong>Men are at the center of the process and a new culture is a sign of success. The individual accepts the new instrument, shares it and propagates it.</li></ol><p>The respect for these principles determines the nature of a specific intervention that can be declined in phases.</p><h4>Analysis and evaluations</h4><p>Analysis of the current situation carried out by external consultants of proven experience.</p><p>Exposure of</p><ul><li>macroscopic analysis.</li><li>Plan of intervention.</li><li>An economic evaluation of cost/opportunity.</li></ul><h4>Map and guide.</h4><ul><li>Detailed design of the intervention with the definition and provision of customized guidelines. The areas will be:</li><li>work organization of the teams</li><li>code and architecture.</li><li>Definition of the metrics for the evaluation and adjustment of the intervention.</li><li>Progressive checks and adaptation of the plan and of the guidelines of the intervention.</li></ul><h4><strong>Support and teaching</strong></h4><ul><li>Individual and collective training.</li><li>Transfer of values and coaching with case-oriented consultants.</li></ul><h3>In conclusion.</h3><p>An external intervention carried out by experienced consultants and with a strong, organic and quality-oriented vision of the code and its design can be decisive to <strong>improve the quality of a software development project and to guarantee its longevity and economic result</strong>.</p><p>An intervention carried out according to the right rules results in an increase in the corporate and individual culture, and becomes <strong>a structural and long-term investment, with fertility beyond the scope of the single project, and with a reduced burden.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80dd86aa3173" width="1" height="1" alt=""><hr><p><a href="https://medium.com/festina-lente-2/the-unsustainable-inertia-of-the-code-80dd86aa3173">The unsustainable inertia of the code</a> was originally published in <a href="https://medium.com/festina-lente-2">Festina Lente</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[L’insostenibile inerzia del codice]]></title>
            <link>https://medium.com/festina-lente-2/linsostenibile-inerzia-del-codice-d6d5ed33125a?source=rss-417b7fe08518------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6d5ed33125a</guid>
            <dc:creator><![CDATA[Carlo Verano]]></dc:creator>
            <pubDate>Fri, 12 Jul 2019 11:08:48 GMT</pubDate>
            <atom:updated>2019-07-14T08:38:38.754Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Agilità definisce la capacità di reagire ai cambiamenti, ma il nostro codice è concepito per cambiare?</blockquote><h4>Premessa</h4><p>Oggi essere “Agile”, secondo manuale, vuol dire introdurre tecniche di produzione del software leggere e flessibili, che consentono di aumentare in modo continuo il valore aggiunto di un progetto, mediante un processo iterativo e incrementale e attraverso un importante scambio di informazioni e di pareri tra gli sviluppatori e il committente.</p><p>Per gestire lo sviluppo di sistemi complessi, si devono peró anche includere strategie dedicate a garantire il mantenimento di una guida architetturale, l’implementazione delle specifiche non funzionali e il riutilizzo dei componenti. Infatti, queste strategie sono state adottate in importanti framework, che cercano di rispondere, coerentemente con la loro natura, alla necessitá di scalabilitá di progetti importanti.</p><h3>Il Paradosso</h3><p>Gli strumenti che aiutano lo sviluppo del software in modo economicamente sostenibile, agiscono sui processi organizzativi, relazionali e di gestione delle risorse e hanno il preciso obiettivo di ridurre la distanza fra la definizione di un’esigenza del business e la sua realizzazione, cercando di integrare armonicamente Sviluppo, Operations e Quality Assurance.</p><p>Le metodiche agile hanno reso talmente veloce e privo di frizioni il processo globale che collega la concezione della feature al feedback del suo consumatore, che il momento fondamentale della “costruzione” dell’artefatto appare lento e inadeguato, spingendo a comportamenti opportunistici a favore della rapiditá di esecuzione.</p><p>Nella pratica, l’adozione di queste metodologie spinge i programmatori con lunga esperienza a comportamenti in contrasto con le buone pratiche evolute in decenni di lavoro e studio poiché queste ultime, anche assieme alle interazioni con l’Architettura, possono trasformarsi in elementi di disturbo alla agilitá del sistema.<br>Se il team di sviluppo ha una forte presenza di programmatori giovani e scarsamente strutturati, essi avranno difficoltá a introdurre spontaneamente corrette tecniche e strategie di coding a fianco dei principi agile, favorendo inevitabilmente questi ultimi.</p><p>Quando questi attori sono concentrati sulla necessità di mantenere costante o di incrementare il risultato delle iterazioni, si genera un paradosso e la potenziale produttivitá subisce un collasso: il codice cresce in modo lineare e scoordinato, il costo totale sará piú elevato del necessario e il rateo fra risorse impiegate ed evoluzione del prodotto subisce una flessione. <br>Il costo della manutenzione sará elevato ed aumenterá con l’invecchiamento del prodotto, accelerando la sua obsolescenza ed abbattendo la redditivitá a causa della scarsa riutilizzabilitá dei componenti.</p><p>Framework avanzati come Scaled Agile introducono diversi strumenti per risolvere le debolezze di un processo creativo destrutturato e per gestire il debito tecnico restando fedeli ai principi Agile, ma non vogliono influire direttamente sullo stile e sulla metodologia di programmazione, rispetto ai quali sono giustamente agnostici.</p><p>(<a href="https://www.scaledagileframework.com/">https://www.scaledagileframework.com/</a>)</p><p>Questi framework evoluti possono essere di difficile implementazione e lasciare un vuoto metodologico, rendendo orfani di padre la concezione e il processo di scrittura del codice, vero cuore di ogni progetto.</p><h3>Nel vuoto agiamo</h3><p>I framework “agile” sottolineano la necessitá dell’autonomia tecnica e operativa dei singoli team e dei componenti della soluzione, ma questo non dovrebbe comportare la totale rinuncia ad una supervisione e ad un controllo architetturale e tecnologico, adottati coscientemente e positivamente come uno strumento di lavoro.</p><p>Il processo di coding deve essere interpretato e rivalutato come atto creativo e centrale alla produzione del valore. Il codice non deve essere inteso come mera materializzazione di una specifica, piuttosto deve essere riconsiderato come elemento fondante e primario della sua documentazione, strutturazione e della “mappatura” del modello di business.</p><p>Si favorisce così la crescita e la formalizzazione della conoscenza aziendale e la sua cristallizzazione in un modello proprietario. Questi obiettivi sono da sempre inseguiti in ogni importante progetto di sviluppo.</p><p>L’adozione di tecnologie e di metodi orientati al processo di costruzione del codice (disegno e scrittura), favoriscono la distillazione in concetti dei processi e dei valori che compongono un’organizzazione; la loro loro documentazione puó emergere dal codice stesso, che parlerá un linguaggio focalizzato e specifico per il business di riferimento.</p><p>Per muoversi in questa direzione si compiono azioni mirate e specificatamente concepite nel contesto dell’azienda con le sue risorse umane e il loro livello di competenze, rispettando i constraint tecnologici, di marketing e i framework lavorativi esistenti.</p><p>In questo contesto operativo, per rivendicare questo ruolo del codice, centrale e non pletorico, occorre aderire a priori a semplici principi generali:</p><h4>Astrazione in linguaggio universale</h4><p>Il codice deve essere strutturato e concepito per esprimere, al suo livello piú elevato, i concetti e i processi propri della organizzazione di riferimento.<br>Lo strumento principale e centrale della realizzazione del prodotto software è la descrizione formale delle transazioni e delle strutture in un linguaggio specifico di alta espressivitá. Questo linguaggio, universale e condivisibile tra tutti gli attori che partecipano alla catena del valore, diventa il cardine della modellizzazione del business.</p><h4>Code first. (The truth is in the code)</h4><p>Quale che siano i processi di documentazione, essi non riescono a produrre che rappresentazioni parziali di un modello per guidare la produzione. La mappa più aderente al vero non puó che essere il codice stesso, che funzionalmente e simbolicamente è la realizzazione operativa di funzioni e processi.</p><h4>Stratificazione</h4><p>Occorre definire una architettura generale “a cipolla”, dove al centro risiedono i modelli delle strutture e delle transazioni “assolute” e dove, muovendosi verso l’esterno, si specializzano progressivamente i casi d’uso, fino all’interazione con il mondo reale.<br>Le dipendenze dei componenti sono invece percorribili solo nel senso inverso, dal particolare al generale. <br>Questo comporta una azione di isolamento dalle infrastrutture e dalle dipendenze tecnologiche, le cui implementazioni rimangono nascoste da astrazioni proprietarie. Si aumenta anche la riservatezza, esponendo una minore superficie della business logic verso i front-end e si rivaluta in modo fondamentale il ruolo del backend.</p><h4>Integrazione orizzontale e reattiva.</h4><p>Si favorisce il disaccoppiamento e l’interoperabilitá fra i componenti che manipolano le entitá di business, propagando i cambiamenti di stato in un modo neutro, naturale e rappresentativo, attraverso meccanismi di comunicazione, preferibilmente asincroni, basati sullo scambio di messaggi.<br>È vantaggioso prevedere la separazione della responsabilitá tra chi esprime il cambio di stato, attraverso l’emissione di un messaggio evento, e chi lo riceve e ne gestisce le conseguenze nel sistema. Si introduce un disegno reattivo, dove i processi di business sono espressi dall’azione di molteplici agenti interoperanti, ma indipendenti.</p><h3>L’azione</h3><p>Nella pratica l’intervento si può articolare in fasi: quelle iniziali volte a delimitare e concordare i limiti e gli scopi per le successive azioni, perché sappiamo che ogni organizzazione che produce software ha peculiari caratteristiche e ricette oscure che ne garantiscono il successo.<br>Un equilibrio pericoloso da alterare, quindi, dove gli interventi eseguiti secondo standard minacciano il funzionamento di una macchina ben avviata, che non puó essere smontata per conoscerne i componenti e il cui successo è dato da proprietá emergenti, dove il tutto è maggiore della somma delle parti.<br>Ci muoviamo in un contesto olistico e abbiamo bisogno del supporto di una filosofia e di una liturgia unitarie ed universali, che diventano il punto di riferimento per le persone che animano ogni organizzazione.</p><p>Ecco perché prima di introdurre valori, processi e strumenti, mirati al miglioramento del codice, definiamo vincoli e impegni, sottoscritti con i team e condivisi nell’organizzazione, espressi come volontá di:</p><p>• Dare visibilitá e garantire il disegno unitario (Architettura), introducendolo se assente.<br> • Perseguire l’adozione di uno stile condiviso dai programmatori affinché faciliti la leggibilitá e la manutenibilitá del codice. <br> • Garantire il massimo riutilizzo dei componenti comuni, evitando la ridondanza e il ri-processo della documentazione.<br> • Facilitare la sincronizzazione e la collaborazione tra i teams.<br> • Offrire una rapida e proficua implementazione delle specifiche non funzionali (NFR).<br> • Migliorare o mantenere la velocitá dei team durante la reazione ai cambiamenti.<br> • Costruire un sistema facile da integrare, validare e testare con un elevato grado di automazione.<br> • Ridurre la distanza fra la concezione delle idee del business e la loro realizzazione.<br> • Ridurre il fenomeno del vendor-lock, favorendo la portabilitá.</p><p>A seguito compiamo le seguenti azioni:</p><p>• Definiamo con gli sviluppatori guidelines e best practices orientate alla qualitá e alla struttura del codice. Indirizziamo i team all’adozione di paradigmi e patterns condivisi.<br> • Guidiamo verso lo sviluppo di una soluzione altamente stratificata, dove il codice é rappresentazione “parlante” di alto livello dei processi di business.<br> • Indirizziamo, quando possibile, le scelte delle tecnologie di storage e di infrastruttura, secondo principi di facilitá di manutenzione e di portabilitá.<br> • Integriamo, in modo sincretico, le strategie aglie/devops favorendo l’implementazione della CI/CD.</p><p>L’azione è finalizzata alla creazione di conoscenza e coscienza nella struttura di riferimento e al trasferimento delle necessarie competenze.<br>La cultura e i valori, veicolati durante gli interventi, saranno matrice dell’evoluzione dell’ “enterprise model” e dei processi alla base della sua implementazione.<br>Rifiutiamo l’idea di applicare in modo acritico ricette piú o meno esotiche o famose.<br>Manteniamo visibile la concretezza delle azioni intraprese, finalizzando una scienza ben solida ad un uso particolare concepito nel seno di una organizzazione, conservando le sue peculiaritá e i suoi punti di eccellenza.</p><h3>La Guida degli strumenti</h3><p>Definito l’ambito, gli obiettivi e, soprattutto, la filosofia fondante degli interventi, ci avvaliamo della possibilità di adattare e integrare principi e pattern ben conosciuti nel mondo dell’IT e della computer science, per realizzare un percorso virtuoso di evoluzione e di cambiamento.</p><h4>Elementi orientati al framework ed alla organizzazione del lavoro dei team:</h4><h4>Debito tecnologico / Backlog tecnico</h4><p>Introdurre strumenti correttivi diventa fondamentale, quando il framework produttivo non prende in considerazione la necessità di risolvere stories e features di natura tecnica, originate dai singoli team, dalla necessitá di lavoro organico o dalla architettura.<br>(Two owners, Enablers)</p><h4>Code/Technical Retrospective</h4><p>E’ importante imporre la revisione del codice e dei processi di produzione, alla ricerca di violazioni delle indicazioni architetturali e di ingegneria legate al nostro intervento. Il processo puó avvalersi dei risultati di sistemi automatici di metrica e analisi del codice.<br>Prevediamo anche un meccanismo trasversale ai team, per coinvolgerli in una revisione incrociata sui temi di interesse comune.<br>Questo processo integra evidentemente le retrospettive tipiche dei processi agile.</p><h4>Revisione architetturale.</h4><p>Strutturare un processo di confronto e verifica, compatibile con il framework di riferimento, con lo scopo di validare il risultato delle iterazioni rispetto alle richieste dell’Architettura e ai valori e principi guida concordati e condivisi.<br>Questa azione è importante per fare emergere un disegno generale come forma di conoscenza diffusa e concordata.</p><h4>Strumenti e automazione (Tools not rules)</h4><p>Quando un processo comporta un’azione ripetuta dai membri del team, orientata al rispetto di regole o di principi, merita di essere automatizzato con la realizzazione di uno strumento proprietario. La formalizzazione del processo comporta la distillazione di conoscenza, riduce l’errore umano e accelera il processo di adattamento ai cambiamenti.<br>La creazione di questi strumenti offre maggiore integrazione dello sviluppo, delle operations e della QA.</p><h4>BDD</h4><p>Attraverso l’adozione di un approccio “Behaviour driven” si possono superare alcuni limiti dei processi “Agile”. Si inverte il senso comune della “responsabilitá”, richiedendo che la definizione di piú alto livello della feature o della specifica esprima un processo in un linguaggio formale, descrittivo del business e completo del contesto necessario alla sua testabilitá.<br>Viene garantita la sinergia con gli altri interventi e se ne favorisce l’integrazione con piú ampie strategie di DevOps o di uso di strumenti con AI.</p><h3>Elementi orientati al codice e alla architettura:</h3><h4>Domain Driven Development</h4><p>Un insieme di principi, idee e pattern per introdurre espressivitá e comune buon senso in complesse costruzioni software.<br>Il DDD è lo strumento cardine delle strategie attuate per ristabilire il primato del backend come luogo dove risiede il valore aziendale. In generale l’adozione del DDD guida verso la stratificazione coerente e l’identificazione isolata ed incapsulata delle entitá di business; Il DDD favorisce <br> • Un codice ben modellato sulle entitá di business e una corretta corrispondenza con i flussi e i documenti nel mondo reale.<br> • La definizione di un dizionario del business e di un lessico di alto livello portabile e condivisibile, fino ad arrivare alla definizione di un “ubiquitous language”, comune a tutti gli attori aziendali. <br> • Una crescita sostenibile della complessitá, la testabilitá e l’identificazione di single point of maintenance and failure. <br> • La rappresentazione e la manipolazione dello stato delle entitá di business distinta dal querying di tipo tabellare che può opportunisticamente legato al singolo use case.</p><p>Entitá fortemente strutturate ed isolamento in domini, garantiscono una elevata portabilitá della soluzione verso tecnologie NoSQL e a microservizi. La facilitá di mappare gli stati delle entitá e le loro transizioni, facilita un disegno reattivo event oriented e l’integrazione immediata con infrastrutture di ESB o di message brokering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*6s1W18sNUqiIXWcu6lTS3A.png" /></figure><h4>CQRS</h4><p>Separare le responsabilità fra modifica dello stato di una entità (Command) e il suo consumo come informazione strutturata e filtrata (Querying) è il complemento naturale del DDD.<br>Similmente ai processi umani le informazioni possono essere utilizzate in casi e modi diversi, ma solo un processo sarà responsabile della validazione e della storicizzazione di una transazione.<br>Viene in questo modo garantita la solidità e perennità del modello. Le informazioni potranno essere consumate in modi fra di loro indipendenti nelle logiche sottese e nelle tecniche di implementazione. Saranno distinte un insieme primario di query deve rispondere alle logiche di interrogazione significative per il modello di business, da altre query che implementano tutti i possibili casi d’uso periferici, garantendo flessibilità e coerenza con il modello.</p><h4>Message based. (Scrivi, non chiamare)</h4><p>Il senso comune conosce i vantaggi dello scrivere un messaggio per ottenere un servizio o per comunicare un fatto.<br>Post-it sul frigo, email, raccomandate, sms, sono tutte tecniche di comunicazione che siamo in grado di utilizzare al meglio, secondo le loro peculiari caratteristiche e per gli evidenti vantaggi rispetto ad una telefonata o un meeting. <br>Queste strategie sono altrettanto valide nel piú formale mondo dell’IT e permettono di costruire processi e interazioni fra i componenti di una soluzione, analoghi a quelli della vita di tutti i giorni.</p><p>I messaggi possono sostituire le invocazioni dirette, veicolando Request/Response, oppure possono realizzare una architettura event driven; in essa sono documentati e gestiti gli stati per le entitá isolate e i messaggi comunicano le loro transizioni al resto del mondo.<br>Le catene di eventi che portano ad uno stato stabile del sistema, rappresenteranno sia una analisi del flusso, che una sua validazione dal punto di vista del business.</p><h4>Message bus</h4><p>Lo scambio di messaggi, che condividano solo protocollo e formato fra i componenti della soluzione, è un indiscusso vantaggio per architetture basate su servizi e componenti disconnessi e debolmente accoppiati.<br>L’adozione di un paradigma basato su una dorsale che propaga eventi osservabili (publish/subscribe), puó ulteriormente favorire l’adozione di architetture reattive e l’isolamento delle responsabilità.</p><h4>Enterprise Service Bus (ESB)</h4><p>ESB è una infrastruttura che fornisce servizi di coordinamento, sicurezza, messaggistica, instradamento intelligente e trasformazioni a livello di enterprise. Permette l’integrazione di moduli eterogenei, anche di tipo point-to-point e sincroni, favorendo la diffusione di una architettura message-based, capace di integrare componenti eterogenei e di ogni generazione.<br>Su di essa è possibile implementare pattern formali per la manipolazione dei messaggi [EIP Enterprise integration pattern], favorendo il design, la standardizzazione e la documentabilità.</p><h4>Architettura a Microservizi</h4><p>Accoppiamento debole e isolamento sono vantaggi basilari di ogni disegno SOA Adottando design di tipo DDD e infrastrutture basate su messaggi, favoriamo la parcellizzazione delle funzioni e lo spostamento verso una architettura a microservizi. Tale architettura garantisce scalabilitá, reattivitá e evolvibilità del sistema ed altrettanti vantaggi per la testabilitá e il deployment.</p><h4>Data storage non relazionale</h4><p>Nella scrittura di Repository nativi, l’adozione di storage NoSql e di pattern CQRS riduce la dipendenza dagli ORM, garantendo l’abbattimento dei costi di manutenzione e di disegno dei database e potenziando prestazioni e scalabilitá.<br>Infatti non é conveniente modellare in modo relazionale lo stato di entitá complesse, che siano state definite secondo i principi del DDD ed con un alto livello di astrazione. I data riproposti in forma tabellare rimangono piú favorevoli per operazioni di presentazione o filtro.</p><h4>Presentation model</h4><p>Grazie alla PM si possono portare parte dei vantaggi propri del DDD nel dominio della UX, mediando alcuni principi. Si mantiene forte la centricitá del modello dei processi di business, in quanto si distilla e si formalizza il modello sottostante alle interfacce utente.<br>Vengono astratti e isolati i principi che guidano l’interazione in specifici casi d’uso.<br>Il Presentation Model permette di estendere i principi di valorizzazione del backend alla user experience, limitando al massimo le responsabilitá del codice locale della UI e favorendo generalizzazione, universalitá e testabilitá.</p><h4>AOP (Aspect oriented programming)</h4><p>Quando il codice è riccamente decorato da elementi ripetitivi, di infrastruttura e di setup, il suo rumore di fondo aumenta, rendendo difficile concentrarsi sulle parti che contengono il vero modello del processo implementato. La AOP può essere lo strumento perfetto per la riduzione di questo rumore. Deve essere usata con intelligenza ed esperienza soprattutto per evitare di mascherare contenuti significativi del codice.</p><h4>Rivalutazione della OOP</h4><p>Troppo spesso la OOP, nella pratica corrente, viene utilizzata per implementare localmente specifici casi di riusabilitá e strutturazione del codice, invece che come strumento organico per accorciare la catena del valore ed imporre un metodo universale di organizzazione del pensiero e dei modelli.<br>La OOP garantisce sinteticitá e ordine del codice, ma soprattutto aiuta a renderlo un “Linguaggio” espressivo e come tale adatto a descrivere i processi di business. Distilla i concetti e li rende formali, comunicabili e riutilizzabili.</p><p>Mantenere i cinque principi S.O.L.I.D. e la tipizzazione ubiquitaria e astratta delle strutture dati, è alla base di un codice ben strutturato, un ottimo strumento per aumentare rapidamente il valore del codice e il suo contenuto semantico, riducendo la necessitá di una pesante documentazione.</p><h4>L’articolazione dell’intervento.</h4><p>La varietà e la ricchezza degli strumenti e delle strategie disponibili è enorme. Si possono realmente compensare le derive dei processi agile, ridurre i disallineamenti fra documentazione e implementazione e migliorare la manutenibilità e la testabilità. <br>Purtroppo questa ricchezza richiede disciplina e competenza per attuare interventi che possano essere scalati nel tempo e nella loro estensione, in modo economico e sostenibile.<br>Inoltre, la giusta sinergia e combinazione di tecniche è vincente, una appena diversa invece può rivelarsi totalmente inadatta, in virtù di una meccanismo di sovrapposizione di effetti.<br>Ecco allora alcune leggi che regolano generalmente il successo di una iniezione di metodi e tecnologie:<br> 1) Non si può vedere la foresta circondati dagli alberi. Chi sente la necessità di una correzione di rotta non dovrebbe decidere in solitudine la sua direzione e la sua natura, ma confidare in un aiuto esterno ed imparziale. <br> 2) “Non puoi cambiare o prevedere la direzione del vento ma puoi orientare le vele per condurti in porto” La complessità non può essere risolta, ma può essere gestita. Gli effetti sinergici degli interventi solo intuiti, ma esperienza e visione dei consulenti portano, per rotte ogni volta diverse, alla destinazione voluta.<br> 3) Dalla conoscenza sperimentata nasce il sapere individuale e dal sapere, condiviso in un gruppo, nasce la cultura. Gli uomini sono al centro del processo e la una nuova cultura il segno del successo. L’individuo accetta il nuovo strumento, lo condivide e lo propaga.</p><p>Il rispetto di questi principi determina la natura di un intervento tipico che si può declinare in fasi.</p><h4>Analisi e Giudizio</h4><p>• Analisi della situazione corrente effettuata da consulenti esterni di provata esperienza.<br> • Esposizione di <br> ◦ analisi macroscopica<br> ◦ piano di massima di intervento<br> ◦ Valutazione economica di costo/opportunità.</p><h4>Rotta e guida.</h4><p>• Disegno dettagliato dell’intervento con la definizione e la fornitura delle linee guida personalizzate. Gli ambiti saranno come visto:<br> ◦ framework ed organizzazione del lavoro dei team<br> ◦ codice e architettura<br> • Definizione delle metriche per la valutazione e l’adeguamento dell’intervento<br> • Check progressivi e adattamento del piano e delle linee guida dell’ intervento.</p><h4>Supporto e insegnamento</h4><p>• Formazione individuale e collettiva.<br> • Trasferimento dei valori e affiancamento con consulenti orientati al caso aziendale.</p><p>In conclusione un intervento esterno compiuto da consulenti di esperienza e con una visione forte, organica e orientata alla qualità del codice e del disegno può essere decisivo per migliorare la qualità di un progetto di sviluppo software e garantire la sua longevità e risultato economico.<br>Un intervento compiuto secondo le giuste regole risulta in un accrescimento della cultura aziendale e individuale, e diventa un investimento strutturale e a lungo termine, con una fertilità per oltre lo scopo del singolo progetto, e con un onere ridotto.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6d5ed33125a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/festina-lente-2/linsostenibile-inerzia-del-codice-d6d5ed33125a">L’insostenibile inerzia del codice</a> was originally published in <a href="https://medium.com/festina-lente-2">Festina Lente</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>