<?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 Abhishek Kumar on Medium]]></title>
        <description><![CDATA[Stories by Abhishek Kumar on Medium]]></description>
        <link>https://medium.com/@abhishekkumar_12207?source=rss-3f71ed3b9fa3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZS_z94-Ui5Go82Vv-otT8g.jpeg</url>
            <title>Stories by Abhishek Kumar on Medium</title>
            <link>https://medium.com/@abhishekkumar_12207?source=rss-3f71ed3b9fa3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:00:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhishekkumar_12207/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[The Art of Code Reviews: How to Build a Healthy Review Process]]></title>
            <link>https://medium.com/full-creative-blog/the-art-of-code-reviews-how-to-build-a-healthy-review-process-1886aa0b8b01?source=rss-3f71ed3b9fa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/1886aa0b8b01</guid>
            <category><![CDATA[code-review]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Tue, 19 Aug 2025 07:28:54 GMT</pubDate>
            <atom:updated>2025-08-19T07:39:19.699Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Code reviews are often seen as a checkbox activity: <em>“Get two approvals and merge.”</em><br> But when done right, they become one of the most powerful tools for building <strong>quality software</strong> and <strong>collaborative teams</strong>.</blockquote><h3>Why Do Code Reviews Matter?</h3><p>Code reviews are not just about catching bugs. They help in:</p><p><strong>Maintaining quality:</strong> Ensure code follows standards, architecture, and security guidelines.</p><p><strong>Knowledge sharing:</strong> Every review is a chance for team members to learn from each other.</p><p><strong>Consistency:</strong> Keep the codebase clean and aligned with team conventions.</p><p><strong>Collaboration &amp; trust:</strong> Reviews foster healthy discussions and encourage collective ownership of the code.</p><p><strong>Done poorly</strong>, however, reviews can slow down delivery, frustrate developers, and create friction.</p><h3>The Code Review Workflow</h3><p>A good review process should feel natural and not get in the way of development. Here’s a common workflow:</p><p><strong>Prepare your Pull Request</strong></p><ul><li>Ensure tests pass and approvals are in place.</li><li>Keep changes small and focused.</li><li>Write meaningful commit messages.</li><li>Add context in the PR description</li><li>Assign reviewers mindfully</li><li>Include screenshots/logs/tests if relevant</li><li>Pick reviewers who are familiar with the code area.</li><li>Rotate occasionally to spread knowledge.</li></ul><p><strong>Review responsibly</strong></p><ol><li>Read the PR with care, not just skim.</li><li>Check for correctness, readability, and maintainability.</li><li>Suggest improvements, don’t just reject.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pdgc5U5EffG1LnAWcPwY0g.jpeg" /><figcaption>Code review focus</figcaption></figure><p><strong>Respond to feedback</strong></p><ol><li>Don’t take it personally — feedback is about the code, not you.</li><li>Ask questions if you don’t understand feedback.</li><li>Resolve conversations actively.</li></ol><p><strong>Merge with confidence</strong></p><ul><li>Ensure tests pass and approvals are in place.</li><li>Squash commits if needed to keep history clean.</li></ul><h3>Best Practices for Reviewers</h3><p><strong>Be kind, not harsh</strong> → Phrase feedback as suggestions, not accusations.<br><em>Instead of:</em> “This is wrong.<br><em>Try:</em> “Could we simplify this by…?”</p><p><strong>Focus on big issues first</strong> → architecture, security, performance.<br>Don’t bike-shed on variable names before confirming logic.</p><p><strong>Be consistent</strong> → If the team has a style guide, enforce it with linters/formatters, not manual nitpicks.</p><p><strong>Ask questions, don’t dictate</strong> → “What do you think about handling X this way?” encourages dialogue.</p><h3>Best Practices for Authors</h3><ul><li><strong>Write self-explanatory code</strong> → Reduce reviewer burden with clear naming and structure.</li><li><strong>Document your PR</strong> → Add context so reviewers don’t need to guess.</li><li><strong>Keep PRs small</strong> → Large PRs are harder to review and more likely to slip mistakes.</li><li><strong>Be receptive to feedback</strong> → Every suggestion is an opportunity to learn.</li></ul><h3>Balancing Speed vs Quality</h3><p><em>“Should we prioritise fast merges or deep reviews?”</em></p><blockquote>The answer is: <strong>balance both</strong></blockquote><ul><li>For critical paths (security, payment logic, infra) → prioritise thorough reviews.</li><li>For low-risk changes (typo fixes, docs, UI tweaks) → keep reviews lightweight.</li></ul><p>Having clear team guidelines helps avoid unnecessary debates.</p><h3>Building a Healthy Review Culture</h3><p>At the end of the day, a code review is less about the code and more about the <strong>team culture</strong>.</p><ul><li>Encourage curiosity: <em>“I didn’t know we could solve it this way, thanks!”</em></li><li>Make it safe to ask questions.</li><li>Remember: the goal is not to prove someone wrong, but to build better software together.</li></ul><p>A strong code review process is about <strong>collaboration, learning, and quality</strong>.<br> It’s not a gatekeeping exercise — it’s an investment</p><blockquote>Next time you open or review a PR, remember:<br> 👉 <strong>You’re not just reviewing code, you’re helping your teammates grow.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1886aa0b8b01" width="1" height="1" alt=""><hr><p><a href="https://medium.com/full-creative-blog/the-art-of-code-reviews-how-to-build-a-healthy-review-process-1886aa0b8b01">The Art of Code Reviews: How to Build a Healthy Review Process</a> was originally published in <a href="https://medium.com/full-creative-blog">FULL Creative</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Single Codebase for Phone & Tablet UI in Android]]></title>
            <link>https://medium.com/full-creative-blog/building-a-single-codebase-for-phone-tablet-ui-in-android-3fbfc397c1cf?source=rss-3f71ed3b9fa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fbfc397c1cf</guid>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Thu, 14 Aug 2025 10:30:42 GMT</pubDate>
            <atom:updated>2025-09-25T11:18:07.243Z</atom:updated>
            <content:encoded><![CDATA[<h3>Phone Fullscreen, Tablet Dialog: One Fragment to Rule Them All</h3><blockquote><strong>Problem Statement</strong><br>In Android development, supporting <strong>both phone and tablet devices</strong> from a <strong>single codebase</strong> can be challenging.<br> One recurring problem is <strong>rendering the same content differently</strong> based on the device type:</blockquote><blockquote><strong>Phones</strong> → show the content <strong>full screen<br>Tablets</strong> → show the same content in a <strong>dialog</strong></blockquote><p>When we started searching for solutions, we found a few approaches — but none that were simple and maintainable in the long term.</p><h4>The common (but painful) approach</h4><p>The most popular suggestion online was:</p><ol><li><strong>Create two separate classes <br>- </strong>One extending <strong><em>Fragment</em></strong> for phone<br>- Another extending <strong><em>DialogFragment</em></strong> for tablet</li><li>Put all shared logic in a <strong>BaseView interface</strong></li><li>Pass required data into both implementations</li></ol><p>While this works, it <strong>quickly becomes messy</strong>:</p><ul><li>You have to maintain <strong>two separate fragment classes</strong></li><li>Data passing between the base and subclasses becomes tedious</li><li>Some properties are only available in a fragment context, adding <strong>extra complexity</strong></li><li>Code duplication risks increase</li></ul><h4>We needed something simpler.</h4><p>We realised we could avoid two separate classes entirely by <strong>only using a single DialogFragment</strong> for both devices, and controlling its behaviour through <strong>navigation graph configuration</strong>. Here’s how we did it:</p><h3>1. Use DialogFragment for both devices</h3><p>Instead of maintaining both Fragment and DialogFragment, we made our screen <strong>extend only</strong> <strong>DialogFragment</strong>.</p><p>Kotlin</p><pre><br>class MyContentDialogFragment : DialogFragment() {<br><br>override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {<br>    return Dialog(requireContext(), R.style.DefaultAlertDialogTheme)<br>}<br><br><br>// Your UI rendering logic here...<br>}</pre><h3>2. Configure two entries in Navigation Graph</h3><p>In the nav_graph.xml, we added <strong>two navigation entries</strong> for the <strong>same</strong> fragment class:</p><pre>&lt;fragment<br>    android:id=&quot;@+id/myContentFragment&quot;<br>    android:name=&quot;com.example.MyContentDialogFragment&quot;<br>    android:label=&quot;My Content&quot;<br>    tools:layout=&quot;@layout/fragment_my_content&quot;&gt;<br>    &lt;deepLink app:uri=&quot;myapp://content/fullscreen&quot; /&gt;<br>&lt;/fragment&gt;<br><br>&lt;dialog<br>    android:id=&quot;@+id/myContentDialog&quot;<br>    android:name=&quot;com.example.MyContentDialogFragment&quot;<br>    android:label=&quot;My Content Dialog&quot;<br>    tools:layout=&quot;@layout/fragment_my_content&quot;&gt;<br>    &lt;deepLink app:uri=&quot;myapp://content/dialog&quot; /&gt;<br>&lt;/dialog&gt;</pre><h3>3. Load based on device type</h3><p>When navigating, we simply choose which deep link to use:</p><pre>if (isTabletDevice()) {<br>    findNavController().navigate(Uri.parse(&quot;myapp://content/dialog&quot;))<br>} else {<br>    findNavController().navigate(Uri.parse(&quot;myapp://content/fullscreen&quot;))<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*Y4AI9DCLfRmcN0yb6JMqtQ.png" /></figure><h3>Why this works well ✅</h3><ul><li><strong>Single codebase:</strong> only one fragment class to maintain</li><li><strong>No interface boilerplate: </strong>no need for a BaseView layer</li><li><strong>Flexible navigation:</strong> device-specific UI decided at runtime</li><li><strong>Less risk of bugs: </strong>shared logic is truly shared</li></ul><h3>Conclusion</h3><p>By taking advantage of DialogFragment and Navigation Graph’s <strong>&lt;fragment&gt;</strong> and <strong>&lt;dialog&gt;</strong> tags, we avoided the complexity of maintaining two separate classes for the same screen.<br> This approach keeps the codebase <strong>clean, maintainable, and flexible</strong> while delivering different UI experiences for phone and tablet users.</p><p>If you’re struggling with similar UI differences across devices, give this method a try. It might just save you a lot of boilerplate!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fbfc397c1cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/full-creative-blog/building-a-single-codebase-for-phone-tablet-ui-in-android-3fbfc397c1cf">Building a Single Codebase for Phone &amp; Tablet UI in Android</a> was originally published in <a href="https://medium.com/full-creative-blog">FULL Creative</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>