<?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 Soumyajit Das on Medium]]></title>
        <description><![CDATA[Stories by Soumyajit Das on Medium]]></description>
        <link>https://medium.com/@dassoumyajit4?source=rss-280c2de04a8c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*7K-65AWnDeHKIVoH5MKJ0A.png</url>
            <title>Stories by Soumyajit Das on Medium</title>
            <link>https://medium.com/@dassoumyajit4?source=rss-280c2de04a8c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 14:03:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dassoumyajit4/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[Localizing Products The Gojek Way]]></title>
            <link>https://medium.com/gojekengineering/localizing-products-the-gojek-way-19f5fb87c1f6?source=rss-280c2de04a8c------2</link>
            <guid isPermaLink="false">https://medium.com/p/19f5fb87c1f6</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[gojek]]></category>
            <category><![CDATA[string]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[localisation]]></category>
            <dc:creator><![CDATA[Soumyajit Das]]></dc:creator>
            <pubDate>Tue, 06 Apr 2021 05:36:38 GMT</pubDate>
            <atom:updated>2021-04-06T05:36:38.483Z</atom:updated>
            <content:encoded><![CDATA[<h4>How we created the ‘Localized String Generator’ to ensure we fit in the demographies we were expanding.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qLYVgNEU0wqLwvMW6inimw.jpeg" /></figure><p>Gojek’s growth since the launch of the app in 2015 has been both horizontal and vertical. The number of products grew and we started expanding internationally. Journeying beyond Indonesia, into other Southeast Asian countries, meant we had to localize our products to fit the demographies we were targeting.</p><blockquote>The idea was simple: Make every user familiar with our app by presenting content in their local language.</blockquote><p>Our developers geared up to find a solution to manage localized string copies in an effective manner across multiple platforms.</p><p>We automated String copy management on our Gojek app by developing an <strong>in-house Kotlin based CLI tool</strong> called Localized String Generator. Throughout the development process, our focus was to improve on extensibility and developer friendliness while ticking all boxes in terms of features in a String copy management tool. Some important features we included were: <strong><em>Command Line Interface</em></strong>, <strong><em>Release version management</em></strong>, <strong><em>Guided validations &amp; access, Dry Run,</em></strong> etc.</p><h3>Think big but start small</h3><p>Gojek has close to 250 app modules and this number is ever-increasing. It’s vital to have a simplified, extensible solution for our string localization management.</p><p>In the first phase, we decided to solve this problem for our own product, <a href="https://www.gojek.com/gopay/"><strong>Gopay</strong></a>. GoPay, being one of the most used payment apps in Indonesia, has close to <strong>40 app modules and 4000 strings across 4 locales (i.e. 4000*4 = 16000 copies)</strong>.<strong> </strong>Thus, we rolled up our sleeves and started brainstorming.</p><p>Initially, we figured out a few limitations in our current system we wanted to solve:</p><ul><li>UX Writers were having a hard time maintaining all strings in the app and getting approval for the same.</li><li>There was a possibility Android and iOS had string copy variations as some of the string resources have multiple definitions according to respective locales.</li><li>To implement and test localization, massive manual work was required by Developers and QA.</li><li>Minor typos like the wrong case, missing period symbols were very frequent.</li></ul><h3>Initial Approach</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*q9Zbkrv7bgJtXNfUy89WuA.png" /><figcaption>Process Flow diagram with Initial approach in place</figcaption></figure><p>Even though we started making the best out of this approach, it did not take long for us to realise the method needed a lot of improvements.</p><h3>Major pain points of the initial approach</h3><h4>1. Unable to track changes</h4><ul><li>Possible side-effects due to the huge list of new localized strings fetched while working on some other feature</li><li>Version management was unavailable</li></ul><h4>2. Manual steps</h4><ul><li>Had to manually download CSV from Google Sheets</li><li>Ruby setup for executing script was required</li><li>No CI/CD pipeline</li></ul><h4>3. Error-prone</h4><ul><li>Duplicate keys</li><li>Missing escape characters checks</li><li>Duplicate strings</li><li>The script failed without giving a proper description in case of invalid data in CSV</li></ul><h4>4. Scaling issues</h4><ul><li>Generated single file for all strings, hence, not scalable</li><li>Solution is rigid</li><li>Doesn’t support the addition of new languages out of the box</li></ul><h4>5. Onboarding</h4><ul><li>Onboarding any module to a Google Sheets based approach required lots of manual effort</li></ul><h3>Introducing ‘Localized String Generator’ 🥁</h3><p>The first approach was coupled with extensive manual intervention. With the Localized String Generator, one of the main aspects we focused on was to automate it as much as possible.</p><p>Here are the features we introduced:</p><ul><li><strong>Unified string management</strong> portal for iOS &amp; Android, using Google Sheets</li><li><strong>Guided access</strong> which descriptively explains the errors to the user/developer</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2S03FXCpd--iuV9zzCcacA.gif" /><figcaption>Localized String Generator guiding developer to fix any unforeseen issue</figcaption></figure><ul><li><strong>Dry Run</strong> to visualise the changes that are going to happen</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SFeJEM9teI4cLA6z5Zqmdg.gif" /><figcaption>Running in Dry-Run mode</figcaption></figure><ul><li><strong>Force mode</strong> when the developer knows they just can’t be wrong 😁</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4OH4BXMekgkTxmCrWchc8Q.gif" /><figcaption>Running in Force Mode</figcaption></figure><ul><li><strong>Command Line interface</strong> along with <strong>HELP</strong> for all commands and options</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zlWEkJ1I3jBQHdlneEulYg.gif" /><figcaption>Localized String Generator has a dedicated Help section for all available commands</figcaption></figure><ul><li><strong>Flexible: </strong>Having JSON configurations, which can be committed in host apps along with module</li><li><strong>Extensible: </strong>Can be integrated with any iOS &amp; Android apps, with minimal steps.</li><li><strong>Release version management</strong> (minimum support for now)</li><li>Can be automated as part of CI pipelines</li><li>Guided Google Sheets entries validation and guided string files generation from remote</li><li>Takes care of escaping special chars, tags, variable args</li></ul><h3>System Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCr_nT0eonR7F2_ttaSSyQ.png" /><figcaption>Localized String Generator High Level Design</figcaption></figure><p>As we can see above, the building blocks of the Localized String Generator are:</p><ol><li><strong>Google Sheets</strong></li><li><strong>Localized String Generator JAR</strong></li><li><strong>Configuration JSON file</strong></li><li><strong>Git for Version Management</strong></li></ol><h3>The amalgamation of these building blocks</h3><h4>1. Create Google Sheet</h4><p>We create a new Google spreadsheet for the product (e.g.: GoPay, GoFood, GoRide, etc.) and make a note of the <strong>Spreadsheet ID</strong> and <strong>Spreadsheet Name</strong> as shown in the below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rW9HIBWqMIZCi-Ax" /><figcaption>Sample Google Sheet</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R6qrYGifUAUNhIM3Svfl7A.png" /><figcaption>Columns in Google Sheet</figcaption></figure><p><strong><em>Things to take note of:</em></strong></p><p>👉 Once the UX Writer verifies and updates the string copy in Google Sheet, the <strong>is Verified by UxWriter</strong> column will be updated to <strong>yes</strong>.</p><p>👉 For Localized String Generator to work with the created Google Sheet, we need to go through the <strong>following steps</strong>:</p><ul><li><a href="https://developers.google.com/identity/protocols/oauth2/service-account#creatinganaccount">Create a Google Service account</a> and download the <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys">p12/JSON credential</a> file for that account.</li><li>Configure the project to use this credential file to make changes to the Google sheet.</li><li>Provide Google Sheet edit access to the service account.</li></ul><h4>2. Create Local configuration files in JSON format</h4><p>A committable configuration file needs to be created which contains all the details regarding Android/iOS projects.</p><p><strong>Here is a sample configuration JSON file:</strong></p><pre>{<br>  &quot;app_name&quot;: &quot;target app &quot;,  <br>  &quot;product_name&quot;: &quot;target product&quot;,<br>  &quot;module_name&quot;: &quot;target module&quot;,<br>  &quot;string_resources_folder_path&quot;: &quot;projects string resource path&quot;,<br>  &quot;google_sheet_id&quot;: &quot;created google sheet id&quot;,<br>  &quot;primary_google_sheet_name&quot;: &quot;created google sheet name&quot;,<br>  &quot;platform&quot;: &quot;android/iOS&quot;<br>}</pre><p>If you look closely, Localized String Generator actually supports <strong><em>module-level granularity</em></strong>.</p><blockquote>So, if we need to, we can manage string copies for each module separately in different spreadsheets.</blockquote><h4>3. Localized String Generator tool</h4><p>This is the most important part of the project. We’ve written the whole tool in Kotlin and generated an executable JAR that does all the magic. There are a few responsibilities of the JAR:</p><h4>▹ Generating a CSV file</h4><p>The<strong> generate-csv</strong> command generates CSV files by looking at the <strong>string_resources_folder_path</strong> from the Configuration JSON file. It can generate CSV files for both Android and iOS depending on the <strong>platform</strong> mentioned in the Configuration JSON file.</p><h4>▹ Add or Update Remote Strings</h4><p>After using the <strong>add-update-remote-strings</strong> command, all new strings will be added to the remote Google Sheet. Any existing strings which are marked as <strong>yes</strong> under the <strong>Verified by UxWriter </strong>column will not be updated.</p><h4>▹ Update Local Strings</h4><p>With<strong> </strong>the<strong> update-local-strings </strong>command, strings files will be generated using strings available in the remote Google Sheet, and existing string files in the project will be overwritten.</p><h4>▹ Update Local Strings and Release</h4><p>With<strong> </strong>the<strong> update-local-strings-and-release </strong>command, strings files will be generated using strings available in the remote Google Sheet, and existing string files in the project will be overwritten. Furthermore, the CSV generated from Google Sheet will be committed and pushed to the Git repository with the commit message passed in parameter while executing the command.</p><h4>▹ Compare Local CSVs</h4><p>The<strong> compare-local-csv </strong>command compares two local CSV files. It’s helpful to print a summary of changes in before and after format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAC5tWezNJzjART31UzVIA.gif" /><figcaption>Localized String Generator in action 🖖</figcaption></figure><blockquote><strong>Note:</strong> Localized String Generator uses <a href="https://developers.google.com/sheets/api/quickstart/java">Google Sheets API</a> to perform any read and write operations on our Google Sheet.</blockquote><p>Localized String Generator is not an end product yet, and has further scope for improvement. The prior knowledge we had while working on the initial approach definitely helped us along in this journey and when we look back at what we achieved with this project, we couldn’t be more proud. Inside Gojek, the Localized String Generator now has been adopted by multiple teams in addition to the GoPay team.</p><p>The number of teams that have begun to use Localized String Generator is constantly increasing and we couldn’t be happier. 😁</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dv82CxlLotYVNwKDmQHcSA.jpeg" /><figcaption>GoPay Team</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IPWwoozDxeKoXMtXEyrtLw.png" /></figure><p>To read more stories from our vault, click <a href="https://medium.com/gojekengineering">here</a>.</p><p>And we’re hiring! Click below to view open job positions.</p><figure><a href="https://bit.ly/gojekjobsblogs2021"><img alt="" src="https://cdn-images-1.medium.com/max/700/1*c2_eIvR2WDUWnP6YmzcGpQ.jpeg" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19f5fb87c1f6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gojekengineering/localizing-products-the-gojek-way-19f5fb87c1f6">Localizing Products The Gojek Way</a> was originally published in <a href="https://medium.com/gojekengineering">Gojek Product + Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let's start learning Android development in Reactive way using RxJava — A, B, C, D of Rx]]></title>
            <link>https://medium.com/@dassoumyajit4/lets-start-learning-android-development-in-reactive-way-using-rxjava-a-b-c-d-of-rx-5fdb958d9818?source=rss-280c2de04a8c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fdb958d9818</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[rxjava]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[rxandroid]]></category>
            <dc:creator><![CDATA[Soumyajit Das]]></dc:creator>
            <pubDate>Tue, 11 Jun 2019 20:31:27 GMT</pubDate>
            <atom:updated>2019-06-11T20:31:27.613Z</atom:updated>
            <content:encoded><![CDATA[<h3>Let&#39;s start learning Android development in Reactive way using RxJava — A, B, C, D of Rx</h3><p>Android application development evolved way too much from the last two-three years or so. There are so many new ways/solutions came up these days starting from Architecture components, dependency injection, Rx, etc. All these are having one thing in common, THEY ALL DO MAKE DEVELOPER’S LIFE EASIER IN ONE WAY OR ANOTHER. Now, in this article, we will discuss how to approach learning Rx if you are a beginner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*HJg-f7z0Vf-uBqQNKxvfdg.png" /></figure><p>The picture below gives a proper understanding of what RxJava/RxAndroid is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aCNXIbrIp01fZ1MWPwDMOg.png" /></figure><p>There are three major pillars of Rx, i.e. Observable, Observer, Schedulers. From a layman standpoint, Observable is equal to an entity which can be observed or whose change can be followed as long as we need. Observable is good, however, it is not complete without an Observer, otherwise who is going to observe the changes in the Observable? And finally, Schedulers are going to give you (the developer) access to thread pools using which you can execute a piece of code according to your wish of thread. Apart from these, Rx gives you it’s own operators using which you can transform the data i.e. aligning them to your requirement.</p><p>Now, these are the basic few liners about Rx, if you want to learn further please check my video “Introduction to RxJava in Android and why you need to start android development in Reactive way” regarding the same here in this link <a href="https://www.youtube.com/watch?v=gAI2T-B4cmU">https://www.youtube.com/watch?v=gAI2T-B4cmU</a></p><p>I think already you have understood that Observable is one of the key components of Rx world, so if you don&#39;t know what are those and how many of them are present you will be having some tough time to start writing android codes in Reactive way.</p><p>On the basis of when and how Observable starts emitting data Observables are divided into two different types, COLD and HOT.</p><p>COLD is like a CD player which can play all the songs for each of the listeners, so even if one listener comes to listen to the songs later, he can still listen from the very beginning. COLD Observable starts emitting when a subscriber subscribes to the observable.</p><p>However HOT is more like Radio station, if you are coming late, you might miss some songs. Hot Observable does not wait for a subscriber to subscribe to start emitting data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ptPhSiiKw7k_gcwNtPYudA.png" /></figure><p>Apart from this, we do have four different types of Observable provided by Rx which we can use i.e. Observable, Single, Maybe, Completable. Flowable is also a type of Observable which has Backpressure strategy. However, I will keep this Backpressure strategy topic for some later article.</p><p>Now when to use which observable? Which requirement is suitable for which type of Observable. You can actually go through this video created by me “Type of Observable and Hot-Cold Observable” here in this link <a href="https://www.youtube.com/watch?v=_qPjmnnIzH4">https://www.youtube.com/watch?v=_qPjmnnIzH4</a> to get more understanding for this.</p><p>Now once you watch the last two videos, I can assure you have acquired enough knowledge to start writing first Observable chain in Android studio. Yes, now is a good time for you to actually dive into Android studio and create your first project about Rx and start writing Android code in Reactive way.</p><p>Still, if you face any issues, you can take reference from this video “Write your first code in RxJava — Observer, Single, Maybe, Completable” which I have created. You can find the video here <a href="https://www.youtube.com/watch?v=mOdQ2qVxk0s">https://www.youtube.com/watch?v=mOdQ2qVxk0s</a></p><p>In this video, I have used Kotlin to write the code and explain the logic, however for people who want to write in Java the project repo link can be found also in the description of the video in Youtube. Please clone the repo and get the java version also.</p><p>I will keep on adding more videos in this series of RxJava and also about different topics in my youtube channel. All the topics about which I will create videos will be new and trendy topics for android development. Please subscribe to my channel if you would like to watch those videos.</p><p>My youtube channel: <a href="https://www.youtube.com/channel/UCQFXF0oUy_VmbNzIqHyR-Ig">https://www.youtube.com/channel/UCQFXF0oUy_VmbNzIqHyR-Ig</a></p><p>For any queries, you can reach out to me here: <a href="https://www.linkedin.com/in/soumyajit-das-71208179/">https://www.linkedin.com/in/soumyajit-das-71208179/</a></p><p>Thanks for your time, Adios!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fdb958d9818" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dagger 2, dependency injection in Android, stupid simple]]></title>
            <link>https://medium.com/@dassoumyajit4/well-guys-in-this-article-i-am-gonna-cover-the-basic-fundamentals-of-dagger-2-four-android-7ee937241c30?source=rss-280c2de04a8c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ee937241c30</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[dagger-2]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[dagger]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Soumyajit Das]]></dc:creator>
            <pubDate>Sun, 30 Sep 2018 13:42:26 GMT</pubDate>
            <atom:updated>2018-09-30T13:47:02.190Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*2_k1JrOY7JU2lO9IxeFSvw.jpeg" /></figure><p>We all know dagger 2 is used for dependency injection and it makes our life very easy while we develop Android application. However sometimes we don’t realise what dependency injection is altogether. Guys, dependency injection is nothing fancy at all. We all do it in some manner in any project that we work on.</p><p>Take an example,</p><p>Class A(b:B)</p><p>{</p><p>lateinit var b2:B</p><p>init{</p><p>b2=b</p><p>}</p><p>}</p><p>This is a very basic kotlin code where in class A we are passing one object of type B at the time of instantiation and inside init block we assign that b value to the field variable b2 inside this class. Here class A is dependent of an object of B and we inject that dependency to it. This is dependency injection and conventional approach to use it.</p><p>However in our android projects we normally deal with situations where we need a lot of dependencies who in hand are dependent on some thing else. So if we go by convention we have to be assured that before calling for our actual dependency in one class, the dependency to that dependency is in place.</p><p>That is where dagger 2 comes up to rescue. It creates the dependency graph and gives us the dependency that we require at the runtime. It works in annotations and best part of using dagger 2 is even if you have an error at the configuration it will throw exceptions in compile time, so that you can work yourself up and don’t face any issues in runtime.</p><p>Guys, this was all about Dagger 2 from a very basic standpoint. For complete information I would like to encourage you guys to go through my YouTube tutorial related to Dagger 2. You can find the video here <a href="https://youtu.be/Q5Tlf-IpL4U">https://youtu.be/Q5Tlf-IpL4U</a></p><p>In this video I have given complete information for dagger 2 and also shown the implementation of dagger 2 in kotlin and I have followed MVP architecture pattern through out. I will inject retrofit as dependency using dagger 2 in this project.</p><p>You can find the complete project here <a href="https://github.com/sdas19/Dagger2Sample">https://github.com/sdas19/Dagger2Sample</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ee937241c30" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>