<?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 Louis-Gabriel Zaïti on Medium]]></title>
        <description><![CDATA[Stories by Louis-Gabriel Zaïti on Medium]]></description>
        <link>https://medium.com/@zaiti.louisgabriel.dev?source=rss-79e354d4103b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0GCtDPgKAAn_m2ZZ.</url>
            <title>Stories by Louis-Gabriel Zaïti on Medium</title>
            <link>https://medium.com/@zaiti.louisgabriel.dev?source=rss-79e354d4103b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:32:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zaiti.louisgabriel.dev/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[Mastering Jetpack Compose Preview in Android Studio]]></title>
            <link>https://medium.com/@zaiti.louisgabriel.dev/mastering-jetpack-compose-preview-in-android-studio-e5a2a21ca0b0?source=rss-79e354d4103b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5a2a21ca0b0</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-development]]></category>
            <dc:creator><![CDATA[Louis-Gabriel Zaïti]]></dc:creator>
            <pubDate>Wed, 01 Apr 2026 17:35:50 GMT</pubDate>
            <atom:updated>2026-04-01T17:35:50.784Z</atom:updated>
            <content:encoded><![CDATA[<h4>Jetpack Compose has revolutionized Android UI development with its declarative approach, allowing developers to build beautiful and interactive user interfaces.</h4><p>Android Studio provides a powerful toolset for developing and debugging Jetpack Compose applications. However, debugging Jetpack Compose previews may require some additional steps. In this article, we will explore how to effectively debug Jetpack Compose previews in Android Studio and also learn about using Composable Preview Providers to inject data inside previews.</p><h3>Prerequisites</h3><p>Before we dive into the debugging process and using Composable Preview Providers, ensure you have the following set up:</p><ul><li>Android Studio: Make sure you have the latest version of Android Studio installed on your system.</li><li>Jetpack Compose: Create a new Jetpack Compose project or update your existing project to use Jetpack Compose.</li></ul><h3>Enabling Jetpack Compose Preview Debugging</h3><p>To enable debugging for Jetpack Compose previews, ensure that the minSdkVersion in your build.gradle file is set to at least 21. Jetpack Compose requires Android 5.0 (API level 21) or higher.</p><p>Then in you build.gradle make sure you have enable the build feature for compose, like this:</p><pre>// build.gradle <br><br>android {<br>   // Other configuration options...<br>   buildFeatures {<br>       compose true<br>   }<br>}</pre><p>This configuration enables Jetpack Compose build features, including debugging support.</p><ol><li>Sync your project by clicking on the Sync Now button that appears at the top of the editor or by selecting File &gt; Sync Project with Gradle Files from the menu.</li></ol><h3>Debugging Jetpack Compose Previews</h3><p>Now that we have enabled Jetpack Compose debugging, let’s explore how to effectively debug Jetpack Compose previews in Android Studio.</p><h3>1. Preview Rendering Issues</h3><p>If your Jetpack Compose preview is not rendering as expected, it could be due to various reasons such as layout problems, incorrect data, or even bugs in your code. To debug such issues:</p><ol><li>Open the Compose preview file you want to debug.</li><li>Locate the preview function or @Composable function causing the rendering issue.</li><li>Place breakpoints by clicking in the left gutter of the editor next to the line numbers.</li><li>Click on the Debug button (bug icon) in the toolbar or select Run &gt; Debug from the menu.</li><li>Android Studio will launch the app in debug mode. Interact with your preview in the preview pane, and the debugger will stop at the breakpoints you set.</li><li>Inspect variables, step through the code, and identify the cause of the rendering issue.</li></ol><h3>2. State and Data Flow Problems</h3><p>When dealing with state and data flow problems in Jetpack Compose, it’s essential to understand how data is flowing and mutating. To debug such problems:</p><ol><li>Locate the state variables or data flow logic in your Compose preview code.</li><li>Add breakpoints at relevant points in the code where the state or data flow is manipulated.</li><li>Start the debugging session by clicking on the Debug button or selecting Run &gt; Debug.</li><li>Trigger the interactions or actions that affect the state or data flow.</li><li>Inspect the values of variables, step through the code, and identify any issues with state mutations or data flow.</li></ol><h3>3. Performance and UI Responsiveness</h3><p>If you encounter performance issues or UI responsiveness problems in your Jetpack Compose previews, you can use Android Studio’s profiler to analyze the application’s performance. To do this:</p><ol><li>Click on the Profiler tab at the bottom of the Android Studio window.</li><li>Launch your app in debugging mode by clicking on the Debug button or selecting Run &gt; Debug.</li><li>Interact with your Compose preview, performing actions that you suspect may be causing performance problems.</li><li>The profiler will capture and display performance metrics such as CPU usage, memory allocations, and frame rendering times.</li><li>Analyze the profiler’s data to identify any bottlenecks or performance issues.</li></ol><h3>Using Composable Preview Providers for Data Injection</h3><p>When debugging Jetpack Compose previews, it’s often necessary to provide specific data or state values to your Composable functions. This is where Composable Preview Providers come in handy. Preview providers allow you to inject data into your previews, making it easier to simulate different scenarios and test your UI components with specific input values.</p><h3>Creating Preview Providers</h3><p>To create a Composable Preview Provider, follow these steps:</p><ol><li>Open the file containing the Composable function you want to preview.</li><li>Locate the Composable function you want to provide data for.</li><li>Create a new Composable function specifically for preview data, using the @Preview annotation.</li></ol><pre>@Composable<br>@Preview<br>fun MyComposablePreviewProvider() {<br>    // Provide data or state values here<br>}</pre><ol><li>Inside the preview function, define the necessary data or state values that you want to inject into the Composable function.</li></ol><h3>Injecting Data into Previews</h3><p>Once you have created the Composable Preview Provider, you can inject the data into your previews by annotating the @Preview annotation with the previewParameter parameter. This parameter allows you to specify the data or state values you want to provide.</p><p>Here’s an example of injecting a string value into a Composable function:</p><pre>@Composable<br>@Preview<br>fun MyComposablePreviewProvider(<br>    @PreviewParameter(MyStringProvider::class) myString: String<br>) {<br>    // Use the provided string value in your Composable function<br>    Text(text = myString)<br>}</pre><p>In the example above, we define a preview parameter called myString of type String. We annotate it with @PreviewParameter and provide a custom MyStringProvider class, which we will create next.</p><h3>Creating a Preview Parameter Provider</h3><p>To create a preview parameter provider, follow these steps:</p><ol><li>Create a new class that implements the PreviewParameterProvider interface and override the providePreviewParameter function.</li></ol><pre>class MyStringProvider : PreviewParameterProvider&lt;String&gt; {<br>   override val values: Sequence&lt;String&gt;<br>       get() = sequenceOf(&quot;Hello&quot;, &quot;World&quot;, &quot;Jetpack Compose&quot;)<br><br>   override val count: Int<br>       get() = values.count()<br><br>   override fun providePreviewParameter(preview: PreviewElement, index: Int): String {<br>       return values.elementAt(index)<br>   }<br>}</pre><ol><li>In the providePreviewParameter function, return the desired value from the values sequence based on the index parameter.</li></ol><h3>Using the Preview Parameter Provider</h3><p>Now that we have created the MyStringProvider class, we can use it to provide values for the preview parameter in our Composable Preview Provider.</p><pre>@Composable<br>@Preview<br>fun MyComposablePreviewProvider(<br>    @PreviewParameter(MyStringProvider::class) myString: String<br>) {<br>    Text(text = myString)<br>}</pre><p>In the example above, the MyComposablePreviewProvider Composable function will receive a string value from the MyStringProvider preview parameter provider. The Text composable will display the provided string value.</p><h3>Previewing with Injected Data</h3><p>To preview your Composable function with the injected data, open the preview pane in Android Studio and select the appropriate preview from the list of available previews. The preview will render with the injected data, allowing you to see how your UI components behave with different input values.</p><p>Using Composable Preview Providers and preview parameters gives you the flexibility to test and debug your Jetpack Compose previews with specific data or state values, making it easier to identify and resolve any issues.</p><h3>Conclusion</h3><p>Debugging Jetpack Compose previews in Android Studio is crucial for identifying and resolving issues in your UI code. By enabling Jetpack Compose debugging support and leveraging Android Studio’s powerful debugging tools, you can effectively diagnose and fix rendering problems, state and data flow issues, and performance bottlenecks. Additionally, using Composable Preview Providers allows you to inject data into your previews, enabling you to test different scenarios and ensure the robustness of your UI components. Debugging and data injection play vital roles in ensuring the quality, responsiveness, and user experience of your Jetpack Compose applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5a2a21ca0b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Will Ai gonna take my job ?]]></title>
            <link>https://medium.com/@zaiti.louisgabriel.dev/will-ai-gonna-take-my-job-d9c54f217e4f?source=rss-79e354d4103b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9c54f217e4f</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Louis-Gabriel Zaïti]]></dc:creator>
            <pubDate>Wed, 11 Feb 2026 02:08:25 GMT</pubDate>
            <atom:updated>2026-02-11T02:08:25.468Z</atom:updated>
            <content:encoded><![CDATA[<p>Funny story, I started to think about this while searching for tools to facilitate and optimize the code review at work.</p><p>“Will AI going to replace me at my job?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7DXfSHCFAZ0op8-q" /><figcaption>Photo by <a href="https://unsplash.com/@heyquilia?utm_source=medium&amp;utm_medium=referral">Kenny Eliason</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The quick answer would be to say yes, but here’s the longer answer.</p><p>AI, or what everybody calls AI these days, is basically text generation tools based on statistics (I said “basically” don’t kill me in comments ^^). So if you think about it, it can help (a lot!) but does that mean that’s what you’re doing at work?…</p><p>As a software engineer with about 14 years’ experience, I’ve started to see that typing code isn’t everything I do on a daily basis. I’d say the main part is trying to solve puzzles, being able to explain them to tech or non-tech people; designing new solutions feels sometimes like playing with Lego bricks.</p><p>If we come back to AI, how everybody is using those tools today is only to facilitate or gain time on things they would do anyway. Where AI isn’t there yet is in doing software development on its own — by that I mean with no human touch or readjustment that a human software developer could do.</p><p>Right now, every now and then, a human touch is needed because, as I said earlier, current “AI” is statistics-based and as such there are 2 main issues: the percentage of probability and the correctness of the data those AI are based on.</p><p>So that was from the statistics/issue point of view; let’s see from the developer’s daily point of view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lXiWSNCxl-wHTyAU" /><figcaption>Photo by <a href="https://unsplash.com/@lukejonesdesign?utm_source=medium&amp;utm_medium=referral">Luke Jones</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For me, the arrival of AI in my professional life didn’t change much compared to the arrival of a new tool on the market. It helps me on a day-to-day basis with a lot of low-value things: writing detailed documentation, formatting a description for an issue or pull request (merge request for the GitLabbers ^^).</p><p>With the arrival of in-IDE AI plugins, that extended the capabilities of such tools. Now I can create new code, review code, find ways to refactor classes — all this faster and more easily.</p><p>The arrival of these features could be quite disturbing; you may think “yeah that’s basically the work of a developer!”</p><p>I’d be agreeing if that were the case when speaking of an integrator or programmer. The role has evolved into a developer for a reason; it’s not just typing code the computer would interpret anymore.</p><p>Our roles have evolved into being able to handle so many things. Like I said earlier, solving problems isn’t everything — trying to understand the needs of a Product Owner/Client/Designer, or explaining what the technical issue is and what the plan will be to solve it, designing software like architects are designing a house or a warehouse (which are 2 different things btw) — those are also part of the role that AI currently isn’t capable of right now. (I’m not saying “ever” here)</p><p>As I’m writing this, I start to think the role of developer is going to evolve — that is certain — but into what, I don’t know. We could imagine that one day software engineers would be acting as product owners but having their technical reflection capacities, so maybe a Software Product Engineer 🤔😅</p><p>I really don’t know, but if such a role may exist in 5, 10, 15, or 50 years, what does it mean for existing software developers?</p><p>Will it mean that software engineers and product owners have an expiration date?</p><p>I don’t think so. For me, this is going to be an evolution like humans are used to.</p><p>Yes, some engineers will stop writing code; yes, some product owners will stop writing user stories and having meetings.</p><p>But if we think about it, what happened in the past when you needed a team of people to empty an 18-ton truck and now 1 person would be enough thanks to the arrival of pallet trucks? People that were carrying boxes all their lives are now pallet-truck drivers.</p><p>I’m currently working for a newspaper that decided in the 2010s to stop printing on paper and move slowly toward a digital version of the newspaper. Did the people that were creating the layout of the paper or correcting the errors in the journalists’ posts before printing disappear? NO, they’ve evolved with the new tools; they’ve adapted their titles and learned how to manage new tools.</p><p>In the end, we don’t need to necessarily be scared of this new arrival; we should embrace it, evolve with it. Changes like phones, TV, internet, smartphones that arrived in the last 40 years (or so) arrived quickly during our lifetime because the evolution of those technologies is based on speed of evolution. The quicker communication evolved, the quicker technologies evolve too. The fact is, AI is based on a lot of communication technologies which have evolved to a point that in the 2010s we generated more data and reached more communication in a year than in all of Human history (the same guy who wrote that also wrote this).</p><p>All this only says that we shouldn’t worry about it ☺️</p><p>Thanks for reading me; stay tuned, I might continue writing on AI in the next weeks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9c54f217e4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting the Boy Scout Rule and Broken Windows Theory in Software Development]]></title>
            <link>https://medium.com/@zaiti.louisgabriel.dev/connecting-the-boy-scout-rule-and-broken-windows-theory-in-software-development-8473faea349a?source=rss-79e354d4103b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8473faea349a</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Louis-Gabriel Zaïti]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 12:25:25 GMT</pubDate>
            <atom:updated>2024-09-24T20:54:38.908Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XJMrJ7tAHhh_7g6a" /><figcaption>Photo by <a href="https://unsplash.com/@bormot?utm_source=medium&amp;utm_medium=referral">Alexandr Bormotin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The <strong>Boy Scout Rule</strong> and the <strong>Broken Windows Theory</strong> both focus on the idea that small problems can grow into bigger ones if left unchecked. Whether it’s a neighborhood or a codebase, if we don’t take care of small issues, they can lead to larger, more serious problems down the line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y0PUJ5lMapVCZRWSMxwAYg.png" /></figure><h3>Small Problems, Big Consequences</h3><p>The <strong>Broken Windows Theory</strong> suggests that small signs of neglect — like broken windows or litter — can make people think no one cares, leading to even more damage or crime. Similarly, in software development, ignoring small issues in the code can send the message that sloppy code is acceptable. This can lead to a messy and unmanageable codebase over time.</p><p>The <strong>Boy Scout Rule</strong> advises developers to “leave the code better than they found it.” This means fixing small issues as they arise, like improving a confusing variable name or fixing a small bug. By doing this, developers keep the code clean and prevent it from spiraling into chaos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JEGf4WwnKKI8Gj9s" /><figcaption>Photo by <a href="https://unsplash.com/@chuttersnap?utm_source=medium&amp;utm_medium=referral">CHUTTERSNAP</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Preventing Technical Debt: Fixing Problems Early</h3><p>In software development, <strong>technical debt</strong> refers to problems that get worse over time if not fixed. Just as broken windows in a neighborhood lead to more neglect, poor-quality code that is left untouched makes it harder to maintain the software. Small issues like bad code formatting or confusing logic can pile up, making the system harder to work with and slowing down development.</p><p>The <strong>Boy Scout Rule</strong> stops this from happening by encouraging developers to fix issues as soon as they see them. This helps prevent the buildup of technical debt and keeps the codebase healthy. Each small fix improves the overall quality of the project. 🛠️</p><h3>Building a Sense of Responsibility and Team Pride</h3><p>The Broken Windows Theory shows how keeping a neighborhood clean and orderly makes people feel proud and more responsible for their environment. The same idea applies to software development. When developers follow the Boy Scout Rule and keep the code clean, it builds a sense of responsibility within the team. Clean code shows that the team values quality, and everyone is motivated to maintain high standards.</p><p>On the other hand, if the code is full of “broken windows” like bad practices or bugs, developers may lose motivation to improve things. By following the Boy Scout Rule, every team member plays a part in keeping the codebase in good shape. This shared responsibility builds a positive work culture. 🤝</p><h3>Avoiding a Downward Spiral in the Codebase</h3><p>Both the <strong>Boy Scout Rule</strong> and <strong>Broken Windows Theory</strong> aim to prevent a <strong>downward spiral</strong>. In a neighborhood, a few broken windows can lead to more serious damage if left alone. In a codebase, ignoring small problems leads to more significant issues that become much harder and more expensive to fix later on.</p><p>By following the Boy Scout Rule and addressing small code issues regularly, teams can avoid these bigger problems. Fixing small bugs or improving code structure keeps the codebase manageable and prevents the need for large-scale refactoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w9lvpyzrAVpA_715" /><figcaption>Photo by <a href="https://unsplash.com/@sarahdorweiler?utm_source=medium&amp;utm_medium=referral">Sarah Dorweiler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Creating a Positive Cycle of Code Improvement</h3><p>The Boy Scout Rule also encourages a <strong>positive cycle</strong> of improvement. Just like a well-kept neighborhood encourages people to keep it clean, a clean codebase motivates developers to continue improving it. This creates a better working environment, where developers are happier to work on the project and make continuous small improvements. 🌱</p><h3>Conclusion: What Are Your Thoughts?</h3><p>The <strong>Boy Scout Rule</strong> and <strong>Broken Windows Theory</strong> demonstrate how small, consistent actions can prevent major issues in software development. By addressing minor problems early, developers can maintain cleaner, healthier codebases, and foster a positive team culture that values quality and responsibility. But every project and team is different — what works for one may not work for another.</p><p>So, what do you think? Do you follow the Boy Scout Rule in your development work? How do you and your team handle technical debt and small code issues before they spiral? Let’s discuss your thoughts and experiences in the comments! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8473faea349a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Burn you app with MonkeyRunner ]]></title>
            <link>https://medium.com/@zaiti.louisgabriel.dev/burn-you-app-with-monkeyrunner-2b5252135359?source=rss-79e354d4103b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b5252135359</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-testing]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Louis-Gabriel Zaïti]]></dc:creator>
            <pubDate>Wed, 17 Oct 2018 05:46:03 GMT</pubDate>
            <atom:updated>2019-01-17T07:23:22.231Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZppQrdif2V98H3tg" /><figcaption>“two black flat screen computer monitors” by <a href="https://unsplash.com/@ffstop?utm_source=medium&amp;utm_medium=referral">Fotis Fotopoulos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Few years back, I’ve discovered a nice tool to fake user interaction on <strong>Android</strong>.</p><p>I didn’t find it attractive because there was a lot of code to implement to get reports, but today I’ve found an interesting way to use it 😈.</p><p>I’ve implemented a script so you can <strong>burn your application to see if it can resist to user </strong>(or a 4 years old one 😅).</p><p>Here’s my script, it’s also available <a href="https://gitlab.com/snippets/1764326"><strong>here</strong></a><strong><br></strong>You’ll have to adapt the position of the click depending on which device you’re using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCbiqbvmX9GlovrnRtrhDA.png" /></figure><p>Like what you just read? <strong>Clap</strong> your heart out. <strong>Share it with everyone</strong> you know on social media. <strong>Subscribe</strong> below for more on how you can become everyone’s favorite author!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b5252135359" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>