<?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 Gopinath Langote on Medium]]></title>
        <description><![CDATA[Stories by Gopinath Langote on Medium]]></description>
        <link>https://medium.com/@gopinathlangote?source=rss-c9569ce9a804------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6HPGZ_A7P05cIrv2Y884LQ.jpeg</url>
            <title>Stories by Gopinath Langote on Medium</title>
            <link>https://medium.com/@gopinathlangote?source=rss-c9569ce9a804------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 16:06:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gopinathlangote/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[Mastering Kotlin Conventions: Get | Set | In | RangeTo : Part II]]></title>
            <link>https://medium.com/insiden26/mastering-kotlin-conventions-get-set-in-rangeto-part-ii-6b0cce3fbe16?source=rss-c9569ce9a804------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b0cce3fbe16</guid>
            <category><![CDATA[n26-tech]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[kotlin-conventions]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Gopinath Langote]]></dc:creator>
            <pubDate>Mon, 17 Dec 2018 17:01:35 GMT</pubDate>
            <atom:updated>2018-12-17T17:01:35.300Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Kotlin Conventions: Get | Set | In | RangeTo : Part II</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZO5lKYpkbts_tmhqWWeeQ.png" /><figcaption>Kotlin</figcaption></figure><p>Kotlin is famous for its features like high order functions or the power to use functions as first class citizens, extension functions and its conventions to make code easier to understand.</p><p>Along with other general programming language conventions like naming classes, functions, Kotlin has its different flavor called <strong><em>Kotlin Conventions</em></strong>.</p><p>If are you want to start from basic conventions, check out the <a href="https://medium.com/insiden26/mastering-kotlin-conventions-plus-minus-compareto-inc-dec-times-div-part-i-1a34b20aaf4">PART: I</a> of Kotlin convention blog.</p><h4>What is Kotlin Conventions?</h4><blockquote><em>Kotlin allows us to provide implementations for a predefined set of operators on our types. These operators have fixed symbolic representation (like </em><em>+ or </em><em>*) and fixed </em><a href="https://kotlinlang.org/docs/reference/grammar.html#precedence"><em>precedence</em></a><em>. To implement an operator, we provide a </em><a href="https://kotlinlang.org/docs/reference/functions.html#member-functions"><em>member function</em></a><em> or an </em><a href="https://kotlinlang.org/docs/reference/extensions.html"><em>extension function</em></a><em> with a fixed name, for the corresponding type, i.e. left-hand side type for binary operations and argument type for unary ones. Functions that overload operators need to be marked with the </em><em>operator modifier.</em></blockquote><p>We are going to map all below-mentioned conventions by an example of Date</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/939e99131de219d8513bfe683f4a2b99/href">https://medium.com/media/939e99131de219d8513bfe683f4a2b99/href</a></iframe><p>Let’s start with the conventions:</p><h4>Access An Element by get convention</h4><p>In Kotlin or some other programming languages like Java, C, C++ we can access an element of an array by array[6] to get the 7th element from an array.</p><p>Similarly, to get month from a date instance we can implement `getMonth()` method in date class and some more methods to get other fields.</p><p>Instead, if we can access the first element of date ( day ) by date.get(0) or by justdate[0]. This is where we can use Kotlin get convention. To access an element by index, we need to implement operator function get on the Date class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5749777a65204a6cca804883309b2bd2/href">https://medium.com/media/5749777a65204a6cca804883309b2bd2/href</a></iframe><h4>Set An Element by set convention</h4><p>Similar to getting an element from an object we can also set an element by convention set. Here, instead of setting element to some object by using setter method like date.setMonth(6) we can alternatively use date[1]=6 with Kotlin set convention.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ca9ed589d0aada3e8dccc6e36aa4d42/href">https://medium.com/media/0ca9ed589d0aada3e8dccc6e36aa4d42/href</a></iframe><h4>Create Range of Element by rangeTo convention</h4><p>Lots of programming languages give the ability to create range or sequence of an element by using .. between two values. Ex. 1..10 meaning the sequence of elements from 1 to 10. Kotlin also has this feature for language declared classed like Int, Double. Along with this, we can also implement rangeTo method on the custom class and construct range or sequence just by doing date(1,1,2018)..date(31,12,2018) (dates within the year 2018).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05d86379505254a2b15ea6b386931988/href">https://medium.com/media/05d86379505254a2b15ea6b386931988/href</a></iframe><p>Note: rangeTo can be called on any class implementing Comparable interface. Because Kotlin standard library implements extension function rangeToon Comparable interface.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0692a74f7ee7066d5d3292c44804eb64/href">https://medium.com/media/0692a74f7ee7066d5d3292c44804eb64/href</a></iframe><p>If you want to add some other behavior to rangeTo function you can implement your own extensions function.</p><h4>Check If Element Exists by in convention</h4><p>Let’s say, we have a month like,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe0a14633b82b009ce1aab1a26ffabb4/href">https://medium.com/media/fe0a14633b82b009ce1aab1a26ffabb4/href</a></iframe><p>And we want to check if given date falls in a month or not.</p><p>Like, date(13,3,2018) in month(3, 2018)</p><p>With kotlin contains operator method on Month class, we can make this possible.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1186043ae063ac170d879a67ad4516d9/href">https://medium.com/media/1186043ae063ac170d879a67ad4516d9/href</a></iframe><blockquote><strong>Note: All above operator functions can be implemented as a member function of class instead of extensions function.</strong></blockquote><h3>References:</h3><ol><li><a href="https://kotlinlang.org/docs/reference/operator-overloading.html#operator-overloading">https://kotlinlang.org/docs/reference/operator-overloading.html#operator-overloading</a></li><li><a href="https://kotlinlang.org/docs/reference/keyword-reference.html">https://kotlinlang.org/docs/reference/keyword-reference.html</a></li><li><a href="https://www.programiz.com/kotlin-programming/operators">https://www.programiz.com/kotlin-programming/operators</a></li></ol><h3>Interested in joining one of our teams as we grow?</h3><p>If you’d like to join us on the journey of building the mobile bank the world loves to use, have a look at some of the roles <a href="https://n26.com/en/careers/departments/13426?gh_src=3824fb5e1&amp;utm_source=magazine&amp;utm_medium=article&amp;utm_content=mastering-kotlin-conventions:-plus-|-minus-|-compareto-|-inc-|-dec-|-times-|-div-:-part-i">we’re looking for here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b0cce3fbe16" width="1" height="1" alt=""><hr><p><a href="https://medium.com/insiden26/mastering-kotlin-conventions-get-set-in-rangeto-part-ii-6b0cce3fbe16">Mastering Kotlin Conventions: Get | Set | In | RangeTo : Part II</a> was originally published in <a href="https://medium.com/insiden26">InsideN26</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Kotlin Conventions: Plus | Minus | CompareTo | Inc | Dec | Times | Div : Part I]]></title>
            <link>https://medium.com/insiden26/mastering-kotlin-conventions-plus-minus-compareto-inc-dec-times-div-part-i-1a34b20aaf4?source=rss-c9569ce9a804------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a34b20aaf4</guid>
            <category><![CDATA[kotlin-conventions]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[n26-tech]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Gopinath Langote]]></dc:creator>
            <pubDate>Wed, 05 Dec 2018 17:03:43 GMT</pubDate>
            <atom:updated>2019-01-09T11:05:58.066Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Kotlin Conventions: Plus | Minus | CompareTo | Inc | Dec | Times | Div : Part I</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ODDW1gq2UyrNKS6a3_HaRw.png" /><figcaption>Kotlin Conventions</figcaption></figure><p>Kotlin is famous for its features like high order functions or the power to use functions as first class citizens, extension functions and its conventions to make code easier to understand.</p><p>Along with other general programming language conventions like naming classes, functions, Kotlin has its different flavor called <strong><em>Kotlin Conventions</em></strong>.</p><h4>What is Kotlin Conventions?</h4><blockquote>Kotlin allows us to provide implementations for a predefined set of operators on our types. These operators have fixed symbolic representation (like <em>+</em> or <em>*</em>) and fixed <a href="https://kotlinlang.org/docs/reference/grammar.html#precedence">precedence</a>. To implement an operator, we provide a <a href="https://kotlinlang.org/docs/reference/functions.html#member-functions">member function</a> or an <a href="https://kotlinlang.org/docs/reference/extensions.html">extension function</a> with a fixed name, for the corresponding type, i.e. left-hand side type for binary operations and argument type for unary ones. Functions that overload operators need to be marked with the <em>operator</em> modifier.</blockquote><p>An imperative programming language we write a statement to add a number to other number is result = Number(1).plus(Number(2)) wherein the function plus is adding two numbers resulting sum. Whereas Kotlin conventions give us the possibility to write it in a more concise way likeresult = Number(1) + Number(2). Like conventions of using the symbol + for add and minus as -</p><p>We are going to focus some of the arithmetic conventions in this blog, rest of the conventions we will discuss in next blog post. We are going to use Money class for a demonstration of all the conventions here.</p><pre>data class Money(val value: Int)</pre><h3>Plus Convention</h3><p>As the Plus word suggests, this convention is used to add something to other. Kotlin as some predefined <a href="https://kotlinlang.org/docs/reference/operator-overloading.html">operator</a>, which we can use to make programmers life more relaxed. These conventions can be achieved by just using operator keyword for the extension function. This keyword is used at compile to and has restrictions for each time of operator you are using. Example, if plus is extension function name and has operator keyword to it then it can accept only one parameter of the same type and should return the same type back.</p><pre><strong>operator</strong> fun Money.<strong>plus</strong>(other: Money): Money {<br>    return Money(this.value + other.value)<br>}</pre><pre><strong>val ten = Money(10)<br>val seven = Money(7)</strong></pre><p>Here, we can alternatively use tten + seven instead of ten.plus(seven) for adding two amounts.</p><h3>Minus Convention</h3><pre><strong>operator</strong> fun Money.<strong>minus</strong>(other: Money): Money {<br>    return Money(this.value - other.value)<br>}</pre><pre><strong>val ten = Money(10)<br>val seven = Money(7)</strong></pre><p>Here, subtracting one amount from other, traditionally we write either ten.minus(seven) or ten.substract(seven) , Instead with Kotlin minus operator (convention), we write ten — seven.</p><h3>CompareTo Convention</h3><pre><strong>operator</strong> fun Money.<strong>compareTo</strong>(other: Money): Int {<br>    return this.value.compareTo(other.value)<br>}</pre><pre><strong>val ten = Money(10)<br>val seven = Money(7)</strong></pre><p>Here, comparing of two money I can perform several actions like,</p><pre>val greaterThan: Boolean = ten &gt; seven<br>val lessThan: Boolean = ten &lt; seven<br>val equalToThan: Boolean = ten == seven<br>val notEqualToThan: Boolean = ten != seven<br>val greaterThanEqualToThan: Boolean = ten &gt;= seven<br>val lessThanEqualToThan: Boolean = ten &lt;= seven</pre><p>Instead of implementing extension functions greaterThan lessThan equalToThan notEqualToThan greaterThanEqualToThan lessThanEqualToThan.</p><h3>Inc | Dec Convention</h3><pre><strong>operator</strong> fun Money.<strong>inc</strong>(): Money {<br>    return Money(this.value + 1)<br>}</pre><pre><strong>operator</strong> fun Money.<strong>dec</strong>(): Money {<br>    return Money(this.value + 1)<br>}</pre><pre><strong>val ten = Money(10)</strong></pre><p>Here, the incrementing amount by one can be achieved by just saying ten++ instead of writing result = ten + one .</p><p>Decrementing one can be obtained by just saying ten-- instead of writing result = ten -one</p><h3>Times | Div Convention</h3><pre>operator fun Money.<strong>times</strong>(other: Money): Money {<br>    return Money(this.value * other.value)<br>}</pre><pre>operator fun Money.<strong>div</strong>(other: Money): Money {<br>    return Money(this.value / other.value)<br>}</pre><pre><strong>val ten = Money(10)<br>val seven = Money(7)</strong></pre><p>Use, ten * seven or ten / seven to multiply and divide money respectively.</p><p>Till this point, you might have understood the pattern of using mathematical operators instead of using normal extension functions to do arithmetic operations on data.</p><p>Same as above conventions Kotlin also has the other arithmetic conventions like</p><ul><li>-= for <strong>minusAssign</strong> ex: result -= ten</li><li>+= for <strong>plusAssign</strong></li><li>*= for <strong>timesAssign</strong></li><li>*= for <strong>divAssign</strong></li><li>%= for <strong>remAssign</strong></li><li>+ for <strong>unaryPlus</strong></li></ul><p>Kotlin has few more conventions for using them as operator, these we will discuss in next blog. Stay Tuned!</p><p>References:</p><ol><li><a href="https://kotlinlang.org/docs/reference/operator-overloading.html#operator-overloading">https://kotlinlang.org/docs/reference/operator-overloading.html#operator-overloading</a></li><li><a href="https://kotlinlang.org/docs/reference/keyword-reference.html">https://kotlinlang.org/docs/reference/keyword-reference.html</a></li><li><a href="https://www.programiz.com/kotlin-programming/operators">https://www.programiz.com/kotlin-programming/operators</a></li></ol><h3><strong>Interested in joining one of our teams as we grow?</strong></h3><p>If you’d like to join us on the journey of building the mobile bank the world loves to use, have a look at some of the roles <a href="https://n26.com/en/careers/departments/13426?gh_src=3824fb5e1&amp;utm_source=magazine&amp;utm_medium=article&amp;utm_content=mastering-kotlin-conventions:-plus-|-minus-|-compareto-|-inc-|-dec-|-times-|-div-:-part-i">we’re looking for here.</a></p><p>Follow us on <a href="https://www.linkedin.com/company/n26/">LinkedIn</a> and <a href="https://twitter.com/N26Careers?lang=en">Twitter</a> to keep updated and in touch with us!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a34b20aaf4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/insiden26/mastering-kotlin-conventions-plus-minus-compareto-inc-dec-times-div-part-i-1a34b20aaf4">Mastering Kotlin Conventions: Plus | Minus | CompareTo | Inc | Dec | Times | Div : Part I</a> was originally published in <a href="https://medium.com/insiden26">InsideN26</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My relocation experience at N26]]></title>
            <link>https://medium.com/insiden26/my-story-starting-with-n26-352b66f4e4d3?source=rss-c9569ce9a804------2</link>
            <guid isPermaLink="false">https://medium.com/p/352b66f4e4d3</guid>
            <category><![CDATA[relocation]]></category>
            <category><![CDATA[n26]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[germany]]></category>
            <dc:creator><![CDATA[Gopinath Langote]]></dc:creator>
            <pubDate>Tue, 16 Oct 2018 15:49:20 GMT</pubDate>
            <atom:updated>2019-07-15T09:45:21.542Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iw_THQ5AxdybQKdbqdZ5rw.jpeg" /></figure><p><strong><em>“Welcome to N26”</em></strong><em> </em>this was the subject header of my email which contained my offer letter. I was impressed by the speed of the hiring process, it was only one day earlier that I completed my final round of interviews.</p><p>It was the first time for me to experience such a smooth and fast process from applying for a job to getting an offer letter in hand. It took only three weeks for the entire hiring process. The next challenge was relocating to Berlin.</p><p>What’s next? Whom to contact, visa, travel, accommodation and many more. Two systems that helped me along the journey were the N26 HR Tool and Expath. The N26 HR Tool helped me sign all my documents electronically and Expath the relocation partner helped me manage my move from India to Berlin.</p><p>The following support was provided by N26 and helped me relocate successfully.</p><h3>Easy and Constant Communication</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l05kFm8cVSbkrNNK9l6DJg.jpeg" /></figure><p>It was the first time in my life that I was traveling overseas for a job. I had many questions about the entire relocation process. Every time I emailed N26, I received a quick reply from them. One of the best parts before joining was the easy and constant communication provided by N26.</p><h3>Making Connections</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ihLW9UOfZKQ-i4EZ_IBEag.png" /></figure><p>I was introduced to my entire team already before I arrived in Berlin.</p><p>They shared with me their nationalities and roles in our team.</p><p>This was super helpful for me during my onboarding at N26 because it made me feel like I had already met them.</p><h3>Relocation Package</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tZ1likLw_mYyfjUbekJmyw.jpeg" /></figure><p>N26 helped me out with a relocation package.</p><p>Yeah!!!</p><p>I needed this for plenty of things, booking my short-term accommodation, getting things started in Berlin and booking travel tickets etc.</p><h3>Dedicated Support from a Relocation Partner</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5CN0CKmPYwmwK45olUgYrw.png" /></figure><p>After getting my offer, I received an email from Expath, with the guidelines for my relocation to Berlin.</p><p>Getting support from Expath was one of the best things about my relocation experience.</p><p>While working with them, I was introduced to the online tool called <a href="https://www.relotalent.com/">Relotalent</a> to track my relocation process.</p><p>For me calling someone for every single query and waiting for a reply is always a boring process. But with this software, communication became easier to ask queries and get a reply sooner from some experts.</p><h3>From Preparing for the Visa to Settling in Berlin</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8TpIfwBHvBVevwDA" /></figure><p>Expath &amp; N26 provided me with all the necessary documents for the visa interview, way before the interview date to avoid problems at the last minute.</p><p>I completed the forms and uploaded them to the <a href="https://www.relotalent.com/">Relotalent</a> platform. It was great to know that I had an Expath coach double checking all my documentation to prevent me from making any mistakes. Additional documents were given by N26, such as my work contract and job profile. They helped me with the entire visa process including preparing my documents and validating them before my visa interview. Within 2 working days, I got the visa confirmation from the German consulate in Mumbai, India.</p><h3>Saying “Hallo” to your Personal Coach</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z25cEeq1nKqB7iyo" /></figure><p>The Expath coach was exactly what I needed. They helped me with many topics. For example:</p><p><strong>Finding temporary accommodation in Berlin</strong>: this is a difficult task in the city. Expath suggested a couple of websites. With their help, I found an apartment and got my registration to the city hall. This process would have been really hard for me without my Expath coach, since all the documents like apartment contract, conditions and rules were in German.</p><p><strong>Opening your bank account</strong></p><p>This was not a major problem for me since I knew that I was going to work for a mobile bank. N26, thank you for this again!</p><p><strong>Getting a German SIM card</strong></p><p>My coach guided me in my search for a service provider which was offering good conditions, network speed, and customer support.</p><h3>After Arriving in Berlin</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bhXplTpkzfCLKvPbVRGv5A.jpeg" /></figure><p>On the day after I arrived in Berlin, my coach booked an appointment at the registration office near my apartment. They helped me translate documents at the office and deal with German-speaking office clerks.</p><p>I got the registration certificate on the same day and I was really happy since it is important to get other documents such as the Tax ID, Health Insurance card, Blue card, and so on.</p><p>Meanwhile, I started my job at N26 with a warm welcome during my onboarding day with hoodies, goodies and the choice of a laptop :)</p><p>Thanks N26 for understanding the relocation situation of new hires. With the help of my Expath coach and N26, <strong>I finally settled in Berlin!</strong></p><h3>Interested in joining one of our teams as we grow?</h3><p>If you’d like to join us on the journey of building the mobile bank the world loves to use have a look at some of the roles <a href="https://n26.com/en/careers?gh_src=3824fb5e1&amp;utm_source=magazine&amp;utm_medium=article&amp;utm_content=my-relocation-experience-at-n26">we’re looking for here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=352b66f4e4d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/insiden26/my-story-starting-with-n26-352b66f4e4d3">My relocation experience at N26</a> was originally published in <a href="https://medium.com/insiden26">InsideN26</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>