<?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 Rakeeb Rajbhandari on Medium]]></title>
        <description><![CDATA[Stories by Rakeeb Rajbhandari on Medium]]></description>
        <link>https://medium.com/@Rakeeb?source=rss-34f272d67281------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cfRKCYB7PE6cZGfL_U29Hg.png</url>
            <title>Stories by Rakeeb Rajbhandari on Medium</title>
            <link>https://medium.com/@Rakeeb?source=rss-34f272d67281------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:03:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Rakeeb/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[Reducing noise in your database operations with Kotlin on Android]]></title>
            <link>https://medium.com/android-developers-nepal-mdn/reducing-noise-in-your-database-operations-with-kotlin-on-android-7561b48a7f26?source=rss-34f272d67281------2</link>
            <guid isPermaLink="false">https://medium.com/p/7561b48a7f26</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Rakeeb Rajbhandari]]></dc:creator>
            <pubDate>Thu, 21 Dec 2017 09:33:53 GMT</pubDate>
            <atom:updated>2017-12-21T16:26:15.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SWZmy4Ct4XnSAtjPmuejw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/QdEn9s5Q_4w?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Abigail Keenan</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Kotlin has the capability to be the Pied Piper for your creativity. For me personally, <a href="https://kotlinlang.org/docs/reference/extensions.html">Extensions</a> and <a href="https://kotlinlang.org/docs/reference/lambdas.html">Higher Order Functions</a> are the features that’s made programming in Kotlin delightful. It’s made me think about problems differently.</p><p><a href="https://kotlinlang.org/docs/reference/extensions.html">Extensions</a> allows us to extend a class, without the overhead of initializing constructors, or implementing methods. It keeps us focused on building custom function(s) on top of the class of our choice, altogether eliminating the need for Utility classes.</p><p>For e.g., Suppose we have a variable where names of our users are stored as comma separated values of first and last names. How can we use Extensions so that String variable(s) will be able to fetch our users?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52190ca8b24c31f23430b0280aa884e4/href">https://medium.com/media/52190ca8b24c31f23430b0280aa884e4/href</a></iframe><p><strong><em>getUser()</em></strong> is the Extension function. The function name’s prefix tells us that we’re extending the String object allowing us to use the String’s split method inside our function body. Additionally, all String objects are allowed to call this method.</p><p><a href="https://kotlinlang.org/docs/reference/lambdas.html">Higher Order Functions</a> allows us to write a function that takes a function as a parameter. This makes writing *insert logic here* easy, especially useful when defining a repetitive pattern which used to be cumbersome (👋 Interfaces!).</p><p>For e.g., An Employee is to be evaluated to get a promotion. The employee will be evaluated by the HR department and his/her manager. Evaluators will have their own evaluation scores and criteria with a common threshold to determine if the employee is promoted or not.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b859351572509932de967f4f11d7d224/href">https://medium.com/media/b859351572509932de967f4f11d7d224/href</a></iframe><p><strong><em>isPromotableEmployee()</em></strong> is not bothered with the scoring implementation since it has delegated the responsibility to <strong><em>evaluate</em></strong>. However it is focused on comparing the evaluation score with a threshold allowing the function to nominate an employee as promotable.</p><p>We can further improve this by introducing Extensions; Extension Functions and <a href="https://kotlinlang.org/docs/reference/lambdas.html#function-literals-with-receiver">Function Literals with Receivers</a>. Functions Literals with Receivers are the same as Extension Functions with a key distinction on their level of abstraction. An Extension Function requires you to have a concrete definition of the function, while the latter lets you define a Higher Order function for the class you’re building upon.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/24ef9686bd991e0a14b2882e9a48e3e6/href">https://medium.com/media/24ef9686bd991e0a14b2882e9a48e3e6/href</a></iframe><p>The code feels fluid now. You can clearly see evaluators deciding whether employee is promotable by scoring them across different criteria.</p><p>Consequently higher order functions lets you write code avoiding any inherent dependency, i.e., i<a href="https://martinfowler.com/bliki/InversionOfControl.html">nversion of control</a>.</p><p>Getting to the meat of our discussion; the <a href="https://developer.android.com/training/basics/data-storage/databases.html">Database API</a> on Android is verbose especially the <a href="https://developer.android.com/training/basics/data-storage/databases.html#ReadDbRow">Cursor</a>. If you think about it we are essentially doing the same thing while querying for data, with minor differences.</p><p>Each database transaction follows these steps:</p><ol><li>Initialize your database instance,</li><li>Write your database query,</li><li>Fetch the corresponding Cursor,</li><li>Iterate over Cursor; while checking the size of the Cursor,</li><li>Mapping information from the Cursor onto an Object,</li><li>Closing the Cursor, and</li><li>Closing the database.</li></ol><p>Only steps 2 and 5 will have varying implementations throughout the application. The big question now is can we write a general purpose, reusable function with Kotlin to solve this problem?</p><p>Let’s see what <a href="https://kotlinlang.org/api/latest/jvm/stdlib/index.html">Kotlin’s standard library</a> has to offer in <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/use.html">use</a>, which is an extension function for the <a href="http://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html">Closable</a> interface. <strong><em>use</em></strong> takes a higher order function as a parameter to *insert logic* while ensuring that the Closable object closes and the method returns our desired result.</p><p>Coincidentally both the <a href="https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html">SQLiteDatabase</a> and <a href="https://developer.android.com/reference/android/database/Cursor.html">Cursor</a> are Closable implementations. With <strong><em>use</em></strong><em> </em>our database queries could look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e349e7721edada60493e53e1e18c2948/href">https://medium.com/media/e349e7721edada60493e53e1e18c2948/href</a></iframe><p>We don’t have to worry about closing neither the Cursor nor the Database; <strong><em>use</em></strong> does that for us. In contrast, there’s this weird <strong><em>it</em> </strong>in our code now. This <strong><em>it</em></strong> refers to the parameter inside our Higher Order Function. When we first <strong><em>use</em></strong> the database, <strong><em>it</em></strong> refers to the database; when we <strong><em>use</em></strong> the cursor, <strong><em>it</em></strong> refers to the cursor. However why use <strong><em>it</em></strong> when we can add in receivers?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0838c4b4fd5a8326027c002fe76e2306/href">https://medium.com/media/0838c4b4fd5a8326027c002fe76e2306/href</a></iframe><p>You really start to appreciate the impact receivers have on code fluidity. Gone are the <strong><em>it</em></strong>s; method access is now frictionless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*5SrwVwY9B337Fo12gxlosA.gif" /></figure><p>Our focus now is to create an abstract implementation of what we just did. Let’s start with step 5; Mapping information from the Cursor onto an Object. You would expect to either have an Object or a List of Objects returned to you.</p><p>The mapping logic will be a Higher Order Function here, leaving only the iteration logic for the Cursor to be defined.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7fb623d17b602102151352a25daa8657/href">https://medium.com/media/7fb623d17b602102151352a25daa8657/href</a></iframe><p>The function is <a href="https://kotlinlang.org/docs/reference/inline-functions.html">inlined</a> to ease the impact of memory allocations resulting from the use of Higher Order Functions.</p><p>Moving onto step 2; Write your database query, which is a fairly easy task.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/851414aa694bbf85a8b616544cc0eb4a/href">https://medium.com/media/851414aa694bbf85a8b616544cc0eb4a/href</a></iframe><p>This implementation is complementary to step 5; it gives you your Object or Objects.</p><p>Finally, our database calls are filtered from all the noise. Altogether we have a focused and fluid syntax now.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13ab1a40ce420e8940d4e4b009f85229/href">https://medium.com/media/13ab1a40ce420e8940d4e4b009f85229/href</a></iframe><p>This was just a small demonstration of how you can leverage Kotlin to enrich your development experience. It’s made me rekindle my love for Android and much more.</p><p>Get out there and <em>Kotlin all things </em>😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7561b48a7f26" width="1" height="1" alt=""><hr><p><a href="https://medium.com/android-developers-nepal-mdn/reducing-noise-in-your-database-operations-with-kotlin-on-android-7561b48a7f26">Reducing noise in your database operations with Kotlin on Android</a> was originally published in <a href="https://medium.com/android-developers-nepal-mdn">Android Developers Nepal — MDN</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Initial observations with Kotlin on Android]]></title>
            <link>https://medium.com/younginnovations-blog/initial-observations-with-kotlin-on-android-faddc96f6543?source=rss-34f272d67281------2</link>
            <guid isPermaLink="false">https://medium.com/p/faddc96f6543</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[android-developers]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Rakeeb Rajbhandari]]></dc:creator>
            <pubDate>Fri, 19 May 2017 10:02:33 GMT</pubDate>
            <atom:updated>2017-05-22T06:09:27.055Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DvIYrgwJ9EfAYv_JeL74nA.png" /><figcaption>Illustration Credit: Kotlin Blog</figcaption></figure><p><a href="https://blog.jetbrains.com/kotlin/2017/05/kotlin-on-android-now-official/">Kotlin is now officially on Android</a>. Here at <a href="https://medium.com/u/9d6b00a4800b">YoungInnovations</a> we’ve been experimenting with <a href="https://kotlinlang.org/">Kotlin</a> in small increments. With respect to the abundance of Kotlin resources on the internet, I aim to provide my first impression and how we, at <a href="https://medium.com/u/9d6b00a4800b">YoungInnovations</a>, have used the language for some of our applications here.</p><h3>Null safety</h3><p>Talking about Kotlin and ignoring null safety would be a crime. Null is now a first citizen in Kotlin, this makes for a great developer experience because gone are those <em>if(obj == null)</em> checks, just use the <em>?</em> operator and Kotlin will do this for you.</p><p>There’s also an option to forcefully bypass this null check and use objects regardless of null safety via the <em>!!</em> operator.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d4a7f0e47e0a44d7f0072c55834a56f3/href">https://medium.com/media/d4a7f0e47e0a44d7f0072c55834a56f3/href</a></iframe><h3>Smart Syntax</h3><p>It’s easy to fall in love with Kotlin as it does most of the boilerplate stuff for you. From writing constructors to overriding generic methods like <em>equals()</em> or <em>toString()</em>. Kotlin handles this gracefully.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7f37d1bf6b97ee3d03f155a1d6a9d51/href">https://medium.com/media/c7f37d1bf6b97ee3d03f155a1d6a9d51/href</a></iframe><h3>Sealed classes are like IntDef on steroids, conditions apply*</h3><p>Sealed classes represent restricted class hierarchies which could also be used to replicate what <a href="https://developer.android.com/reference/android/support/annotation/IntDef.html">IntDef</a> does (and more) and works best with the <em>when</em> expression.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7701a9d4beccd0202c9855cf6328008/href">https://medium.com/media/c7701a9d4beccd0202c9855cf6328008/href</a></iframe><h3>Higher order functions</h3><p>What if your method took another method as a parameter? This is the essence of higher order functions. This flexibility allows for a great developer experience.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef80564e486f12bd18cc81dc84e6636c/href">https://medium.com/media/ef80564e486f12bd18cc81dc84e6636c/href</a></iframe><p>This is just one example where the <em>close()</em> call for a <strong>Cursor</strong> is guaranteed. There can be other limitless possibilities that Higher Order Functions allows. Sky’s the limit :)</p><h3>Inferences</h3><p>Google Assistant is what it is because of it’s ability to infer and carry out fluid conversations with it’s users. The assistant’s context sensitivity makes conversing with it fun. Kotlin is the Google Assistant for developers. It’s inferences allows for a smooth developer experience as well.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bfb8b997a3a2489c936005c24a1ef36f/href">https://medium.com/media/bfb8b997a3a2489c936005c24a1ef36f/href</a></iframe><p>Kotlin has hit that sweet spot between Object Oriented Paradigm and Functional Programming. I’m genuinely looking forward to how I, and we at <a href="https://medium.com/u/9d6b00a4800b">YoungInnovations</a> move ahead with Kotlin in the coming days.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faddc96f6543" width="1" height="1" alt=""><hr><p><a href="https://medium.com/younginnovations-blog/initial-observations-with-kotlin-on-android-faddc96f6543">Initial observations with Kotlin on Android</a> was originally published in <a href="https://medium.com/younginnovations-blog">YoungInnovations&#39; Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YoungInnovations Weekly #89: Post election, New faces, Design Thinking, Google IO updates for…]]></title>
            <link>https://medium.com/younginnovations-blog/younginnovations-weekly-89-post-election-new-faces-design-thinking-google-io-updates-for-56d18c3bef8f?source=rss-34f272d67281------2</link>
            <guid isPermaLink="false">https://medium.com/p/56d18c3bef8f</guid>
            <category><![CDATA[weekly]]></category>
            <dc:creator><![CDATA[Rakeeb Rajbhandari]]></dc:creator>
            <pubDate>Fri, 19 May 2017 08:25:09 GMT</pubDate>
            <atom:updated>2017-05-19T10:35:07.986Z</atom:updated>
            <content:encoded><![CDATA[<h3>YoungInnovations Weekly #89: Post election, New faces, Design Thinking, Google IO updates for Android &amp; YIPL’s upcoming 10th Anniversary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XtTMZ5cZ2KWWVFATIr3dpQ.png" /></figure><blockquote>“It is by choice and not by chances we change our circumstances.” — Nadia Sahiri.</blockquote><p>This week marks the first week of hope and the step towards the right direction for Nepal as every Nepali practiced their freedom of choice, voting for the Mayor and Deputy Mayor for their respective municipalities. Hoping that everyone seized this opportunity to create an impact.</p><p>YoungInnovations had efforts during the past CA election 2070 through Open Nepal — <a href="http://data.opennepal.net/content/citizens-election-portal">Citizen’s Election Portal</a>. The portal curated information from the <a href="http://www.election.gov.np/election/np">Election Commission of Nepal</a> website presenting constituencies of the districts and information on each constituency.</p><p>It was inspiring to see organizations like <a href="https://np.okfn.org/">Open Knowledge Nepal</a>, and <a href="https://nepalindata.com/">Data in Nepal</a> carry on the spirit of ICT in this year’s electoral activities.</p><p>Prazol Bista, Apil Karki and Rajan Paneru joined the YIPL family this week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*-wEZ-_YL1jRN0QkHmh4wow.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*nWsGcUsudj65CMKe9rGL1w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*d7XhVq16SOjQLeOdwtupng.jpeg" /><figcaption>From left to right: Prazol, Apil and Rajan</figcaption></figure><p>Prazol is an intern who’s very passionate about tech and has recently finished his +2. Apil joins us as a Dev Ops Trainee. He is a travel bug, loves DIY and Counter Strike. Finally, Rajan mans the software engineering efforts at YIPL. He is a computer fanatic, loves travelling, music and reading.</p><p>Anjan Shrestha (<a href="https://medium.com/u/361ec38b5e2f">anjhero</a>), VP of Product Innovations, was invited to <a href="http://startupsnepal.com/udhyami/">Udhyami Seed Camp</a>’s 1st follow up session on their 5 day boot camp for startups to conduct a workshop on ‘Design Thinking’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FeEafwoM3hyBdOLfe4qdxw.jpeg" /><figcaption>‘Design thinking’ workshop — group photo. PC- StartupsNepal</figcaption></figure><p>Intrigued? Design thinking is a collection of strategies useful in forming a well rounded solution for a problem. Anjan Shrestha (<a href="https://medium.com/u/361ec38b5e2f">anjhero</a>) was heavily influenced by <a href="https://www.youtube.com/watch?v=Z4gAugRGpeY">Justin Farell</a>’s and <a href="https://www.youtube.com/watch?v=-FzFk3E5nxM&amp;t=4014s">Stanford’s</a> workshop.</p><p>Capturing the three (out of the five) stages to design thinking — empathize, define and ideate, all the participants had a hands on interactive session with Anjan. If you’re interested, his slides are available on S<a href="https://speakerdeck.com/anjhero/a-session-on-design-thinking">peaker Deck</a>.</p><p><a href="https://www.instagram.com/p/BUMD7rTgMHM/">Instagram post by YoungInnovations * May 17, 2017 at 9:29am UTC</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Being an Android developer it is my duty to mention Google IO. I’m excited that <a href="https://blog.jetbrains.com/kotlin/2017/05/kotlin-on-android-now-official/"><strong>Kotlin</strong> <strong>is now</strong> <strong>official on Android</strong></a>! The developer website for Android has added <a href="https://developer.android.com/topic/libraries/architecture/index.html"><strong>guidelines for Android Architecture components</strong></a>.</p><p>For machine learning enthusiasts, google will be releasing <a href="http://www.androidcentral.com/tensorflow-lite-will-help-apps-stay-small-and-fast-android-o"><strong>TensorFlow lite</strong></a> as a part of the Fluid Experience initiative on Android O. Finally, <a href="https://android-developers.googleblog.com/2017/05/android-studio-3-0-canary1.html"><strong>Android Studio 3.0</strong></a> is now available bringing with it strong debugging capabilities and features for richer developer experience.</p><p>For other useful Android links from Google IO:</p><p><a href="https://medium.com/@dmytrodanylyk/google-io-2017-useful-android-links-e756077f8895">Google I/O 2017 — Useful Android Links</a></p><p>Here’s my initial observation with Kotlin:</p><p><a href="https://blog.yipl.com.np/initial-observations-with-kotlin-on-android-faddc96f6543">Initial observations with Kotlin on Android</a></p><p>It’s been a busy work week, but on the flip side, next week calls for a celebration as YoungInnovations turns 10. TGIF guys and girls!</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fcodepen.io%2FNirajanbasnet%2Fpen%2FbWxZmV%2F&amp;src=https%3A%2F%2Fcodepen.io%2FNirajanbasnet%2Fembed%2Fpreview%2FbWxZmV%3Fheight%3D600%26slug-hash%3DbWxZmV%26default-tabs%3Dhtml%2Cresult%26host%3Dhttp%3A%2F%2Fcodepen.io%26embed-version%3D2&amp;type=text%2Fhtml&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/55f655de1894b1cb9c268a67ae8d53b2/href">https://medium.com/media/55f655de1894b1cb9c268a67ae8d53b2/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56d18c3bef8f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/younginnovations-blog/younginnovations-weekly-89-post-election-new-faces-design-thinking-google-io-updates-for-56d18c3bef8f">YoungInnovations Weekly #89: Post election, New faces, Design Thinking, Google IO updates for…</a> was originally published in <a href="https://medium.com/younginnovations-blog">YoungInnovations&#39; Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Be nice.]]></title>
            <link>https://medium.com/@Rakeeb/be-nice-8a2ec70bef22?source=rss-34f272d67281------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a2ec70bef22</guid>
            <category><![CDATA[poetry]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Rakeeb Rajbhandari]]></dc:creator>
            <pubDate>Sat, 22 Apr 2017 12:35:08 GMT</pubDate>
            <atom:updated>2017-04-27T11:01:59.450Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkber0tzLSzB16c9IRVn7g.jpeg" /><figcaption>Photo Credit:<a href="https://unsplash.com/collections/450425/kindness?photo=VNjNtdu0yCw"> Joshua Clay</a></figcaption></figure><p>“Be nice”, people said to me,</p><p>But who was to see the dissonance that came to be.</p><p>“Be nice” or karma will get back at you,</p><p>But was it OK for frustrations anew?</p><p>“Be nice”, it’s the right thing to do,</p><p>Was I to bottle myself inhibiting self-disdain without a clue?</p><p>The answer was to “Be kind”,</p><p>As I could accept myself and move on, erasing this state of blind.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a2ec70bef22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YoungInnovations Weekly #60: Happy Tihar, Version releases and Deepak’s Farewell]]></title>
            <link>https://medium.com/younginnovations-blog/younginnovations-weekly-60-happy-tihar-version-releases-and-deepaks-farewell-a89371b5d457?source=rss-34f272d67281------2</link>
            <guid isPermaLink="false">https://medium.com/p/a89371b5d457</guid>
            <category><![CDATA[throwback]]></category>
            <category><![CDATA[farewell]]></category>
            <category><![CDATA[life-at-yi]]></category>
            <category><![CDATA[aidstream]]></category>
            <category><![CDATA[weekly]]></category>
            <dc:creator><![CDATA[Rakeeb Rajbhandari]]></dc:creator>
            <pubDate>Fri, 28 Oct 2016 08:32:39 GMT</pubDate>
            <atom:updated>2016-10-28T08:47:48.933Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XtTMZ5cZ2KWWVFATIr3dpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R6XeSg1CzeT7UCy_rtC9Yw.jpeg" /><figcaption>The Nomads planning for Social All Hands</figcaption></figure><p>Today marks Part — II of Nepal’s <strong>Mahautsav, Tihar</strong>. Holiday vibes can be felt around the office today, as we wait for our <strong>Social All Hands</strong> later this evening as hosted by our super cool <strong>Nomads</strong> tribe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*9FUEaj2qMAkRB11TwteF1g.png" /></figure><p>For our readers, we wish you a safe and jolly Tihar :)</p><p>For people traveling outside, <a href="https://medium.com/u/a29edf4e378e">Ashok</a>, <a href="https://medium.com/u/3fd1689a3f7e">Deepak</a>, <a href="https://medium.com/u/4fd274ec37dc">Manish</a>, <a href="https://medium.com/u/53126a4e8f06">Ngima</a> and <a href="https://medium.com/u/2c0ded7c5a78">samita</a>, Bon Voyage.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FNirazanB%2Fembed%2Fpreview%2FmERzwy%3Fheight%3D600%26amp%3Bslug-hash%3DmERzwy%26amp%3Bdefault-tabs%3Dcss%2Cresult%26amp%3Bhost%3Dhttp%253A%252F%252Fcodepen.io%26amp%3Bembed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2FNirazanB%2Ffull%2FmERzwy%2F&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F529844.mERzwy.small.37dbc659-0e38-41b3-b9db-152c9fb85e6c.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/876345d9d8cf61f8ed81ba1e9c4adae3/href">https://medium.com/media/876345d9d8cf61f8ed81ba1e9c4adae3/href</a></iframe><h3>Updates this week</h3><h4><a href="https://aidstream.org/">AidStream</a></h4><p>For the past 2 months, AidStream has been going through a major overhaul. The goal was to make registration and account setup easier which would allow organizations to start publishing their data to the <a href="http://iatistandard.org/">IATI</a> registry right away.</p><p>The update went live this Wednesday, 26th October. Congratulations to the AidStream squad.</p><p>And hey, maybe there’s a case study coming on this soon :D</p><h4><a href="https://play.google.com/store/apps/details?id=com.yipl.lifeatyipl">Life@YIPL</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mF0C9p-jozj2TxVAOc2MPQ.jpeg" /><figcaption>Life@YIPL app</figcaption></figure><p>Our office companion, also received a major update this week. From redesign of contact detail page, to daily weather and motivation quote notifications, the mobile application is reaching it’s v1.0.0 release. Do expect a follow up blog on this.</p><h3>Social media updates</h3><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;schema=instagram&amp;url=https%3A//www.instagram.com/p/BMDb4Rxge8c/&amp;image=https%3A//i.embed.ly/1/image%3Furl%3Dhttps%253A%252F%252Fscontent.cdninstagram.com%252Ft51.2885-15%252Fs640x640%252Fsh0.08%252Fe35%252F14717380_819144384900036_3936084471605886976_n.jpg%253Fig_cache_key%253DMTM3MDA2MTMyNjI4MTQ2OTcyNA%25253D%25253D.2%26key%3D4fce0568f2ce49e8b54624ef71a8a5bd" width="640" height="640" frameborder="0" scrolling="no"><a href="https://medium.com/media/9fbcf60418789899a6c29579e073673a/href">https://medium.com/media/9fbcf60418789899a6c29579e073673a/href</a></iframe><p>The caption is perfect, isn’t it <a href="https://medium.com/u/47c56a92da4">Rakesh</a>? :P</p><p>For the lighter shades of the company, don’t forget to follow us on <a href="https://www.instagram.com/lifeatyounginnovations/?hl=en">Instagram</a>.</p><h3>Birthdays, New-comers and Farewells</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JxYqYC_wY-cX_F-4A6pXNw.jpeg" /><figcaption>Token of appreciation for Deepak</figcaption></figure><p>Sadly this week we’re bidding our goodbyes to <a href="https://medium.com/u/3fd1689a3f7e">Deepak</a>. He had been a part of our family for the past 2 years. Never shied away from an opportunity to <em>Move it, Move it. </em>An expert in elastic search, with contributions to projects in <a href="https://github.com/NRGI/resourcecontracts.org">NRGI</a>, and ROSIA, his presence will be missed. Best of luck for from all of us here :)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fvine.co%2Fv%2F5dlEDFtUQJ0%2Fembed%2Fsimple&amp;url=https%3A%2F%2Fvine.co%2Fv%2F5dlEDFtUQJ0&amp;image=https%3A%2F%2Fv.cdn.vine.co%2Fr%2Fthumbs%2FF3C61696461403688057747931136_SW_WEBM_1477639513653a5bf2daaf1.webm.jpg%3FversionId%3D_qA8yXufFsUNzYiJw7urZG0XlNa59FOT&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=vine" width="600" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d3946893e56f22faac3f42a1546b33f/href">https://medium.com/media/6d3946893e56f22faac3f42a1546b33f/href</a></iframe><blockquote>In all chaos there is a cosmos, in all disorder there is a secret order — Carl Jung</blockquote><p>That’s all for this week. See you in the next :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a89371b5d457" width="1" height="1" alt=""><hr><p><a href="https://medium.com/younginnovations-blog/younginnovations-weekly-60-happy-tihar-version-releases-and-deepaks-farewell-a89371b5d457">YoungInnovations Weekly #60: Happy Tihar, Version releases and Deepak’s Farewell</a> was originally published in <a href="https://medium.com/younginnovations-blog">YoungInnovations&#39; Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On things implicit]]></title>
            <link>https://medium.com/@Rakeeb/on-things-implicit-164c434d34c4?source=rss-34f272d67281------2</link>
            <guid isPermaLink="false">https://medium.com/p/164c434d34c4</guid>
            <category><![CDATA[poetry]]></category>
            <dc:creator><![CDATA[Rakeeb Rajbhandari]]></dc:creator>
            <pubDate>Thu, 19 May 2016 17:15:36 GMT</pubDate>
            <atom:updated>2017-04-27T10:57:06.723Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZJQmK225ubC4-APTimAwmw.jpeg" /><figcaption>A low grade doodle by me.</figcaption></figure><p><em>Things implicit,</em></p><p><em>Things (un)said.</em></p><p><em>Expectations ruined,</em></p><p><em>Feelings dead.</em></p><p><em>Heavy heart, but still go on.</em></p><p><em>With time, your heart grows strong.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=164c434d34c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On this year’s Valentines.]]></title>
            <link>https://medium.com/@Rakeeb/on-this-year-s-valentines-94ece38ad67b?source=rss-34f272d67281------2</link>
            <guid isPermaLink="false">https://medium.com/p/94ece38ad67b</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[love]]></category>
            <dc:creator><![CDATA[Rakeeb Rajbhandari]]></dc:creator>
            <pubDate>Sun, 14 Feb 2016 18:13:19 GMT</pubDate>
            <atom:updated>2016-02-19T05:53:23.775Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MA6iTCyNnJUmpalDfwztfQ.jpeg" /></figure><p>The furthest memory I can recall of Valentine’s was me and my family having dinner at a local restaurant, early 2000&#39;s. Thinking about it now, to my amusement, the restaurant had Cartoon Network on their TV that day. Cartoon Network was running a Valentine’s day special marathon. I only remember Pepé Le Pew, he was hitting on some girl, maybe trying to ask her out?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*Lv5uK1XrkaW0VLmiH2ME4Q.gif" /><figcaption>Pepé Le Pew doing his thing</figcaption></figure><p>This is the best I could do to recall a distant memory. Did this incident have an impact on how I perceived Valentines Day from there on? I’m uncertain, but years after the incident, I would find myself planning to propose or ask a girl out on Valentines. Did I succeed? No, I failed horribly. Every rejection made my heart cringe. I was bitter, but that never stopped me from trying on each Valentines. I was a hopeful person it seems.</p><p>This year I took a step back, and I sought out the meaning of Valentines. Turns out that Valentines Day is about celebrating romantic love (oh shit!). People, this is where I practiced my ‘freedom of choice’ and I decided to celebrate (only) love instead.</p><p>There are 4 external forces that made me experience love.</p><ul><li>Basketball</li><li>Family and Friends</li><li>Music, and</li><li>Coding</li></ul><p>This year I want to pay my homage to them.</p><h4>Basketball</h4><p>Basketball resurrected me. I owe my all to this game.</p><p>I was a tiny, obese kid growing up. It’s with experience that I can confidently say that being obese and small is a bad combination. Imagine a 4&#39;11, round kid studying in the 10th grade. I was the butt of every joke. I was bullied and I didn’t have good friends growing up. Basketball helped me turn that situation around.</p><p>I remember waking up and playing all day during my vacations after I completed my 10th grade. From 8 am to 8 pm, I was hooked. Iverson was my hero back then. 3 months went by, I lost 10–15 kgs and grew 4–5 inches tall. I was 5&#39;4 by then.</p><p>Granted I don’t play as much now-a-days, but basketball has a special place in my heart. It’s more than a game to me. It helped me regain my self-esteem and introduced me to some of my closest friends.</p><h4>Family and Friends</h4><p>To be honest, my family is weird. They are a culturally diverse group considering we are Nepalese where same caste marriage is the norm. They are accepting and kind bunch of people. They were never too strict with me, and supported me to pursue whatever crazy interests I’ve had till now.</p><p>As I mentioned earlier I didn’t have good friends at school. But I’ve been lucky to meet some really incredible people from thereafter. They’ve had a great influence on me, and have helped me morph into who I am today.</p><p>My family and friends are people who have had my back. They’re the group of people who I’ve celebrated my happiness with and people who have guided me through tough times. They’ve been the red, green and blue to my black and white canvas (nerd joke, wink).</p><h4>Music</h4><p>It wasn’t until a few years back that I started listening to music mindfully. Over the years I’ve come across heavier artists/bands (Opeth, Children Of Bodom, etc.) to comparatively laid back artists/bands (John Mayer, Amos Lee, RHCP, etc.) and finally instrumental and foreign artists/bands (Andy McKee, Toe, Tricot, etc.).</p><p>All of these bands have one thing in common, they made me hum to their tunes. I was curious about the stories behind their music. All of these artists influenced me to pick up my guitar and learn their songs. Death Cab and Red Hot Chilli Peppers (John and Josh, I love you both) stand out from the rest to me personally.</p><p>Music has helped me channel my emotions and feel things that I couldn’t have normally felt.</p><h4>Coding</h4><p>Our family owned a desktop computer before it was a common house hold appliance in Nepal. I was small back then. I remember sitting long hours in front of the computer playing games obviously, but there were times where I would fidget around with the settings and try to customize things on the desktop. It was obvious that I was fascinated with computers, but what wasn’t obvious was my inability to pursue computer studies.</p><p>In retrospect my friend forcing me to enroll into the entrance preparation classes for K.C.M. (Kathmandu College of Management) was a blessing. I ended up taking the college’s Business Information Systems bachelors program. Although a business course, it also had basic computer related courses like Database &amp; Algorithms, Java I &amp; II, and Computer Security to name a few.</p><p>Fast forward to now, I work as an Android application developer. I code in Java. It’s hard but it’s a fun type of hard.</p><p>Coding forces you to think. It molds you into a problem solver. After having worked for 2 years, it’s fair to say that I’m past copying and pasting code. I find myself at a point where I can be creative. I’ve come to love those “Eureka” moments where ideas just pop out of nowhere, and you just muster enough logic to en route your way into a solution.</p><p>I know I risk sounding like a loser here, but this is what I decided to do this Valentines. This is my ode to the things I love and I’m really fortunate enough to be experiencing love everyday.</p><p>I hope you enjoyed your valentines people :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*REdod1ZlSnteXiCIhsWj1Q.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94ece38ad67b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On the New Year’s new start]]></title>
            <link>https://medium.com/@Rakeeb/on-the-new-year-s-new-start-570a220d1ba8?source=rss-34f272d67281------2</link>
            <guid isPermaLink="false">https://medium.com/p/570a220d1ba8</guid>
            <category><![CDATA[new-year]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Rakeeb Rajbhandari]]></dc:creator>
            <pubDate>Sun, 31 Jan 2016 15:21:11 GMT</pubDate>
            <atom:updated>2016-01-31T15:53:21.067Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aqV1WEsyil-R6ptJJX9g-g.jpeg" /><figcaption>Pokhara, lake side.</figcaption></figure><p>Knowing that there’s a point of reset eases your mind. And hitting that reset button every once in a while gives you a breath of fresh air. One thing that stands out when you do this is having the knowledge of what works for you and what doesn’t. It’s like having a 1 mile head start in a 100 mile marathon.</p><p>New year is a great checkpoint to start over from. Supporting the case it’s great to see a flurry of self-help, self-improvement articles being published since 31st December till now.</p><p>It’s the ability of people to influence and inspire others that I really adore.</p><p>The “New year, new me” notion stands true to me in 2016. Since Jan 2nd I’ve been:</p><ul><li>Writing a <a href="http://2appstudio.com/journey">journal</a> daily.</li><li>Using a <a href="http://bhavproducts.com/">planner</a> to plan my Todo’s for the week (even though I don’t complete them).</li><li><a href="http://jiffy.nu/">Tracking time</a> for projects I work on.</li><li>Took courses on Productivity and Happiness from <a href="http://gohighbrow.com/">Highbrow</a>.</li><li>Learning <a href="https://www.memrise.com/">Japanese</a>.</li><li><a href="http://www.rewireapp.io/">Tracking my habits</a>.</li><li><a href="http://www.peak.net/">Exercising my brain</a> at least 3 days a week.</li></ul><p>One thing that I lacked before was self-control. I was mindless with my actions and was prone to impulsion. Not to say that I’ve outgrown those things, but I’ve been them in minimum amounts.</p><p>Journal writing has been a major boon for me. Although I had a ritual of writing journals every New Year’s Eve, recapping the year and deciding on resolutions earlier, it’s been fun winding down at the end of the day, everyday and just expressing myself. One theme that I do try to follow is having sections highlighting something I was thankful for, an idea I had that day, and something that I learnt.</p><p>The biggest influence that made me embrace the “New Year’s Spirit” was rather weird. I was at Pokhara with my friends on New Year’s day and on our way back home to Kathmandu I read this book, <a href="http://www.amazon.com/Red-Hot-Chili-Peppers-Stories/dp/1847326641">Red Hot Chilli Peppers: Stories Behind Every Song</a>.</p><p>Now if you know me personally, I love the chilli peppers! This book had every freaking thing that a chilli’s fan would want, but sadly it didn’t cover <a href="https://en.wikipedia.org/wiki/I%27m_with_You_(album)">I’m With You</a> and any of the <a href="https://www.reddit.com/r/RedHotChiliPeppers/comments/10emsq/all_53_red_hot_chili_peppers_bsides_enjoy/">B-sides</a> (c’mon man!!!). I can go on and on about this, but lets leave this for another time.</p><p>The peppers have such passion for what they do. They are relentless in pursuit of their art. And it’s not hard to fall in love with their energy.</p><p>I wanted the same drive that the peppers had.</p><p>It also helped that I ran into many motivational articles. Notable one’s being:</p><ul><li><a href="https://medium.com/life-learning/the-opposite-of-evolution-5f75decf264#.38rybn6at">The opposite of evolution</a>.</li><li><a href="https://medium.com/life-learning/10-habits-that-change-boys-into-men-8039b93f99f7#.kr7hoawk6">10 habits that change boys into men</a>.</li><li><a href="https://medium.com/@elissapatel/5-minutes-in-hell-d6d882f46d2f#.8k97w1kwm">5 minutes in hell</a>.</li><li><a href="https://medium.com/bigger-picture/lifelessons-advice-from-an-80-year-old-man-799510fb0f91#.5gjg243ty">Life lessons from an 80 year old man</a>.</li><li><a href="https://medium.com/desk-of-van-schneider/the-real-story-of-how-to-become-a-designer-dc0200728048#.rmu2n1alk">The real story of how to became a designer</a>.</li><li><a href="https://designschool.canva.com/blog/time-management/">Increasing your creative output with 14 time management tips for creatives</a>.</li></ul><p>Since yesterday I’ve been obsessing over Khai. It’s a Nepali song by Bartika Rai about finding happiness.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttp%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F244451717%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fbartika%2Fbimbaakash-khai&amp;image=http%3A%2F%2Fi1.sndcdn.com%2Fartworks-000145109026-z44l43-t500x500.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=soundcloud" width="500" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/49e04bde94c0a383f8dcf98ba9514158/href">https://medium.com/media/49e04bde94c0a383f8dcf98ba9514158/href</a></iframe><p>I love songs that have meaningful lyrics and stories that I can relate to. I don’t want to go into details but this piece really spoke to me. Definitely worth a listen.</p><p>Although I’ve been having bad days recently, January has been a great start to 2016. Embrace your “New year, new me” and finally Happy New Year 2016 everyone (Although I’m terribly late).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=570a220d1ba8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Image loading context with DataBinding on Android]]></title>
            <link>https://medium.com/younginnovations-blog/image-loading-context-with-databinding-on-android-89cd1681e56f?source=rss-34f272d67281------2</link>
            <guid isPermaLink="false">https://medium.com/p/89cd1681e56f</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[data-binding]]></category>
            <dc:creator><![CDATA[Rakeeb Rajbhandari]]></dc:creator>
            <pubDate>Mon, 04 Jan 2016 08:49:32 GMT</pubDate>
            <atom:updated>2016-01-08T10:18:00.072Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://developer.android.com/tools/data-binding/guide.html">DataBinding</a> has been a dream come true for devs that hate writing boilerplate code. While there are many use-cases out there showcasing DataBinding being used with <a href="https://medium.com/android-news/loading-images-with-data-binding-and-picasso-555dad683fdc">Picasso</a>, <a href="https://plus.google.com/u/0/+AndroidDevelopers/posts/Pq6aDpZEYA5">Glide</a>, and various other image loading scenarios, I just wanted to add to that pro-tip.</p><p>Suppose your app is loading an image, while the user is provided with a placeholder image wouldn’t it be nice to add some more context?</p><p>For the example here I’ll be showcasing what we implemented in the <a href="https://play.google.com/store/apps/details?id=com.ncellappcamp">Ncell App Camp</a> app, but you can definitely tweak the implementation as per your needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PqSW7QEwjsK363eSaTb2hQ.gif" /><figcaption>Image loading state</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tiEx1RBBJQVgPlJyzI1hXw.gif" /><figcaption>Image loading error state</figcaption></figure><ul><li><strong>Define an interface.</strong> In this example we have an interface with three probable events: loading, ready and error.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4cfdce449c8fe5dc88d924efe66505e5/href">https://medium.com/media/4cfdce449c8fe5dc88d924efe66505e5/href</a></iframe><ul><li><strong>Declare the interface as a variable in your layout file.</strong> With data binding you’re allowed to declare <a href="http://developer.android.com/tools/data-binding/guide.html#variables">multiple variables</a> in your layout. Define variables representing your interface as well as your <a href="https://en.wikipedia.org/wiki/Plain_Old_Java_Object">POJO</a>.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f7481b8563c1037836dace0730c2704a/href">https://medium.com/media/f7481b8563c1037836dace0730c2704a/href</a></iframe><ul><li><strong>Declare a setter with the binding logic. </strong>Notice that our ImageView has two <a href="http://developer.android.com/tools/data-binding/guide.html#custom_setters">custom setters</a> which corresponds to our <a href="http://developer.android.com/reference/android/databinding/BindingAdapter.html">BindingAdapter</a> declaration.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ac244029a7e4260a53b7075a5c4cf97/href">https://medium.com/media/0ac244029a7e4260a53b7075a5c4cf97/href</a></iframe><p>For this example I’m using <a href="https://github.com/square/picasso">Picasso</a> but the same logic can be applied to <a href="https://github.com/bumptech/glide">Glide</a> as well.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9d31ce8143c51ffe2d28c43d5905c4f0/href">https://medium.com/media/9d31ce8143c51ffe2d28c43d5905c4f0/href</a></iframe><p><strong>Initialize Binding in your Activity/Fragment class</strong>. Along with the initialization also set your pojo and callback.</p><p>* Don’t forget to implement ImageLoaderCallback in your class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee2ac14195125fe0551a4a5825a56162/href">https://medium.com/media/ee2ac14195125fe0551a4a5825a56162/href</a></iframe><ul><li><strong>Finally define whatever is to be done in your callbacks.</strong></li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8190b5fce52a9a546cd320bcd3baeb6/href">https://medium.com/media/f8190b5fce52a9a546cd320bcd3baeb6/href</a></iframe><p>Voilà you now have image loading context in your app !</p><p>I shared a <a href="https://plus.google.com/u/0/+RakeebRajbhandari/posts/PoYpBsxmozg">post</a> earlier as well where I used the view’s context to initialize the interface. Although working (<a href="http://stackoverflow.com/a/30669360/2247689">not a good solution</a>) it’s recommended that you use data binding’s variable to initialize your interface.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89cd1681e56f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/younginnovations-blog/image-loading-context-with-databinding-on-android-89cd1681e56f">Image loading context with DataBinding on Android</a> was originally published in <a href="https://medium.com/younginnovations-blog">YoungInnovations&#39; Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>