<?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 Aakarshit Uppal on Medium]]></title>
        <description><![CDATA[Stories by Aakarshit Uppal on Medium]]></description>
        <link>https://medium.com/@aksh1618?source=rss-946c79af959f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qjQfZiGLrZADdQrMPsPpTQ.jpeg</url>
            <title>Stories by Aakarshit Uppal on Medium</title>
            <link>https://medium.com/@aksh1618?source=rss-946c79af959f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:12:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aksh1618/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[Book Review: Designing Data-Intensive Applications]]></title>
            <link>https://medium.com/@aksh1618/book-review-designing-data-intensive-applications-a9817992348c?source=rss-946c79af959f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9817992348c</guid>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <dc:creator><![CDATA[Aakarshit Uppal]]></dc:creator>
            <pubDate>Sun, 29 Dec 2024 16:30:34 GMT</pubDate>
            <atom:updated>2025-01-02T16:38:55.934Z</atom:updated>
            <content:encoded><![CDATA[<h4>⭐⭐⭐⭐ | <strong><em>Mandatory reading for every engineer</em></strong></h4><figure><img alt="Cover image showing a copy of the book titled ‘Designing Data-Intensive Applications’ by Martin Kleppmann" src="https://cdn-images-1.medium.com/max/1024/1*7_0G9gOvxzDKTpeDbaiCcw.jpeg" /></figure><p>After seeing major recommendations from a lot of respected folks<a href="#4426">¹</a>, I finally decided to read DDIA this year. And right off the bat, I’ll just reaffirm many of the things I heard/read — I agree that it should be mandatory reading for engineers. I also agree that it should be read multiple times, once every few years as you progress through your career. I for one feel quite unlucky not to have come across this gem of a book sooner, but at the same time really glad that I did now!</p><p>For me the greatest value the book provided was in the form of formalization &amp; reaffirmation — as a Tech Lead with almost 6 years of professional experience working with distributed systems, albeit more on the user end of the spectrum, I’ve collected a lot of incidental knowledge that typically comes with such experience. And reading through DDIA, one of my main observations was that Kleppmann does a really great job at formalizing this knowledge. Working at the same organization for the past few years, I have left a long trail of decisions in my wake. For me DDIA provided great validation for some of those decisions — giving me more confidence in my ability in making them, often with a healthy dose of “Whew! I sure managed to dodge <em>that</em> invisible bullet!” In other words, DDIA helps you reflect on your knowledge and decisions through a very clear lens of formalized knowledge.</p><blockquote><strong><em>DDIA helps you reflect on your knowledge and decisions through a very clear lens of formalized knowledge</em></strong></blockquote><p>If you’re someone with relatively less experience, a lot of things might not click the way they would if you had more experience, but just trust me when I say that you’ll be much better off knowing them now than later. The fact that the concepts &amp; knowledge I picked up from the book have already helped me multiple times in the past few months, a couple times in very critical situations, should be evident enough. And I’m fairly positive that they’ll continue to do so for years to come.</p><p>DDIA also teaches you what you should beware of — acting as a sort of a reference of things that can and will go wrong when working with modern systems. This aspect of it is invaluable in my opinion. Imagine being able to spend just a few hours of your life to gain knowledge of things that folks only get to learn over <em>years</em>, often through ending up in very tricky situations. This knowledge allows you to create and improve a personal framework for architectural decision making.</p><blockquote><strong><em>Imagine being able to spend just a few hours of your life to gain knowledge of things that folks only get to learn over </em>years</strong></blockquote><p>Another impact it had on me was igniting an interest in the construction and internals of distributed systems, such as databases, brokers etc. I have a feeling that this is likely to have a major impact on my career trajectory in the near future. It also widened the sphere of my understanding — I recently attended P99 Conf, and was pleasantly surprised by how much of it I was able to absorb; the same goes for Dist Sys blogs I’ve been reading recently.</p><p>All this said, the book isn’t perfect in every way — at times the focus seems to deviate from things that most require it — but that might just be an artefact of my personal experiences and preconceptions. I also found it to be a demanding read in some sections, either by virtue of trying to cram too much into too little, or at times the structuring of contents requiring tracing too many references in order to grasp some concepts. Chapter 9 comes to mind as the main offender in this regard<a href="#3bbc">²</a>. But note that this is only relative to the rest of the book — DDIA is by far the easiest and smoothest to read technical book I’ve read. Kleppmann (along with Chris Riccomini) is working on the second edition<a href="#46b9">³</a> currently, and in addition to being excited by all the new concepts that’ll be covered, I’ll also look forward to some of these being addressed to make for an even better book.</p><blockquote><strong><em>… inviting you to break through the traditional approaches of designing distributed systems and give a fair consideration to the alternatives, lest they be missed in the noise</em></strong></blockquote><p>Another major goal that Kleppmann seems to accomplish is expanding your worldview on how to view and design distributed systems, inviting you to break through the traditional approaches and give a fair consideration to the alternatives, lest they be missed in the noise. I suspect his ideas played an important role in the development of things such as AtProto<a href="#3e31">⁴</a>, indicating the continuing achievement of this goal. The discussion about ethical considerations in the end was also a welcome surprise: Kleppmann didn’t have to, but he still did, which I respect and admire. It will push me to consider the consequences of the things I build or help build in a more holistic manner, and also give some bandwidth to reflecting, both internally and externally, on such consequences in my body of (future) work.</p><p>As I hinted at the start — DDIA is definitely the kind of book that gives you more every time you read it, the most deserving of this claim, at least of all the books I’ve read. I’m certainly planning to revisit it in a couple years or so. And I think you should too.</p><p>Thanks for reading! Feel free to share this with others on the <a href="https://bsky.app/intent/compose?url=/&amp;text=Check%20out%20this%20review%20of%20Designing%20Data%20Intensive%20Applications%20by%20Martin%20Kleppman%20https%3A%2F%2Faksh.dev%2Fbook-review-designing-data-intensive-applications">butterfly site</a>, the <a href="http://your-server.probably-social/share?url=https://aksh.dev/book-review-designing-data-intensive-applications/&amp;text=Check%20out%20this%20review%20of%20Designing%20Data%20Intensive%20Applications%20by%20Martin%20Kleppman">elephant site</a>, the <a href="https://twitter.com/share?url=https://aksh.dev/book-review-designing-data-intensive-applications/&amp;text=Check%20out%20this%20review%20of%20Designing%20Data%20Intensive%20Applications%20by%20Martin%20Kleppman">~~bird~~ unicode character site</a>, or maybe even the <a href="https://en.wikipedia.org/wiki/Nope">orange site</a>?</p><p><em>Originally published at </em><a href="https://aksh.dev/book-review-designing-data-intensive-applications/"><em>https://aksh.dev</em></a><em> on December 29, 2024.</em></p><h4>Footnotes</h4><ol><li>A very special thanks to Phil Eaton — he played a major role in reigniting my passion for reading via his <a href="https://eatonphil.com/bookclub.html">book club</a>, while helping me discover some iconic books. Make sure to check it out and join future runs!</li><li>Murat describes this well in <a href="https://muratbuffalo.blogspot.com/2024/10/ddia-chp-9-consistency-and-consensus.html">his review of chapter 9</a>: <em>“The chapter tries to do too much. Almost an entire semester of distributed systems content is force-jammed into this chapter … For a more manageable load, much of this chapter should be moved to other chapters.”</em></li><li><a href="https://www.linkedin.com/posts/riccomini_designing-data-intensive-applications-2nd-activity-7234603892800450560-p_pa">Chris Riccomini on LinkedIn: Designing Data-Intensive Applications, 2nd Edition</a></li><li>Kleppmann <a href="https://bsky.app/profile/martin.kleppmann.com/post/3l52cfxhqgd2i">posted about this</a> on Bluesky, and has also co-authored the paper <a href="https://arxiv.org/abs/2402.03239"><em>Bluesky and the AT Protocol: Usable Decentralized Social Media</em></a>. As of writing he is serving as an <em>“Advisor to the Bluesky team”</em> (taken from his Bluesky profile description).</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9817992348c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Joy of Hackable Tools]]></title>
            <link>https://medium.com/@aksh1618/the-joy-of-hackable-tools-9136f9a68453?source=rss-946c79af959f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9136f9a68453</guid>
            <category><![CDATA[neovim]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[obsidian]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[tinkering]]></category>
            <dc:creator><![CDATA[Aakarshit Uppal]]></dc:creator>
            <pubDate>Sun, 21 Jan 2024 13:19:00 GMT</pubDate>
            <atom:updated>2024-01-26T21:45:40.511Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Discovering how the joy of hacking weighs in favour of tools that allow it</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9dCTeFklRFEChXK8TN87Fg.jpeg" /></figure><p>I just got my first neovim related MR merged!</p><figure><img alt="Screenshot showing a merged pull request on github titled ‘Fixed get_xp and get_level’" src="https://cdn-images-1.medium.com/max/657/1*b5nx929E8ikJfEt3InV10g.png" /><figcaption>#FeelsGoodMan</figcaption></figure><p>This got me thinking about the joy that is hackable tools: tools that allow you not just to customize, but to hack around and create stuff that you want. Customizability is becoming more and more an expectation these days, even if only at a very elementary level: it’s uncommon, for example, to find a website that doesn’t have a dark mode toggle. And I have really enjoyed customization with a lot of things, such as my android phone<a href="#e485">¹</a>, my OS (arch, btw), my terminal<a href="#e98b">²</a>, my browser<a href="#8634">³</a>, my editors, my shell, the list goes on.</p><p>However, customization can only take you so far. Here I was customizing lualine for my neovim setup, excited about adding Code::Stats xp<a href="#4718">⁴</a> to it for a light dose of self gratification. But alas it wasn’t to be. After banging my head against some plugin configurations, it became clear that it was more than just a configuration issue. I was up against a bug.</p><p>Remembering lazy’s dev directory option from ThePrimeagen’s neovim revamp stream<a href="#4df5">⁵</a>, I decided to take a look under the hood of the codestats plugin<a href="#7165">⁶</a> itself. After tripping myself up by adding both the short name and the directory where lazy had cloned it by default (yep, it loops), I finally got a print statement in the plugin code to show up in neovim. Awesome! A few print statements later, I had the bug cornered, and a couple minutes later I had submitted a PR<a href="#a641">⁷</a>.</p><figure><img alt="Screenshot showing a diff where the short github url has been replaced by a local directory in a lazy.nvim plugin config" src="https://cdn-images-1.medium.com/max/715/1*nLKGU3hURtqD65SZ7E3JcA.png" /><figcaption>The barrier to entry: A single line change</figcaption></figure><p>This little incident brought joy to me. The barrier to entry was actually that low: just a single line change and you&#39;re off to the races. All of my lua knowledge was just the Learn X in Y minutes page<a href="#c527">⁸</a> that I had gone through quickly before starting my setup. And getting my hands dirty with the plugin code made neovim plugin creation seem so much more approachable. If I wanted x feature I could just write my own plugin, et voilà, the feature is ready!</p><figure><img alt="Screenshot showing CodeStats XP for lua with value 9431 in lualine.nvim" src="https://cdn-images-1.medium.com/max/328/1*6KdL1-s0YacMPE2iskEuhQ.png" /><figcaption>Getting pretty good at lua</figcaption></figure><p>The debate on whether switching to vim et al is going to improve your productivity, or just lead to time being wasted in setting it up, is timeless. Even though I myself had been tending to the former side of this debate already, the thing that finally tipped me over was an unexpected one: the joy that comes from being able to get into the code that makes your tool work and change how a part of it functions. This joy is highly underrated in my opinion, and makes the debate entirely one-sided, at least for me.</p><p>I had been hearing a lot about Obsidian. More and more people I tend to agree with or look to for inspiration had been talking about it. I can&#39;t place the tipping point exactly, but it was probably a mix of No Boilerplate&#39;s pitch<a href="#0662">⁹</a>, jonhoo&#39;s usage<a href="#7294">¹⁰</a> of it and kepano&#39;s philosophy<a href="#fc38">¹¹</a>. But there was the thing of Notion hosting all my current knowledge-base, work journal and task management. So when the official migration plugin<a href="#00d4">¹²</a> was released, I decided to take the plunge.</p><figure><img alt="Screenshot showing graph view generated by obsidian" src="https://cdn-images-1.medium.com/max/1024/1*OHHyS8qYT0l1lmKQ8Ib1qg.png" /><figcaption>Obligatory Obsidian Graph Screenshot</figcaption></figure><p>I exported my workspace, selected it in the migration tool, and gleefully looked at all my notes getting translated and The Graph™ populating. However, once I went to see a couple notes, all was not well. My ToC were gone, and so were the intricately chosen emojis for each page. But most importantly, all my code blocks were weird and unhighlighted. I was taken aback for a moment. It was not to be after all. I remembered seeing a github link for the migration plugin, and went to see if there was an issue for this. Sure enough, there was one<a href="#eb7c">¹³</a>, but it looked like it was already resolved. After double-checking the versions etc., I submitted another one<a href="#3fe8">¹⁴</a>. Now to wait.</p><p>And then it clicked. It&#39;s an open source plugin! I don&#39;t <em>have</em> to wait, I can just fix it myself! Hmm, it&#39;s typescript. I have coded all of 0 lines of javascript in my life. But maybe I can still give it a go? I just have to find and fix a bug. And the plugin being well-written, with all steps being nicely structured as separate functions, inspired some confidence. But now I&#39;ll have to set it up :/ I don&#39;t want a bunch of node modules on my laptop, eww. But it&#39;s 2023, surely I can just open it up in some cloud IDE? Maybe codespaces won&#39;t bug out this time and actually successfully open a project for once?</p><p>It did. A few minutes of tinkering around (it wasn&#39;t a couple hours at all), and I had figured out the commands and the built package file and where to place it to make it work in my obsidian. A couple iterations of change + build + copy-paste later, I had the code blocks formatting fixed.</p><p>That joy again! The possibilities were endless: even though not that simple this time due to my complete lack of knowledge of the JS ecosystem, I could hack around and fix anything I wanted, or even add features to make things work the way I wanted: which is exactly what I did over the next few days<a href="#b8ed">¹⁵</a>. Even though my MR was rejected<a href="#2342">¹⁶</a> in favour of the actual Notion migration contributor&#39;s much more elegant and sensible fix<a href="#6c3c">¹⁷</a>, I went on to add support for random things that bothered me about the imported notes<a href="#b8ed">¹⁵</a>.</p><figure><img alt="Screenshot of obsidian importer window showing 2 configuration options for Notion import and hacked version of it showing 4 extra options related to code highlighting, removing ToC and adding emoji as sticker" src="https://cdn-images-1.medium.com/max/852/1*Bk1yuLJMHemycT_w-hwBuw.png" /><figcaption>Official Version vs My Hacked Version</figcaption></figure><p>Again, there is the debate of whether you should get into Obsidian, with the added overhead of setting it up with plugins that might go unmaintained any day and overpriced or over-complicated syncing, or just stay with Notion and focus on doing your thing instead. Here it&#39;s easier to tend to the former side for me. But when I went through the experience of hacking away and adding a bunch of features that resulted in an importing experience that was arguably an upgrade from Notion even visually, there was no doubt left.</p><figure><img alt="Screenshot of a note on Kotlin Coroutines open in 3 side by side windows: first in obsidian with unhacked importer (with unhighlighted code and unlinked ToC), second in Notion (with ToC linked and code lightly highlighted) and third in obsidian with hacked importer (with nicely highlighted code and auto-generated ToC in a hovering side panel" src="https://cdn-images-1.medium.com/max/1024/1*PgmUFXAr_kPPOhu8qqalrw.png" /><figcaption>Imported note before hacking | Original Notion page | Imported note after hacking</figcaption></figure><p>And even though right now I&#39;m writing this blog in Notion (sorry for not giving you a perfect ending<a href="#35bc">¹⁸</a>), I&#39;m going to switch away this year to Obsidian without a doubt. I&#39;ve already enlisted my wife as a test subject (albeit with partial success) by forcing her to switch over from Evernote (eww) and Notion to Obsidian and setting up hacky syncing via dropbox. It&#39;s even part of my resolution for 2024, so of course it&#39;s bound to happen no matter what.</p><figure><img alt="Screenshot of my tweet (umm X post?) showing a list of three tech resolutions for 2024: neovim, obsidian and split keyboard; wih 24 views" src="https://cdn-images-1.medium.com/max/343/1*xDI5nPMwUV6ftklJfbrV3A.png" /><figcaption>Can’t let those 24 people down</figcaption></figure><p>But for now I&#39;m going to proceed with my neovim setup, with part of me hoping to encounter a bug that I can just go ahead and fix and be on my way with a bunch of joy.</p><p>Thanks for reading, and don&#39;t forget to spread the joy! Share this on the <a href="https://twitter.com/share?url=https://aksh.dev/the-joy-of-hackable-tools/&amp;text=An%20interesting%20read%2C%20thought%20I%27d%20spread%20the%20joy%21">bird unicode character site</a>, the <a href="http://your-server.probably-social/share?url=https://aksh.dev/the-joy-of-hackable-tools/&amp;text=An%20interesting%20read%2C%20thought%20I%27d%20spread%20the%20joy%21">elephant site</a> or maybe even the <a href="https://en.wikipedia.org/wiki/Nope">orange site</a>?</p><h4>Footnotes</h4><ol><li><a href="https://xdaforums.com/m/a_k_s_h_.8009238/#recent-content">A_K_S_H_ | XDA Forums</a></li><li><a href="https://github.com/kovidgoyal/kitty/discussions/3720">Cycling tabs in recently used order · kovidgoyal/kitty · Discussion #3720 · GitHub</a></li><li><a href="https://www.reddit.com/r/FirefoxCSS">userchrome</a>, anyone?</li><li><a href="https://codestats.net/users/aksh">Code::Stats</a></li><li><a href="https://youtu.be/ZWWxwwUsPNw?si=xJQ4b1RgPqvzcgfz&amp;t=3620">Neovim Config — Part 1 — Lazy Vim — YouTube</a></li><li><a href="https://github.com/liljaylj/codestats.nvim">GitHub — liljaylj/codestats.nvim: Code::Stats plugin for Neovim</a></li><li><a href="https://github.com/liljaylj/codestats.nvim/pull/3">Fixed get_xp &amp; get_level by aksh1618 · Pull Request #3 · liljaylj/codestats.nvim · GitHub</a></li><li><a href="https://learnxinyminutes.com/docs/lua/">Learn Lua in Y Minutes</a></li><li><a href="https://www.youtube.com/watch?v=DbsAQSIKQXk">Hack your brain with Obsidian.md — YouTube</a></li><li><a href="https://youtu.be/xmqpzpzdjI8?si=OZiS8BZBoIzkS6ZT&amp;t=4880">Hardware and software [2024 edition] — YouTube</a></li><li><a href="https://stephango.com/file-over-app">File over app — Steph Ango</a>, see also: <a href="https://obsidian.md/about">Obsidian’s manifesto</a></li><li><a href="https://obsidian.md/blog/free-your-notes/">Free your notes — Obsidian</a></li><li><a href="https://github.com/obsidianmd/obsidian-importer/issues/82">Notion code blocks are imported without line breaks · Issue #82 · obsidianmd/obsidian-importer · GitHub</a></li><li><a href="https://github.com/obsidianmd/obsidian-importer/issues/107">Notion code blocks still being imported without line breaks · Issue #107 · obsidianmd/obsidian-importer · GitHub</a></li><li>I got so excited that I went completely overboard and actually created a release! <a href="https://github.com/aksh1618/obsidian-importer/releases/tag/1.3.1-aksh-0.1.0">Release 1.3.1-aksh-0.1.0 · aksh1618/obsidian-importer · GitHub</a></li><li><a href="https://github.com/obsidianmd/obsidian-importer/pull/108">Notion: Fix codeblocks being imported without line breaks by aksh1618 · Pull Request #108 · obsidianmd/obsidian-importer · GitHub</a></li><li><a href="https://github.com/obsidianmd/obsidian-importer/pull/118">fix newlines in notion codeblocks by joshuatazrein · Pull Request #118 · obsidianmd/obsidian-importer · GitHub</a></li><li>I did end up editing it in Obsidian before publishing, so I guess there was a happy ending after all! I wanted to go for footnotes instead of links for this one to enhance readability, and a <a href="https://github.com/MichaBrugger/obsidian-footnotes">couple of</a> <a href="https://github.com/charliecm/obsidian-tidy-footnotes">Obsidian</a> <a href="https://github.com/heycalmdown/navigate-cursor-history">plugins</a> came in really handy</li></ol><p><em>Originally published at </em><a href="https://aksh.dev/the-joy-of-hackable-tools/"><em>https://aksh.dev</em></a><em> on January 21, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9136f9a68453" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to develop an Android App in 2019: embracing the ‘new’ Android]]></title>
            <link>https://medium.com/free-code-camp/developing-an-android-app-in-2019-embracing-the-new-android-51000037b6fa?source=rss-946c79af959f------2</link>
            <guid isPermaLink="false">https://medium.com/p/51000037b6fa</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Aakarshit Uppal]]></dc:creator>
            <pubDate>Sun, 17 Mar 2019 04:19:46 GMT</pubDate>
            <atom:updated>2019-04-01T18:20:47.006Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>or how the Bitotsav ’19 app became a reality</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJIHafbx3Dzn6xWlVWDknA.png" /></figure><h3><em>Background: Pantheon ’17 ⏪</em></h3><p>Almost two years ago, in September 2017, a friend, <a href="https://medium.com/u/1a6703543e02">Ashank Anshuman</a> convinced me to work on an app for the technical fest of our institute. We worked for about two weeks, day and night, getting it ready for release just in time for the fest. Although we were exhausted, it was an amazing feeling, getting something ‘out there’, in production, that people actually used! It served its purpose perfectly well, helping the organizers easily convey everything to the participants.</p><p><a href="https://play.google.com/store/apps/details?id=in.pantheon17">Pantheon &#39;17 - Apps on Google Play</a></p><p>It was rated 4.9 with around 120 reviews, which Google’s bots removed for some reason, but that’s a story for another time. We received some requests to share the source of the app, but we declined, due to many reasons — but mostly because we weren’t that satisfied with the code, especially the parts rushed through near the end. We simply didn’t have enough time and experience to write code good enough for people to learn from and/or use.</p><h3>Here We Go Again! 🙃</h3><p>Fast forward to November 2018: Ankit Agrawal (he’s that ‘fest guy’) asks me to join the team for Bitotsav, our annual socio-cultural fest, to which I agree, as I was looking for some excuse to revisit Android. This time I convinced Ashank (took a lot of convincing!) to work on the app.</p><p>We didn’t do much in December, but I did start reading on things like Architecture Components, AndroidX, Jetpack etc. I had also been getting familiar with Kotlin over the past few months, with a couple courses being instrumental: A two-part course by the one and only <a href="https://medium.com/u/7bef290f1d79">Hadi Hariri</a> and another more recent one by Svetlana Isakova and <a href="https://medium.com/u/e821c45acf49">Andrey Breslav</a> (which he introduced in KotlinConf 2018). Kotlin was thus the obvious choice for the app.</p><ul><li><a href="http://shop.oreilly.com/product/0636920052982.do">Introduction to Kotlin Programming</a></li><li><a href="https://www.coursera.org/learn/kotlin-for-java-developers">Kotlin for Java Developers</a></li></ul><h3><strong>Decisions 🦉</strong></h3><p>The first half of January also went by with not much code being written, as I was preoccupied and couldn’t reach the college till 16th Jan. We did, however, make some major decisions:</p><ul><li><strong>Use </strong><a href="https://developer.android.com/kotlin"><strong>Kotlin</strong></a><strong> exclusively</strong></li><li><strong>Use </strong><a href="https://hackernoon.com/package-by-features-not-layers-2d076df1964d"><strong>Feature-based packaging</strong></a></li><li><strong>Use </strong><a href="https://developer.android.com/jetpack"><strong>Jetpack</strong></a><strong> </strong><a href="https://developer.android.com/topic/libraries/architecture/"><strong>Architecture Components</strong></a><strong> with </strong><a href="https://developer.android.com/jetpack/androidx/releases"><strong>AndroidX</strong></a></li><li><strong>Use </strong><a href="https://developer.android.com/about/dashboards/"><strong>API 21 as Min API</strong></a><strong> </strong><em>(22 might’ve been a better choice)</em></li><li><strong>Use </strong><a href="https://developer.android.com/studio/preview"><strong>Android Studio Canary</strong></a></li><li>Use <a href="https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow">Git Flow</a> &amp; <a href="https://semver.org/">SemVer</a></li><li>Write code good enough to make it public after the fest 🙈</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AoEftWv1UWPr9zLDmC8uIA.png" /><figcaption>Jetpack with AndroidX</figcaption></figure><p>So basically, a hard reset from all the experience of developing an app in 2017 to the bleeding edge in 2019. It was really exciting, but also a big challenge.</p><h3>Code Code Code! 💻</h3><p>We decided that Ashank would take care of the Backend of the app (DB &amp; Networking, Notifications with FCM, Background Processing) and I’d take care of the Frontend and Integration, just like we did for Pantheon ’17. Many resources came in handy while getting started and as we worked, but the best by far were these awesome codelabs offered by Google:</p><ul><li><a href="https://codelabs.developers.google.com/codelabs/android-room-with-a-view-kotlin">Room with a View - Kotlin</a> (ViewModel, LiveData &amp; Room with Coroutines)</li><li><a href="https://codelabs.developers.google.com/codelabs/kotlin-coroutines">Using Kotlin Coroutines in your Android App</a></li><li><a href="https://codelabs.developers.google.com/codelabs/android-databinding">Data Binding Codelab</a></li><li><a href="https://codelabs.developers.google.com/codelabs/android-navigation">Navigation Codelab</a>: (Navigation Architecture Component)</li><li><a href="https://codelabs.developers.google.com/codelabs/android-workmanager/#0">Background Work with WorkManager</a></li></ul><p><a href="https://codelabs.developers.google.com/?cat=Android">Google Codelabs</a></p><p>Also, the <a href="https://github.com/googlesamples/android-sunflower">Sunflower</a> &amp; <a href="https://github.com/google/iosched">Google IO 18</a> apps by Google were ideal codebases for the purpose of reference. <a href="https://github.com/google/iosched/tree/adssched">Android Dev Summit app</a> would also have been a good source for reference, had I known about it before!</p><p><a href="https://github.com/googlesamples/android-sunflower">googlesamples/android-sunflower</a></p><p>With these in our arsenal, we began coding. I decided to use the new <a href="https://developer.android.com/topic/libraries/architecture/navigation"><strong>Navigation architecture component</strong></a><strong> to implement a </strong><a href="https://www.youtube.com/watch?v=2k8x8V77CrU"><strong>single-Activity app architecture</strong></a>. Ashank started with Room and FCM. I had also been thinking about using <a href="https://insert-koin.io/"><strong>Koin</strong></a><strong> for IoC</strong>, but wasn’t so sure.</p><p>Incidentally, Joe Birch launched a Koin course right around that time on <a href="https://caster.io/">caster.io</a> (Features small, to the point courses by professionals, each free for a week on launch!), and decided to go with it. No regrets there! Seriously, the android support is amazing and the <a href="https://beta.insert-koin.io/docs/2.0/documentation/reference/index.html#_koin_for_android_developers">documentation</a> is fabulous ❤️</p><p><a href="https://caster.io/courses/koin">Koin</a></p><p>With Navigation and Koin setup, I began with the UI, deciding was to <strong>use material design components</strong> exclusively for UI for which the <a href="https://material.io/design/components/"><strong>guidelines</strong></a><strong> and </strong><a href="https://material.io/develop/android/components/bottom-app-bar/"><strong>docs</strong></a> came in handy. Also, I <em>had</em> to <strong>use </strong><a href="https://developer.android.com/topic/libraries/data-binding"><strong>Data Binding</strong></a> because I love it! Meanwhile Ashank implemented<strong> </strong><a href="https://developer.android.com/topic/libraries/architecture/workmanager"><strong>WorkManager</strong></a><strong>, </strong>which we decided to <strong>use instead of Firebase Job Dispatcher</strong>, going full Jetpack!</p><p>The first thing I developed was the Schedule UI, which helped me get comfortable with Architecture Components. With that done, I moved on to the Registration-flow UI, probably the most complex part of the app, which featured advanced usage of LiveData and Navigation for implementing three steps with live-validated forms (Worth a blog post of its own, coming soon?!). This made me a lot more confident in these components, and it was a smooth ride from there on. We completed the planned features, discovered some gotchas, fixed some bugs.</p><h3>Launch 🚀</h3><p>With major features implemented, we did some UI brush-ups, completed some final TODOs, and were ready for launch! As a finishing touch, I added something I had been planning for all along:</p><p>A different color theme on every configuration change! This was done to compliment the theme of the fest: “<em>Colours of Asia”</em></p><p>The app was live on the Play Store on Feb 11, 2019! 🎉🎉</p><p><a href="https://play.google.com/store/apps/details?id=in.bitotsav">Bitotsav &#39;19 - Apps on Google Play</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1mU0pUO_dWfQU1TGExUXrg.png" /><figcaption>Bitotsav ’19 App</figcaption></figure><h4>Fixes &amp; Updates</h4><p>We faced (the only!) two bugs within hours, which we fixed right away. The first one was related to DAO methods being marked suspend, but I’m still not a 100% sure why exactly it was happening 😅. The second one was caused by obfuscation causing a serialization failure, and was easily fixed with a <em>Keep </em>annotation.</p><p>Then I started working on the next update, in which I added the leaderboard in the feed and the night events for the fest in the schedule, along with some other changes. A third update followed adding some more minor features.</p><p><strong>The fest went well, and the app was used by over 1000 participants!</strong></p><p>We did face a minor issue due to an incorrect DB entry in the servers by our friend Sushant Gupta, who later proceeded to write a rather dramatic blog post on the same.</p><p><a href="https://cs.sonudoo.com/2019/02/ddos-attack-on-bitotsav-19-website.html">DDoS Attack on Bitotsav &#39;19 Website</a></p><p>After the fest, we released a final update, storing the event details, feed etc. as JSONs as part of the app and redacting the contact numbers of the organizers for privacy reasons.</p><h4>Going Public!</h4><p>It was time to open source the code! This time around, we had taken care to write understandable code, and it was ready for the world. I prepared a slick README, and to remove the contact numbers from the history of the repository, we used the amazing <a href="https://rtyley.github.io/bfg-repo-cleaner">BFG Repo Cleaner</a> tool.</p><p>The code for the Bitotsav ’19 app is now public, for anyone to review, refer to, learn from or use! Check it out and don’t forget to leave a 🌟 😄</p><p><a href="https://github.com/aksh1618/Bitotsav-19">aksh1618/Bitotsav-19</a></p><h3>Challenges 🧱</h3><p>We did face some challenges during the development:</p><ul><li><strong>Time Limitations:</strong> The main challenge we faced was of having a very limited time to learn very new concepts and use them to create an app to be used by hundreds. This time constraint led to a lot of continuous hours being put in, leading to stress and fatigue, but we were able to power through and deliver!</li><li><strong>WorkManager with Coroutines:</strong> On the technical side of things, we faced some minor challenges with WorkManager and Coroutines, but were able to overcome them. Hoping for a better support for coroutines throughout the Android SDK as development continues 🤞.</li><li><strong>API 21: </strong>We chose min API 21 to avoid having to adapt everything to work on older versions, as most android devices are on API 21 and above anyway. But surprisingly, <a href="https://stackoverflow.com/a/29756195/6346531">some things</a> refused to work on API 21, especially view backgrounds. It was really frustrating, making me wish we had set min API as 22, even more so when we found out that the app had been installed only on two API 21 devices: the ones we had tested on 😿.</li><li><strong>Lack of Devices:</strong> Another challenge we faced was not having enough devices to test on. During Pantheon ’17, we had a hostel with ~200 people, and thus testing was easy. This time around most people were gone for internships, so we were left with relying on having confidence in the code!</li><li><strong>No code reviewers:</strong> A lot of what we used was new to us, and we did our best to ensure we were doing everything right. But having a reviewer would have been very helpful. Even now, if you feel like you could do a quick review of the app’s code, we’d be very thankful!</li><li><strong>The Apocalypse:</strong> We did also face that ‘ <em>DDoS </em>’ issue, read Sushant’s blog post linked above, you won’t regret it!</li></ul><h3>Takeaways ✅</h3><ul><li><strong>Kotlin + Jetpack = ❤️ : </strong>The main takeaway was that Android Development has come a long way and with Kotlin and Jetpack, it’s definitely a lot more fun and purely joyful! Seriously, there were multiple <em>orgasmic</em> moments during the coding process!</li><li><strong>Nothing is Impossible:</strong> Kinda cliché but true: if you have the will to work hard, you can do anything, no matter how difficult. Sure, there will be stressful phases, but keep powering through. Just believe in yourself!</li></ul><h3>Regrets 😅</h3><ul><li><strong>No Instant App / App Bundles</strong>: We just straight up missed this one. Didn’t even think about it. Ah well, maybe next time.</li><li><strong>No tests</strong>: I know, this is a big one! Having proper tests in place could have helped us a lot, but due to the time constraints, we decided not to write tests until a ‘later’ time, which hasn’t yet come 🙈.</li></ul><h3>TL;DR. 📗</h3><p>Starting with an app with 2019?</p><h4>Use Kotlin &amp; Coroutines</h4><ul><li><a href="http://shop.oreilly.com/product/0636920052982.do">Learn</a> Kotlin and <a href="https://codelabs.developers.google.com/codelabs/taking-advantage-of-kotlin">use it</a> exclusively!</li><li><a href="https://codelabs.developers.google.com/codelabs/kotlin-coroutines">Learn to use</a> coroutines with Android.</li></ul><h4>Use Jetpack Components with AndroidX</h4><ul><li><a href="https://codelabs.developers.google.com/codelabs/android-navigation">Learn to use</a> Navigation Component for Single-Activity Architecture.</li><li><a href="https://codelabs.developers.google.com/codelabs/android-room-with-a-view-kotlin">Learn to use</a> Lifecycle Components for UI &amp; Room for persistence.</li><li>Do yourself a favor and <a href="https://codelabs.developers.google.com/codelabs/android-databinding">use</a> Data Binding!</li><li><a href="https://codelabs.developers.google.com/codelabs/android-workmanager/#0">Learn to use</a> WorkManager for background processing.</li></ul><h4>Use Material Components</h4><ul><li><a href="https://material.io/design/components/">Material Components Guidelines</a></li><li><a href="https://material.io/develop/android/components/bottom-app-bar/">Material Components Android Docs</a></li></ul><h4>Write Tests!</h4><p>Well we couldn’t but you definitely should! Do NOT skip tests.</p><h4>Refer to Source Code</h4><p>.. of apps that do these things: <a href="https://github.com/googlesamples/android-sunflower">Sunflower App</a>, <a href="https://github.com/google/iosched">IO App</a>, <a href="https://github.com/google/iosched/tree/adssched">Dev Summit App</a> or, of course, the <a href="https://github.com/aksh1618/Bitotsav-19">Bitotsav ‘19 App</a>! (also, leave a star 😛)</p><h4>Stay up to date</h4><p>Subscribe to blogs and newsletters to stay up to date! Here are some to start with: <a href="https://androidweekly.net/">Android Weekly,</a> <a href="https://proandroiddev.com/">ProAndroidDev</a>, <a href="https://android.jlelse.eu/">AndroidPub,</a> <a href="http://www.kotlinweekly.net/">Kotlin Weekly</a>. Overwhelmed? Check out this awesome talk by <a href="https://medium.com/u/a899c2c01c96">Huyen Tue Dao</a>:</p><p><a href="https://academy.realm.io/posts/360-andev-2017-keynote-huyen-tue-keeping-up-with-android">Be Like Water: Keeping up with Android</a></p><p>Well, there we go. This is a great time for Android Development, so go get started with your new app, and don’t forget to have fun while doing it!</p><p>👏 if you learned something, constructive criticism welcome 😄</p><p>Catch me on <a href="https://twitter.com/aksh1618">Twitter</a> 🐦 , <a href="https://www.linkedin.com/in/aakarshit-uppal/?lipi=urn%3Ali%3Apage%3Ad_flagship3_feed%3BdcfpLfCgSPiW0Cox1OEGIQ%3D%3D&amp;licu=urn%3Ali%3Acontrol%3Ad_flagship3_feed-identity_welcome_message">LinkedIn</a> 🔗 or <a href="https://github.com/aksh1618">GitHub</a> 🐙😺</p><p>Until next time 👋👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51000037b6fa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/free-code-camp/developing-an-android-app-in-2019-embracing-the-new-android-51000037b6fa">How to develop an Android App in 2019: embracing the ‘new’ Android</a> was originally published in <a href="https://medium.com/free-code-camp">We’ve moved to freeCodeCamp.org/news</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>