<?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 Shirisha Reddy on Medium]]></title>
        <description><![CDATA[Stories by Shirisha Reddy on Medium]]></description>
        <link>https://medium.com/@kuchanpallyshirisha?source=rss-9d44c2dbfed8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4XCfkYQMSonnIQhKzcTF0A.jpeg</url>
            <title>Stories by Shirisha Reddy on Medium</title>
            <link>https://medium.com/@kuchanpallyshirisha?source=rss-9d44c2dbfed8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 02:47:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kuchanpallyshirisha/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[ Kotlin Interview Series — Day: Extension Functions]]></title>
            <link>https://medium.com/@kuchanpallyshirisha/kotlin-interview-series-day-extension-functions-5489e9a75435?source=rss-9d44c2dbfed8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5489e9a75435</guid>
            <category><![CDATA[extension-functions]]></category>
            <dc:creator><![CDATA[Shirisha Reddy]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 10:27:22 GMT</pubDate>
            <atom:updated>2026-09-24T10:27:22.361Z</atom:updated>
            <content:encoded><![CDATA[<p>🚀 <strong>Kotlin Interview Series — Day: Extension Functions</strong></p><p>Have you ever wanted to add a new function to an existing Kotlin class <strong>without modifying its source code?</strong> 🤔</p><p>That’s exactly what <strong>Extension Functions</strong> help us do! 💡</p><h3>🔹 What is an Extension Function?</h3><p>An Extension Function allows us to add a new function to an existing class <strong>without changing the original class</strong>.</p><p>It can be used with:<br>✅ Kotlin classes<br>✅ Android classes<br>✅ Third-party classes<br>✅ Your own custom classes</p><h3>🔹 Basic Syntax</h3><pre>fun ClassName.functionName(): ReturnType {<br>    // function body<br>}</pre><p>For example:</p><pre>fun String.addExclamation(): String {<br>    return this + &quot;!&quot;<br>}</pre><pre>fun main() {<br>    println(&quot;Hello&quot;.addExclamation())<br>}</pre><p>Output:</p><pre>Hello!</pre><p>Here:</p><ul><li>String → receiver type</li><li>addExclamation() → extension function</li><li>this → current String object</li></ul><h3>🔹 Interview Example: Palindrome</h3><pre>fun String.isPalindrome(): Boolean {<br>    val cleaned = this.replace(&quot; &quot;, &quot;&quot;).lowercase()<br>    return cleaned == cleaned.reversed()<br>}</pre><pre>fun main() {<br>    println(&quot;Madam&quot;.isPalindrome())<br>    println(&quot;Hello&quot;.isPalindrome())<br>}</pre><p>Output:</p><pre>true<br>false</pre><p>Instead of writing:</p><pre>isPalindrome(&quot;Madam&quot;)</pre><p>we can write:</p><pre>&quot;Madam&quot;.isPalindrome()</pre><p>This makes the code <strong>cleaner and easier to read.</strong></p><h3>🔹 Android Example</h3><p>We can create useful extensions for Android:</p><pre>fun Context.showToast(message: String) {<br>    Toast.makeText(this, message, Toast.LENGTH_SHORT).show()<br>}</pre><p>Usage:</p><pre>context.showToast(&quot;Login Successful&quot;)</pre><p>This is very common in Android projects.</p><h3>⭐ Important Interview Points</h3><p><strong>Q1. Can extension functions modify the original class?</strong></p><p>❌ No.</p><p>They add functionality externally without changing the original class.</p><p><strong>Q2. Can an extension function access private members?</strong></p><p>❌ No.</p><p>It cannot directly access private members of the class.</p><p><strong>Q3. Are extension functions actually added to the class?</strong></p><p>❌ No.</p><p>They are resolved as extension functions and are <strong>not actual members of the class</strong>.</p><p><strong>Q4. Can extension functions be overridden?</strong></p><p>❌ No.</p><p>Extension functions are <strong>statically resolved</strong>, so they are not polymorphic like member functions.</p><h3>💡 Where do we use Extension Functions?</h3><p>In real Android projects, they are useful for:</p><p>📱 Context utilities<br>📝 String validation<br>🔢 Int formatting<br>📋 List transformations<br>🖼️ View/UI utilities<br>🌐 API/network helpers<br>🧩 Reusable project utilities</p><h3>🎯 Remember This</h3><p><strong>Extension Function = Add functionality without modifying the original class.</strong></p><pre>Existing Class<br>      ↓<br>Extension Function<br>      ↓<br>More readable + reusable code</pre><p>If you’re preparing for <strong>Android/Kotlin interviews</strong>, make sure you understand not only the syntax but also <strong>static resolution, receiver types, member vs extension functions, and limitations</strong>.</p><p>💬 <strong>Interview Question:</strong><br>What happens if a class already has a member function with the same name as an extension function?</p><p>Share your answer in the comments 👇</p><p>#Kotlin #Android #AndroidDevelopment #KotlinTips #KotlinInterview #AndroidInterview #JetpackCompose #MobileDevelopment #Programming #CleanCode #SoftwareDeveloper</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5489e9a75435" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jetpack Compose: OutlinedButton]]></title>
            <link>https://medium.com/@kuchanpallyshirisha/jetpack-compose-outlinedbutton-30294bb4cb92?source=rss-9d44c2dbfed8------2</link>
            <guid isPermaLink="false">https://medium.com/p/30294bb4cb92</guid>
            <category><![CDATA[jetpack-compose-tutorial]]></category>
            <dc:creator><![CDATA[Shirisha Reddy]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 10:22:49 GMT</pubDate>
            <atom:updated>2026-06-25T10:22:49.716Z</atom:updated>
            <content:encoded><![CDATA[<p>Jetpack Compose: OutlinedButton with Animation<br>Want to make your buttons feel more interactive?<br>In Jetpack Compose, you can combine OutlinedButton, State Management, and Animations to create a smooth user experience.<br>@Composable<br>fun AnimatedOutlinedButton() {</p><p>var clicked by remember { mutableStateOf(false) }<br> val scale by animateFloatAsState(<br> targetValue = if (clicked) 1.1f else 1f,<br> label = “buttonScale”<br> )</p><p>OutlinedButton(<br> onClick ​= {<br> clicked = !clicked<br> },<br> modifier = Modifier.scale(scale)<br> ) {<br> Text(<br> text = if (clicked) “Clicked ✅” else “Click Me”<br> )<br> }<br>}<br>✨ What happens?<br>✔ Button text changes on click<br>✔ Smooth scale animation<br>✔ Uses Compose State Management<br>✔ Minimal and clean code<br>Key Concepts:<br>🔹 remember &amp; mutableStateOf<br>🔹 OutlinedButton<br>🔹 animateFloatAsState<br>🔹 Recomposition<br>Small animations like these can make your app feel much more polished and engaging.<br><a href="https://www.linkedin.com/search/results/all/?keywords=%23jetpackcompose&amp;origin=HASH_TAG_FROM_FEED">hashtag#JetpackCompose</a> <a href="https://www.linkedin.com/search/results/all/?keywords=%23androiddevelopment&amp;origin=HASH_TAG_FROM_FEED">hashtag#AndroidDevelopment</a> <a href="https://www.linkedin.com/search/results/all/?keywords=%23kotlin&amp;origin=HASH_TAG_FROM_FEED">hashtag#Kotlin</a> <a href="https://www.linkedin.com/search/results/all/?keywords=%23androiddev&amp;origin=HASH_TAG_FROM_FEED">hashtag#AndroidDev</a> <a href="https://www.linkedin.com/search/results/all/?keywords=%23composeanimation&amp;origin=HASH_TAG_FROM_FEED">hashtag#ComposeAnimation</a> <a href="https://www.linkedin.com/search/results/all/?keywords=%23mobiledevelopment&amp;origin=HASH_TAG_FROM_FEED">hashtag#MobileDevelopment</a> <a href="https://www.linkedin.com/search/results/all/?keywords=%23uiux&amp;origin=HASH_TAG_FROM_FEED">hashtag#UIUX</a> <a href="https://www.linkedin.com/search/results/all/?keywords=%23materialdesign&amp;origin=HASH_TAG_FROM_FEED">hashtag#MaterialDesign</a> <a href="https://www.linkedin.com/search/results/all/?keywords=%23softwareengineering&amp;origin=HASH_TAG_FROM_FEED">hashtag#SoftwareEngineering</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30294bb4cb92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin Flow]]></title>
            <link>https://medium.com/@kuchanpallyshirisha/kotlin-flow-bd09254c564f?source=rss-9d44c2dbfed8------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd09254c564f</guid>
            <category><![CDATA[kotlin-flow]]></category>
            <dc:creator><![CDATA[Shirisha Reddy]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 10:20:36 GMT</pubDate>
            <atom:updated>2026-06-25T10:20:36.218Z</atom:updated>
            <content:encoded><![CDATA[<p>As Android developers, we often deal with asynchronous data such as API responses, database updates, and user actions.</p><p>Kotlin Flow helps us handle streams of data in a clean, reactive, and lifecycle-aware way.</p><p>Types of Flow</p><p>1️⃣ Flow</p><p>* Cold stream<br>* Starts emitting when collected<br>* Best for API calls and database queries</p><p>2️⃣ StateFlow</p><p>* Holds the latest state<br>* Always has an initial value<br>* Best for UI State management</p><p>3️⃣ SharedFlow</p><p>* Hot stream<br>* Multiple collectors receive events<br>* Best for one-time events like navigation, snackbars, and notifications</p><p>Activate to view larger image,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*52ZcWGyoEa2V4N3e" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd09254c564f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>