<?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 David SAUVAGE on Medium]]></title>
        <description><![CDATA[Stories by David SAUVAGE on Medium]]></description>
        <link>https://medium.com/@david.sauvage?source=rss-c7060d38834------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8ePfl4XYnAnxehrjZ02L1Q.jpeg</url>
            <title>Stories by David SAUVAGE on Medium</title>
            <link>https://medium.com/@david.sauvage?source=rss-c7060d38834------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:34:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@david.sauvage/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[My 5 highlights of Devoxx France 2022]]></title>
            <link>https://medium.com/decathlondigital/my-5-highlights-of-devoxx-france-2022-477d948a2dc0?source=rss-c7060d38834------2</link>
            <guid isPermaLink="false">https://medium.com/p/477d948a2dc0</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[David SAUVAGE]]></dc:creator>
            <pubDate>Fri, 29 Apr 2022 16:27:23 GMT</pubDate>
            <atom:updated>2022-05-07T15:57:10.554Z</atom:updated>
            <content:encoded><![CDATA[<p><em>On April 20, 21, and 22, Devoxx France 2002 took place. This gathering, which brings together more than 200 talks on software development, is both very intense and very rewarding. I was lucky to be among the 42 people sent by Decathlon Technology to this essential moment of monitoring.</em></p><p><em>Coming back from this event, I wanted to highlight 5 talks that stuck in my mind even after those 3 intense days.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*lumonAmKGnMn2WuP.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@jibarofoto/">Luis Quintero</a></figcaption></figure><p><strong>I’m almost done! (David Laize)</strong></p><p>This presentation was a 15-minutes quickie and goes back to a situation that we have all experienced. During the team’s synchro meeting, a member repeats for several days: “I’m almost finished”. The speaker goes back to the reasons for this behavior (overconfidence, commitment bias) and why it is necessary to remedy it: reduce tension in the team and make the person a better developer. Finally, on the solutions side, he proposes pair and mob programming with the person in difficulty and to make the team a place where psychological safety reigns.</p><p>I can’t wait to share these 15 minutes with my own team!</p><p>Link : <a href="https://www.youtube.com/watch?v=MYP3cEhVT9Q">https://www.youtube.com/watch?v=MYP3cEhVT9Q</a></p><p><strong>Understanding the issues of resources and energy consumption in the digital sector (Quentin Adam and Pierre Beyssac)</strong></p><p>This presentation was the one that had the most impact on me! The subject of green IT is an important subject to me and I try to document myself regularly. In particular, I had taken the time to read “Deploying digital sobriety” written by the Shift Project (https://theshiftproject.org/article/deploying-la-sobriete-numerique-rapport-shift/). It describes, among other things, the consumption of video streaming and its impact on the environment.</p><p>The two speakers began by indicating how much of a problem global warming is. Then comes the criticism of the report from The Shift Project by mentioning an important error on a confusion between bit and bytes which distorts the calculations of the report. The explanation of the operation of the electrical network then attempts to show the error made by the Shift Project of wanting to use averages in the use of the electrical network. Finally, the argument, in my opinion fallacious, to indicate that these reports are provided by people who sell this kind of work and that it is, therefore, necessary to alert. This argument, coming from the CEO of a cloud provider, had a comical effect on me.</p><p>The presentation, on the other hand, does not deny the high cost of the construction of electronic components but considers that the resources which could be lacking would be replaced by innovation. One of the speakers went so far as to tell the listener that he can change his smartphone every year if he takes care to put his previous device back into the second-hand circuit. I must admit that I was simply lost by these arguments which do not make sense to me today.</p><p>As you will have understood, this presentation will not have convinced me. Only the criticism of the Shift Project method appealed to me. Admittedly, the calculations are simplified. Is this tool completely useless? I will need to rewatch this presentation to deepen the subject. The presentation was quite disturbing with a speech going against what seems to me to be a consensus. The dissonance with the keynotes where green IT had his place was very strange.</p><p>Link : <a href="https://www.youtube.com/watch?v=gxWwxqIrCa8">https://www.youtube.com/watch?v=gxWwxqIrCa8</a></p><p><strong>How Betclic uses its data lake to generate load tests and simulate sporting events (Nicolas Jozwiak and Etienne Puissant)</strong></p><p>I had the opportunity to attend two presentations from Betclic, one on the way to create their load tests and the second, more global, on their journey before a heavy load during Euro 2020. What I want to highlight here is a simple idea: the precise use of production traffic data to create consistent load test scenarios.</p><p>The need to hold the load on very short events (a simple goal in a football evening can lead to many connections at a given time), they decided to make available all the logs in a data lake. This information is then processed to generate load test scenarios for Gatling (https://gatling.io/) In this way, each new development can be tested with scenarios identical to reality. A pretty simple idea that I had never thought of.</p><p>Link : <a href="https://www.youtube.com/watch?v=GJ2IH3jXEGw">https://www.youtube.com/watch?v=GJ2IH3jXEGw</a></p><p><strong>Towards a culture where everyone is responsible for unavailability (Emmanuel Bernard)</strong></p><p>Emmanuel Bernard, a Java champion who worked on Quarkus and is currently working on a RedHat product that provides Kafka clusters in the cloud, gives us his valuable opinion on how to define and manage your SLOs (Service Level Objectives) and why it must concern everyone in the development team.</p><p>He advises starting by defining what you want to offer to the user. It is sometimes difficult and it is for this reason that it is necessary to deploy quickly, so as to measure and form convictions on the functioning of its own service. Modify the SLOs based on these initial experiences and adapt them over the life of your product once the elements of friction are eliminated.</p><p>The alerting and monitoring system are obviously essential when it comes to respecting an SLO. I liked the idea of ​​a “budget” that lets you know if the alert is important. It is typically a simple way to define when to trigger a duty call: if x% of the budget is consumed within the hour then the duty call must be triggered.</p><p>Link : <a href="https://www.youtube.com/watch?v=r4sY02CtmfY">https://www.youtube.com/watch?v=r4sY02CtmfY</a></p><p><strong>Migrating from Spring MVC to Spring WebFlux (Mathilde Lorrain and Hugo Caupert)</strong></p><p>Reactive programming has been highlighted for some time in the various readings I’ve had. This paradigm avoids the concurrent processing limit related to the number of threads. Since I did not have the opportunity to test it myself, this presentation allowed me to form an opinion very quickly. The two speakers first presented a scenario for migrating a Spring MVC application to Spring WebFlux by describing the various steps, pain points (mainly database access and cache management), and results. It turns out that the migration in question was a failure. No performance gain due to a bottleneck located at the PostgreSQL database level. WebFlux clearly has advantages in fairly specific conditions (they gave the example of a data aggregation service) but is not made to replace MVC which still has its own purpose.</p><p>Link : <a href="https://www.youtube.com/watch?v=QSH-vJyh9as">https://www.youtube.com/watch?v=QSH-vJyh9as</a></p><p><strong>Conclusion</strong></p><p>As you will have understood, this conference allowed me to discover and learn many things. This kind of event makes it possible to touch on many themes and even to increase the thirst for knowledge in our vast field that is IT. I can’t wait to discover other presentations that I couldn’t attend and I can only recommend that you subscribe to their youtube channel on which all the presentations will be uploaded: <a href="https://www.youtube.com/">https://www.youtube.com</a> /c/DevoxxFRvideos/</p><p>Please share your thoughts and if you were at Devoxx, let me know what you did enjoy so I can catch up ! 👇</p><p><strong>Links</strong></p><ul><li>Devoxx France website : <a href="https://www.devoxx.fr/en/">https://www.devoxx.fr/en/</a></li><li>Youtube Channel : <a href="https://www.youtube.com/">https://www.youtube.com</a> /c/DevoxxFRvideos/</li><li>The Shift Project : <a href="https://theshiftproject.org/">https://theshiftproject.org/</a></li><li>Gatling : <a href="https://gatling.io/">https://gatling.io/</a></li></ul><p>👏 If you enjoyed reading this article, please consider giving it a few 👏</p><p>👩‍💻 Interested in joining <strong>Decathlon Tech Team</strong>? Check out <a href="https://recrutement.decathlon.fr/metier/informatique/">https://recrutement.decathlon.fr/metier/informatique/</a> 👩‍💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=477d948a2dc0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/decathlondigital/my-5-highlights-of-devoxx-france-2022-477d948a2dc0">My 5 highlights of Devoxx France 2022</a> was originally published in <a href="https://medium.com/decathlondigital">Decathlon Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mimic the good practices in which you believe]]></title>
            <link>https://medium.com/decathlondigital/mimic-the-good-practices-in-which-you-believe-fd8d5d12717d?source=rss-c7060d38834------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd8d5d12717d</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[technical-leadership]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[David SAUVAGE]]></dc:creator>
            <pubDate>Mon, 18 Oct 2021 19:13:23 GMT</pubDate>
            <atom:updated>2021-11-03T08:05:30.441Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Recently, I’ve been reading two different books: Los 11 caminos al goal by Eduardo Rojas Rojas and Code Simplicity by Max Kanat-Alexander. The first one is about Marcelo Bielsa, one of the great tacticians in the football world while the second is giving tips about how to design in our field: software engineering. Those two books inspired me to write this article.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V08no51phSI408GEm5xRzA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@kelly-lacy-1179532?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Kelly Lacy</a> from <a href="https://www.pexels.com/photo/sports-field-2935982/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>Marcelo Bielsa inspired great coaches such as Mauricio Pochettino, Jorge Sampaoli or even Pep Guardiola. Despite the fact that Bielsa is seen as a genius in his field by a numerous number of people, he feels like he simply imitates what is properly done. For him, imitation is the basis of education insofar as one imitates things in which one believes. This has remained anchored in me because it corresponds enormously to what I do on a daily basis in my development team.</p><p>Code simplicity incorporates many development principles to produce maintainable software. Although I don’t think I learned much from it, it sums up so many principles which I believe to be an interesting read. It is very short and it is always good to do a reminder of the basics</p><p>Those two books gave me the idea to share the development principles I have been copying the past years of my career. I try to instill them in other members of my team and I’m a firm believer that it creates more maintainable software.</p><p><strong>Consistency, consistency, consistency</strong></p><p>It has been a joke for a while in my previous team but I’ve brought back how important it is to stay consistent. It may seem boring to use the same method when it comes to responding to a redundant technical point, but for me, consistency is one of the pillars of software maintainability. It is important to imagine yourself as a newcomer to your project and to make his life easier for his integration. If he has to learn 3 different libraries to make HTTP calls while he also has to integrate the operations of the team and the software, his onboarding will necessarily be slowed down. It is simply an unnecessary load for him. Of course, sometimes you will have to change the way you do things. Technology evolves and if you don’t evolve with it, you will have a maintainability issue. It needs to be a thoughtful process and you should aim to only have this new way in the long run.</p><p><strong>Boy Scout rule</strong></p><p>The boy scout rule is kind of self-explanatory: <em>Always leave the campground cleaner than you found it (Robert C. Martin). </em>Whenever you have to modify your code, look for elements that can be improved within the existing one. Don’t try to make the whole thing perfect, but try to improve one of these elements. In the long run, the whole codebase will improve and make your software better. It could simply be to rename some method or variable more explicitly, add a missing unit test, or revise an unclear algorithm. The sum of small improvements will result in better software.</p><p><strong>You’re not gonna need it (YAGNI Principle)</strong></p><p>As said by Max Kanat-Alexander in the book I mentioned earlier: <em>You can’t predict the future.</em> Everybody will agree on that one but as software engineers, we do tend to try and we shouldn’t! We all thought it would be good to add this or that element to a requested feature. We think then that it will necessarily be useful later. Spoiler alert: We are wrong! It is impossible to predict what software will need or how it will be used. You are not Nostradamus, only add what is essential to your software.</p><p><strong>Worse is better</strong></p><p><em>Worse is better</em> means that you should not seek to make your software better by adding all features that you have in mind. It is kind of the corollary of the YAGNI principle. This principle should push you to do little things but do it perfectly. In my current team, we are working on a system that creates price tags in various formats and with an extraordinary number of options. It makes the system pretty hard to maintain and when a new need comes, it takes weeks to put it in production. Happily, we are working on a new project trying to streamline what is mandatory. Be critical of new needs. Will this actually serve users and does it belong to your app’s domain?</p><p><strong>Conclusion</strong></p><p>I introduced four principles which can finally be summarized in two. First, be regular: repetitive things should be done the same way and try to improve the bad things little by little. Then do only the bare essentials but do it the best you can. The other important message of the article is to copy the principles that you believe in. Bringing these principles into a team will most likely help your colleagues.</p><p>Please, feel free to share your fundamentals below! 👇</p><p>Bibliography</p><ul><li>Code Simplicity by Max Kanat-Alexander: <a href="https://www.goodreads.com/book/show/13234063-code-simplicity">https://www.goodreads.com/book/show/13234063-code-simplicity</a></li><li>Los 11 caminos al goal by Eduardo Rojas Rojas: <a href="https://www.goodreads.com/book/show/25312357-marcelo-bielsa-los-11-caminos-al-gol">https://www.goodreads.com/book/show/25312357-marcelo-bielsa-los-11-caminos-al-gol</a></li></ul><p>👏 If you enjoyed reading this article, please consider giving it a few 👏</p><p>👩‍💻 Interested in joining <strong>Decathlon Tech Team</strong>? Check out <a href="https://developers.decathlon.com/careers">https://developers.decathlon.com/careers</a> 👩‍💻</p><p>✉ Learn more about tech products open to the community through and subscribe to our newsletter on<a href="http://developers.decathlon.com/"> http://developers.decathlon.com</a> ✉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd8d5d12717d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/decathlondigital/mimic-the-good-practices-in-which-you-believe-fd8d5d12717d">Mimic the good practices in which you believe</a> was originally published in <a href="https://medium.com/decathlondigital">Decathlon Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should I test private methods direclty ?]]></title>
            <link>https://medium.com/decathlondigital/should-i-test-private-methods-direclty-c48f4fa7bb4d?source=rss-c7060d38834------2</link>
            <guid isPermaLink="false">https://medium.com/p/c48f4fa7bb4d</guid>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[decathlon]]></category>
            <category><![CDATA[good-practices]]></category>
            <dc:creator><![CDATA[David SAUVAGE]]></dc:creator>
            <pubDate>Tue, 24 Aug 2021 11:12:32 GMT</pubDate>
            <atom:updated>2021-08-29T16:18:39.302Z</atom:updated>
            <content:encoded><![CDATA[<h3>Should I test private methods directly?</h3><p><em>While working on legacy code a colleague used reflection to unit test private methods. I needed to gather my thoughts as to why this is a bad practice.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wQLUhRmoHsPuFOwmY-gV9Q.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@dziana-hasanbekava?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Dziana Hasanbekava</a> from <a href="https://www.pexels.com/photo/unrecognizable-backpacker-standing-on-top-of-mountain-5480713/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><h3>Why this question popped up?</h3><p>During a code review, one of my new coworker used reflection in order to test some private methods. To give some context, we are working on a bit of legacy code were some part of the software lack unit tests and in order for that to change we decided to add tests for every methods that we would tweak while developing new features.</p><p>I have to admit that the idea of testing private methods never crossed my mind so even though I was a bit taken off by it instinctively, I did not had any good argument against it so I did what every developer do when he has a question: ask Google! This article is simply a sum up of my readings and what my conviction is after reading them.</p><blockquote>“Testing private methods comes with a price”</blockquote><h3>Pros and con of testing private methods</h3><p>On legacy code with a lack of code coverage, it may feel like a good idea. Instead of having no coverage for a complete class, it is easier to test small pieces of code rather than testing some gigantic one that does everything and that you did not even wrote. Nonetheless, doing so comes with a price and I’ll explain.</p><p>It probably hits you already with how I described the situation but if you feel like it’s a good idea to test private methods, it’s because the class itself has some design flaws. When it comes to mind, think about the single responsibility principle: do this class has only one purpose? Most of the time, you will understand that the class does too much and that some refactoring needs to be done. You will extract some of its code to other classes that will expose public methods and make your software easier to understand for others and easier for you to test.</p><blockquote>“A great tests suite is a great documentation”</blockquote><p>Keep in mind that your unit tests are the first client to your public api. Testing your code through it shows how it should be used. A great tests suite is a great documentation. It evolves with your code by design and can be a great help for newcomers to understand how a class has been designed.</p><p>Another great argument against testing private method is that you will create redundancy in your tests. Since you will both test the private methods and the public ones, your test suite will trigger your private method twice: first by their own test and then by the public ones. Those tests will look like one another since it will test the same expected results. Having this kind of bloated tests suite will slow you down eventually. More so, it will make refactoring harder and will defeat one of the main purpose of unit tests: make refactoring smooth and easy! Needing a simple change in one private method now makes you getting at least 2 broken tests instead of one. It will have repercussions on your team velocity.</p><h3>Conclusion</h3><p>In my opinion, testing private methods directly should be used only when working on legacy code with a sense of urgency. It should be seen as technical debt and as such, it should be paid as soon as possible. In other case, it should be banned given all the flaws it will bring to the codebase.</p><p>What about you? Did you already test private methods? Please share your thoughts below. 🔽</p><h3>Links</h3><ul><li><a href="https://stackoverflow.com/questions/105007/should-i-test-private-methods-or-only-public-ones">Stack overflow thread with multiple arguments that goes for and against</a></li><li><a href="https://anthonysciamanna.com/2016/02/14/should-private-methods-be-tested.html">Anthony Sciamanna that is against</a></li><li><a href="https://therenegadecoder.com/code/its-okay-to-test-private-methods/">The renegade coder that is for</a></li></ul><p>👏 If you enjoyed reading this article, please consider giving it a few 👏</p><p>👩‍💻 Interested in joining <strong>Decathlon Tech Team</strong>? Check out <a href="https://developers.decathlon.com/careers">https://developers.decathlon.com/careers</a> 👩‍💻</p><p>✉ Learn more about tech products open to the community through and subscribe to our newsletter on<a href="http://developers.decathlon.com/"> http://developers.decathlon.com</a> ✉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c48f4fa7bb4d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/decathlondigital/should-i-test-private-methods-direclty-c48f4fa7bb4d">Should I test private methods direclty ?</a> was originally published in <a href="https://medium.com/decathlondigital">Decathlon Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>