<?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 Umang Tapania on Medium]]></title>
        <description><![CDATA[Stories by Umang Tapania on Medium]]></description>
        <link>https://medium.com/@umang.tapania?source=rss-38d51e24a89e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*nbInXrjn5zVAQ_E4</url>
            <title>Stories by Umang Tapania on Medium</title>
            <link>https://medium.com/@umang.tapania?source=rss-38d51e24a89e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:03:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@umang.tapania/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[ Logging? I Send My Logs on a Bus — You Should Too.]]></title>
            <link>https://medium.com/@umang.tapania/logging-i-send-my-logs-on-a-bus-you-should-too-d6998fe389c8?source=rss-38d51e24a89e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6998fe389c8</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[logging]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Umang Tapania]]></dc:creator>
            <pubDate>Tue, 13 May 2025 15:28:14 GMT</pubDate>
            <atom:updated>2025-05-13T15:28:14.772Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚌 Logging? I Send My Logs on a Bus — You Should Too.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTGNNqo2R98FMqvdpIkdUA.png" /></figure><p>When someone asks, <em>“How do you </em><strong><em>log</em></strong><em> in Android to debug an application or track something?”</em><br> This simple line probably pops into your head right away:</p><pre>Log.e(&quot;TAG&quot;, &quot;onCreate called&quot;)</pre><p>Why?<br> Because it shows up in red, and red is easy to spot in Logcat.</p><p>But here’s the thing…<br> That’s not even an error.<br> It’s just the only way we know to <strong>make logs noticeable</strong>.</p><p>So I built something better — something that makes logging both <strong>beautiful and actually useful</strong>.</p><p>Let me introduce you to <strong>LogBus</strong> — a lightweight Android logging library that lets your logs hop on a bus and travel to all the destinations you want. 🚏</p><h3>🚀 How to Use LogBus</h3><p>Let’s keep it simple for starters.</p><h3>1. Install It from JitPack</h3><p>Add this to your project level settings.gradle:</p><pre>dependencyResolutionManagement {<br>    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)<br>    repositories {<br>        ...<br>        mavenCentral()<br>        maven { url = uri(&quot;https://jitpack.io&quot;) }<br>    }<br>}</pre><p>Then add the dependency to your module-level build.gradle:</p><pre>implementation(&quot;com.github.UmangTapania:LogBus:&lt;latest-version&gt;&quot;)</pre><blockquote><em>Replace </em><em>&lt;latest-version&gt; with the latest tag from the </em><a href="https://github.com/UmangTapania/LogBus"><em>GitHub repo</em></a><em>.</em></blockquote><h3>2. Initialize in Your Application Class</h3><p>This step is <strong>required</strong> before using LogBus. If you skip this, LogBus will throw an exception.</p><pre>LogBus<br>  .initialize(<br>            listOf( <br>              LogcatRoute() <br>            )<br>   )</pre><p>Now, log stuff like you normally would:</p><pre>LogBus.d(&quot;This is a demo log&quot;)</pre><p>And boom. You’ll see this in Logcat:</p><pre>╔════════════════════════════╗<br>║  🐞 This is a demo log     ║<br>╚════════════════════════════╝</pre><p>Not only does it look <strong>clean and beautiful</strong>, it’s actually <strong>readable</strong>. You can scan logs easily, and different log levels <strong>stand out</strong> — no need to fake it with Log.e.</p><h3>🎀 So… Is It Just Decoration?</h3><p>Nope. This is where LogBus gets fun.</p><p>Imagine you want to:</p><ul><li>Show a log in Logcat</li><li>Save it to a file on disk</li><li>Maybe even send it to a server via an API</li></ul><p>That’s when LogBus <strong>really</strong> shows its full potential.</p><h3>🧠 The Analogy: Logging Like a Bus System</h3><p>Let me break it down with how I think of LogBus:</p><ul><li>Your logs are <strong>passengers</strong></li><li>The destinations (like Logcat, file, etc.) are <strong>routes</strong></li><li>LogBus is the <strong>bus</strong> that takes logs to each of those routes</li></ul><p>You add the routes during initialization, and then LogBus handles the rest. Every log gets delivered to <strong>all routes</strong>, automatically.</p><p>You can even define <strong>custom routes</strong> — like sending logs to Discord, your backend server, or a local database.</p><p>And yes, you can add <strong>multiple instances</strong> of the same route. For example:</p><ul><li>Two Logcat routes with different styles</li><li>Two FileRoutes writing to different files</li></ul><h3>🧪 Want More? Just Add More Routes</h3><p>Let’s say you want to:</p><ul><li>Log to two different files</li><li>Use two Logcat styles (boxed and minimal)</li><li>Log crashes persistently to a file</li></ul><p>Here’s what it looks like:</p><pre>LogBus.initialize(<br>            listOf( <br>                LogcatRoute() <br>                LogcatRoute(LogcatStyle(useEmoji = false))<br>                FileRoute(context)<br>                FileRoute(context, &quot;CustomErrorFile.txt&quot;)<br>                CrashlyticsRoute(context)<br>            )  <br>        )</pre><h3>🚫 Wait, Is That Firebase Crashlytics?</h3><blockquote><strong>Nope! </strong>CrashlyticsRoute is <strong>not</strong> Firebase Crashlytics.</blockquote><p>It’s a simple built-in route in LogBus that:</p><ul><li>Catches uncaught crashes</li><li>Logs them to a file on the device</li></ul><p>It’s called “CrashlyticsRoute” because it persistently logs crashes, not because it uses any external service.</p><p>Perfect for local crash tracking during development or offline apps.</p><h3>⚡ Won’t That Hurt Performance?</h3><p>The first thing that might come to mind is:</p><blockquote><em>“Wait… if I’m sending logs to multiple destinations, won’t that slow my app down?”</em></blockquote><p>Short answer: <strong>Nope.</strong></p><p>All logging in LogBus is <strong>asynchronous</strong>.<br> That means:</p><ul><li>No blocking</li><li>No UI lag</li><li>Logs are delivered in the background</li></ul><p>You can add 5, 10, 20 routes — LogBus handles it gracefully without impacting your app’s performance.</p><h3>🏎️ Prefer Custom Logging? Go Solo.</h3><p>Power users might want to log directly to a single route.<br> Maybe you just want to write to a file, skip Logcat, or do something super custom.</p><p>No worries — you can use a route directly like this:</p><pre>FileRoute(context)<br>  .log(<br>    LogLevel.DEBUG,<br>    &quot;TAG&quot;,<br>    &quot;This is custom&quot;<br>  )</pre><p>You don’t even need to register this route with LogBus. Just plug and play.</p><p>Also, you can define your own styles for LogcatRoute if the default look isn’t your vibe.</p><h3>📊 Let’s Talk About Log Levels (Seriously, This Matters)</h3><p>Let’s be honest — most devs just spam everything with Log.e because it’s red and hard to miss.</p><p>But here’s the deal:</p><ul><li>Misusing log levels makes debugging harder</li><li>You lose the ability to filter and categorize effectively</li><li>Real errors get buried in fake ones</li></ul><p>LogBus <strong>encourages proper log levels</strong> — and makes them all look great:</p><pre>LogBus.d(&quot;Request started&quot;)<br>LogBus.i(&quot;User logged in&quot;)<br>LogBus.w(&quot;Using stale data&quot;)<br>LogBus.e(&quot;Timeout error&quot;)</pre><p>Now each level is:</p><ul><li>Visually distinct</li><li>Easy to filter in Logcat</li><li>Actually meaningful</li></ul><p><strong>Clean logs → better debugging → faster dev time → less rage 🍃</strong></p><h3>💡 TL;DR</h3><p>✅ Beautiful, structured logs out of the box<br> 🔁 One log → multiple destinations<br> ⚡ Async logging (no UI lag)<br> 💥 Persistent crash logging to file<br> 🧩 Fully customizable (add your own routes)<br> 🧠 Encourages proper log level usage</p><h3>🚀 Ready to Ride?</h3><p>Get started by adding LogBus to your project.</p><p>📦 Full setup and source code available here:<br> 👉 <a href="https://github.com/UmangTapania/LogBus">GitHub — UmangTapania/LogBus</a></p><p>Let your logs take the scenic route 🚌</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6998fe389c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a keyboard-first mindset changed the way I code ⌨️]]></title>
            <link>https://medium.com/@umang.tapania/how-a-keyboard-first-mindset-changed-the-way-i-code-%EF%B8%8F-17c669198b29?source=rss-38d51e24a89e------2</link>
            <guid isPermaLink="false">https://medium.com/p/17c669198b29</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Umang Tapania]]></dc:creator>
            <pubDate>Thu, 17 Apr 2025 13:12:57 GMT</pubDate>
            <atom:updated>2025-04-17T13:12:57.149Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hav9cljQnqFMzUBNcs_KxA.png" /></figure><p>When I started coding, I did what most people do — used both the <strong>keyboard</strong> and <strong>mouse</strong>.<br> I knew the basic shortcuts, sure… but for everything else — scrolling through code, switching files, resizing windows — I’d always reach for the mouse or click around in the IDE.</p><p>And honestly, I thought that was normal.<br> You’re probably doing that too, right?</p><p>I thought I was doing fine… <strong>until I saw one of my friends using his PC like a beast.</strong><br> He was blazing fast — flying through windows, editing code, managing everything — <strong>without even touching the mouse.</strong><br> His whole development setup looked <em>completely</em> different from what I was used to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*PMwOFcv5vuIsMHAWSQZWQw.gif" /><figcaption>This was my friend using his PC</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*j9Q7oH_7ZytOt2NmKwNdVQ.gif" /><figcaption>This was my reaction 😂</figcaption></figure><p>I literally asked him,</p><blockquote>“Bro, how are you even doing this? And what is this weird setup you’re using?”</blockquote><p>That’s when he introduced me to the <strong>keyboard-first mindset</strong> — the idea of doing everything possible using just your keyboard.</p><p>And that hit me like:<br> <strong>Awesome!</strong> <strong><em>this can actually boost my productivity big time.</em></strong></p><p>So I asked him about his journey… and slowly started following his trail.</p><h3>Step 1: Know Your Keyboard 🧠</h3><p>The first thing I realized:<br> If I wanted to go full keyboard-mode, I had to <strong>actually</strong> know my keyboard.</p><p>So I started learning <strong>touch typing</strong> — <em>basically typing with all ten fingers</em> <em>without looking at the keyboard</em>.<br> I practiced regularly and reached a decent speed. Then I began using more and more shortcuts… and only touched the mouse when I <em>really</em> had to.</p><blockquote><em>💬 I could feel the difference.<br> I was getting faster, and it gave me a tiny sense of achievement.<br> That small kick I got when I replaced a mouse click with a quick shortcut?<br></em><strong><em> </em>Addictive.</strong></blockquote><h3>Step 2: Make It Your Own 🛠️</h3><p>I started creating my <strong>own shortcuts</strong> — not just using what others made.<br> These were based on <em>my</em> workflow, and that made them more useful and easy to remember.</p><p>I also began exploring tools that could help me be more keyboard-focused.<br> Here are a few that really helped:</p><ul><li>🧰 <a href="https://learn.microsoft.com/en-us/windows/powertoys/"><strong>Microsoft PowerToys</strong></a></li><li>⌨️ <strong>IdeaVim</strong> — Vim-style keybindings inside Android Studio</li><li>⚙️NeoVim — an advanced version of the Vim editor</li></ul><h4>Eventually, I realized this journey isn’t just about shortcuts.<br> It’s about <strong>designing a development environment</strong> that works <em>for you</em>.</h4><h3>Step 3: Let Your Setup Evolve 🌱</h3><p>One of the biggest things I’ve learned:<br> Your dev setup shouldn’t be static.</p><p>You’re not meant to stay in the same workflow forever.<br>Keep trying new things — Try new tools. Break stuff.<br> See what works, and what doesn’t.</p><blockquote><em>🔄 Trial and error is the only way to grow your workflow.<br> Don’t blindly copy someone’s setup — take inspiration, and then </em><strong><em>build your own.</em></strong></blockquote><h3>Final Thoughts 💭</h3><p>This was just the beginning of my keyboard-first journey.<br> There’s a lot more to explore — like Vim, custom workflows, and how to design your perfect setup.<br> We’ll get into all of that in the next blog. 😉</p><p>But before I wrap up, let me be clear:<br> <strong>Keyboard-first doesn’t mean never touching the mouse.</strong><br> The mouse has its place. But shifting more to the keyboard helps you work smarter — and here’s how:</p><ul><li>🧠 <strong>Better focus</strong> — you’re not constantly breaking your flow by switching between mouse and keyboard.</li><li>🔄 <strong>No context switching</strong> — your hands stay in one place, your brain stays in the zone.</li><li>⚡ <strong>You get things done faster</strong> — You save all that time you take , in switching between mouse and keyboard.</li></ul><p>If this sparked even a little curiosity in you…<br> Maybe give your mouse a break, and let your keyboard do the heavy lifting.<br> You might just fall in love with it — just like I did. 💻❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17c669198b29" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>