<?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 Romain Mouillard on Medium]]></title>
        <description><![CDATA[Stories by Romain Mouillard on Medium]]></description>
        <link>https://medium.com/@romain.mouillard.fr?source=rss-700767780763------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Trt_q4hB9iG-K8pbg6MdzA.png</url>
            <title>Stories by Romain Mouillard on Medium</title>
            <link>https://medium.com/@romain.mouillard.fr?source=rss-700767780763------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:19:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@romain.mouillard.fr/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[Solo Game Dev: Lessons Learned the Hard Way]]></title>
            <link>https://medium.com/@romain.mouillard.fr/solo-game-dev-lessons-learned-the-hard-way-0720138000bd?source=rss-700767780763------2</link>
            <guid isPermaLink="false">https://medium.com/p/0720138000bd</guid>
            <category><![CDATA[gamedev]]></category>
            <category><![CDATA[indie-game]]></category>
            <category><![CDATA[godot]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Romain Mouillard]]></dc:creator>
            <pubDate>Tue, 11 Mar 2025 19:08:54 GMT</pubDate>
            <atom:updated>2025-03-11T19:14:32.291Z</atom:updated>
            <content:encoded><![CDATA[<h3>Solo Game Dev: From Dreamy Expectations to Harsh Realities</h3><p>Starting your first solo game development project is exhilarating. You see incredible indie successes like <em>Stardew Valley</em>, created by a single developer, and you think, <em>“I can do this too!”</em> The excitement fuels grand visions of intricate mechanics, stunning visuals, and deeply immersive worlds — all crafted by your own hands.</p><p>But then, reality kicks in. You start to grasp the vast gap between your ambitions and your actual skills. Every task is more complex than expected, and those inspiring indie success stories that once motivated you now feel intimidating. The journey ahead suddenly seems far more daunting than you imagined.</p><h3>Initial Ideas with Big Ambitions</h3><p>When I embarked on this journey, I was brimming with ambitious ideas, heavily inspired by remarkable indie games. These games seemed accessible, achievable — even easy to develop. I was eager to replicate beloved game mechanics, compelling storytelling styles, and charming visual designs.</p><p>My confidence stemmed from my 15 years of experience in software development, albeit in a different field. I assumed that implementing these mechanics would be mostly about understanding how to code them and design their UI, then simply moving on to the next feature.</p><p>Although I was aware of the classic pitfall of <em>“you don’t know what you don’t know,”</em> I was still overconfident. Looking back, I also realize I wasn’t humble enough to heed the advice of many experienced indie devs who kept emphasizing one thing: <em>Start with stupidly simple games, iterate over micro-prototypes, and experiment with multiple game styles.</em></p><p>Ignoring these warnings, I dove headfirst into a large, elaborate project, driven purely by passion.</p><h3>My Journey: Learning Through Reality</h3><h4>First Wall Hits</h4><p>Almost immediately, my idealistic expectations clashed with harsh realities. Before starting my first game, I had taken a few online courses to learn how to use Godot and build a “complete” game — with assets, UI, save systems, and gameplay mechanics. I thought this preparation would be enough to create my first game on my own. That was a mistake.</p><p>My first project, <em>Seeds of Tomorrow</em>, was an isometric 2D RPG set in a post-apocalyptic future. Determined to make it truly <em>mine</em>, I decided to create all the art myself. After a grueling week, I had a decent animated character and a few walls. Encouraged by this progress, I prototyped the first area and built the core character controls. I even implemented a shiny inventory system, following some excellent YouTube tutorials — a feature I was particularly proud of.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*i7fhZ3hyEo7rVZ8A" /><figcaption>The inventory system</figcaption></figure><p>Since everything seemed to be going well, I pushed further into the art, creating textures with normal maps to experiment with lighting and ambiance. And that’s when I hit my first major roadblock. I lost nearly two weeks trying to make 2D lighting behave properly in an isometric environment. Eventually, I got it working, only to encounter another hurdle: sprite depth sorting. After struggling through that as well, I was mentally drained. I needed a break before continuing the design of the first area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*TeOkkHpgAQZt13vm" /><figcaption>Weeks of work</figcaption></figure><p>Hoping for a quick reset, I decided to prototype a simple Android game — something I planned to finish in just one month before returning to <em>Seeds of Tomorrow</em>.</p><p><strong>Spoiler:</strong> I never touched <em>Seeds of Tomorrow</em> again. Not a single line of code. Not a single piece of art.</p><h4>First Game Was Simple, the Journey to Publish It Was Not</h4><p>Frustrated by the exhaustion from my first attempt, I took a different approach when designing my next game. I applied two key lessons:</p><ul><li><strong>Start small and iterate.</strong></li><li><strong>Keep the game ridiculously simple.</strong></li></ul><p>I developed the core gameplay of <a href="https://play.google.com/store/apps/details?id=fr.codartesien.TheBuzzingCrusade"><em>The Buzzing Crusade</em></a> during the last week of 2023. It was a straightforward arcade-style game where players had to move and dodge walls. The following week, I created all the artwork myself. Another week was spent refining the gameplay, adding scores, objectives, and a light narrative.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*Yo6k1YWIaweiMN16Ymt0iw.gif" /><figcaption>The Buzzing Crusade</figcaption></figure><p>Everything was progressing smoothly. I dedicated another week to UI and the save system, and by the end of the month, <em>The Buzzing Crusade</em> was ready. I designed a logo, wrote a description, and prepared other marketing materials. Finally, I initiated the process of publishing the game on the Play Store.</p><p>And that’s when things got complicated.</p><p>Publishing on the Play Store involves navigating a maze of requirements. It felt like Google had recently <em>intentionally</em> raised barriers for small developers — possibly to discourage low-value or spammy apps. First, I had to register my company as a publisher to access the Play Console. Then came an unexpected hurdle: a mandatory “Closed Test” period.</p><p>This test nearly made me abandon the idea of publishing the game entirely. I had to recruit <strong>at least 12 people</strong> willing to install and keep the game on their phones for <strong>14 consecutive days</strong> before I could even access the “Submit to Store” button. As a solo developer, this was a logistical nightmare. I had to find friends or colleagues who:</p><ol><li>Used Android.</li><li>Had a compatible phone.</li><li>Were able to navigate a private install link.</li><li>Would <strong>not</strong> uninstall the game for two weeks.</li></ol><p>In the end, it took <strong>two weeks</strong> to meet the requirement, plus another <strong>two weeks</strong> to organize everything. While this period helped me catch a few bugs, it mostly made me question whether I ever wanted to publish another mobile game.</p><p>When <em>The Buzzing Crusade</em> was finally released in April 2024 — after three months of work — I felt just as drained as I had after my first project. I lacked the motivation to continue improving the game’s levels and mechanics. A bit of introspection made me realize something crucial:</p><p>I had built a mobile game <strong>for the challenge of it</strong>, not because I was genuinely passionate about mobile or arcade games.</p><p>In hindsight, this should have been obvious. After all, I’ve spent years trying to <strong>reduce</strong> my mobile phone usage, not increase it. 😅</p><h4>The Harsh Reality of Mobile Game Publishing</h4><p>Under this new light, I asked myself: <em>Should I spend a few more months adding new chapters to the game?</em> I took a step back, analyzed the situation, and quickly felt discouraged by how unfriendly the Play Store is for indie developers.</p><p>• <strong>Ratings were mysteriously broken.</strong> Some testers and new users reported being unable to rate the game. For those who managed to leave a review, the store page still displayed <em>zero</em> ratings.</p><p>• <strong>Discoverability was non-existent.</strong> My game was completely buried under a sea of titles with 500K to 50M downloads. Even searching <em>“buzzing crusade”</em> yielded no relevant results. The only way to make it appear was to search for the <strong>exact title</strong> (<em>The Buzzing Crusade</em>), which felt like a hardcoded exception in Google’s algorithm — useless for organic discovery.</p><p>Realizing that my game was essentially invisible unless I actively promoted it, I decided to take a break before working on new levels. <strong>Spoiler:</strong> I never did. Instead, I only updated the game a few times to keep it compatible with newer Android versions.</p><h4>Letting Go of the “Do Everything Myself” Mindset</h4><p>Another important realization hit me at this stage. While I enjoyed creating the art for my games — it aligned with my broader goal of integrating drawing into my creative process — it was <em>far</em> too time-consuming. The time and energy required to reach an “acceptable” result drained my momentum.</p><p>So I made a decision: <strong>I would stop making all the artwork myself.</strong></p><p>At first, I considered finding an art partner, but since none of my projects lasted more than <strong>two months</strong>, this didn’t seem like a viable option. Instead, I decided to <strong>purchase</strong> assets. Looking back, choosing to let go of full artistic control was the <strong>first major “axe cut”</strong> in what I had initially envisioned as my dream game project.</p><h4>First Desktop Game: More Lessons Learned</h4><p>As I embarked on my third attempt, I applied everything I had learned so far. This time, I set clearer guidelines for myself:</p><ul><li><strong>Develop a game on a platform I actually enjoy playing on</strong> (desktop or console).</li><li><strong>Choose a genre I genuinely love.</strong></li><li><strong>Use asset packs whenever possible and only create custom artwork when necessary.</strong></li></ul><p>With these principles in mind, I was ready for my first <strong>desktop</strong> game!</p><p>My goal was to build a <strong>pixel-art, story-driven RPG</strong> set in a small town. The game, titled <em>Goodman is Mad</em>, followed a newcomer navigating the absurd, catastrophic decisions of the town’s eccentric mayor, Mr. Goodman.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*Lbx5CjYrVLLQpO0lMJ7Vqg.png" /><figcaption>Game’s Logo</figcaption></figure><p>At the same time, I decided to switch from <strong>GDScript to C#</strong> in Godot. While GDScript was fine, I started to feel limited by it, as I was used to working with <strong>object-oriented programming</strong>.</p><p>Things started well. I found some high-quality asset packs and began assembling the town area by area. Feeling more confident with the language, I also designed mechanics with reusability in mind — partly because I suspected I might abandon this project and reuse the code in another one later. In two months, I built several systems, including:</p><ul><li><strong>A dialogue system</strong> with full localization support.</li><li><strong>A cutscene system</strong> that allowed me to assemble complex sequences in minutes.</li><li><strong>A level navigation system</strong> for entering/exiting buildings while tracking player position.</li><li><strong>An interaction system</strong> that linked objects in the world to player inputs and UI elements.</li><li><strong>A modular quest system</strong> for tracking objectives.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kw7vOG8tWy7SP-wAlvZbVA.png" /><figcaption>Cutscene, Dialogue, Interaction and Quest systems in action.</figcaption></figure><p>Everything was in place. <strong>Now, I just had to use these tools to bring the story to life.</strong></p><p>And that’s when I hit another wall.</p><p>I struggled to create a fun and engaging story. While I initially imagined an <strong>RPG</strong>, I realized I was actually more interested in letting players <strong>wander around town, interact with quirky characters, and experience cozy, slice-of-life moments</strong> rather than following a structured quest-driven narrative.</p><p>It dawned on me that writing a full RPG — complete with cutscenes, branching dialogue, and meaningful player choices — would take <strong>years</strong>. And worse: I wasn’t even passionate enough about <em>writing</em> an RPG to commit to that kind of long-term effort.</p><p>This led to my second major <strong>“axe cut”</strong>:</p><p><strong>While RPGs are my favorite genre to play, they are an overwhelming nightmare to develop as a solo dev.</strong></p><h4>The “Devlog Comparison Trap”</h4><p>As I struggled with my project, I became more determined to <strong>learn from others</strong> and avoid common pitfalls. I started following solo and small-team game developers on YouTube and Patreon, hoping to gain insights from those who were a few steps ahead of me.</p><p>At first, this was incredibly inspiring. But without realizing it, I fell into what I now call <strong>the “devlog comparison trap.”</strong></p><p>Watching other developers showcase their progress, I found their results <em>amazing</em> — and slowly, I started <strong>measuring my own work against theirs</strong>. Every time I saw a polished, well-presented devlog, I couldn’t help but feel like my own progress was inadequate. <strong>I felt like I was always behind, always unfocused, never good enough.</strong></p><p>This mindset became <strong>toxic</strong>. Instead of feeling motivated, I started doubting myself.</p><p>Thankfully, I had a breakthrough:</p><p>💡 <strong>Every developer is on their own journey.</strong></p><ul><li>Some struggle with things I find easy.</li><li>Some excel at things I find difficult.</li><li>Everyone starts from a different place.</li></ul><p>The <strong>journey</strong> matters — not just the polished, edited results that are in devlogs.</p><p>So, I made a conscious decision: <strong>I would stop comparing my progress to others and focus on my own path.</strong></p><p>That was easier said than done. In game development, sharing your progress is essential for marketing and community-building. But I knew I had to <strong>reframe how I viewed others’ work</strong> — as inspiration, not competition.</p><h4>Second Desktop Game: Gameplay Works, but Is It Fun Enough?</h4><p>For my second desktop game attempt, <a href="https://wharenn.itch.io/the-librarian"><em>The Librarian</em></a>, I followed a common approach: <strong>“copy a well-known game mechanic and add a personal twist.”</strong> I designed <em>The Librarian</em> to be a <strong>magical library management game, heavily inspired by Overcooked… but solo.</strong></p><p>Looking back, I should have spotted the problem right from the design phase. 😅</p><p>Mechanically, the game worked well. The player had to <strong>find, manipulate, and deliver books</strong> under time pressure, requiring quick decision-making and prioritization — much like Overcooked’s recipe for chaotic fun. Development progressed quickly because I was able to <strong>reuse a lot of systems from Goodman is Mad</strong>, including the interaction mechanics and artwork. I even polished the game with <strong>a light narrative, clean menus, a save slot system, controller support…</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T17VSyIYgMJFIBMyQRIMlw.png" /><figcaption>Night shift level in The Librarian</figcaption></figure><p>Yet, once again, I hit the same issue: <strong>I wasn’t excited about making more than a handful of levels.</strong></p><p>After some reflection, the flaw was clear:</p><p>💡 <strong>Overcooked-style mechanics are fun in co-op. While the game has a solo mode, that’s not what makes it famous.</strong></p><p>Would I have to turn my game into a multiplayer experience? Sticking to my <strong>“keep it simple”</strong> principle, I decided against it. I had never developed an online or local co-op system before, and diving into that would open a <strong>huge unknown</strong>, requiring extensive testing — something incredibly difficult for a solo developer.</p><p>Once again, I was about to abandon the project and move on. But this time, I recognized the <strong>pattern</strong> — and I knew I had to break it.</p><h4>Breaking the Pattern: Prototyping to Clear My Mind</h4><p>Instead of trashing another project, I <strong>paused</strong> game development and took a different approach. I realized that several mechanics had been <strong>lingering in my mind</strong> for a long time, constantly tempting me to start new projects. These ideas were <strong>cannibalizing my focus</strong>, making it harder to commit to a single game.</p><p>So, I decided to <strong>get them out of my system</strong> by creating a few small prototypes:</p><ul><li><strong>Exploring 3D game development.</strong> To avoid dealing with complex animations and character modeling (which I knew I wasn’t good at), I designed a <strong>low-poly First Player puzzle game</strong>. In just <strong>two weeks</strong>, I built a white-boxed prototype with Blender and Godot.</li><li><strong>Creating a living, simulated world.</strong> Inspired by cozy games, I experimented with a <strong>day/night cycle, changing seasons, and a dynamic calendar system</strong> that impacted the environment (bright summers, snowy winters, etc.).</li><li><strong>Allowing players to modify the world.</strong> I tested mechanics where the player could <strong>edit the terrain, place buildings, add fences</strong>, and interact with a customizable environment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ubhs8vjvEODrah6TcWirVw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Z-5oA98HyMQNPCoAN4zDUA.gif" /><figcaption>Day-night cycle and Seasons switch</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vpnEBtyRtiL8mVIsPfDZ8w.png" /><figcaption>First Player Puzzle Game</figcaption></figure><p>By implementing these mechanics in standalone prototypes, <strong>they stopped distracting me</strong>. I no longer felt the urge to restart new projects just to explore these ideas.</p><p>With a clearer mind, I returned to <em>The Librarian</em> — this time, with a fresh perspective and a plan to make it work.</p><h4>Redefining The Librarian: From Time-Management to Simulation</h4><p>Coming back to <em>The Librarian</em> with a fresh mindset, I realized that the <strong>core concept needed to change</strong>. Instead of forcing it into a <strong>time-management game</strong>, I shifted the design toward a <strong>library simulation game</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*6uHnSnylmHbsLHn88qGtog.png" /><figcaption>New vision, new aesthetic</figcaption></figure><p>To ensure this new direction was <strong>both appealing and feasible</strong>, I took a step back and <strong>visualized the full game concept</strong>:</p><ul><li>I drafted a <strong>store page description</strong>, refining the vision until it felt exciting and realistic.</li><li>I sketched out mechanics, ensuring they were <strong>engaging and achievable within my skill set</strong>.</li><li>I focused on <strong>what made the game unique</strong>, rather than just mimicking Overcooked’s mechanics.</li></ul><p>This process helped me feel <strong>more confident</strong> about the project than ever before. While I know this won’t be the last iteration, this version already feels <strong>more mature and sustainable</strong> than my previous attempts.</p><h4>Challenges Ahead, But No Blockers</h4><p>I can already see some upcoming struggles, but none of them feel insurmountable:</p><ul><li><strong>New mechanics I’ve never implemented before</strong>, like allowing players to <strong>edit the library layout using Godot TileMaps</strong>.</li><li><strong>Some artwork will need to be customized or created from scratch</strong>, which will require time and effort.</li><li><strong>The complexity of a simulation game.</strong> These games rely on <strong>multiple small interconnected systems</strong> (resources, upgrades, level progression, balancing, replayability), demanding <strong>endurance and focus</strong>.</li></ul><p>However, despite these challenges, the <strong>vision of the finished game is motivating</strong>. The combination of unique mechanics feels promising, and I genuinely believe that <strong>creating a fun and engaging experience is within reach.</strong></p><h3>What I Learned: Key Takeaways</h3><p>If there’s one lesson I’ve learned from my journey so far, it’s this:</p><p>💡 <strong>Game development is not just about technical skills — it’s about endurance, self-awareness, and knowing when to pivot.</strong></p><p>In details:</p><ul><li><strong>Starting small is essential.</strong> Big projects are tempting, but without experience, they quickly become overwhelming.</li><li><strong>Your passion should drive your projects.</strong> Making a game for the challenge of it, rather than because you truly love the concept, can sap your motivation.</li><li><strong>Prototyping helps clear mental clutter.</strong> Exploring ideas in small, contained projects prevents them from hijacking your focus.</li><li><strong>Comparing yourself to others is a trap.</strong> Every developer has their own journey — focus on progress, not perfection.</li><li><strong>Game ideas evolve.</strong> The first version of your game is rarely the one you’ll end up with, and that’s okay.</li></ul><h3>A Journey of Growth, Not Just Games</h3><p>Looking back, every abandoned project, every shift in direction, and every lesson learned has shaped me into a better game developer. While <em>The Librarian</em> is still in progress, I no longer see unfinished projects as failures — just necessary steps toward finding my own creative voice.</p><p>Solo game development is a marathon, not a sprint. The real success isn’t just shipping a game — it’s learning, improving, and staying motivated along the way. And this time, I feel like I’m finally building something that will last.</p><p><em>Thanks for reading! 🎉</em></p><p><em>If you enjoyed this article, feel free to check out my other content:<br>→ </em><strong><em>Showcases and updates on my games </em></strong><em>on my </em><a href="https://www.youtube.com/@CodartesienGames/"><strong><em>YouTube Channel</em></strong></a><em>.<br>→ </em><a href="https://www.codartesien.fr/games#"><strong><em>Take a look at my games</em></strong></a><em> and enjoy a bit of what each world has to offer.</em></p><p><em>Stay tuned for more, and feel free to leave any feedback or questions in the comments. Happy coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0720138000bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing @onready in C# with Source Generators for Better Performance]]></title>
            <link>https://medium.com/@romain.mouillard.fr/optimizing-onready-in-c-with-source-generators-for-better-performance-76e87600b30a?source=rss-700767780763------2</link>
            <guid isPermaLink="false">https://medium.com/p/76e87600b30a</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[source-generator]]></category>
            <category><![CDATA[godot]]></category>
            <category><![CDATA[gamedev]]></category>
            <dc:creator><![CDATA[Romain Mouillard]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 11:38:13 GMT</pubDate>
            <atom:updated>2025-03-13T16:43:10.633Z</atom:updated>
            <content:encoded><![CDATA[<p>In a <a href="https://medium.com/@romain.mouillard.fr/bringing-gdscripts-onready-magic-to-c-a-quick-custom-solution-5bae074ce799">previous article</a>, I shared a simple way to replicate GDScript’s @<em>onready</em> behavior in C# using a custom [SceneNode] attribute combined with Reflection. While this method works well for small to medium projects, it introduces a slight runtime performance overhead due to Reflection.</p><p>For games that instantiate many nodes or require optimized execution, a better approach is to use <strong>Source Generators</strong>. Unlike Reflection, Source Generators create the necessary code at <strong>build time</strong>, meaning there’s no performance impact at runtime.</p><p>This article explores how to implement a <strong>Source Generator for @onready in C#</strong>, allowing us to move from this:</p><pre>private Node2D _levelsContainerNode;<br><br>public override void _Ready()<br>{<br>  GD.Print(&quot;Starting game&quot;);<br><br>  _levelsContainerNode = GetNode&lt;Node2D&gt;(&quot;%Levels&quot;);<br><br>  // Other stuff<br>}</pre><p>…to this:</p><pre>[SceneNode(&quot;%Levels&quot;)]<br>private Node2D _levelsContainerNode;<br><br>public override void _Ready()<br>{<br>  GD.Print(&quot;Starting game&quot;);<br><br>  // Other stuff<br>}</pre><p>Let’s dive into the implementation and see how it works!</p><p>If you’re looking for the full code, you can find it in this <a href="https://github.com/codartesien/godot-source-generators-csharp/">GitHub repository</a>, ready to be used in your own game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXyZfOLBgWYr_BtAu8TjPw.png" /></figure><h3><strong>The Performance Cost of Reflection</strong></h3><p>In the previous article, we used the [SceneNode] attribute to resolve node references dynamically. This was handled by the SceneNodeResolver class, which:</p><ul><li>Uses Reflection to iterate over all fields marked with [SceneNode],</li><li>Reads the attribute’s path string (e.g., “%MyLevel” in [SceneNode(&quot;%MyLevel&quot;)],</li><li>Calls GetNode(&quot;%MyLevel&quot;) on the object, and</li><li>Assigns the retrieved node to the corresponding field.</li></ul><p>This resolution is executed at <strong>runtime</strong>, either manually in _Ready() via SceneNodeResolver.Resolve(this); or automatically using a GlobalResolver hook. However, since it relies on <strong>Reflection</strong>, it introduces a performance overhead — especially in large-scale projects where many nodes are instantiated.</p><h4><strong>Benchmarking Reflection vs. Source Generators</strong></h4><p>To quantify the performance impact, I ran some benchmarks on a class containing three fields. The results varied based on the number of classes to resolve, but in my case, I measured:</p><ul><li><strong>Reflection:</strong> ~0.018ms for a single node, scaling up to ~180ms for 10,000 nodes.</li><li><strong>Source Generators:</strong> ~0.000002ms per node, totaling just ~0.02ms for 10,000 nodes.</li></ul><p>The difference is significant. If you’re working on a prototype or a small game, sacrificing a few microseconds for cleaner syntax using Reflection is perfectly fine. However, for larger projects with frequent node instantiations or where performance is critical, <strong>Source Generators provide a far more efficient solution</strong>.</p><h3><strong>Optimizing Node Resolution with Source Generators</strong></h3><p>Source Generators allow us to <strong>automatically generate C# code at build time</strong>, eliminating runtime overhead. Instead of using Reflection, this approach directly assigns node references using GetNode(), ensuring optimal performance.</p><p>During compilation, the Source Generator scans all classes containing at least one [SceneNode] attribute. It then generates a <strong>partial class</strong>, adding a ResolveNodes() method that performs direct assignments via GetNode() from the Godot API.</p><p>For example, given this class:</p><pre>// MainMenu.cs<br><br>using Godot;<br>using Codartesien.SourceGenerators.SceneNodeResolver;<br><br>public partial class MainMenu : Control<br>{<br>    [SceneNode(&quot;%StartButton&quot;)]<br>    private Button _startButtonNode;<br><br>    public override void _Ready()<br>    {<br>        _startButtonNode.Text = &quot;Start&quot;;<br>    }<br>}</pre><p>… the Source Generator will produce the following partial class:</p><pre>// MainMenu_SceneNodeResolver.g.cs<br><br>using Godot;<br>using Codartesien.SourceGenerators.SceneNodeResolver;<br><br>public partial class MainMenu : ISceneNodeResolver<br>{<br>    public new void ResolveNodes()<br>    {<br>        this._startButtonNode = this.GetNode&lt;Label&gt;(&quot;%StartButton&quot;);<br>    }<br>}</pre><p>With this, you can call ResolveNodes() manually inside _Ready() or use the GlobalResolver pattern to automate the process — <strong>all with zero runtime cost!</strong></p><pre>// MainMenu.cs<br><br>using Godot;<br>using Codartesien.SourceGenerators.SceneNodeResolver;<br><br>public partial class MainMenu : Control<br>{<br>    [SceneNode(&quot;%StartButton&quot;)]<br>    private Button _startButtonNode;<br><br>    public override void _Ready()<br>    {<br>        ResolveNodes(); // Call to the generated method<br>        _startButtonNode.Text = &quot;Start&quot;;<br>    }<br>}</pre><h3><strong>Integrating Source Generators Into Your Project</strong></h3><p>Adding this Source Generator to your own project is simple. Clone <a href="https://github.com/codartesien/godot-source-generators-csharp/">this repository</a> and include a &lt;ProjectReference&gt; in your .csproj file:</p><pre>&lt;ItemGroup&gt;<br>    &lt;ProjectReference Include=&quot;&lt;path_to_repository_solution&gt;\Codartesien.SourceGenerators.csproj&quot; OutputItemType=&quot;Analyzer&quot; /&gt;<br>&lt;/ItemGroup&gt;</pre><p>At the next build, the necessary files will be generated automatically. By default, these files are stored in a temporary directory. If you want to inspect the generated code, you can configure the output directory by adding these lines to your .csproj file:</p><pre>&lt;ItemGroup&gt;<br>    &lt;!-- Will generated files in [project_dir]/.godot/mono/temp/obj/Generated --&gt;<br>    &lt;EmitCompilerGeneratedFiles&gt;true&lt;/EmitCompilerGeneratedFiles&gt;<br>    &lt;CompilerGeneratedFilesOutputPath&gt;$(BaseIntermediateOutputPath)Generated&lt;/CompilerGeneratedFilesOutputPath&gt;<br>&lt;/ItemGroup&gt;</pre><h3>(Bonus) Using the GlobalResolver</h3><p>In my <a href="https://medium.com/@romain.mouillard.fr/bringing-gdscripts-onready-magic-to-c-a-quick-custom-solution-5bae074ce799">previous article</a>, I introduced a GlobalResolver that automatically processes nodes as they are added to the scene tree. This eliminates the need to manually call _ResolveNodes() in the _Ready() method of each node.</p><p>Here’s an adapted version of the GlobalResolver for use with the SceneNode Source Generator:</p><pre>namespace MyGame.Core;<br><br>using Godot;<br><br>/// &lt;summary&gt;<br>/// Top-level auto-load node for resolving internal node references for all nodes added to the scene tree.<br>/// &lt;/summary&gt;<br>public partial class GlobalResolver : Node<br>{<br>    public override void _EnterTree()<br>    {<br>        // Listen for new nodes added to the scene tree<br>        GetTree().NodeAdded += OnNodeAdded;<br>    }<br><br>    private void OnNodeAdded(Node node)<br>    {<br>        // Resolve internal node references by resolving [SceneNode] attributes<br>        if (node is ISceneNodeResolver sceneNode) {<br>            sceneNode.ResolveNodes();<br>        }<br>    }<br>}</pre><h3><strong>Why Use Source Generators Instead of Reflection?</strong></h3><p>Switching from Reflection to Source Generators brings several key advantages:</p><p>✅ <strong>Performance Boost</strong> — Reflection introduces a runtime overhead, whereas Source Generators resolve nodes at <strong>compile time</strong>, making node assignment <strong>instantaneous</strong> at runtime.</p><p>✅ <strong>Scalability</strong> — In large projects with thousands of nodes, eliminating Reflection avoids unnecessary processing delays.</p><p>✅ <strong>Code Readability</strong> — The syntax remains identical to the Reflection-based approach, but with <strong>zero runtime cost</strong>.</p><p>✅ <strong>No Manual Calls Needed</strong> — Works seamlessly with GlobalResolver, ensuring automatic resolution without extra function calls.</p><p>If your game is relatively small, using Reflection might be acceptable. However, if performance is a concern, Source Generators are a <strong>superior long-term solution</strong>.</p><h3>Conclusion</h3><p>With this approach, we’ve successfully replaced Reflection-based node resolution with a <strong>high-performance, zero-runtime-cost solution</strong> using Source Generators. This method ensures that all [SceneNode]attributes are resolved efficiently at compile time, making it ideal for larger projects or games with frequent node instantiations.</p><p>If you try this approach or integrate it into your own game, feel free to share your thoughts and feedback! You can find the full implementation on <a href="https://github.com/codartesien/godot-source-generators-csharp/"><strong>GitHub</strong></a>.</p><p><em>Thanks for reading! 🎉</em></p><p><em>If you enjoyed this article, feel free to check out my other content:<br> → </em><strong><em>Showcases and updates on my games </em></strong><em>on my </em><a href="https://www.youtube.com/@CodartesienGames/"><strong><em>YouTube Channel</em></strong></a><em>.<br> → </em><a href="https://www.codartesien.fr/games#"><strong><em>Take a look at my games</em></strong></a><em> and enjoy a bit of what each world has to offer.</em></p><p><em>Stay tuned for more, and feel free to leave any feedback or questions in the comments. Happy coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76e87600b30a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lightweight Saving & Loading System in Godot 4 with C#: A Practical Guide]]></title>
            <link>https://medium.com/@romain.mouillard.fr/lightweight-saving-loading-system-in-godot-4-with-c-a-practical-guide-2cb6cbd2faa3?source=rss-700767780763------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cb6cbd2faa3</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[godot-engine]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[gamedev]]></category>
            <category><![CDATA[godot]]></category>
            <dc:creator><![CDATA[Romain Mouillard]]></dc:creator>
            <pubDate>Sun, 12 Jan 2025 08:21:58 GMT</pubDate>
            <atom:updated>2025-02-06T12:06:01.497Z</atom:updated>
            <content:encoded><![CDATA[<p>In the past few weeks, I’ve been working on a lightweight saving and loading system for my current game, <a href="https://www.codartesien.fr/games/the-librarian"><em>The Librarian</em></a>. Since the game itself is quite simple, I decided to keep the system straightforward, focusing on core elements: <strong>saving and loading using JSON</strong>, <strong>managing save slots</strong>, and p<strong>reserving save compatibility across updates</strong> (nobody likes losing their progress after an update!)</p><p>In this article, I’ll guide you through how I implemented this system using C# in Godot 4.3, focusing on clarity and flexibility. The complete code, including a working save/load menu, is available on my <a href="https://github.com/Wharenn/game-save-example-godot">GitHub Repository</a>. Whether you’re building a small project or just getting started with save systems, this tutorial will help you create a solid foundation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IFstrWIUVhlH2Fe2i92H8w.png" /></figure><h3><strong>Choosing JSON for Your Save Files: Pros and Cons</strong></h3><p>When deciding how to structure save files, several options are available, such as Godot Resources, JSON, and others. For a good overview, I recommend checking out <a href="https://www.youtube.com/watch?v=43BZsLZheA4">this excellent video by Godotneers</a>. Each format has its pro and cons, so it’s essential to <strong>choose the one that best fits your project’s needs</strong>.</p><p>I opted for JSON due to its human-readable nature and ease of manual editing, which felt intuitive given my background as a web developer. Since my game is relatively simple, I don’t mind the additional steps JSON requires when handling complex data types like Vector2 or Resource objects. If necessary, I plan to use custom JSON converters for those cases.</p><p>Whichever format you choose, the core implementation remains quite similar. Let’s dive into how to save and load data.</p><h3><strong>Implementing the Core Save &amp; Load System</strong></h3><p>To get started, we only need two classes:</p><ul><li>SaveGameManager : A singleton responsible for saving, loading, and managing save files.</li><li>SaveGameData : A data container used to store the information we want to save and to read the loaded data.</li></ul><h4><strong>Defining SaveGameData: The Content to Save</strong></h4><p>Let’s start with SaveGameData. This <strong>data object represents the content you want to save</strong> in the <strong>current save file format</strong>. When saving, the file will contain a serialized version of an instance of this class. However, there may be situations where you need to load a save created with a previous version of your game. This will be covered in a next article and primarily relies on the SaveVersion property.</p><pre>/// &lt;summary&gt;<br>/// Current save game data object.<br>/// &lt;/summary&gt;<br>public class SaveGameData<br>{<br>    public int SaveVersion { get; init; }<br><br>    public string SavedAt { get; init; } = string.Empty;<br>    <br>    public bool CharacterCreated { get; init; }<br><br>    public string CharacterName { get; init; } = &quot;Player&quot;;<br><br>    public float CharacterPositionX { get; init; }<br>    <br>    public float CharacterPositionY { get; init; }<br><br>    public string CharacterDirection { get; init; } = &quot;down&quot;;<br><br>    public SaveGameDataResource ToResource()<br>    {<br>        return new SaveGameDataResource {<br>            SavedAt = SavedAt,<br>            CharacterCreated = CharacterCreated,<br>            CharacterName = CharacterName,<br>            CharacterPosition = new Vector2(CharacterPositionX, CharacterPositionY),<br>            CharacterDirection = CharacterDirection,<br>        };<br>    }<br>}</pre><p>There are a couple of important points to highlight in this class:</p><ul><li><strong>Character Position Handling : <br></strong>The character’s position is stored as two separate properties (CharacterPositionX and CharacterPositionY) instead of a Vector2. This is a tradeoff required by the JSON format, which only supports primitive types. Complex types need to be manually converted.</li><li><strong>The </strong><strong>ToResource() Method: <br></strong>The ToResource() method converts a SaveGameData instance into a SaveGameDataResource, a class extending Godot’s Resource object. This conversion is necessary because the SaveGameManager emits signals containing the loaded data, and Godot signals can only pass primitive types, built-in Godot types, or objects inheriting from GodotObject. SaveGameData itself doesn’t extend Resource to keep serialization and deserialization simpler.</li></ul><p>This example provides a straightforward way to convert save data into a Resource object directly within the SaveGameData class. However, for more complex save structures, it would be cleaner to handle this conversion in dedicated converter classes to maintain better separation of concerns.</p><p>Here is what the Resource looks like :</p><pre>using Godot;<br><br>/// &lt;summary&gt;<br>/// Resource version of the save game data that will be propagated to the game systems through signals.<br>/// Godot signals do not support raw C# types, so we need to use resources to pass data around.<br>/// &lt;/summary&gt;<br>public partial class SaveGameDataResource : Resource<br>{<br>    public string SavedAt { get; set; } = string.Empty;<br><br>    public bool CharacterCreated { get; set; }<br>    <br>    public string CharacterName { get; set; }<br>    <br>    public Vector2 CharacterPosition { get; set; }<br>    <br>    public string CharacterDirection { get; set; }<br>}</pre><h4><strong>Implementing the SaveGameManager Class</strong></h4><p>The SaveGameManager class is a singleton registered as a global node in Godot. This setup allows you to access the save system from anywhere in the project (most commonly in menus) using the standard approach:</p><pre>SaveGameManager saveManager = GetNode&lt;SaveGameManager&gt;(&quot;/root/SaveGameManager&quot;);</pre><p>As expected, this class provides methods for saving and loading game data. In this basic implementation, the SaveGameData object is created directly within the SaveGameManager. However, for more complex projects, it would be better to separate this logic into dedicated classes to keep the code more modular.</p><pre>using System;<br>using System.Collections.Generic;<br>using System.Linq;<br>using System.Text.Json;<br>using System.Text.Json.Serialization;<br>using Godot;<br><br>/// &lt;summary&gt;<br>/// Manages the saving and loading of the game data.<br>/// &lt;/summary&gt;<br>public partial class SaveGameManager : Node<br>{<br>    private const int SAVE_VERSION = 1; // Increment this number when the save game format changes<br><br>    #region Signals<br>    [Signal]<br>    public delegate void SaveLoadedEventHandler(SaveGameDataResource saveGameData);<br>    #endregion<br><br>    /// &lt;summary&gt;<br>    /// Save the current game progression to the given save file.<br>    /// &lt;/summary&gt;<br>    public void Save(int identifier)<br>    {<br>        var json = JsonSerializer.Serialize(BuildSaveGameData(), GetJsonSerializerOptions());<br><br>        using var file = FileAccess.Open(GetSaveGameFilePath(identifier), FileAccess.ModeFlags.Write);<br>        file.StoreLine(json);<br>        file.Flush();<br><br>        GD.Print($&quot;Save game saved to {GetSaveGameFilePath(identifier)}&quot;);<br>    }<br>    <br>    /// &lt;summary&gt;<br>    /// Load the game progression from the given save file.<br>    /// The silent parameter is used to prevent the signal from being emitted.<br>    /// &lt;/summary&gt;<br>    public void Load(int identifier, bool silent = false)<br>    {<br>        if (!FileAccess.FileExists(GetSaveGameFilePath(identifier))) {<br>            return;<br>        }<br><br>        using var saveFile = FileAccess.Open(GetSaveGameFilePath(identifier), FileAccess.ModeFlags.Read);<br>        GD.Print($&quot;Loading save game from {GetSaveGameFilePath(identifier)}&quot;);<br><br>        var fileContent = saveFile.GetAsText();<br><br>        // Start by reading the version data to determine how to load the save game<br>        // for that, we use a light version class that only contains the version number<br>        var versionData = JsonSerializer.Deserialize&lt;MetadataSaveData&gt;(fileContent);<br>        GD.Print($&quot;Identified Save Version #{versionData.SaveVersion}&quot;);<br><br>        var loadedData = JsonSerializer.Deserialize&lt;SaveGameData&gt;(fileContent);<br>        if (loadedData == null) {<br>            GD.Print(&quot;Failed to load save game&quot;);<br>            return;<br>        }<br><br>        if (!silent) {<br>            EmitSignal(SignalName.SaveLoaded, LoadedSaveGameData);<br>        }<br>    }<br><br>    /// &lt;summary&gt;<br>    /// Create and return the save game data object to be saved in a file.<br>    /// &lt;/summary&gt;<br>    private SaveGameData BuildSaveGameData()<br>    { <br>        var player = GetTree().GetNodesInGroup(Player.PLAYER_GROUP).FirstOrDefault() as Player;<br>        <br>        return new SaveGameData {<br>            SaveVersion = SAVE_VERSION,<br>            SavedAt = DateTime.UtcNow.ToString(&quot;o&quot;),<br>            CharacterName = player?.CharacterName ?? CurrentSaveSlot.CharacterName,<br>            CharacterPositionX = player?.GlobalPosition.X ?? 0,<br>            CharacterPositionY = player?.GlobalPosition.Y ?? 0,<br>            CharacterDirection = player?.Direction ?? &quot;down&quot;<br>        };<br>    }<br><br>    private static JsonSerializerOptions GetJsonSerializerOptions()<br>    {<br>        var options = new JsonSerializerOptions {<br>            IncludeFields = true,<br>            PropertyNameCaseInsensitive = true,<br>            DefaultIgnoreCondition = JsonIgnoreCondition.Never,<br>            WriteIndented = true<br>        };<br><br>        return options;<br>    }<br><br>    private static string GetSaveGameFilePath(int identifier)<br>    {<br>        return $&quot;user://savegame_{identifier.ToString()}.save&quot;;<br>    }<br>}</pre><p>Here are a few important design choices in the SaveGameManager class:</p><ul><li><strong>Serialization Approach: <br></strong>The class uses the JSON library from the <strong>.NET Standard Library</strong> for serialization and deserialization. This was a design choice, but alternatives like Newtonsoft.Json.NET or Godot’s built-in JSON tools could also be considered.</li><li><strong>The </strong>silent<strong> Parameter: <br></strong>The Load() method includes a silent parameter that prevents the emission of the SaveLoaded signal. This is useful when you need to load a save without immediately modifying the current game state. For simpler games, updating the game state can often be handled by simply listening to this event.</li><li><strong>Data Construction:<br></strong>The BuildSaveGameData() method generates the SaveGameData object directly within the SaveGameManager. While this approach works well for smaller projects, it’s generally better to delegate this responsibility to a separate class in larger or more complex games.</li></ul><p>Once the SaveGameManager is registered as a global node in your Godot project, saving and loading become as simple as:</p><pre>var saveGameManager = GetNode&lt;SaveGameManager&gt;(&quot;/root/SaveGameManager&quot;);<br>saveGameManager.SaveLoaded += (SaveGameDataResource saveGameData) =&gt; {<br>  // This event handler is called when a save is loaded<br>  // it is a fine place to update game state with loaded content<br>  GD.Print($&quot;Character name in this save: {saveGameData.CharacterName}&quot;);<br>}<br><br>// Load the first savegame<br>saveGameManager.Load(1);<br><br>// Save game state on the first save<br>saveGameManager.Save(1);</pre><h3><strong>What’s Next?</strong></h3><p>With these two classes, you already have a basic yet functional save and load system capable of persisting game progress. In a future article, I’ll explore how to expand this system by adding <strong>save slots</strong> and implementing <strong>proper</strong> <strong>versioning support for forward compatibility</strong>.</p><p>On a side note, while implementing this system, I didn’t expect the UI for managing saves to take so much effort — it turns out handling save states visually requires careful attention to detail. Managing new saves, loading, saving, and continuing often involves multiple UI elements, and handling the state changes properly can be tricky. If you’re curious, you can check out a full working implementation of this system, including save menus and a small prototype game, on my <a href="https://github.com/Wharenn/game-save-example-godot">GitHub Repository</a>.</p><p>I hope this guide helps you set up a basic save system for your projects! If you try it out or adapt it further, feel free to share your feedback or improvements. Happy coding!</p><p><em>Thanks for reading! 🎉</em></p><p><em>If you enjoyed this article, feel free to check out my other content:<br> → </em><strong><em>Showcases and updates on my games </em></strong><em>on my </em><a href="https://www.youtube.com/@CodartesienGames/"><strong><em>YouTube Channel</em></strong></a><em>.<br> → </em><a href="https://www.codartesien.fr/games#"><strong><em>Take a look at my games</em></strong></a><em> and enjoy a bit of what each world has to offer.</em></p><p><em>Stay tuned for more, and feel free to leave any feedback or questions in the comments. Happy coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cb6cbd2faa3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bringing GDScript’s @onready to C#: A Clean and Simple Approach]]></title>
            <link>https://medium.com/@romain.mouillard.fr/bringing-gdscripts-onready-magic-to-c-a-quick-custom-solution-5bae074ce799?source=rss-700767780763------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bae074ce799</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[godot]]></category>
            <category><![CDATA[gamedev]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Romain Mouillard]]></dc:creator>
            <pubDate>Tue, 12 Nov 2024 19:49:33 GMT</pubDate>
            <atom:updated>2025-03-13T16:42:23.635Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bringing GDScript’s @onready Magic to C#: A Quick, Custom Solution</h3><p>When I first began exploring Godot about a year ago, I was <em>struck</em> by the power and ease of use in GDScript. After a few months, however, my background as a Software Engineer — and a former C# enthusiast — drew me back to C#. Although C# felt more familiar and enjoyable to me, I was surprised to find that <strong>it lacked an equivalent to GDScript’s </strong><strong>@onready annotation</strong>. This was something the community had been discussing for a while (for instance, <a href="https://github.com/godotengine/godot-proposals/issues/2425">here</a>), but no built-in solution existed.</p><p>Initially, I tried to manage without it. However, my <strong>_Ready() functions quickly became cluttered with repetitive GetNode calls</strong>, making the code harder to read and distracting from the core logic. I also felt it would be cleaner to have a single, organized declaration point for nodes in the scene, allowing both the path and variable to be in one place.</p><p>After a bit of research, I found that replicating @onready in C# was straightforward. With just a few lines of code, I was able to simplify my setup, moving from this:</p><pre>private Player _playerNode;<br>private Node2D _levelsContainerNode;<br>private LevelLoader _levelLoaderNode;<br>private TransitionManager _transitionManagerNode;<br><br>public override void _Ready()<br>{<br>  GD.Print(&quot;Starting game&quot;);<br><br>  _levelsContainerNode = GetNode&lt;Node2D&gt;(&quot;Levels&quot;);<br>  _levelLoaderNode = GetNode&lt;LevelLoader&gt;(&quot;LevelLoader&quot;);<br>  _transitionManagerNode = GetNode&lt;TransitionManager&gt;(&quot;TransitionManager&quot;);<br>  _playerNode = GetNode&lt;Player&gt;(&quot;%Player&quot;);<br><br>  // Other stuff<br>}</pre><p>…to this:</p><pre>[SceneNode(&quot;%Player&quot;)]<br>private Player _playerNode;<br><br>[SceneNode(&quot;Levels&quot;)]<br>private Node2D _levelsContainerNode;<br><br>[SceneNode(&quot;LevelLoader&quot;)]<br>private LevelLoader _levelLoaderNode;<br><br>[SceneNode(&quot;TransitionManager&quot;)]<br>private TransitionManager _transitionManagerNode;<br><br>public override void _Ready()<br>{<br>  GD.Print(&quot;Starting game&quot;);<br><br>  // Other stuff<br>}</pre><p>This approach brings us closer to the simplicity we see in GDScript:</p><pre>@onready var player_node: Player = %Player<br>@onready var _levels_container_node: Node2D = $Levels<br>@onready var _levels_loader_node: LevelLoader = $LevelsLoader<br>@onready var _transition_manager_node: TransitionManager = $TransitionManager<br><br>func _ready() -&gt; void:<br>  print(&quot;Starting game&quot;)<br><br>  # other stuff</pre><p>Here’s a quick look at how to set this up in C#.</p><p><strong><em>Disclaimer:</em></strong><em> there are a few existing </em><a href="https://github.com/The0ld/cs_onready_plugin"><em>plugins</em></a><em> that provide this functionality. However, using them means adopting their specific approach and relying on their ongoing maintenance.</em></p><p><strong>📢 Update: A More Performant Approach with Source Generators</strong></p><p>Since publishing this article, I’ve explored a more <strong>efficient alternative</strong> to using Reflection for @onready in C#. While Reflection is a quick and flexible solution, it introduces some performance overhead, especially in large-scale projects.</p><p>In my <strong>new article</strong>, I demonstrate how to use <strong>C# Source Generators</strong> to achieve the same behavior <strong>without any runtime cost</strong>. If you’re looking for an optimized approach, check it out here:</p><p>🔗 <a href="https://medium.com/@romain.mouillard.fr/optimizing-onready-in-c-with-source-generators-for-better-performance-76e87600b30a"><strong>Boosting @onready Performance with Source Generators</strong></a></p><p>Now, back to the original Reflection-based solution!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MC5GpcIqeF0MRici49LkJg.png" /></figure><h3>Creating a Custom Attribute</h3><p>To replicate this behavior in C#, we’ll create two classes:</p><ul><li>SceneNodeAttribute, which we’ll use to <strong>add our</strong> [SceneNode(&quot;...&quot;)] <strong>attribute</strong> across our classes.</li><li>SceneNodeResolver, which will <strong>handle resolving</strong> all [SceneNode(&quot;...&quot;)] references in the specified nodes..</li></ul><p>Of course, feel free to adapt the <em>SceneNode</em> naming convention to suit your own style. 😊</p><p>Let’s start by creating the SceneNodeAttribute class in a new file called SceneNodeAttribute.cs:</p><pre>namespace MyGame.Core;<br><br>using System;<br><br>[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]<br>public class SceneNodeAttribute : Attribute<br>{<br>    public string NodePath { get; }<br><br>    public SceneNodeAttribute(string nodePath)<br>    {<br>        NodePath = nodePath;<br>    }<br>}</pre><p>Next, we’ll create a new file called SceneNodeResolver.cs:</p><pre>namespace MyGame.Core;<br><br>using System;<br>using Godot;<br><br>public static class SceneNodeResolver<br>{<br>    public static void Resolve(Node target)<br>    {<br>        var fields = target.GetType().GetFields(System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);<br><br>        foreach (var field in fields) {<br>            if (Attribute.GetCustomAttribute(field, typeof(SceneNodeAttribute)) is SceneNodeAttribute attribute) {<br>                var nodePath = attribute.NodePath;<br>                var nodeType = field.FieldType;<br><br>                // Use GetNode to retrieve the node<br>                var node = target.GetNode(nodePath);<br><br>                // Assign the retrieved node to the corresponding field<br>                field.SetValue(target, node);<br>            }<br>        }<br>    }<br>}</pre><p>Note that <em>SceneNodeResolver</em> is a static class, which is convenient as it allows us to resolve node paths with a simple call like SceneNodeResolver.Resolver(myNode).</p><p><strong>And that’s it!</strong> You can now use <em>SceneNodeResolver</em> from anywhere in your project — most commonly in the <em>_Ready()</em> method of your nodes.</p><pre>[SceneNode(&quot;%Player&quot;)]<br>private Player _playerNode;<br><br>public override void _Ready()<br>{<br>  SceneNodeResolver.Resolve(this);<br>}</pre><p>However, this still requires an <em>extra</em> line of code, which can easily be forgotten. Fortunately, there’s a way to <strong>automate</strong> this process.</p><h3>Hook on the SceneTree.NodeAdded event</h3><p>To automatically call SceneNodeResolver.Resolve() on all nodes in the project, I found that registering an event handler for the SceneTree.NodeAdded event works effectively.</p><p>To do this, we’ll create a GlobalResolver class and register it as a <a href="https://docs.godotengine.org/en/stable/tutorials/scripting/singletons_autoload.html"><strong>Singleton</strong> <strong>autoload</strong></a> in the Godot project.</p><pre>namespace MyGame.Core;<br><br>using Godot;<br><br>/// &lt;summary&gt;<br>/// Top-level auto-load node for resolving internal node references for all nodes added to the scene tree.<br>/// &lt;/summary&gt;<br>public partial class GlobalResolver : Node<br>{<br>    public override void _EnterTree()<br>    {<br>        // Listen for new nodes added to the scene tree<br>        GetTree().NodeAdded += OnNodeAdded;<br>    }<br><br>    private void OnNodeAdded(Node node)<br>    {<br>        // Resolve internal node references by resolving [SceneNode] attributes<br>        SceneNodeResolver.Resolve(node);<br>    }<br>}</pre><p>With this class in your autoload, there’s no longer a need to manually call SceneNodeResolver.Resolve() . This brings us to a much cleaner development experience:</p><pre>[SceneNode(&quot;%Player&quot;)]<br>private Player _playerNode;<br><br>public override void _Ready()<br>{<br>  // Nothing.<br>}</pre><h3>Conclusion</h3><p>If you’re missing GDScript’s @onreadyannotation, you can recreate this functionality in C# with just a few lines of code. While this solution may not be perfect — it’s based on my limited experience with Godot — feedback is welcome, especially if you have alternative approaches.</p><p>Since writing this article, I’ve explored a more <strong>efficient approach using Source Generators</strong>, which eliminates the performance overhead introduced by Reflection. If you’re working on a larger project or need optimized performance, I highly recommend checking out my follow-up article:</p><p>🔗 <a href="https://medium.com/@romain.mouillard.fr/optimizing-onready-in-c-with-source-generators-for-better-performance-76e87600b30a"><strong>Boosting @onready Performance with Source Generators</strong></a></p><p>Personally, diving into this topic has helped me better understand the boundaries between Godot and C#, and has sparked new ideas on leveraging my software engineering skills to tackle more complex issues by combining C# capabilities with Godot’s unique APIs.</p><p><em>Thanks for reading! 🎉</em></p><p><em>If you enjoyed this article, feel free to check out my other content:<br> → </em><strong><em>Showcases and updates on my games </em></strong><em>on my </em><a href="https://www.youtube.com/@CodartesienGames/"><strong><em>YouTube Channel</em></strong></a><em>.<br> → </em><a href="https://www.codartesien.fr/games#"><strong><em>Take a look at my games</em></strong></a><em> and enjoy a bit of what each world has to offer.</em></p><p><em>Stay tuned for more, and feel free to leave any feedback or questions in the comments. Happy coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bae074ce799" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Announcing The Buzzing Crusade for Android]]></title>
            <link>https://medium.com/@romain.mouillard.fr/announcing-the-buzzing-crusade-for-android-1cef53253887?source=rss-700767780763------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cef53253887</guid>
            <category><![CDATA[godot]]></category>
            <category><![CDATA[indie-game]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[android-games]]></category>
            <dc:creator><![CDATA[Romain Mouillard]]></dc:creator>
            <pubDate>Fri, 26 Jan 2024 13:32:22 GMT</pubDate>
            <atom:updated>2024-11-15T16:57:55.013Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrs_bUqhfH64nmj9K3wMVA.png" /></figure><p>For the past few months, I’ve been devoting a portion of my time to developing <a href="https://www.sot-game.com/"><em>Seeds of Tomorrow</em></a>, a role-playing game set in a future where the environmental crisis has drastically reshaped the world. This project marks my first foray into game development, and I soon realized that it would be a lengthy endeavor.</p><p>During the year-end holidays, I took the opportunity to clear my mind and kick off 2024 with a small, technically engaging side project I’ve named <strong><em>The Buzzing Crusade</em></strong>.</p><p><em>The Buzzing Crusade</em> is a compact mobile arcade game made with Godot where players assist a bold young bee on an unexpected journey of discovery, navigating through diverse environments and encountering various insects. The narrative underscores the critical role of these pollinating bees in nature, the threats they face, and the importance of their conservation.</p><p>The game mechanics draw inspiration from several arcade classics, including Space Invaders. Players must steer the bee, helping it dodge obstacles in a consistently scrolling environment. The bee needs to sustain its stamina by collecting nectar from flowers and avoid letting it drop to zero. Additionally, the bee will face various hazards that it must either dodge or confront, such as hostile terrains, predatory birds, or hornets. As with <em>Seeds of Tomorrow</em>, I handcrafted all the game elements, except for a few menu components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*Yo6k1YWIaweiMN16Ymt0iw.gif" /><figcaption>Test preview</figcaption></figure><p>After a focused three weeks of development, <em>The Buzzing Crusade</em> is nearing completion and has entered the testing phase. All game mechanics are in place, and a first set of levels is ready to play.</p><p>Working on <em>The Buzzing Crusade</em> has been particularly enlightening. This compact project allowed me to quickly and practically tackle numerous challenges I hadn’t yet anticipated for <em>Seeds of Tomorrow</em>. I’ve gleaned substantial insights into managing game loops and progression, as well as handling sound, menus, settings, and save features. In the coming days, I plan to publish an article detailing as comprehensively as possible the mechanics involved in creating this small arcade game.</p><p><strong><em>The release on the Play Store is scheduled for around February 2024</em></strong><em>, based on the current feedback from the testing phase, and additional levels will be added regularly post-launch.</em></p><p><em>Thanks for reading! 🎉</em></p><p><em>If you enjoyed this article, feel free to check out my other content:<br>→ </em><strong><em>Showcases and updates on my games </em></strong><em>on my </em><a href="https://www.youtube.com/@CodartesienGames/"><strong><em>YouTube Channel</em></strong></a><em>.<br>→ </em><a href="https://www.codartesien.fr/games#"><strong><em>Take a look at my games</em></strong></a><em> and enjoy a bit of what each world has to offer.</em></p><p><em>Stay tuned for more, and feel free to leave any feedback or questions in the comments. Happy coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cef53253887" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seeds of Tomorrow: Game Dev Journal]]></title>
            <link>https://medium.com/@romain.mouillard.fr/game-dev-journal-1-f12a1a70348d?source=rss-700767780763------2</link>
            <guid isPermaLink="false">https://medium.com/p/f12a1a70348d</guid>
            <category><![CDATA[godot]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[game-dev-update]]></category>
            <category><![CDATA[indie-game]]></category>
            <dc:creator><![CDATA[Romain Mouillard]]></dc:creator>
            <pubDate>Fri, 08 Dec 2023 17:11:52 GMT</pubDate>
            <atom:updated>2024-11-15T16:59:27.150Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HkFi2kPraqK81MI0QJcWlw.png" /></figure><p>Last month marked an important step for “<a href="https://www.sot-game.com/"><em>Seeds of Tomorrow</em></a>,” with the establishment of technical foundations using Godot. This initial phase lays the necessary groundwork for future progress, aiming to make part of the prologue playable within one to two months. In parallel, November also saw the launch of the game’s website and the inauguration of its presence on various social networks.</p><p>Let’s review the big things with some insights and visuals!</p><h3>Game Development</h3><p><strong>2D Isometric Environment:</strong> I started with positioning decor elements in a 2D isometric environment, using hand-drawn scenery. The first task was setting up walls with collision management and depth positioning, which really brought a 3D depth to the flat 2D elements.</p><p><strong>First Trials of Light, Shadows, and Normals:</strong> Ambient lighting was a major focus, especially for the game’s initial indoor zone. My first tests with lighting and shadows, coupled with the use of normal maps and CanvasTextures in Godot, significantly enhanced the sense of volume in the decor elements</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*TeOkkHpgAQZt13vm" /><figcaption>Some lights, shadows and a normal map are all it takes to promote a flat hand-drawn shelve to 3D :D</figcaption></figure><p><strong>Visibility Behind Walls:</strong> In the fixed camera isometric environment, hiding areas behind walls was a challenge. I experimented with an X-ray effect to maintain visibility around the character when he his obscured by a wall.</p><figure><img alt="Nothing will hide behind these walls!" src="https://cdn-images-1.medium.com/max/480/0*5DQFdDJqOIBew9Xz" /><figcaption>Nothing will hide behind these walls!</figcaption></figure><p><strong>Interactions with Decor Elements:</strong> I developed a flexible interaction system. This involved creating predefined interaction types like displaying messages, interacting with containers, and picking up items, which I then applied to various decor elements across the game world. This approach centralized the behavior of each interaction type while allowing for diverse applications.</p><p><strong>Inventory Management:</strong> The inventory system is now fully operational. It includes managing items, organizing them via drag-and-drop, as well as item pickup, drop-off, and container interactions. This system will play a crucial role in the first quest, where players need to find and use specific items.</p><p><strong>Translation Management:</strong> To preempt the challenges of late translation, the game is already bilingual, supporting both English and French, with an in-game language switch option. This is made possible by using <a href="https://en.wikipedia.org/wiki/GNU_gettext">GetText</a>, which Godot implements.</p><p><strong>Code Structure:</strong> I spent significant time understanding the best way to structure a project in Godot, focusing on signal management and communication strategies between components. The aim was to establish a solid framework for communication between the game world elements and the user interfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*u9Z7dMozbUQCpn9-" /><figcaption>Trying to stay organized before creating a monster or hard-wired nodes and scripts… 😅</figcaption></figure><p><strong>Failure to Introduce a GIF Recorder:</strong> I attempted to integrate a GIF recorder in the game using <a href="https://github.com/you-win/godot-gif-getter">a Godot addon</a>. Unfortunately, the addon was compatible only with Godot 3, and adapting it to Godot 4 turned out to be quite problematic. Despite a full day’s effort, the feature was too buggy. I decided to revert to using external tools like Quicktime for video and Gifski for GIF conversion. While there’s no in-game GIF capture, the process taught me a lot about managing extensions in Godot!</p><h3>Design and Visual Art</h3><p><strong>UI and Visual Themes:</strong> I’ve put together a first draft of the game’s graphical interface, prioritizing functionality over aesthetics for now. This includes setting up the main interfaces like inventory and interaction hints. It’s a bit basic and lacks flair at the moment, but I plan to add more charm and character to it as we go along.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*i7fhZ3hyEo7rVZ8A" /><figcaption>The first item of the game is of course a crowbar.</figcaption></figure><p><strong>Keyboard, Mouse, and Controller Management:</strong> I’ve been working on making the UI friendly for both keyboard/mouse and controller inputs. The system now shows shortcut keys on buttons, a feature that will be especially handy when we introduce custom control mapping next year. It’s all about making the game more accessible and enjoyable, regardless of the player’s preferred control method.</p><p><strong>Character Animation:</strong> Development has been my main focus, but I’ve also made strides in design, particularly with character animation. I’ve created the first set of walking and idle animations for male characters. The strategy here is to start with a basic body animation in various skin colors and then layer on different clothes and accessories to give each character a unique look. For efficiency, I’ve only animated the four cardinal directions for now. Diagonal animations might be something I’ll explore later, but they’re not on the immediate horizon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/255/0*c2JY-WtpgXkq-Ws6" /><figcaption>You’ll get clothes soon little boy</figcaption></figure><h3>Support and Social Networks</h3><p>November was bustling with communication activities. I launched the <a href="https://www.sot-game.com/">Seeds of Tomorrow website</a> and set up our presence on social media platforms.</p><p>Opening these channels was a big deal for the project. It brought more structure to ideas that were previously quite scattered and diverse. The community around the game is just starting to grow. It’s small right now, but I’m really looking forward to seeing it expand and become more vibrant as we continue developing the game.</p><h3>Next Steps</h3><p>Looking towards the final weeks of the year, I’m laser-focused on bringing the “Seeds of Tomorrow” prologue to life in a playable demo. Coming up next, I’ll dive deeper into developing the design and atmosphere of the starting area. I’m also drafting a quest system and shaping interactions with NPCs, aiming to add more depth and realism to the game.</p><p>These are crucial steps to ensure a rich, captivating gaming experience, and I can’t wait to unveil these developments to you!</p><p><em>Thanks for reading! 🎉</em></p><p><em>If you enjoyed this article, feel free to check out my other content:<br>→ </em><strong><em>Showcases and updates on my games </em></strong><em>on my </em><a href="https://www.youtube.com/@CodartesienGames/"><strong><em>YouTube Channel</em></strong></a><em>.<br>→ </em><a href="https://www.codartesien.fr/games#"><strong><em>Take a look at my games</em></strong></a><em> and enjoy a bit of what each world has to offer.</em></p><p><em>Stay tuned for more, and feel free to leave any feedback or questions in the comments. Happy coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f12a1a70348d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Choosing Godot Engine: A Thoughtful Decision]]></title>
            <link>https://medium.com/@romain.mouillard.fr/choosing-godot-engine-a-thoughtful-decision-beefc2be32b3?source=rss-700767780763------2</link>
            <guid isPermaLink="false">https://medium.com/p/beefc2be32b3</guid>
            <category><![CDATA[rpg-game]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[indie-game]]></category>
            <category><![CDATA[game-design]]></category>
            <category><![CDATA[godot]]></category>
            <dc:creator><![CDATA[Romain Mouillard]]></dc:creator>
            <pubDate>Tue, 05 Dec 2023 16:50:24 GMT</pubDate>
            <atom:updated>2024-11-15T16:58:24.342Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*E3iHTLYLNdDZWLwd7cXQ3A.png" /></figure><h3><strong>An Early Journey From Unity to Godot</strong></h3><p>Two years ago, I started embarking on this exciting journey of game development. It wasn’t a straightforward path; I dived into various resources, primarily online courses on YouTube and gamedev.tv, which was one among many that guided my early steps. This initial exploratory phase laid the foundation for my understanding and skills in game development. <a href="https://unity.com/">Unity</a> was my first choice, driven by its extensive features, resources, and community, as well as my affinity for coding in C#. The use of C# particularly resonated with me, fostering a strong sense of control over my projects.</p><p>However, last summer, a pivotal conversation with Loïc, one of my colleagues at the time who was aware of my game development project, shed new light on my path. He brought to my attention Unity’s recent announcement on future pricing models, which at the time was causing a stir among many indie game development studios. As I was in the early stages of developing “Seeds of Tomorrow,” this news sparked a few days of reflection and reevaluation. It wasn’t just about technical preferences; it was also about aligning with the core values of my project, notably transparency and trust.</p><p>In-depth research into Unity’s methodologies and future direction highlighted a misalignment with what I envisioned for “Seeds of Tomorrow.” Let’s be clear, I don’t believe my choice as a solo, beginner game developer will directly impact Unity, but I was aiming for consistency and avoiding being trapped by corporate strategies driven by profit. The world has enough of that, and it’s one of the factors exacerbating environmental pressure. This realization was enough to push me towards switching game engines before my project became too entrenched. It led me to explore other choices, eventually drawing me, like many others during that period, to the doorstep of <a href="https://godotengine.org/">Godot</a>, an open-source game engine. The release of Godot’s major new version, Godot 4, in early 2023 was timely. However, this transition was not without its challenges. Godot 4 introduced significant changes in its APIs, and navigating these changes is a complex process. Although the official documentation appears up to date, most existing resources, including YouTube videos and AI coding assistants, still predominantly deal with the older Godot 3 approach, making the learning process more challenging. For instance, the overhaul of Tilemaps in Godot, a key graphical element for the game design of “Seeds of Tomorrow,” is making the initial stages more demanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*zxgiwknrRxVEPiHQqpexpA.png" /></figure><h3>Discovering Godot</h3><p>Despite the initial challenges, I appreciate Godot’s simplicity and streamlined interface. It presents a different philosophy compared to Unity, which seems more focused on ease of use and accessibility. The engine, though perceived as having fewer features than Unity, aligns well with the technical requirements of “Seeds of Tomorrow.” The game, envisioned as a 2D RPG with a focus on storytelling and immersive gameplay over complex effects, finds a suitable platform in Godot.</p><p>As I delve deeper into Godot’s ecosystem, I notice that while resources are less abundant compared to Unity, they tend to be of higher quality. The available tutorials, videos, and documentation offer in-depth insights into topics, providing clear and concise explanations that are invaluable to me as I am navigating this new environment. This aspect of quality over quantity in learning resources is a significant factor in my comfort with Godot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*sWGBQBNS49OFq0Atm3DGgg.png" /></figure><p>Regarding programming languages, Godot’s support for C# initially caught my eye. However, I ultimately gravitate towards GDScript for its streamlined syntax and better integration within the Godot ecosystem. It makes me more efficient by allowing me to focus more on the creative aspects of game development rather than wrestling with technical complexities.</p><p>The learning curve with Godot 4 is demanding, especially due to the changes in the engine’s APIs and the current lack of extensive resources tailored to this latest version. However, this challenge also opens up opportunities for deeper learning and understanding. I find myself delving into community discussions, engine pull requests, and occasionally experimenting to find solutions to what I imagine to be basic requirements. This undoubtedly contributes to my growth as a game developer! I consider this process of exploration and problem-solving an integral part of my journey with Godot, which also shapes my approach to developing “Seeds of Tomorrow.”</p><h3>Wrapping up</h3><p>The decision to switch to Godot for developing “Seeds of Tomorrow” was indeed multifaceted. This choice required careful consideration of my values, the game’s technical needs, and the availability and quality of learning resources. Godot’s commitment to openness and its community-driven development approach align well with the spirit of the game.</p><p>My journey with Godot is an ongoing and evolving experience. I’m excited to share regular updates on this adventure through this Patreon. These posts will provide insights into the challenges, successes, and learnings I encounter as I continue to explore the capabilities of Godot and how it shapes both the game and my growth as a game developer.</p><p><em>Thanks for reading! 🎉</em></p><p><em>If you enjoyed this article, feel free to check out my other content:<br>→ </em><strong><em>Showcases and updates on my games </em></strong><em>on my </em><a href="https://www.youtube.com/@CodartesienGames/"><strong><em>YouTube Channel</em></strong></a><em>.<br>→ </em><a href="https://www.codartesien.fr/games#"><strong><em>Take a look at my games</em></strong></a><em> and enjoy a bit of what each world has to offer.</em></p><p><em>Stay tuned for more, and feel free to leave any feedback or questions in the comments. Happy coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=beefc2be32b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kickstarting Mobile Testing: A Journey with Appium and TypeScript]]></title>
            <link>https://medium.diffuse.ly/kickstarting-mobile-testing-a-journey-with-appium-and-typescript-89b62d311069?source=rss-700767780763------2</link>
            <guid isPermaLink="false">https://medium.com/p/89b62d311069</guid>
            <category><![CDATA[appium]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[mobile-test-automation]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Romain Mouillard]]></dc:creator>
            <pubDate>Fri, 13 Oct 2023 08:46:46 GMT</pubDate>
            <atom:updated>2023-10-13T09:48:42.098Z</atom:updated>
            <content:encoded><![CDATA[<p>Ensuring the quality of mobile applications is crucial for maintaining trust and user satisfaction. At Meero, the mobile applications used by our customers represent one of the main channels for media acquisition. They provide assistance with shooting and set the parameters for media enhancement algorithms. A few months after the launch of our applications, we decided to start automating our quality tests, which until then had been carried out manually by our QA team.</p><p>This article outlines how we bootstrapped the automated test stack for our native iOS and Android apps, with Appium and TypeScript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FH44NsNDce0nkL20mjm5Qw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/fr/@frostroomhead?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Rodion Kutsaiev</a> on <a href="https://unsplash.com/fr/photos/0VGG7cqTwCo?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><h3>Uniting Appium and TypeScript: A Solid Foundation</h3><p>When it comes to adding new tools to our technical stack, we pay close attention to the risk-benefit ratio that introducing a new language presents. We aim to prevent teams from evolving in technological silos and to keep the range of technologies accessible and coherent.</p><p><strong>Appium</strong> emerged as a natural choice for the foundation of our test stack. The ability to test on both iOS and Android with the same code, coupled with an active community, provided a solid and reassuring framework to start with. Appium boasts a nice flexibility in terms of language, notably <strong>TypeScript</strong>, which we already use for all our web applications, as well as for their automated tests with Playwright.</p><p>Initially, our approach aims to enable the execution of tests on iOS and Android simulators directly from the engineers’ or testers’ machines. Under these conditions, it’s important to note that tests on iOS can only be executed from a MacOS ecosystem. Transitioning to continuous integration is seen as a next step, and solves this problem as most mobile-adapted CIs offer compatible ecosystems.</p><h3>Setting Up the Test Stack</h3><h4>Installing Appium</h4><p>Before creating the repository that will contain the tests and automation, it’s necessary to install Appium along with two drivers, <strong>uiautomator2</strong> for Android, and <strong>xcuitest</strong> for iOS.</p><pre>npm install -g appium &amp;&amp; \ <br>appium driver install uiautomator2 &amp;&amp; \<br>appium driver install xcuitest</pre><h4>Setting Up the Android Simulator</h4><p>Android dependencies can be easily installed by following <a href="https://appium.io/docs/en/2.0/quickstart/uiauto2-driver/">the UiAutomator2 install instructions</a>. The process goes through the installation of Android Studio, and the definition of some key environment variables like <strong>ANDROID_HOME</strong> and <strong>JAVA_HOME</strong>.</p><p>These variables can be defined in the <strong>.bashrc</strong> or <strong>.zshrc</strong> file to make them always available.</p><pre># Appium variables<br>export ANDROID_HOME=&quot;/Users/{username}/Library/Android/sdk&quot;<br>export JAVA_HOME=&quot;/Library/Java/jdk/jdk-20.0.1.jdk/Contents/Home&quot;<br><br># Add android platform tools and emulators to your path<br>export PATH=&quot;$ANDROID_HOME/platform-tools:$PATH&quot;<br>export PATH=&quot;$ANDROID_HOME/emulator:$PATH&quot;<br>export PATH=&quot;$ANDROID_HOME/tools:$PATH&quot;</pre><p>Before proceeding with the installation, it’s a good time to ensure everything is set up correctly (this might require a terminal reload):</p><pre>echo $ANDROID_HOME<br># /Users/{username}/Library/Android/sdk<br><br>echo $JAVA_HOME<br># /Library/Java/jdk/jdk-20.0.1.jdk/Contents/Home<br><br>adb --version<br># Android Debug Bridge version 1.0.41<br># Version 33.0.2-8557947<br># Installed as /Users/{username}/Library/Android/sdk/platform-tools/adb</pre><p>In this setup, tests can be executed on a Virtual Device emulated on the computer or on a physical Android device connected through USB or WiFi. We’ll only focus on the emulated solution here.</p><p>The Android emulator can be <a href="https://developer.android.com/studio/run/managing-avds">created through Android Studio</a>. Afterward, active devices can be listed with the <strong>adb</strong> command:</p><pre>adb devices<br># List of devices attached<br># adb-09121JEC203373-40xP84._adb-tls-connect._tcp.        device</pre><p>On MacOS, the Android virtual devices are stored in ~/.android/avd, so simply listing the directory will reveal their identifiers:</p><pre>ls ~/.android/avd<br>Nexus_4_API_26.avd            Pixel_3a_API_32_arm64-v8a.avd<br>Nexus_4_API_26.ini            Pixel_3a_API_32_arm64-v8a.ini<br>Nexus_5_API_28.avd            Pixel_6_Pro_API_32.avd<br>Nexus_5_API_28.ini            Pixel_6_Pro_API_32.ini</pre><p>The device can then be booted with the emulator command followed by the device identifier:</p><pre>emulator @Pixel_6_Pro_API_32</pre><h4>Setting Up the iOS Simulator</h4><p>For the iOS part, Xcode is of course a requirement. Command Line Tools are also needed and can be installed with:</p><pre>xcode-select --install</pre><p>iOS simulated devices can be fully managed through the command line. However, for device creation, it might be easier to <a href="https://developer.apple.com/documentation/xcode/running-your-app-in-simulator-or-on-a-device#Configure-the-list-of-simulated-devices">use Xcode’s embedded tools</a> to set things up and download the required SDK and dependencies.</p><p>Existing simulated devices can be listed through the command line. Take note of the name and UUID of each device, as they will be useful to boot the device and target Appium tests:</p><pre>xcrun simctl list devices<br># == Devices ==<br>#-- iOS 16.4 --<br>#    iPhone 13 Pro Max (E41DC199-2A4B-4611-B61F-9BA71F9DE450) (Shutdown)<br>#    iPhone SE (3rd generation) (FFD1F833-675B-41FE-BA3C-023710D5E4B8) (Shutdown)<br>#    iPhone 14 (16E5446E-005C-4211-AC0F-BCB3BCCCBFE5) (Shutdown)<br>#    iPhone 14 Plus (2200B094-6D55-4579-A240-3814A82AC310) (Shutdown)</pre><p>Note that if the above command results in an error like “<em>xcrun: error: unable to find utility “xcdevice”, not a developer tool or in PATH</em>”, you can fix it with:</p><pre>sudo xcode-select -s /Applications/Xcode.app/Contents/Developer</pre><p>Devices can be started using the simctl command:</p><pre>xcrun simctl boot &lt;DEVICE_UUID&gt;</pre><p>By default, the device will be booted in headless mode. The simulator can be displayed on the screen by opening the Simulator application on your Mac, or by launching it using the CLI:</p><pre>open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app</pre><h3>Setting Up the Repository and Writing Connectivity Tests</h3><p>After this lengthy phase of setting up dependencies, it’s time to move on to the code!</p><p>The code dependencies include, of course, TypeScript and webdriverio. We selected mocha as the framework for writing tests, but it works just as well with Jest.</p><pre>npm init<br>npm install -S webdriverio typescript ts-node mocha @types/mocha @types/webdriverio @types/node</pre><p>The initialization of TypeScript is quite standard:</p><pre>npx tsc --init --allowJs --noEmit --allowImportingTsExtensions</pre><p>To slightly abstract the initialization of the driver and tests, we create an App class that will be called by our tests:</p><pre>// src/app.ts<br><br>import { remote, RemoteOptions } from &#39;webdriverio&#39;;<br><br>let appiumPort = 4723;<br>const envAppiumPort = process.env.APPIUM_PORT;<br>if (envAppiumPort != null) {<br>  appiumPort = parseInt(envAppiumPort, 10);<br>}<br><br>const appiumOptions: RemoteOptions = {<br>  hostname: process.env.APPIUM_HOST ?? &#39;127.0.0.1&#39;,<br>  port: appiumPort,<br>  logLevel: &#39;info&#39;,<br>  capabilities: {},<br>};<br><br>class App {<br>  private driver: WebdriverIO.Browser | undefined;<br><br>  async init(capabilities: any) {<br>    appiumOptions.capabilities = capabilities;<br><br>    this.driver = await remote(appiumOptions);<br>  }<br><br>  async quit() {<br>    if (this.driver == null) {<br>      return;<br>    }<br><br>    await this.driver.pause(1000);<br>    await this.driver.deleteSession();<br>  }<br><br>  async findElement(selector: string) {<br>    if (this.driver == null) {<br>      throw new Error(&#39;Driver is not initialized&#39;);<br>    }<br><br>    return await this.driver.$(selector);<br>  }<br>}<br><br>export { App };</pre><p>It’s also advisable to extend the timeout of mocha:</p><pre>// .mocharc.js<br>module.exports = {<br>    timeout: 20000  // define a 20 seconds timeout for all tests<br>};</pre><p>Before diving into testing our own applications, we decided to create a “healthcheck” test for each platform that goes through the device settings. In addition to laying some groundwork, these tests ensure the device’s connectivity with Appium. Engineers can also keep these tests for troubleshooting potential issues down the line.</p><h4><strong>Android Connectivity Tests</strong></h4><p>For Android, the test consists of navigating through the Settings and verifying the presence of the battery fill bar. The test is placed in ./src/healthcheckAndroid.test.ts:</p><pre>import { App } from &#39;./app&#39;;<br><br>const androidCapabilities = {<br>  platformName: &#39;Android&#39;,<br>  &#39;appium:automationName&#39;: &#39;UiAutomator2&#39;,<br>  &#39;appium:deviceName&#39;: &#39;Android&#39;,<br>  &#39;appium:appPackage&#39;: &#39;com.android.settings&#39;,<br>  &#39;appium:appActivity&#39;: &#39;.Settings&#39;,<br>  &#39;appium:locale&#39;: &#39;US&#39;,<br>  &#39;appium:language&#39;: &#39;en&#39;,<br>};<br><br>describe(&#39;Healthcheck Android Appium connection&#39;, function () {<br>  let app: App;<br><br>  before(async () =&gt; {<br>    app = new App();<br>    await app.init(androidCapabilities);<br>  });<br><br>  after(async () =&gt; {<br>    await app.quit();<br>  });<br><br>  it(&#39;checks battery level on Settings App&#39;, async () =&gt; {<br>    const imageButton = await app.findElement(&#39;android.widget.ImageButton&#39;);<br>    await imageButton.click();<br>    const editText = await app.findElement(&#39;android=new UiSelector().className(android.widget.EditText)&#39;);<br>    await editText.click();<br>    await editText.setValue(&#39;bat&#39;);<br>    const linearLayout = await app.findElement(<br>      &#39;/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout[2]/android.widget.ScrollView/android.widget.LinearLayout/android.widget.ScrollView/android.widget.LinearLayout/android.widget.FrameLayout/android.support.v7.widget.RecyclerView/android.widget.LinearLayout[3]/android.widget.LinearLayout&#39;<br>    );<br>    await linearLayout.click();<br>    const progressBar = await app.findElement(&#39;android=new UiSelector().className(android.widget.ProgressBar)&#39;);<br>    await progressBar.isDisplayed();<br>  });<br>});</pre><p>In this test, several points can be noted:</p><ul><li>The application to be tested on the device is targeted using Appium’s <strong>appPackage</strong> and <strong>appActivity</strong> capabilities.</li><li>The <strong>locale</strong> and <strong>language</strong> of the device are forced to ensure that tests based on potentially translated text remain consistent.</li><li>Different elements of the interface are targeted with <strong>technical selectors</strong> based on the element type or hierarchy. These selectors are complex for engineers to interpret and can easily break. While it’s not very crucial for this connectivity test, for the actual tests of our applications, a preference will be given to dedicated unique identifiers, placed on each significant element within the app code. Selectors can be easily determined using <a href="https://github.com/appium/appium-inspector">Appium Inspector</a>.</li><li>In this case, the test is designed to check the battery on an Android 12 without an overlay.</li></ul><p>Now it’s time to boot the device, as indicated earlier, and run our first test.</p><p>It’s necessary to launch Appium and keep it running in the background throughout the test sessions. Appium prints the logs of different operations performed in the tests as well as any errors encountered.</p><pre>npx appium</pre><p>The test can then be launched:</p><pre>npx mocha -r ts-node/register &#39;src/healthcheckAndroid.test.ts&#39;</pre><p>And here’s the result!</p><figure><img alt="Healthcheck test run with Appium on Android 12 virtual device." src="https://cdn-images-1.medium.com/max/296/1*T5A_esS6NdPaDZVHO85QnA.gif" /><figcaption>Healthcheck test run with Appium on Android 12 virtual device.</figcaption></figure><h4><strong>iOS Connectivity Tests</strong></h4><p>For an iOS device, the test consists of navigating through the Settings and verifying the iOS version number. The test is placed in ./src/healthcheckiOS.test.ts:</p><pre>import { App } from &#39;./app&#39;;<br><br>const iOSVersion = &#39;16.4&#39;;<br><br>const capabilities = {<br>  platformName: &#39;iOS&#39;,<br>  &#39;appium:platformVersion&#39;: iOSVersion,<br>  &#39;appium:deviceName&#39;: &#39;iPhone 13 Pro Max&#39;,<br>  &#39;appium:automationName&#39;: &#39;XCUITest&#39;,<br>  &#39;appium:app&#39;: &#39;com.apple.Preferences&#39;,<br>  &#39;appium:locale&#39;: &#39;US&#39;,<br>  &#39;appium:language&#39;: &#39;en&#39;,<br>};<br><br>describe(&#39;Healthcheck iOS Appium connection&#39;, function () {<br>  let app: App;<br><br>  before(async () =&gt; {<br>    app = new App();<br>    await app.init(capabilities);<br>  });<br><br>  after(async () =&gt; {<br>    await app.quit();<br>  });<br><br>  it(&#39;checks iOS version number on Settings App&#39;, async () =&gt; {<br>    // Go the the &quot;General&quot; section<br>    const generalElement = await app.findElement(&#39;//XCUIElementTypeCell[@name=&quot;General&quot;]&#39;);<br>    await generalElement.click();<br><br>    // Go the the &quot;About&quot; section<br>    const aboutElement = await app.findElement(&#39;//XCUIElementTypeCell[@name=&quot;About&quot;]&#39;);<br>    await aboutElement.click();<br><br>    // Go the the &quot;iOS Version&quot; section<br>    const versionElement = await app.findElement(&#39;//XCUIElementTypeCell[@name=&quot;iOS Version&quot;]&#39;);<br>    await versionElement.click();<br><br>    // Check the version is the on expected<br>    const iosVersionElement = await app.findElement(`//XCUIElementTypeButton[contains(@name, &quot;iOS ${iOSVersion}&quot;)]`);<br>    const isDisplayed = await iosVersionElement.isDisplayed();<br><br>    if (!isDisplayed) {<br>      throw new Error(`Could not find iOS version label ${iOSVersion} on the device`);<br>    }<br>  })<br>});</pre><p>In this test, several points can be noted:</p><ul><li>It’s necessary to specify the name (“deviceName”) and the iOS version (“platformVersion”) of the device in the capabilities.</li><li>The application to be tested on the device is targeted using the <strong>app</strong> capability.</li><li>As with Android, the <strong>locale</strong> and <strong>language</strong> of the device are forced to ensure that tests based on potentially translated text remain consistent.</li><li>In this case, the test is designed to check the version number on an iPhone 13 Pro Max running iOS 16.4.</li></ul><p>As with Android, the device needs to be booted and Appium should be running in the background to execute the tests.</p><pre>npx appium</pre><p>The test can then be launched:</p><pre>npx mocha -r ts-node/register &#39;src/healthcheckiOS.test.ts&#39;</pre><p>If the test reports connection errors, it may be necessary to manually start the WebDriverAgent application installed on the device, and accept the network connection permissions.</p><p>And here’s the result on iOS!</p><figure><img alt="Healthcheck test run on an iPhone 13 Max Pro / iOS 16.4 simulator." src="https://cdn-images-1.medium.com/max/296/1*lN5A1-bhPXCYlKSqsKry4g.gif" /><figcaption>Healthcheck test run with Appium on an iPhone 13 Max Pro / iOS 16.4 simulator.</figcaption></figure><h3>Conclusion</h3><p>Through this article, the aim was to share the setup of an initial automated test structure for our mobile applications with Appium and TypeScript. The process has paved the way, from the installation of virtual environments to the execution of a first healthcheck test on iOS and Android.</p><p>The next step will involve writing the application-specific tests and structuring the code to factorize it between iOS and Android. Once this stage is completed, integration into a CI pipeline will be explored to further automate the validation process. These steps will be discussed in future articles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89b62d311069" width="1" height="1" alt=""><hr><p><a href="https://medium.diffuse.ly/kickstarting-mobile-testing-a-journey-with-appium-and-typescript-89b62d311069">Kickstarting Mobile Testing: A Journey with Appium and TypeScript</a> was originally published in <a href="https://medium.diffuse.ly/">Diffusely</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fostering a Culture of Writing: How We Transformed Our Company’s Communication Landscape]]></title>
            <link>https://medium.diffuse.ly/fostering-a-culture-of-writing-how-we-transformed-our-companys-communication-landscape-fdea91bc5441?source=rss-700767780763------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdea91bc5441</guid>
            <category><![CDATA[meetings]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[documentation]]></category>
            <dc:creator><![CDATA[Romain Mouillard]]></dc:creator>
            <pubDate>Fri, 15 Sep 2023 15:09:33 GMT</pubDate>
            <atom:updated>2023-09-21T12:09:53.929Z</atom:updated>
            <content:encoded><![CDATA[<p>In the bustling world of startups, where everything must move quickly, the act of writing, taking notes, and documenting can often be overlooked. Meetings, often frequent and with a packed agenda, prove to be inefficient, and documentation, when it exists, can quickly get lost in a sea of never-read notes. When we became aware of the negative impact of these practices on our efficiency, the desire to change became imperative.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yoOTFVReySYBPpYgIbf1qg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@mbaumi?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Mika Baumeister</a> on <a href="https://unsplash.com/photos/LaqL8nxiacc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Navigating the chaotic world of startups is no small feat. Priorities are constantly changing and opportunities are popping up from all directions. In this context where oral culture predominates, it may seem counterproductive to devote time to noting and structuring information that will likely be obsolete in a few months. However, recording the state of knowledge at a specific moment, noting what decisions were made and why, are excellent ways to avoid repeating the same mistakes and to prevent the loss of knowledge associated with team turnover. Writing also proves to be a formidable vector to guarantee access to the same level of information for everyone, regardless of location and the pace of each team member. This journey towards writing has taught us a lot, and we wish to share in this article our approach and what we have found useful.</p><h3>Our Communication was Suffering</h3><p>Before diving deep into the main topic, here are the primary symptoms that acted as a catalyst for us to take action.</p><h4>Inefficient Meetings</h4><p>Meetings were often poorly prepared and without a clear purpose, leaving us with few concrete results. They consumed time and energy without always providing added value.</p><h4>Unloved Documentation</h4><p>Our company documentation, built incrementally over three years, had become outdated and inconsistent. Many people who had contributed to its writing or structuring had left, leaving content without a clear context.</p><h4>Communication Silos</h4><p>Communication silos existed within the different teams, impeding decision-making through the alignment difficulties they caused.</p><h3>How We Transformed Our Approach</h3><h4>Embedding the Writing Mindset in our Working Methods</h4><p>Putting writing at the heart of our communication required thoughtful preliminary reflection and commitment from various teams and hierarchical levels. We aimed for this transformation to be long-lasting, minimizing the effort required for change management. To achieve this, we literally centered writing in our various processes, making it an indispensable element.</p><p>For instance, meetings now have a dedicated note that serves as an agenda, preparation tool, note-taking space, and action plan. Presentations, whether they are plenary sessions, demos, or knowledge-sharing events, are all recorded along with their supporting materials, including the questions and discussions that took place.</p><p>This approach successfully universalized structured note-taking, turning it into a new work habit with minimal effort.</p><h4>Migrating to a New Documentation Tool</h4><p>Given the extensive obsolescence of our documentation, we made the radical decision to (almost) start from scratch. It would have taken us more time to verify the current relevance of a document with uncertain content than to rewrite it based on our current knowledge.</p><p>We seized this opportunity to challenge our historical documentation tool and chose <a href="https://www.notion.so/">Notion</a>, which provided more suitable content structures and automations for what we wanted to create.</p><p>Although a significant portion of our documentation was not preserved, we had some newer sections that we migrated to Notion. Since there was no migration tool from our old system to the new one, this process was carried out manually, and was tedious. However, it was worth it to achieve the targeted structure and start with clean documentation.</p><p>Before starting the migration, we had thought about a documentation structure in the new tool. We also made sure to train the migration managers on Notion and on this target structure. They also had a guide spanning a few pages explaining how to efficiently migrate their content.</p><h4>Restructuring Meetings</h4><p>The way we transformed our meetings could warrant its own article. A key element in this transformation has been the systematic integration of written communication before, during, and after the meetings.</p><p>Note-taking during meetings can meet resistance within teams accustomed to quickly moving on to the next task. However, it offers a synthesis of the exchanges that took place, which is very beneficial for extracting the core of the discussions. If these few minutes devoted to written consolidation are not worth the team’s time, it is legitimate to question the <a href="https://hbr.org/2016/01/estimate-the-cost-of-a-meeting-with-this-calculator">cost of the meeting itself</a>.</p><p>We incorporated note-taking into our “Meeting Rules,” our guide to successful meetings, based on the following principles:</p><ul><li>The companion note linked to the meeting invitation contains the context, the agenda, and the elements to know before joining the meeting. Thanks to Notion, we use a template to predefine these sections, which speeds up the creation of the note and ensures a certain uniformity.</li><li>With the agenda visible to all, each invitee can judge the relevance of their presence or choose to follow the companion note to be informed of the discussions.</li><li>Since the goal of the meeting is clear beforehand, the time spent together is exclusively devoted to exchange, without time lost bringing all participants up to the same level of information.</li><li>A scribe is designated to take notes during the meeting. In practice, the scribe is often the organizer. If possible, the note-taking is shared live with all participants, ensuring the accuracy of the transcribed information.</li><li>A few minutes before the end, the next steps and actions to be carried out are noted along with the assigned individuals. These will be available for review or for the next meeting.</li><li>After the meeting, the scribe quickly goes over the notes to facilitate their consultation, adding links to external resources and clarifying points if necessary.</li><li>Bonus: with Notion databases, the note is linked to project and team pages associated with this meeting. Thus, it automatically enhances the mesh of the documentation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uUWqbS8x8v_pslBvvdVU-A.png" /><figcaption>Meero’s five rules for a successful meeting.</figcaption></figure><h4>Breaking Communication Silos on Slack</h4><p>We noticed that the segmentation of communication between teams was encouraged by the design of the communication channels. On Slack, where the majority of direct written communication took place, the channel rules were inadequate. We reworked the structure and usage of the channels to promote transparency and communication to a wider audience:</p><ul><li>All team and project channels are public by default, and private channels must have a legitimate reason to be private (management, privacy, etc.).</li><li>Each team has its own channel, which encompasses both the team’s discussions around their projects and exchanges with any individual communicating with that team.</li><li>Project communications via private messages involving more than two people are discouraged and should occur on team channels.</li><li>We are less afraid to use the large channels and to create “noise”, encouraging everyone to learn to manage their notifications and to pay attention to messages on channels where they have been invited.</li></ul><p>With these few simple actions, we observed almost immediate streamlining of exchanges between teams!</p><h4>Change Management</h4><p>To achieve this transformation on several fronts, the involvement and commitment of all teams, including senior leadership, were key success factors.</p><p>Efforts and strategy were coordinated by a small group composed of members from the main teams who were already recognized for their written contributions. This group was very active in the weeks surrounding the launch of this transformation. It handled the communication, explanation, and training initiatives within the teams.</p><p>Several months after these transformations, we still meet regularly to observe the dynamics of writing in the different teams, assist teams that use writing minimally, and promote the initiatives of certain teams to a larger audience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7FunhjNSyXYmraitj60e4g.png" /><figcaption>Our meeting notes template includes a cheat sheet to continuously drive the change.</figcaption></figure><h3>Conclusion</h3><p>Through these efforts centered on transforming written communication, we have profoundly altered our practices, from meetings to Slack channels, and including the way we handle corporate documentation.</p><p>Our goal has been to foster transparency and fluidity in our daily exchanges. It is a path that requires commitment and adaptation, but the results speak for themselves: a more united team, optimized processes, and communication that gets straight to the point.</p><p>Keep following our technical blog for more insights from our ongoing evolution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdea91bc5441" width="1" height="1" alt=""><hr><p><a href="https://medium.diffuse.ly/fostering-a-culture-of-writing-how-we-transformed-our-companys-communication-landscape-fdea91bc5441">Fostering a Culture of Writing: How We Transformed Our Company’s Communication Landscape</a> was originally published in <a href="https://medium.diffuse.ly/">Diffusely</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we found out we had a software delivery issue — and how we fixed it]]></title>
            <link>https://medium.diffuse.ly/how-we-found-out-we-had-a-software-delivery-issue-and-how-we-fixed-it-13bfa1314782?source=rss-700767780763------2</link>
            <guid isPermaLink="false">https://medium.com/p/13bfa1314782</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[frenchtech]]></category>
            <category><![CDATA[supply-chain]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Romain Mouillard]]></dc:creator>
            <pubDate>Thu, 29 Sep 2022 15:41:07 GMT</pubDate>
            <atom:updated>2023-07-27T09:30:30.352Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*jVHwN9T7cPhzxjZ9.jpeg" /><figcaption>© David Spiers / Unsplash</figcaption></figure><h3>How we found out we had a software delivery issue — and how we fixed it</h3><p>When it comes to improving how software is made, people often focus exclusively on development, forgetting what comes before and after. Delays and problems with team coordination, for example, tend to be treated as lesser considerations whose impacts on efficiency are downplayed. When obvious issues arise in these areas, they can be solved, but small incremental patches do not push the delivery process to a next step. Worse, improving things in one area can exacerbate issues in others. To ensure the whole software delivery process is efficient and continuously improving, you need a standardized software delivery chain.</p><h3>You already do it for development</h3><p>As engineers, we do our best to always make use of patterns and standards. Using such tools familiarizes us with proven ways of dealing with complex concepts. They prevent us from reinventing the wheel and ease understanding for other developers. They also facilitate interoperability between pieces of our apps and other systems.</p><p>Sure, we can choose to ignore these tools for various reasons like saving implementation or maintenance time. In the end, the final product will likely behave the same way. However, the cracks will eventually begin to show. A new developer arrives on the team? No standards means a big learning curve. A new major feature needs to be added? No code organization means the impact of new features is a blind spot. Obviously, every engineer has an opinion on<em> which</em> standards to apply. Sometimes, their usage is also determined by their <a href="https://medium.com/young-coder/is-it-time-to-get-over-design-patterns-8851864a6834">benefit-risk ratio</a>. But in the end, this is a deliberate decision.</p><p>And yet, when it comes to the big picture, how the software is being <em>made</em>, standards are less common, less intentional. How is the product being shaped? What is each team’s responsibility in the overall project journey? How can we continuously improve the way things are done?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*lVOnp5YXbP2RXd70.jpeg" /><figcaption>© Cash Macanaya / Unsplash</figcaption></figure><h3>The four phases of the software delivery chain</h3><p>As with code standards, the software delivery chain — the process of standardizing software creation techniques to maximize quality and efficiency, also known as the software supply chain — is not an essential element of the product creation. A product <em>can</em> be shipped without it. However, without a well-defined delivery chain, the software creation journey is not in its most effective shape. Like rainwater finding the easiest path downhill, the product is left to find its own natural way toward production.</p><p>The software delivery chain is to overall delivery what standards and patterns are to code. It creates a common, shared, and standardized process for project delivery. The chain begins with stakeholders building an aligned understanding of the initial requirements, and ends by measuring how fulfilling and efficient the built solution is for the end user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Pv14rdglA_HNEUtE" /><figcaption><em>Most delivery chains are built around four main phases.</em></figcaption></figure><p>The number of steps in the chain and their content really depends on the team’s composition and habits. More importantly, when it comes to defining a chain, its content should depend on what goals each team wants to reach during the delivery process.</p><p>Delivery chains can greatly improve team coordination by providing standardization and alignment. It also creates the stable ground required to measure productivity. Measures and KPIs are key when it comes to continuously improving a process by targeting weak spots and safeguarding efficient ones.</p><h3>The pain points we wanted to fix</h3><p>At Meero, we found ourselves facing the typical issues during product development.</p><p>A lack of team synchronization had the biggest negative impact. During the development of a complex feature, requiring product research, software development, and infrastructure requirements, it was very common to have at least one team unprepared to complete their work at the right time. In the worst cases, some teams weren’t even aware of a project until they were asked to work on it right away! This, of course, generated a lot of frustration. Work was done not with building the best product in mind, but with building something functional in this siloed and time-boxed context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*1Y3s1PKQrwQbXBqw.jpeg" /><figcaption>© Brian Mcgowan / Unsplash</figcaption></figure><p>Another recurring pain point linked to team synchronization was dealing with time. It’s in the startup DNA to make ideas fuse quickly and reduce the time to market to the lowest it can be. Meero is no exception. Without a clear process, subjects like technical thinking, architecture, opportunities, and coordination with Data and DevOps teams sometimes suffered from starting development too soon. Dependencies caused further issues, as many projects were being built at the same time, impacting the same pieces of the system. As a consequence, we unsurprisingly struggled to maintain an acceptable level of technical (and functional) debt. The monster was growing faster than we could kill it, despite a lot of dedicated efforts.</p><p>At this point, we decided to take a step back and take a global look at the system in which our teams were evolving. It was a self-created delivery chain, and it wasn’t providing ways for us to implement the values we believed in. A common goal, shared by all teams, was of course to complete projects with the best quality-to-time ratio possible. Each team also wanted to bring its expertise to the playing field, to be listened to, and to be impactful. Last but not least, we wanted to cooperate around a healthy process, made stronger and stronger by continuous improvement. This was the DNA of our future delivery chain.</p><p><em>In our next article, we’ll show you how we transformed our way of working at Meero by shaping the chain. We’ll also have a closer look at its internal structure and how it helped get rid of the major delivery pain points we listed above.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13bfa1314782" width="1" height="1" alt=""><hr><p><a href="https://medium.diffuse.ly/how-we-found-out-we-had-a-software-delivery-issue-and-how-we-fixed-it-13bfa1314782">How we found out we had a software delivery issue — and how we fixed it</a> was originally published in <a href="https://medium.diffuse.ly/">Diffusely</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>