<?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 Madhan on Medium]]></title>
        <description><![CDATA[Stories by Madhan on Medium]]></description>
        <link>https://medium.com/@BuildWithMadhan?source=rss-2c356d54645d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*c00qOQVBEklSl1ilXDONbg.png</url>
            <title>Stories by Madhan on Medium</title>
            <link>https://medium.com/@BuildWithMadhan?source=rss-2c356d54645d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 03:50:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@BuildWithMadhan/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[Why Most Freelancers Fail in the First 6 Months (and How to Avoid it)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@BuildWithMadhan/why-most-freelancers-fail-in-the-first-6-months-and-how-to-avoid-it-baa05f6970a8?source=rss-2c356d54645d------2"><img src="https://cdn-images-1.medium.com/max/851/1*XjQAoKmy1ZO2eUFyP45vxA.png" width="851"></a></p><p class="medium-feed-snippet">The dream of freelancing is intoxicating: no boss, no soul-crushing commute, and the freedom to work from a beach in Bali or your favorite&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@BuildWithMadhan/why-most-freelancers-fail-in-the-first-6-months-and-how-to-avoid-it-baa05f6970a8?source=rss-2c356d54645d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@BuildWithMadhan/why-most-freelancers-fail-in-the-first-6-months-and-how-to-avoid-it-baa05f6970a8?source=rss-2c356d54645d------2</link>
            <guid isPermaLink="false">https://medium.com/p/baa05f6970a8</guid>
            <category><![CDATA[freelancing]]></category>
            <category><![CDATA[failure-to-success]]></category>
            <category><![CDATA[startup-failure-reasons]]></category>
            <dc:creator><![CDATA[Madhan]]></dc:creator>
            <pubDate>Thu, 01 Jan 2026 05:52:51 GMT</pubDate>
            <atom:updated>2026-01-01T05:52:51.701Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Type Safe Navigation for Compose: The Game-Changing Feature You’re Not Using (Yet)]]></title>
            <link>https://medium.com/@BuildWithMadhan/type-safe-navigation-for-compose-the-game-changing-feature-youre-not-using-yet-5022d22ea90f?source=rss-2c356d54645d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5022d22ea90f</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[jetpack-navigation]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Madhan]]></dc:creator>
            <pubDate>Tue, 17 Sep 2024 10:57:03 GMT</pubDate>
            <atom:updated>2024-09-17T10:57:03.130Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P-TglVQxNfLNuYj-" /></figure><p>Are you tired of debugging navigation-related crashes in your Compose apps?</p><p>🤔 <strong>Type Safe Navigation</strong> might just be the game-changer you’ve been waiting for. Yet, surprisingly, many developers aren’t taking advantage of this powerful feature. Don’t let yourself be left behind!</p><p>Imagine a world where your app’s navigation is <em>bulletproof</em>, where runtime errors become a thing of the past, and where your code is cleaner and more maintainable than ever. That’s the promise of Type Safe Navigation in Compose. But how does it work, and why should you care? 🤷‍♂️</p><p>In this post, we’ll dive deep into the world of Type Safe Navigation, exploring its key features, implementation techniques, and best practices.</p><p>You’ll learn how to leverage this tool to streamline your development process and create more robust applications. From avoiding common pitfalls to examining real-world case studies, we’ve got you covered. So, are you ready to revolutionize your Compose navigation? Let’s get started! 🚀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dPUGzJUJTUAR7CNJ" /></figure><h3>Understanding Type Safe Navigation in Compose</h3><h4>A. Definition and core concepts</h4><p>Type Safe Navigation in Compose is a powerful feature that ensures your app’s navigation logic is checked at compile-time rather than runtime. This means you can catch navigation-related errors before your app even runs, significantly reducing the likelihood of crashes and unexpected behavior.</p><p>Key concepts include:</p><ul><li><strong>NavController</strong>: The central hub for navigation in your app</li><li><strong>NavHost</strong>: A composable that displays the current destination</li><li><strong>NavGraph</strong>: A collection of destinations and the paths between them</li><li><strong>NavArguments</strong>: Strongly-typed arguments passed between destinations</li></ul><h4>B. Benefits for developers and end-users</h4><p>By adopting Type Safe Navigation, you’ll experience numerous benefits:</p><ol><li><strong>Increased productivity</strong>: Catch errors early in the development process</li><li><strong>Improved code quality</strong>: Reduce bugs related to navigation and argument passing</li><li><strong>Enhanced refactoring</strong>: Safely rename or modify navigation-related code</li><li><strong>Better IDE support</strong>: Enjoy improved code completion and navigation</li></ol><p>For end-users, these benefits translate to:</p><ul><li>More stable applications with fewer crashes</li><li>Smoother navigation experiences</li><li>Consistent behaviour across different app sections</li></ul><p>Now that you understand the basics of Type Safe Navigation in Compose, let’s explore its key features in more detail.</p><h3>Key Features of Type Safe Navigation</h3><p>Now that you understand the basics of Type Safe Navigation in Compose, let’s explore its key features that make it a game-changer for your development process.</p><h4><strong>A. Enhanced IDE support</strong></h4><p>Type Safe Navigation brings a new level of intelligence to your integrated development environment (IDE). You’ll experience:</p><ul><li>Auto-completion suggestions for route names and parameters</li><li>Quick navigation to destination definitions</li><li>Instant error detection for invalid route references</li></ul><p>This enhanced support significantly speeds up your coding process and reduces the likelihood of errors.</p><h4>B. Easier refactoring and maintenance</h4><p>With Type Safe Navigation, refactoring becomes a breeze. When you rename a route or modify its parameters, your IDE will automatically update all references throughout your codebase. This feature ensures:</p><ul><li>Consistency across your navigation system</li><li>Reduced time spent on manual updates</li><li>Minimised risk of introducing bugs during refactoring</li></ul><h4>C. Improved code readability</h4><p>Type Safe Navigation enhances the readability of your code by:</p><ul><li>Providing clear, type-safe route definitions</li><li>Eliminating string-based route references</li><li>Offering a more structured approach to navigation logic</li></ul><h4>D. Compile-time safety checks</h4><p>One of the most powerful features of Type Safe Navigation is its ability to catch navigation-related errors at compile-time. This means:</p><ul><li>No more runtime crashes due to invalid route references</li><li>Early detection of missing or incorrect route parameters</li><li>Assurance that all required navigation data is provided</li></ul><p>By leveraging these compile-time checks, you’ll significantly reduce the number of navigation-related bugs that make it to production, improving the overall quality and reliability of your app.</p><p>With these key features in mind, you’re now ready to dive into implementing Type Safe Navigation in your Compose projects. Let’s explore how to put these concepts into practice and revolutionise your app’s navigation system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BzeCiXAQlGJojYdw" /></figure><h3>Implementing Type Safe Navigation in Your Compose Projects</h3><p>Now that you understand the key features of Type Safe Navigation, let’s dive into how you can implement it in your Compose projects. This section will guide you through the essential steps to set up and use Type Safe Navigation effectively.</p><h4>A. Handling deep links with type safety</h4><p>Deep links allow users to navigate directly to specific parts of your app. With Type Safe Navigation, you can handle these deep links more securely. Here’s how you can set it up:</p><ol><li>Define your deep link structure</li><li>Create a NavDeepLink object</li><li>Associate the deep link with a composable in your navigation graph</li></ol><pre>val deepLink = navDeepLink { uriPattern = &quot;https://yourapp.com/user/{userId}&quot; }<br>composable(<br>  route = &quot;user/{userId}&quot;,<br>  arguments = listOf(navArgument(&quot;userId&quot;) { type = NavType.StringType }),<br>  deepLinks = listOf(deepLink)<br>  ) { backStackEntry -&gt;<br>    val userId = backStackEntry.arguments?.getString(&quot;userId&quot;)<br>    UserProfile(userId = userId)<br>  }</pre><h4>B. Creating and using NavHostController</h4><p>The NavHostController is the central component for managing navigation in your Compose app. Here’s how to create and use it:</p><ol><li>Create a NavHostController in your main composable</li><li>Pass it down to child composables that need to perform navigation</li></ol><pre>@Composable<br>fun MyApp() {<br>  val navController = rememberNavController()<br>  NavHost(navController = navController, startDestination = &quot;home&quot;) {<br>  // Define your navigation graph here<br>  }<br>}</pre><h4>C. Defining type-safe arguments</h4><p>Type-safe arguments ensure that you’re passing the correct data types between destinations. Here’s how to define them:</p><ol><li>Use the navArgument function to define arguments</li><li>Specify the argument type using NavType</li></ol><p>Example:</p><pre>composable(<br>route = &quot;profile/{userId}&quot;,<br>arguments = listOf(navArgument(&quot;userId&quot;) { type = NavType.StringType })<br>) { backStackEntry -&gt;<br>  val userId = backStackEntry.arguments?.getString(&quot;userId&quot;)<br>  ProfileScreen(userId = userId)<br>}</pre><h4>D. Setting up the navigation graph</h4><p>The navigation graph defines the structure of your app’s navigation. Here’s how to set it up:</p><ol><li>Use the NavHost composable to define your navigation graph</li><li>Add composables for each destination using the composable function</li><li>Define routes and arguments for each destination</li></ol><pre>NavHost(navController = navController, startDestination = &quot;home&quot;) {<br><br>composable(&quot;home&quot;) { HomeScreen() }<br><br>composable(<br>&quot;profile/{userId}&quot;,<br>arguments = listOf(navArgument(&quot;userId&quot;) { type = NavType.StringType })<br>) { backStackEntry -&gt;<br>    val userId = backStackEntry.arguments?.getString(&quot;userId&quot;)<br>    ProfileScreen(userId = userId)<br>  }<br>  // Add more destinations as needed<br>}</pre><p>By following these steps, you’ll have a solid foundation for implementing Type Safe Navigation in your Compose projects. Next, we’ll explore best practices to further enhance your navigation implementation.</p><h3>Best Practices for Type Safe Navigation</h3><p>Now that we’ve covered the implementation of Type Safe Navigation in Compose, let’s explore some best practices to ensure you’re using this feature effectively in your projects.</p><h3>Handling complex navigation scenarios</h3><p>When dealing with complex navigation scenarios, it’s crucial to structure your navigation graph carefully. Consider using nested navigation graphs for different features or flows within your app. This approach helps maintain a clear hierarchy and makes it easier to manage deep linking.</p><p>Here’s an example of how you might structure a nested navigation graph:</p><pre>NavHost(navController, startDestination = &quot;home&quot;) {<br><br>  composable(&quot;home&quot;) { HomeScreen() }<br><br>  navigation(startDestination = &quot;list&quot;, route = &quot;items&quot;) {<br><br>    composable(&quot;list&quot;) { ItemListScreen() }<br><br>    composable(&quot;details/{itemId}&quot;) { backStackEntry -&gt;<br>      val itemId = backStackEntry.arguments?.getString(&quot;itemId&quot;)<br>      ItemDetailsScreen(itemId)<br>    }<br>  }<br>}</pre><h3>Performance considerations</h3><p>To optimise performance when using Type Safe Navigation, keep these points in mind:</p><ol><li>Lazy loading: Use the navigation() function to create nested graphs that are loaded only when needed.</li><li>Minimise state changes: Avoid unnecessary recompositions by passing only essential arguments through navigation.</li><li>Use rememberNavController(): This ensures that your NavController survives configuration changes.</li></ol><h3>Testing navigation flows</h3><p>Testing your navigation flows is crucial for ensuring a smooth user experience. Here are some strategies you can employ:</p><ul><li>Unit tests: Test individual navigation actions and argument parsing.</li><li>Integration tests: Verify that screens are connected correctly and arguments are passed properly.</li><li>UI tests: Use Espresso or other UI testing frameworks to simulate user interactions and verify navigation behaviour.</li></ul><h3>Organising navigation-related code</h3><p>To keep your navigation code clean and maintainable:</p><ol><li>Create a separate file for your navigation graph definition.</li><li>Use sealed classes or objects to define your routes and arguments.</li><li>Implement a navigation manager class to encapsulate navigation logic.</li><li>Use extension functions to add type-safe navigation actions to your NavController.</li></ol><p>By following these best practices, you’ll be able to leverage Type Safe Navigation in Compose to its full potential, creating robust and maintainable navigation flows in your Android applications. Next, we’ll examine some common pitfalls you might encounter and how to avoid them.</p><h3>Common Pitfalls and How to Avoid Them</h3><p>As you dive deeper into using Type Safe Navigation in Compose, you’ll likely encounter some common challenges. Let’s explore these pitfalls and learn how to sidestep them, ensuring your navigation implementation is smooth and efficient.</p><h3>A. Ignoring state preservation during navigation</h3><p>One of the most frequent mistakes developers make is neglecting to preserve state during navigation. This can lead to a poor user experience, with data loss and unnecessary reloading of screens.</p><p>To avoid this pitfall:</p><ul><li>Use SavedStateHandle to store and retrieve state information</li><li>Implement ViewModel for each screen to manage its state</li><li>Utilise Compose’s rememberSaveable for simple state preservation</li></ul><h3>B. Neglecting error handling</h3><p>Another common mistake is failing to implement proper error handling in your navigation logic. This can result in crashes or unexpected behaviour when navigation fails.</p><p>To improve your error handling:</p><ol><li>Use try-catch blocks when navigating</li><li>Implement fallback routes for navigation failures</li><li>Provide clear error messages to users</li><li>Log navigation errors for debugging purposes</li></ol><h3>C. Overcomplicating navigation structures</h3><p>You might be tempted to create complex navigation structures, but this can lead to confusion and maintenance headaches. Keep your navigation simple and intuitive.</p><p>Tips for simplifying navigation:</p><ul><li>Use a clear hierarchy in your navigation graph</li><li>Limit the depth of your navigation stack</li><li>Implement deep linking judiciously</li><li>Consider using bottom navigation for main sections of your app</li></ul><p>By avoiding these common pitfalls, you’ll create a more robust and user-friendly navigation system in your Compose projects. Next, we’ll explore some real-world examples and case studies to see these principles in action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oXgIY5bUDU2KeIQU" /></figure><h3>Real-world Examples and Case Studies</h3><p>Now that we’ve covered the implementation and best practices of Type Safe Navigation in Compose, let’s explore some real-world examples and case studies to see how it can be applied effectively in different types of applications.</p><p>By implementing Type Safe Navigation in these real-world scenarios, you can create more robust and error-free navigation systems in your Compose applications. Next, we’ll look at the future of Type Safe Navigation in Compose and how it might evolve to address even more complex navigation challenges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lj7xJxSHJUWLw4bg" /></figure><h3>Future of Type Safe Navigation in Compose</h3><p>As you’ve explored the power of Type Safe Navigation in Compose, it’s time to look ahead at what’s on the horizon. The future of this game-changing feature is bright, with exciting developments that will further enhance your app development experience.</p><h3>Community-driven enhancements</h3><p>The Compose community is actively contributing to the evolution of Type Safe Navigation. You can expect to see:</p><ul><li>Custom navigation animations</li><li>Enhanced deep linking support</li><li>Improved state management for complex navigation scenarios</li></ul><h3>Integration with other Jetpack libraries</h3><p>You’ll be pleased to know that Type Safe Navigation is set to become even more powerful through tighter integration with other Jetpack libraries. Look forward to:</p><ul><li>Seamless WorkManager integration for background task navigation</li><li>Enhanced ViewModel support for navigation-related data handling</li><li>Improved Paging3 library compatibility for list-based navigation</li></ul><h3>My Expectation on Upcoming features and improvements</h3><p>The Compose team is hard at work on new features that will make Type Safe Navigation even more robust:</p><ol><li>Multi-module navigation support</li><li>Improved testing tools for navigation scenarios</li><li>Performance optimizations for large-scale apps</li></ol><p>As you continue to develop with Compose, keep an eye out for these exciting improvements. They’ll not only make your code more maintainable but also enhance the overall user experience of your apps.</p><p>Type Safe Navigation in Compose is a powerful feature that can significantly improve your app’s reliability and developer experience. By leveraging this tool, you can catch navigation errors at compile-time, streamline your development process, and create more robust applications.</p><p>As you embark on implementing Type Safe Navigation in your Compose projects, remember to follow best practices and stay aware of common pitfalls. With real-world examples and case studies as your guide, you’ll be well-equipped to harness the full potential of this game-changing feature.</p><p>As the future of Type Safe Navigation in Compose continues to evolve, staying informed and adapting your skills will ensure you remain at the forefront of modern Android development. Don’t wait any longer — start integrating Type Safe Navigation into your Compose projects today and experience the benefits firsthand.</p><p>If you find value in from this article, consider follow me for more article like this. Until then bye from me.</p><p>Cheers…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5022d22ea90f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin Flow and Coroutines Explained: Hands-on Examples for Developers]]></title>
            <link>https://medium.com/@BuildWithMadhan/kotlin-flow-and-coroutines-explained-hands-on-examples-for-developers-83c63137b730?source=rss-2c356d54645d------2</link>
            <guid isPermaLink="false">https://medium.com/p/83c63137b730</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <category><![CDATA[jetpack]]></category>
            <category><![CDATA[kotlin-coroutines]]></category>
            <category><![CDATA[kotlin-flow]]></category>
            <dc:creator><![CDATA[Madhan]]></dc:creator>
            <pubDate>Fri, 06 Sep 2024 10:37:47 GMT</pubDate>
            <atom:updated>2024-09-06T10:45:36.881Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Kotlin Flow and Coroutine" src="https://cdn-images-1.medium.com/max/1024/0*5dFJDfDqdfE1T9ag" /><figcaption>Photo by <a href="https://unsplash.com/@grzegorzwalczak?utm_source=medium&amp;utm_medium=referral">Grzegorz Walczak</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the ever-evolving world of software development, managing asynchronous programming can often feel like navigating a labyrinth. Enter Kotlin Flow, a powerful tool that simplifies the process of handling streams of data asynchronously. If you’ve ever found yourself tangled in callback hell or struggling with complex threading issues, you’re not alone. This article will guide you through the essentials of Kotlin Flow and Coroutines, helping you understand how to leverage these tools to create more efficient and readable code.</p><h3>What is Kotlin Flow?</h3><p>Kotlin Flow is a part of Kotlin’s coroutines library, designed to handle asynchronous data streams in a more manageable way. Unlike traditional approaches that rely heavily on callbacks, Flow provides a declarative API that allows you to work with streams of data in a sequential manner.</p><h3>Key Features of Kotlin Flow</h3><p>- <strong>Cold Streams</strong>: Flow is cold by default, meaning that it doesn’t emit values until it is collected. This allows for efficient resource management.<br>- <strong>Backpressure Handling</strong>: Flow can handle backpressure, ensuring that the producer of data can adjust its emission rate based on the consumer’s ability to process it.<br>- <strong>Integration with Coroutines</strong>: Flow works seamlessly with Kotlin Coroutines, allowing for structured concurrency and easier error handling.</p><h3>Getting Started with Kotlin Flow</h3><p>To start using Kotlin Flow, you need to set up your project with the necessary dependencies. If you’re using Gradle, add the following to your app level <strong>build.gradle</strong> file:</p><pre>dependencies {<br> implementation &quot;org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2&quot;<br> implementation &quot;org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2&quot;<br>}</pre><h3>Creating Your First Flow</h3><p>Creating a Flow is straightforward. Here’s a simple example that emits a sequence of integers:</p><pre>import kotlinx.coroutines.flow.Flow<br>import kotlinx.coroutines.flow.flow<br><br><br>fun simpleFlow(): Flow&lt;Int&gt; = flow {<br> for (i in 1..3) {<br> emit(i) // Emit next value<br> delay(1000) // Simulate some asynchronous work<br> }<br>}</pre><p>In this example, `simpleFlow` emits integers from 1 to 3, pausing for one second between each emission.</p><h3>Collecting Flow Data</h3><p>Once you have a Flow, the next step is to collect the emitted values. This is done using the `collect` function within a coroutine scope.</p><h4>Example of Collecting Flow</h4><pre>import kotlinx.coroutines.runBlocking<br><br><br>fun main() = runBlocking {<br> simpleFlow().collect { value -&gt;<br> println(value) // Print each emitted value<br> }<br>}</pre><p>When you run this code, it will print the numbers 1, 2, and 3, each after a one-second delay.</p><h4>Operators in Kotlin Flow</h4><p>Kotlin Flow comes with a rich set of operators that allow you to transform, filter, and combine flows. Here are some commonly used operators:</p><h4>Transforming Data</h4><p>- <strong>map</strong>: Transforms each emitted value.<br>- <strong>filter</strong>: Emits only values that meet a certain condition.</p><h4>Example of Using Operators</h4><pre>import kotlinx.coroutines.flow.map<br>import kotlinx.coroutines.flow.filter<br><br><br>fun transformedFlow(): Flow&lt;Int&gt; {<br> return simpleFlow()<br> .filter { it % 2 == 0 } // Only even numbers<br> .map { it * 10 } // Multiply each value by 10<br>}</pre><h3>Combining Flows</h3><p>You can also combine multiple flows using operators like <strong>zip</strong> and <strong>combine</strong>. This is particularly useful when you need to work with data from different sources.</p><pre>import kotlinx.coroutines.flow.zip<br><br><br>fun combinedFlow(flow1: Flow&lt;Int&gt;, flow2: Flow&lt;String&gt;): Flow&lt;Pair&lt;Int, String&gt;&gt; {<br> return flow1.zip(flow2) { number, text -&gt; Pair(number, text) }<br>}</pre><h3>Error Handling in Kotlin Flow</h3><p>Error handling is crucial in any asynchronous programming model. Kotlin Flow provides a way to handle exceptions gracefully using the `catch` operator.</p><h4>Example of Error Handling</h4><pre>import kotlinx.coroutines.flow.catch<br><br>fun safeFlow(): Flow&lt;Int&gt; {<br> return flow {<br> emit(1)<br> throw RuntimeException(&quot;An error occurred&quot;)<br> }.catch { e -&gt;<br> emit(-1) // Emit a fallback value<br> }<br>}</pre><p>In this example, if an error occurs, the flow will emit `-1` instead of crashing.</p><h3>Conclusion</h3><p>Kotlin Flow, combined with Coroutines, offers a powerful and elegant way to handle asynchronous programming in Kotlin. By understanding its core concepts, such as cold streams, operators, and error handling, you can write cleaner and more efficient code.</p><p>As you continue to explore Kotlin Flow, consider how it can simplify your existing projects and improve your overall development experience. Whether you’re building a simple app or a complex system, mastering Kotlin Flow will undoubtedly enhance your programming toolkit.</p><p><strong>Takeaway</strong>: Embrace Kotlin Flow to streamline your asynchronous programming and make your code more readable and maintainable.</p><p>For further reading, check out the <a href="https://kotlinlang.org/docs/flow.html">Kotlin Flow documentation</a> and explore more about <a href="https://kotlinlang.org/docs/coroutines-overview.html">Kotlin Coroutines</a>.</p><p>If you find value in this blog <a href="https://medium.com/@madhanKmani">follow me</a> for more.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83c63137b730" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spotify introduces new tech for turning radio broadcasts into podcasts]]></title>
            <link>https://medium.com/@BuildWithMadhan/spotify-introduces-new-tech-for-turning-radio-broadcasts-into-podcasts-4595f120144a?source=rss-2c356d54645d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4595f120144a</guid>
            <category><![CDATA[b2p]]></category>
            <category><![CDATA[spotify]]></category>
            <category><![CDATA[acquisition]]></category>
            <category><![CDATA[whooshka]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Madhan]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 10:13:25 GMT</pubDate>
            <atom:updated>2023-04-18T11:53:37.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*gpgGAi6e83CLQIvT" /><figcaption>Spotify introduces new tech for turning radio broadcasts into podcasts</figcaption></figure><p>Today we will discuss new technology introduced in Spotify and its benefits for creators and listeners. Before that, let us see a short intro about Spotify; As we all know, Spotify is a famous music streaming platform that allows users to listen to music, podcasts, and other audio content on demand.</p><p>Spotify has become so popular is its easy-to-use interface, which allows users to discover new music and podcasts based on their interests, create their playlists and share them with friends.</p><p>In addition to its core music streaming service, Spotify has expanded into other areas, such as podcasting, live audio, and social features. With its innovative approach and commitment to providing the best possible listening experience, Spotify continues to be a leader in the music streaming industry.</p><h3>What is Broadcast-to-podcast (B2P) technology</h3><p>Broadcast-to-podcast (B2P) technology is a type of technology that allows broadcasters to convert their live radio broadcasts into podcasts. This technology is becoming increasingly famous as more people listen to podcasts and on-demand audio content. This new technology was added to the Spotify streaming platform. Which is not live till today,</p><p>The B2P technology captures the live broadcast as it happens and then converts it into a podcast format. This means that listeners who missed the live broadcast can still listen to the content at their convenience.</p><p>Additionally, broadcasters can use B2P technology to monetize their content by including advertisements and sponsorships in the podcast format.</p><p>One of the benefits of B2P technology is that it allows broadcasters to reach a more audience by making their content available on demand. It also provides a revenue stream for broadcasters, who can monetize their content through podcast advertising. B2P technology also benefits listeners, who can access their favorite radio shows and live broadcasts anytime.</p><h3>Lets see Origin about broadcast-to-podcast (B2P) technology</h3><p>This B2P technology can be traced back to the rise of podcasting in the mid-2000s. As podcasting became more popular, broadcasters began to see the potential of making their live broadcasts available on-demand in a podcast format.</p><p>Early versions of B2P technology were basic, often involving the manual conversion of live broadcasts into podcast episodes. However, with technological advancements and the growth of podcasting as a medium, B2P technology has become more sophisticated and automated.</p><p>Today, B2P technology is an integral part of the podcasting ecosystem, enabling broadcasters to reach a wider audience and monetize their content through podcast advertising. Many podcast hosting platforms offer B2P functionality as part of their services, making it easy for broadcasters to convert their live broadcasts into podcast episodes with just a few clicks.</p><p>The origin of broadcast-to-podcast (B2P) technology can be seen as a natural evolution of the podcasting medium, as broadcasters seek to make their content more accessible and convenient for listeners. As podcasting continues to grow in popularity, we expect further advancements in B2P technology, making it even easier for broadcasters to convert their live broadcasts into podcast episodes.</p><h3>Spotify acquisition of Whooshkaa</h3><p>In June 2021, Spotify acquired Whooshkaa, an Australian podcast-hosting platform. The acquisition is part of Spotify’s ongoing efforts to expand its podcasting offerings and increase its market share in the podcasting industry.</p><p>Whooshkaa is a popular podcast hosting platform in Australia, offering various services such as hosting, distribution, and monetization for podcast creators. With this acquisition, Spotify gains access to Whooshkaa’s technology and expertise, allowing the company to develop further its podcasting platform and expand its reach in the Australian market.</p><p>In addition to the technology and expertise, Spotify will also gain access to Whooshkaa’s podcast creators and advertisers network. This will enable Spotify to offer its users more diverse and high-quality content and provide new brand advertising opportunities.</p><p>The acquisition of Whooshkaa is just one of several recent moves by Spotify to expand its podcasting offerings. In recent years, Spotify has made several high-profile acquisitions in the podcasting space, including Gimlet Media, Anchor, and Megaphone. These acquisitions have enabled Spotify to become a significant player in the podcasting industry, with a growing library of exclusive content and a strong presence in key markets worldwide.</p><h3>Benefits for creators</h3><ol><li>Increased Reach: By using B2P technology, creators can expand their audience beyond live broadcasts, reaching a more comprehensive range of listeners who may not have been able to tune in at the time of the original broadcast. This increased reach can lead to greater engagement, more followers, and, ultimately, more revenue.</li><li>Monetization: B2P technology provides creators an additional revenue stream through podcast advertising. Creators can include sponsorships and advertisements in the podcast format, generating revenue from their content beyond live broadcasts.</li><li>Flexibility: B2P technology allows creators to repurpose and distribute their content in new ways, providing greater flexibility in their content strategy. Creators can create new podcasts based on their live broadcasts, highlight specific segments or topics, and experiment with different formats to engage their audience.</li><li>Improved Analytics: B2P technology often provides creators with detailed analytics about their podcast listenership, allowing them to understand their audience better and improve their content strategy. Creators can use this data to make informed decisions about future content and advertising opportunities.</li><li>Better Content Preservation: B2P technology allows creators to preserve and archive their live broadcasts, ensuring that their content remains accessible to listeners long after the live event has ended. This can help creators build a more robust content library, increasing engagement and listenership.</li></ol><h3>Benefits for Listeners</h3><ol><li>Convenience: With B2P technology, listeners can access their favorite live broadcasts in podcast format anytime, making it easy to fit listening into their busy schedules. This convenience lets them catch up on missed episodes and stay updated on their favorite shows.</li><li>Flexibility: B2P technology allows listeners to listen to their favorite content on demand. They can listen to podcasts at their own pace, pause and rewind whenever they want, and skip over the content they are not interested in. This level of control over their listening experience can enhance the enjoyment of the content.</li><li>Variety: B2P technology provides listeners access to a broader range of content than traditional radio or live broadcasts. They can discover new shows and topics they may not have been exposed to otherwise, expanding their knowledge and interests.</li><li>High-Quality Audio: B2P technology often involves editing and enhancing the audio quality of the broadcast, resulting in a high-quality listening experience for the listener. This improved audio quality can enhance the overall enjoyment of the content and provide a better listening experience.</li><li>Ad-Free Listening: B2P technology often enables listeners to access content without ads, providing a more streamlined listening experience. This can be especially appealing to listeners who may be turned off by excessive advertising during live broadcasts.</li></ol><p>Broadcasting-to-podcast (B2P) technology provides listeners with a convenient, flexible, and enjoyable way to access high-quality audio content. As podcasting continues to grow, we can expect B2P technology to become even more prevalent, offering more benefits to listeners.</p><h3>Final Thoughts:</h3><p>Broadcast-to-podcast (B2P) technology is a tool that allows live broadcasts to be repurposed and distributed as podcasts. This technology offers benefits for both listeners and creators. For listeners, B2P technology provides convenience, flexibility, variety, high-quality audio, and ad-free listening.</p><p>For creators, B2P technology offers increased reach, monetization opportunities, flexibility, improved analytics, and better content preservation. As podcasting continues to grow, we can expect B2P technology to become even more prevalent, providing more benefits to listeners and creators. This is an excellent move by Spotify.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4595f120144a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Collections in Microsoft Edge: The Ultimate Tool for Writers and Researchers]]></title>
            <link>https://medium.com/@BuildWithMadhan/collections-in-microsoft-edge-the-ultimate-tool-for-writers-and-researchers-fd4d567e6f9b?source=rss-2c356d54645d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd4d567e6f9b</guid>
            <category><![CDATA[writing-tools]]></category>
            <category><![CDATA[microsoft-edge-browser]]></category>
            <category><![CDATA[writers-on-writing]]></category>
            <category><![CDATA[writer]]></category>
            <category><![CDATA[collection]]></category>
            <dc:creator><![CDATA[Madhan]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 06:00:40 GMT</pubDate>
            <atom:updated>2023-04-11T06:00:40.300Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*czh6wYxKXXQFZyMM" /></figure><p>After ChatGPT, Microsoft Edge became more famous; before ChatGPT, I was a Google Chrome user, but now I want to try it on Microsoft Edge. If you are a Chrome user, you should also try Microsoft Edge; it has really some excellent features. Let us see in this post.</p><p>So I’m Exploring almost all the features of the Microsoft Edge browser. I will share them individually, but in this post, I will share my thoughts on Collection in Edge.</p><p>Before entering into the Collection in Edge, Let’s see the similar kind of tools in the same browser, Edge.</p><ol><li><strong>Favorites:</strong> Microsoft Edge’s Favorites feature allows you to save frequently visited websites and organize them into folders. While Favorites doesn’t offer the same organization and collaboration features as Collections, it can be helpful for quickly accessing your favorite websites.</li><li><strong>Reading List:</strong> The Reading List feature in Microsoft Edge allows you to save articles or web pages you want to read later. Reading List items can be organized into different categories, and they can be accessed even when you’re offline.</li><li><strong>Notes:</strong> Microsoft Edge also includes a Notes feature that allows you to annotate web pages and save your messages for later. This can be useful for taking notes on research materials or jotting down ideas as you browse the web.</li></ol><p>Okay, there are lots of tools out there in browser extensions. I picked these three tools because collection gives the benefits of these three tools in one place.</p><p>When Microsoft launched Collections in Microsoft Edge, they emphasized that the feature was designed to help users “<strong>collect, organize, share, and export content more efficiently</strong> and with Office integration.”</p><p>They described Collections as a “powerful research tool” that could help users save and organize content from the web, collaborate with others, and export their collections to Excel for further analysis.</p><p>Now you may wonder why we need collection, why we need to concentrate on this small tool; if you are a writer, you need to research a lot for your topic, you may find the right article from the web, but you need to add some comments about the article that you need it for future use, you may want to add some images, you can add that too in your collection,</p><p>After your online research, you need to start your writing; with a collection, all your research is in one place. You don’t want to miss anything by switching between different tools for your one goal, and its right in your browser,</p><p>You can do the same across all the devices with Microsoft Edge using a Microsoft account.</p><p>I have mentioned the Writer’s use case here, but you can also use this as your online shopping tool. Where you can add products to your collection and notes to the particular product, you can compare which one is best to purchase.</p><p>The collection is effortless to collect and organize our idea better, and the most important thing is that you can share all your saved items at once.</p><h4>How to Share Collection items all at once?</h4><p>Open your collection, then click on the three dots in the top right corner. You will see the option “<strong>Copy all the items to clipboard”.</strong> Once you have done that, all the items inside your collection will be copied to your clipboard. Now, you can paste this into an email, WhatsApp, or other social media apps to share it with whoever you want to.</p><h4>Conclusion:</h4><p>In this post, we explore the Collection feature in Microsoft Edge and its usefulness for various tasks such as research and online shopping. We compare Collection to similar tools in Edge, such as Favorites, Reading List, and Notes, and explain how Collection combines the benefits of these tools in one place. Also, we found the benefits of using Collection for writers and researchers who need to organize their research materials efficiently. It also highlights the collaboration and sharing features of Collection and how it can be used across all devices with a Microsoft account.</p><p>Thanks for reading! If you found value in this post, hit the clap button below. And be sure to follow me for more content like this in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd4d567e6f9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Reasons to Try Microsoft Edge for a Better Online Experience]]></title>
            <link>https://medium.com/@BuildWithMadhan/5-reasons-to-try-microsoft-edge-for-a-better-online-experience-9c72f4c8d280?source=rss-2c356d54645d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c72f4c8d280</guid>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[features]]></category>
            <category><![CDATA[online-experience]]></category>
            <category><![CDATA[technews]]></category>
            <category><![CDATA[microsoft-edge-browser]]></category>
            <dc:creator><![CDATA[Madhan]]></dc:creator>
            <pubDate>Mon, 10 Apr 2023 13:44:32 GMT</pubDate>
            <atom:updated>2023-04-10T13:44:32.712Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N1FkMhIoWcnqWuPb2oezFw.jpeg" /><figcaption>5 Reasons to Try Microsoft Edge for a Better Online Experience</figcaption></figure><p>Web browsers have become an essential part of our day-to-day lives, allowing us to browse the internet, stream videos, shop online, and much more. With so many web browsers, we need help choosing one to use. One browser that has gained popularity in recent years is Microsoft Edge. In this blog post, we’ll explore the top 5 features of Microsoft Edge that make it stand out.</p><h3>Privacy and Security</h3><p>Privacy and security are essential considerations for anyone using the internet. Microsoft Edge is built with privacy and security in mind, with a range of features designed to protect users’ data and personal information. One of the most notable features of Edge is the Tracking Prevention tool, which blocks websites from tracking users’ online activity. This feature also helps to reduce the number of targeted ads users see while browsing. Additionally, Edge has a Password Monitor feature that warns users if their passwords have been compromised in a data breach. By prioritizing privacy and security, Microsoft Edge provides users peace of mind while browsing the web.</p><p>Customization, One of the benefits of using Microsoft Edge is its range of customization options. Users can personalize their browsing experience by changing the browser’s layout, such as choosing a dark mode or setting a custom background. Edge also supports extensions, which can be added to the browser to enhance its functionality. There are many extensions available for Edge, from ad-blockers to note-taking tools. By allowing users to customize their browsing experience, Edge provides a more tailored experience that can improve productivity and convenience.</p><h3>Collections</h3><p>Collections is a unique feature of Microsoft Edge that allows users to organize the information they find online. Collections work like a virtual notebook, where users can save and group related information from the web, such as links, images, and text. This feature is handy for those conducting research or working on projects where they need to keep track of multiple sources of information. Collections make it easy to gather and organize your info in one place, making it easier to reference and use later.</p><h3>Immersive Reader</h3><p>Microsoft Edge’s Immersive Reader feature can be a game-changer for those with reading difficulties. An immersive Reader is a tool that can be used to improve reading comprehension and focus. It works by stripping away distracting elements from a webpage, such as ads and images, and presenting the text in a clear and easy-to-read format. Users can also adjust the font size, spacing, and color to suit their preferences. Immersive Reader can benefit those with dyslexia, ADHD, and other reading difficulties and anyone who wants to improve their reading skills.</p><h3>Vertical Tabs</h3><p>Microsoft Edge’s Vertical Tabs feature can help you stay organized if you frequently have multiple tabs open while browsing. Vertical Tabs move the tabs from the top of the browser to the side, making it easier to see and access all your open tabs. This feature also allows users to group tabs, making switching between tasks and projects more accessible. Vertical Tabs can improve productivity and efficiency by providing a more streamlined and organized browsing experience.</p><p>Another notable aspect of Microsoft Edge is its integration with other Microsoft products and services. For example, Edge is the default browser for Windows 10 and is tightly integrated with the operating system. This integration makes it easy to use other Microsoft products and services, such as Office 365 and OneDrive while using Edge. Additionally, Edge has built-in integration with Microsoft Rewards, a program that rewards users for using Microsoft products and services. This integration can incentivize users to stick with Edge over other browsers.</p><p>Overall, Microsoft Edge is a strong contender among web browsers, offering a range of unique features and benefits. Whether you prioritize privacy and security, customization options, organization tools, reading assistance, or productivity, Microsoft Edge has something to offer. So, if you’re looking for a browser that puts your needs first and provides a more personalized and streamlined browsing experience, try Microsoft Edge, and you will notice how helpful it is for your online experience.</p><p>In conclusion, Microsoft Edge offers a range of features that make it a strong contender among web browsers. Its focus on privacy and security, customization options, Collections feature, Immersive Reader tool, and Vertical Tabs feature all contribute to a more efficient and enjoyable browsing experience. While many web browsers are available, Microsoft Edge’s unique features make it a compelling choice for anyone looking for a browser that prioritizes their needs and preferences. So, if you’re looking for a new browser, give Microsoft Edge a chance and see how it can improve your online experience.</p><p>If you found this article helpful, please hit the clap button below to show your support. Your feedback is valuable to me and helps me create more content that you’ll find beneficial.</p><p>Also, if you want to stay updated on the latest tech news and tips, follow me for more content like this. Thank you for reading, and I look forward to sharing more insights with you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c72f4c8d280" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplify Your Styling: A Beginner’s Guide to Jetpack Compose Theming]]></title>
            <link>https://medium.com/@BuildWithMadhan/simplify-your-styling-a-beginners-guide-to-jetpack-compose-theming-140cbe3a84f9?source=rss-2c356d54645d------2</link>
            <guid isPermaLink="false">https://medium.com/p/140cbe3a84f9</guid>
            <category><![CDATA[native-development]]></category>
            <category><![CDATA[folder-structure]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[themes]]></category>
            <dc:creator><![CDATA[Madhan]]></dc:creator>
            <pubDate>Fri, 07 Apr 2023 03:02:14 GMT</pubDate>
            <atom:updated>2023-04-07T03:02:14.119Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*u-UqIzBPR1nJZDdE" /><figcaption>Simplify Your Styling</figcaption></figure><p>In today’s mobile app market, it’s not enough to simply provide users with a functional app. Users expect a polished, visually appealing experience for every mobile app that they are using. This is where theming comes in — the ability to customize the look and feel of your app’s UI elements.</p><p>In Jetpack Compose, theming is a powerful tool that allows you to easily style your app using pre-built or custom themes. With just a few lines of code, we can create consistent UI components that enhance our app’s appeal.</p><p>In this blog post, we’ll take a closer look at theming in Jetpack Compose and explore how you can use it to customize your app’s UI elements. We’ll cover the basics of creating and applying custom themes, as well as advanced techniques for generalizing and organizing your theming code.</p><p>By the end of this post, you’ll have the knowledge and tools to take your app’s styling to the next level.</p><h3>Theming in jetpack compose</h3><p>Theming helps create a consistent and aesthetically pleasing user interface that enhances user experience. As all, we know Jetpack Compose is a declarative UI toolkit introduced by Google that simplifies the UI development process. It offers many pre-built Material Design components that can be easily customized using different themes. By using themes in Jetpack Compose, developers can easily apply a consistent look and feel to their application and customize it to per project brand requirements. In this article, we will explore how to use themes in Jetpack Compose and customize them to create a visually appealing user interface.</p><h3>Thinking in Themes</h3><p>When designing an Android application, thinking about themes is crucial for creating a consistent and visually appealing user interface. A theme defines the overall look and feel of an application, including the <strong>colors, typography</strong>, and other design elements. In Jetpack Compose, themes can be created using the <strong>MaterialTheme</strong> component that is part of the Material Design library.</p><p>This component provides a set of predefined styles for various UI elements that can be customized to match the application’s brand identity.</p><p>Jetpack Compose allows us to create a custom theme as quickly and simply as possible. We can create a new instance of the <strong>MaterialTheme</strong> component and provide it with custom values for the predefined styles.</p><p>For example, to change the primary color of an application, the developer can set the <strong>primary</strong> property of the <strong>colors</strong> object to a custom color value.</p><p>Similarly, the <strong>Typography</strong> object can be customized to define the font family, size, and weight for various text elements.</p><p>By thinking in themes, we can easily create a consistent and visually appealing user interface that enhances the user experience. They can also create different themes for different use cases, such as a dark theme for low-light environments or a high-contrast theme for users with visual impairments.</p><p>Overall, theming can impact the success of an application.</p><p><strong>Let starts with an example for using material theme in Jetpack compose</strong></p><pre>@Composable<br>fun MyScreenContent() {<br>    MaterialTheme {<br>        Column {<br>            Text(text = &quot;Hello, world!&quot;)<br>            Button(onClick = { /* Do something */ }) {<br>                Text(&quot;Click me&quot;)<br>            }<br>        }<br>    }<br>}</pre><p>In this example, the <strong>MyScreenContent</strong> composable function creates a basic layout that contains a <strong>Text</strong> and a <strong>Button</strong> element.</p><p>The <strong>MaterialTheme</strong> component is used to wrap the <strong>Column</strong> element, which applies the default Material Design styles to all of its child elements.</p><p>By default, the <strong>MaterialTheme</strong> component uses the <strong>ThemeColors</strong> and <strong>Typography</strong> objects to define the colors and typography for the UI elements.</p><p>However, developers can customize these objects by passing in custom values to the <strong>MaterialTheme</strong> component. For example, to change the primary color of the application, the <strong>colors</strong> parameter can be used as follows:</p><pre>MaterialTheme(colors = Colors(primary = Color.Red)) {<br>    // ...<br>}</pre><p>In this case, the primary color of the application is set to red instead of the default blue color. This is just one example of how the <strong>MaterialTheme</strong> component can be customized to create a unique and visually appealing user interface.</p><h3>Keep Theme code clean with Kotlin</h3><pre>object MyTheme {<br>    private val colors = lightColors(<br>        primary = Color(0xFF6200EE),<br>        primaryVariant = Color(0xFF3700B3),<br>        secondary = Color(0xFF03DAC6)<br>    )</pre><pre>    val theme: @Composable () -&gt; Unit = {<br>        MaterialTheme(<br>            colors = colors,<br>            typography = Typography(),<br>            shapes = Shapes(),<br>            content = {<br>                // Content of the app goes here<br>            }<br>        )<br>    }<br>}</pre><pre>@Composable<br>fun MyScreenContent() {<br>    MyTheme.theme {<br>        Column {<br>            Text(text = &quot;Hello, world!&quot;)<br>            Button(onClick = { /* Do something */ }) {<br>                Text(&quot;Click me&quot;)<br>            }<br>        }<br>    }<br>}</pre><p>In this example, the <strong>MyTheme</strong> object defines a custom theme for the application using the <strong>MaterialTheme</strong> component. The <strong>colors</strong>, <strong>typography</strong>, and <strong>shapes</strong> objects are defined with custom values, which can be modified to suit the needs of the application.</p><p>The <strong>theme</strong> property of the <strong>MyTheme</strong> object is a composable function that can be used to apply the custom theme to the application. By wrapping the <strong>Column</strong> element in the <strong>MyTheme.theme</strong> function, the custom theme is applied to all of its child elements.</p><p>This approach of generalizing the <strong>MaterialTheme</strong> allows developers to create a reusable theme that can be easily applied to different parts of the application. It also provides a way to organize and manage the theme resources in a centralized location, which can simplify the theme customization process.</p><h3>A few more examples by generalizing the Material Theme in Jetpack compose</h3><p>you can use the same technique of generalizing themes to customize the look and feel of individual UI components like <strong>Button</strong> and <strong>Text</strong>. Here&#39;s an example of how you can do this:</p><pre>object MyButtonTheme {<br>    val colors = ButtonDefaults.buttonColors(<br>        backgroundColor = Color.Blue,<br>        contentColor = Color.White<br>    )</pre><pre>    val shape = RoundedCornerShape(8.dp)</pre><pre>    val elevation = ButtonDefaults.elevation(<br>        defaultElevation = 4.dp,<br>        pressedElevation = 8.dp<br>    )<br>}</pre><pre>@Composable<br>fun MyButton(text: String, onClick: () -&gt; Unit) {<br>    Button(<br>        onClick = onClick,<br>        colors = MyButtonTheme.colors,<br>        shape = MyButtonTheme.shape,<br>        elevation = MyButtonTheme.elevation<br>    ) {<br>        Text(text = text)<br>    }<br>}</pre><pre>object MyTextTheme {<br>    val typography = Typography(<br>        body1 = TextStyle(<br>            fontFamily = FontFamily.SansSerif,<br>            fontWeight = FontWeight.Bold,<br>            fontSize = 16.sp,<br>            letterSpacing = 0.15.sp<br>        )<br>    )<br>}</pre><pre>@Composable<br>fun MyScreenContent() {<br>    MaterialTheme(<br>        typography = MyTextTheme.typography<br>    ) {<br>        Column {<br>            Text(text = &quot;Hello, world!&quot;)<br>            Text(text = &quot;This is a custom text style.&quot;)<br>        }<br>    }<br>}</pre><h3>Lets Keep it all in one place</h3><pre>object MyTheme {<br>    private val LightColorPalette = lightColors(<br>        primary = Color.Blue,<br>        primaryVariant = Color.DarkGray,<br>        secondary = Color.Yellow<br>    )</pre><pre>    private val DarkColorPalette = darkColors(<br>        primary = Color.White,<br>        primaryVariant = Color.DarkGray,<br>        secondary = Color.Yellow<br>    )</pre><pre>    val Typography = Typography(<br>        h1 = TextStyle(<br>            fontSize = 28.sp,<br>            fontWeight = FontWeight.Bold,<br>            letterSpacing = 1.5.sp,<br>            color = Color.Black<br>        ),<br>        h2 = TextStyle(<br>            fontSize = 24.sp,<br>            fontWeight = FontWeight.SemiBold,<br>            letterSpacing = 0.5.sp,<br>            color = Color.Black<br>        ),<br>        body1 = TextStyle(<br>            fontSize = 16.sp,<br>            fontWeight = FontWeight.Normal,<br>            letterSpacing = 0.15.sp,<br>            color = Color.Black<br>        ),<br>        button = TextStyle(<br>            fontSize = 16.sp,<br>            fontWeight = FontWeight.Bold,<br>            letterSpacing = 1.25.sp,<br>            color = Color.White<br>        )<br>    )</pre><pre>    val LightTheme: @Composable () -&gt; Unit = {<br>        MaterialTheme(<br>            colors = LightColorPalette,<br>            typography = Typography,<br>            shapes = Shapes,<br>            content = {<br>                // Content of the app goes here<br>            }<br>        )<br>    }</pre><pre>    val DarkTheme: @Composable () -&gt; Unit = {<br>        MaterialTheme(<br>            colors = DarkColorPalette,<br>            typography = Typography,<br>            shapes = Shapes,<br>            content = {<br>                // Content of the app goes here<br>            }<br>        )<br>    }</pre><pre>    object MyButtonTheme {<br>        val colors = ButtonDefaults.buttonColors(<br>            backgroundColor = Color.Blue,<br>            contentColor = Color.White<br>        )</pre><pre>        val shape = RoundedCornerShape(8.dp)</pre><pre>        val elevation = ButtonDefaults.elevation(<br>            defaultElevation = 4.dp,<br>            pressedElevation = 8.dp<br>        )<br>    }</pre><pre>    @Composable<br>    fun MyButton(text: String, onClick: () -&gt; Unit) {<br>        Button(<br>            onClick = onClick,<br>            colors = MyButtonTheme.colors,<br>            shape = MyButtonTheme.shape,<br>            elevation = MyButtonTheme.elevation<br>        ) {<br>            Text(text = text)<br>        }<br>    }<br>}</pre><p>By defining all your custom themes and UI components in a single class file, you can easily manage and access them from any composable function in your app, providing a consistent and visually appealing user interface.</p><h3>BONUS</h3><p>As a developer, we all should maintain our folder structure neat and organized to revisit the code anytime by any developer without headache,</p><p>Maintaining all the code in one relevant folder is essential, which saves lots of time. So here is my simple folder structure to maintain our theme code.</p><p>I will cover this topic in the future. here’s an example of a folder structure that you could use to organize your theming code:</p><pre>└── app<br>    └── src<br>        ├── main<br>        │   ├── java<br>        │   ├── res<br>        │   └── kotlin<br>        │       └── com<br>        │           └── example<br>        │               └── myapp<br>        │                   ├── MyApplication.kt<br>        │                   ├── ui<br>        │                   │   ├── MyScreen.kt<br>        │                   │   └── common<br>        │                   │       └── Theme.kt<br>        │                   └── theme<br>        │                       ├── ButtonTheme.kt<br>        │                       └── AppTheme.kt<br>        └── test</pre><p>In this example, the <strong>com.example.myapp</strong> package contains two sub-packages: <strong>ui</strong> and <strong>theme</strong>.</p><p>The <strong>ui</strong> package contains all of your app&#39;s UI code, including the <strong>MyScreen</strong> composable function. The <strong>common</strong> package within the <strong>ui</strong> package contains the <strong>Theme</strong> object, which defines your app&#39;s custom themes, as shown in the previous example.</p><p>The <strong>theme</strong> package contains all the code related to theming your app, including the <strong>ButtonTheme</strong> and <strong>AppTheme</strong> objects. You can add more objects in this package as needed.</p><p>By organizing your theming code in a separate package, you can easily locate and modify it when necessary. This structure also makes it easier to share your theming code across multiple screens and features within your app.</p><h3>Conclusion</h3><p>In conclusion, theming in Jetpack Compose is a powerful tool that allows you to customize your app’s look and feel with ease. By using the <strong>MaterialTheme</strong> and <strong>CompositionLocalProvider</strong> composable functions, you can create your own custom themes and apply them to your app&#39;s UI elements.</p><p>When creating custom themes, it’s important to think about how you can make them reusable and maintainable. By generalizing your themes and creating an organized folder structure to store them, you can ensure that your theming code is easy to read, and update as per your requirements.</p><p>Overall, theming in Jetpack Compose provides a flexible and intuitive way to style your app, and with a little planning and organization, you can create beautiful and consistent UIs in less amount of time</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=140cbe3a84f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Break The Cycle Of Procrastination?]]></title>
            <link>https://medium.com/@BuildWithMadhan/how-to-break-the-cycle-of-procrastination-d2c0f90a8073?source=rss-2c356d54645d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2c0f90a8073</guid>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[break-the-cycle]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[procrastination]]></category>
            <dc:creator><![CDATA[Madhan]]></dc:creator>
            <pubDate>Fri, 03 Mar 2023 10:05:30 GMT</pubDate>
            <atom:updated>2023-03-03T10:05:30.326Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*P8hH0V_p1w7StJQdKaDkwA.png" /><figcaption>How To Break The Cycle Of Procrastination?</figcaption></figure><p><strong>Procrastination</strong> is an act of delaying or postponing a task or action. This happens if you find a lack of motivation for your task. Procrastination often happens when you feel overwhelmed or anxious about completing a task and you believe that you need to complete that task perfectly or not at all.</p><h3>Don’t be perfect?</h3><p>Yes, you heard it right. Perfection is one of the worst things that we have in both our personal and professional life. Perfectionist won’t complete their task on time, which leads to a lack of productivity. If you lose productivity, you will lose motivation to continue, That’s why I call perfection the worst thing.</p><p>Remember no one is perfect and no one needs perfect output. Because everyone is in the process of learning new things from our daily activities, nothing can be perfect, so why do we need perfection in everything?</p><h3>Cycle of perfectionist</h3><p>Perfectionism and Procrastination often go hand in hand, after creating a cycle that is difficult to break. The Cycle starts with the perfectionist, as they need flawless work, they keep on spending time on preparation of the work instead of actually doing those stuff, because they are afraid of making mistakes.</p><p>Eventually, the deadline approaches, and the perfectionist realizes that they are not making as much progress as they should have. This can lead to more stress and anxiety, which only produces problems.</p><h3>Break the cycle</h3><p>Breaking this cycle is not an easy task, but it is doable.</p><p>We can break the cycle, By Setting more realistic goals and deadlines, which can help us to complete the process, Don’t try to produce the perfect output, get rid of this from your mind first. Perfectionists can aim for good enough and then make improvements as needed.</p><p>By doing this you can still produce quality work without getting bogged down in the details.</p><h3><strong>Final thoughts</strong></h3><p>The Cycle of perfectionism and procrastination can be detrimental to a person’s productivity and well-being. By recognizing the signs of the cycle and taking steps to break it, perfectionists can learn to be more productive and confident in their work.</p><p>If you find value in this post, do clap it and flow me to keep in touch on this writing platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2c0f90a8073" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Consistency vs. Flexibility: Finding the Right Balance within a System]]></title>
            <link>https://medium.com/@BuildWithMadhan/consistency-vs-flexibility-finding-the-right-balance-within-a-system-d07f070b78f2?source=rss-2c356d54645d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d07f070b78f2</guid>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[consistency]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[flexibility]]></category>
            <category><![CDATA[professional-development]]></category>
            <dc:creator><![CDATA[Madhan]]></dc:creator>
            <pubDate>Tue, 28 Feb 2023 08:56:21 GMT</pubDate>
            <atom:updated>2023-02-28T08:56:21.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*aPrWEaxHBt32LZwJmdpuCQ.jpeg" /><figcaption>Consistency vs. Flexibility: Finding the Right Balance within a System</figcaption></figure><p>In both our personal and professional life, systems are essential. It gives us structure, keeps us organized, and makes sure that work is done. A system could be anything from a collection of instructions to a schedule or routine. It increases our productivity and lessens the possibility of errors or missed deadlines.</p><p>To do our objectives and succeed, we must have a system in place. A system must find the ideal balance between consistency and flexibility if it is to remain successful and relevant over time.</p><h3>Consistency and its advantages within a system</h3><p>The act of maintaining a specific quality of performance is known as consistency. Establishing a system requires consistency since it ensures that tasks are completed consistently, resulting in a predictable and reliable outcome.</p><p>Being consistent with people also helps you win their trust since it demonstrates to them that they can rely on you to fulfill what you promise. Moreover, consistency inside a system can boost output, lower errors, and make it simpler to spot areas that require development. You may improve a system over time by adhering to it regularly, which will produce better outcomes and higher success. To achieve success, it’s crucial to strike a balance between consistency and flexibility.</p><h3>The Benefits of Flexibility in Adapting to New Situations and Opening Up Opportunities in Systems:</h3><p>The ability to modify and conform to shifting conditions is referred to as flexibility. Flexibility is crucial in a system since it enables you to make adjustments as necessary to enhance the result or satisfy new needs.</p><p>Also, flexibility permits you to seize any unanticipated new chances that may present themselves. You may take advantage of these chances and use them to your advantage by being adaptable and open to change. Flexibility can also foster innovation and creativity inside a system since it encourages employees to think outside the box.</p><h3>Tips for Balancing Consistency and Flexibility in Your System</h3><p>It might be difficult to strike the perfect balance between consistency and flexibility, but there are a number of tactics you can use to succeed.</p><p>Setting up specific goals and objectives for your system is one tactic. This will enable you to maintain some flexibility in how you accomplish those goals while also helping you keep focused and consistent in your approach.</p><p>Another tactic is to regularly assess your system and make necessary improvements. This will assist you in determining areas where, depending on the situation, you might need to be more consistent or more adaptable. Finding the ideal balance can also be helped by asking others for their opinions. You may receive this criticism from coworkers, managers, or even customers, and it can assist you in identifying it.</p><h3>Tips for maintaining the balance over time</h3><p>Maintaining the balance between consistency and flexibility within a system is an ongoing process that requires effort and attention over time.</p><p><strong>Here are some tips to help you maintain the balance:</strong></p><p><strong>Periodically examine your system’s performance:</strong> Make it a habit to check in on your system and determine how well it’s serving you. This will assist you in locating potential improvement or modification areas.</p><p><strong>Be open to change:</strong> While maintaining consistency is crucial, it’s equally critical to be adaptable and ready to adjust when called for. Be receptive to fresh perspectives and methods, and be prepared to modify your approach as necessary.</p><p><strong>Prioritize your goals:</strong> When you strive to preserve the harmony between consistency and flexibility, keep your goals in mind. Make sure your system encourages and facilitates the achievement of your goals.</p><p><strong>Practice self-awareness:</strong> Pay attention to your own tendencies and habits, and be aware of when you’re leaning too heavily towards one side of the balance. This will help you make adjustments and maintain a healthy balance over time.</p><p><strong>Seek feedback:</strong> Get feedback from others, whether it’s from colleagues, friends, or family members. This can help you gain new perspectives and identify areas where you may need to adjust your approach.</p><p>By following these tips and remaining committed to finding the right balance between consistency and flexibility, you’ll be able to maintain a strong system that supports your goals and helps you achieve success.</p><h3>Final thoughts</h3><p>Success in each area of life depends on striking the ideal balance between consistency and flexibility within a system. Consistency helps you stay on track to achieve your goals, while flexibility enables you to respond to unexpected events and seize new possibilities. Finding the ideal balance, though, can be difficult and calls for ongoing work and introspection.</p><p>It’s critical to have a well-defined system in place that offers direction and rules for uniformity while still allowing for some degree of flexibility. You may maintain the proper balance throughout time by routinely reevaluating and changing your system to match your present objectives and situation.</p><p>Remember, finding the right balance between consistency and flexibility is not a one-time achievement, but a continuous process that requires dedication and perseverance. With the right mindset and strategies in place, you can achieve the right balance and reach your full potential.</p><p>If you enjoyed reading this article, please don’t forget to give it a clap and consider following me for more content like this. I look forward to seeing you again soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d07f070b78f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 Reasons Why Continuous Learning is Essential for your personal growth]]></title>
            <link>https://medium.com/@BuildWithMadhan/6-reasons-why-continuous-learning-is-essential-for-your-personal-growth-c9f836c272ee?source=rss-2c356d54645d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9f836c272ee</guid>
            <category><![CDATA[job-performance]]></category>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[continuous-learning]]></category>
            <category><![CDATA[my-learning-essentials]]></category>
            <category><![CDATA[career-growth]]></category>
            <dc:creator><![CDATA[Madhan]]></dc:creator>
            <pubDate>Fri, 24 Feb 2023 10:38:37 GMT</pubDate>
            <atom:updated>2023-02-24T10:38:37.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*wCg43rqD4AaA7sU5EI69cA.jpeg" /><figcaption>6 Reasons Why Continuous Learning is Essential for your personal growth</figcaption></figure><p>Continuous learning means acquiring new knowledge and skills throughout your life. In our fast-paced and constantly changing world, it’s super important to keep learning if you want to stay relevant and adaptable.</p><p>Here are six reasons why continuous learning is essential:</p><h3>1. Adapting to Change</h3><p>The world is changing, and it’s essential to keep up. By learning, you’ll stay in the loop with the latest industry trends and technologies. This will help you adapt more to changes and challenges that come your way. By staying ahead of the curve, you’ll be better equipped to navigate new challenges and opportunities that arise.</p><h3>2. Improving Job Performance</h3><p>Continuous learning is crucial to improving job performance. When you keep learning new things, you become better at your job. learning new things can help you in a lot of ways! This, in turn, can lead to improved productivity and better results.</p><h3>3. Enhancing Career Opportunities</h3><p>Continuous learning can open up new career opportunities. If you keep learning and building new skills, you’ll be more ready to take on new challenges and responsibilities that come your way. You’ll have a wider range of abilities and knowledge, which can make you a more valuable asset to your team or company. This can lead to promotions, salary increases, and other career advancements.</p><h3>4. Boosting Self-Confidence</h3><p>Learning new things can be challenging, but it’s also rewarding. As you expand your knowledge and skills, you’ll feel more confident in your abilities. When you learn and improve your skills, it can have positive effects in different areas of your life.</p><h3>5. Keeping the Mind Sharp</h3><p>Continuous learning is essential to keeping the mind sharp. like any muscle in the body, the brain needs regular exercise to stay healthy and strong. Learning new things can help improve memory, cognitive function, and brain health.</p><h3>6. Personal Growth and Fulfillment</h3><p>Learning is not about career advancement; it’s also about personal growth and fulfillment. When you keep learning new things, you can discover new interests and passions that you may not have known about before. This can give you a greater sense of purpose and fulfillment in life, as you pursue things that interest and inspire you. It can also help you develop new hobbies and interests that can enrich your life outside of work.</p><p>In conclusion, continuous learning is essential in today’s fast-paced and ever-changing world. Continuous learning is important in today’s world for a bunch of reasons. If you keep learning new things, you’ll be able to handle changes more, do better at work, explore new career options, feel more confident in yourself, keep your brain sharp, and experience personal growth and fulfillment. Whether you want to climb the career ladder or live a more fulfilling life, learning new things is a powerful way to get there. So, keep learning and growing, and watch as your life transforms in ways you never thought possible.</p><p>If you enjoyed reading this article, please don’t forget to give it a clap and consider following me for more content like this. I look forward to seeing you again soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9f836c272ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>