<?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 Saksham Khurana on Medium]]></title>
        <description><![CDATA[Stories by Saksham Khurana on Medium]]></description>
        <link>https://medium.com/@dawnimpulse?source=rss-73432e2b9a3c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WdcpHzHOnxU9RqHQFb-WDQ.jpeg</url>
            <title>Stories by Saksham Khurana on Medium</title>
            <link>https://medium.com/@dawnimpulse?source=rss-73432e2b9a3c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 19:56:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dawnimpulse/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[A new way to reduce JSON API output without all the hassles of graphql | Restmap]]></title>
            <link>https://medium.com/devslife/a-new-way-to-reduce-json-api-output-2713e36e4180?source=rss-73432e2b9a3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2713e36e4180</guid>
            <category><![CDATA[rest]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Saksham Khurana]]></dc:creator>
            <pubDate>Sat, 12 Mar 2022 05:35:37 GMT</pubDate>
            <atom:updated>2022-03-12T06:02:38.568Z</atom:updated>
            <content:encoded><![CDATA[<p>To create a simple way to query only the required data from a <strong>Rest API </strong>without relying on a lot of external tools or code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1e_i_DzBY7qsMdnw" /><figcaption>Photo by <a href="https://unsplash.com/@flowforfrank?utm_source=medium&amp;utm_medium=referral">Ferenc Almasi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>What’s all the fuss about?</strong></h3><p>The problem is, Frontend devs have to constantly deal with lots of data in each API request &amp; they have no way of limiting this response according to their needs. So consider they only need 1 key, they still have to get all the keys in the response.</p><p>The earliest solution and still a very good solution is using, GraphQl which is a query language for your API (read more <a href="https://graphql.org/">here</a>).</p><h3>So have you created a GraphQl alternative?</h3><p>NO !!!</p><p>In no way is <strong>Restmap </strong>a replacement for GraphQl which is a very extensive query language that does a lot of things.</p><blockquote>Restmap solely aims to limit your data without lots of development time on fronend/backend. All you need is just few lines of code on server side</blockquote><ul><li>Graphql requires you to configure/change a lot of your frontend &amp; backend.</li><li>For Graphql in frontend especially you need a new way to consume data by configuring a new library other than the existing REST API which put additional strain on frontend devs.</li></ul><blockquote>Restmap simply plugs &amp; play in your existing system !!!</blockquote><h3>Sounds Good? Well let me introduce you to Restmap</h3><ul><li>Restmap simply works in the existing API by making a slight tweak on the server-side</li><li>Just import the library and call the <strong><em>reduceData</em></strong> method on the final output of your API</li><li>Clients can send <strong>restmap string</strong> via header, query, or body (however you wish to have it on the server-side)</li></ul><h4>Do you want examples?</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9dbfc663d0ccc92ad3bf2527de058b99/href">https://medium.com/media/9dbfc663d0ccc92ad3bf2527de058b99/href</a></iframe><p>You can also test out more on our <a href="https://restmap.vercel.app/playground">Playground</a></p><h3>So how to get started, properly?</h3><p>For that, you have to check out the github profile to learn how to use this in your existing system.</p><p><a href="https://github.com/restmap/restmap-node">GitHub - restmap/restmap-node: Simple way to query only the required data from a Rest API without relying on lot of external tools or code</a></p><p>Thanks for checking out this article, hope it helps you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2713e36e4180" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devslife/a-new-way-to-reduce-json-api-output-2713e36e4180">A new way to reduce JSON API output without all the hassles of graphql | Restmap</a> was originally published in <a href="https://medium.com/devslife">Devs Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating your first API using Nodejs + Expressjs | No Bs Tutorials]]></title>
            <link>https://medium.com/devslife/creating-your-first-api-using-nodejs-expressjs-no-bs-tutorials-fa2e37cd31cf?source=rss-73432e2b9a3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa2e37cd31cf</guid>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Saksham Khurana]]></dc:creator>
            <pubDate>Mon, 30 Sep 2019 12:01:06 GMT</pubDate>
            <atom:updated>2020-06-23T13:10:41.108Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to No BS Tutorials. Here you will get “To the point” tutorials with no BS involved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eCTU3dEDrayV2ZM2" /><figcaption>Photo by <a href="https://unsplash.com/@plhnk?utm_source=medium&amp;utm_medium=referral">Paul Hanaoka</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>A detailed tutorial with thourough explanation will be found on my <a href="https://devslife.dawnimpulse.com/creating-your-first-api-using-nodejs-expressjs">blog</a>.</blockquote><h3>Goal :</h3><p>To create a simple backend server with Nodejs.</p><h3>Before We Start :</h3><p>This tutorial assumes you have basic knowledge of Nodejs &amp; NPM as well as you have installed Node on your system. If you need to learn more about Nodejs, I will recommend you going through the Nodejs tutorial on <a href="https://www.tutorialspoint.com/nodejs/index.htm">Tutorialspoint</a> once.</p><blockquote><em>With intro out, lets </em><strong><em>create a folder</em></strong><em> in our system inside which we will start working.</em></blockquote><h3>Getting Started :</h3><h4>Creating a simple server</h4><ul><li>Open your cmd inside your <em>project directory</em> &amp; run</li></ul><pre>npm init</pre><ul><li>Again on cmd, run the following code to install <a href="https://www.npmjs.com/package/express"><strong>Express</strong></a> dependency.</li></ul><pre>npm i express</pre><ul><li>After both the steps are done, create a new file <strong>hello.js</strong> &amp; paste following code</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F19235&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6532%2F19235&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6e6ac36b597a56b5ca8f5475e1dc72d8/href">https://medium.com/media/6e6ac36b597a56b5ca8f5475e1dc72d8/href</a></iframe><ul><li>Now back to cmd &amp; run</li></ul><pre>node hello.js</pre><ul><li>Fire up your browser &amp; open</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/0*cbg2l6GBLt6fqdg-.png" /><figcaption>you will be greeted with this</figcaption></figure><p><a href="http://localhost:8071/yeah"><em>http://localhost:8071/yeah</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/0*q2UtS9ySzrVEIzNn.png" /><figcaption>which means our api is working 🎉</figcaption></figure><h4>Using Query Parameters</h4><blockquote><em>Sometimes need to pass some value to our backend to perform operations on it.</em></blockquote><ul><li>Using the code below make changes to your previous file</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F19237&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6532%2F19237&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8fb5712d6d26929f65e677dc3bc1861b/href">https://medium.com/media/8fb5712d6d26929f65e677dc3bc1861b/href</a></iframe><ul><li>Open the browser and enter url</li></ul><p><a href="http://localhost:8071/yeah?name=saksham"><em>http://localhost:8071/yeah?name=saksham</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/0*jnMKa0k0bN1uJn5H.png" /></figure><ul><li>How about using <strong>multiple queries</strong> in same url ?</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F19239&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6532%2F19239&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/91a05213076044c82ea9bea53e9fc773/href">https://medium.com/media/91a05213076044c82ea9bea53e9fc773/href</a></iframe><ul><li>Again open browser &amp; enter</li></ul><p><a href="http://localhost:8071/yeah?name=saksham&amp;age=24"><em>http://localhost:8071/yeah?name=saksham&amp;age=24</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/0*Als2V2_1OpgTCbhy.png" /></figure><h4>Using Path Parameters</h4><p>Sometimes rather than just query parameters we need to pass a dynamic value in our url itself. Example -</p><pre><a href="http://localhost:8071/yeah/saksham/details">http://localhost:8071/yeah/saksham/details</a><br> <br><a href="http://localhost:8071/yeah/mahomes/details">http://localhost:8071/yeah/mahomes/details</a></pre><ul><li>Update your code to</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F19244&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6532%2F19244&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/747321a236c531b07c9d80f7804d2886/href">https://medium.com/media/747321a236c531b07c9d80f7804d2886/href</a></iframe><p>open — <a href="http://localhost:8071/yeah/saksham/details">http://localhost:8071/yeah/saksham/details</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*OumPXUYoCXAv822yZeTDSw.png" /></figure><blockquote><em>Till now we are only working with the GET type of requests that is easily done with any kind of browser available. But there are also many other kind of requests like POST, DELETE, PUT etc.</em></blockquote><h4>Body Parameters (POST)</h4><p>Sometimes we need to gather parameters that must be in a secure form (eg password).</p><blockquote><em>For </em><strong><em>POST</em></strong><em> requests we need a client to test the same since browsers cannot send a </em><strong><em>POST</em></strong><em> requests normally. Download </em><a href="https://postman.com/"><strong><em>POSTMAN</em></strong></a><em> for the same.</em></blockquote><ul><li>Let’s start with installing <a href="https://www.npmjs.com/package/body-parser"><strong>body-parser</strong></a> dependency &amp; use the following code</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F19247&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6532%2F19247&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/844184b0eb82d701207ca31aafedb327/href">https://medium.com/media/844184b0eb82d701207ca31aafedb327/href</a></iframe><ul><li>Open <a href="https://postman.com/"><strong>POSTMAN</strong></a><strong> </strong>and follow the below screenshot to <em>select POST, enter URL &amp; entering PARAMS</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_L7yhfrDfxHu9oDe.png" /></figure><h3>Conclusion :</h3><p>This is a basic tutorial to help you start with Express server. You can implement these things to create a basic server &amp; you can easily get started with anything.</p><blockquote><em>I will be adding more tutorials for express server like connecting to database, storing files, implementing authentication &amp; more shortly.</em></blockquote><h3>Wrap Up :</h3><p>Once again if you wish to know in more detail about this entire tutorial visit my <a href="https://devslife.dawnimpulse.com/creating-your-first-api-using-nodejs-expressjs">blog</a>.</p><p>Thanks a lot for tuning in today, for more tutorials follow this publication or subscribe to my blog.</p><p><a href="https://devslife.dawnimpulse.com/">Devs Life</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa2e37cd31cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devslife/creating-your-first-api-using-nodejs-expressjs-no-bs-tutorials-fa2e37cd31cf">Creating your first API using Nodejs + Expressjs | No Bs Tutorials</a> was originally published in <a href="https://medium.com/devslife">Devs Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handle Android Permissions with a single line of code | No BS Tutorials]]></title>
            <link>https://medium.com/devslife/handle-android-permissions-e29e23380e5f?source=rss-73432e2b9a3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e29e23380e5f</guid>
            <category><![CDATA[android-permissions]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Saksham Khurana]]></dc:creator>
            <pubDate>Sat, 28 Sep 2019 11:55:53 GMT</pubDate>
            <atom:updated>2019-09-28T11:55:53.510Z</atom:updated>
            <content:encoded><![CDATA[<h4>Welcome to No BS Tutorials. Here you will get “To the Point” tutorials with no BS involved.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZBkTxk8uctpolOD2" /><figcaption>Photo by <a href="https://unsplash.com/@kaip?utm_source=medium&amp;utm_medium=referral">Kai Pilger</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a> (keyword: stop)</figcaption></figure><blockquote><strong>A detailed tutorial with thourough explanation will be found on my </strong><a href="https://devslife.dawnimpulse.com/handle-android-permissions/"><strong>blog</strong></a><strong>.</strong></blockquote><blockquote>This tutorial will be in Kotlin</blockquote><h3>Introduction</h3><p>Since Android 6 (Marshmellow) app developers have to ask for various permission like storage, camera, mic, location etc before they can be used/accessed.</p><p>Although handling permission is not a straight forward task &amp; involves a lot of lines of code &amp; its subsequent handling thereafter.</p><h3>Goal</h3><p>We will use <a href="https://github.com/DawnImpulse/permissions-android">permissions-android</a> wrapper library to ask system permission in a single line of code</p><h3>Getting Started</h3><ul><li>Add the <a href="https://github.com/DawnImpulse/permissions-android">permissions-android</a> library in your app.gradle (always check for latest version)</li></ul><p><a href="https://github.com/dawnimpulse/permissions-android">DawnImpulse/permissions-android</a></p><pre>implementation &#39;org.sourcei.android:permissions:1.0.1&#39;</pre><ul><li>Whenever you need to ask for a permission <em>eg storage </em>simple call</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F18156&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6072%2F18156&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d15ae21cff9857ee98368569884dd077/href">https://medium.com/media/d15ae21cff9857ee98368569884dd077/href</a></iframe><h3>Conclusion</h3><p>And that&#39;s all to it. It is so simple to handle various permissions with this library.</p><p>You can even ask <strong>multiple permissions</strong> in a go, check out the library on <a href="https://github.com/DawnImpulse/permissions-android">Github </a>to know more</p><h3>Wrap Up</h3><p>Once again if you wish to know in more detail about this entire tutorial visit my <a href="https://devslife.dawnimpulse.com/handle-android-permissions/">blog</a>.</p><p>Thanks a lot for tuning in today, for more tutorials follow this publication or subscribe to my blog.</p><p><a href="https://devslife.dawnimpulse.com/">Devs Life</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e29e23380e5f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devslife/handle-android-permissions-e29e23380e5f">Handle Android Permissions with a single line of code | No BS Tutorials</a> was originally published in <a href="https://medium.com/devslife">Devs Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy preference handling in Android with Kotlin Extension functions | No BS Tutorials]]></title>
            <link>https://medium.com/devslife/easy-preference-handling-in-android-with-kotlin-extension-functions-567ad811a2ca?source=rss-73432e2b9a3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/567ad811a2ca</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin-extension]]></category>
            <dc:creator><![CDATA[Saksham Khurana]]></dc:creator>
            <pubDate>Sat, 28 Sep 2019 11:44:33 GMT</pubDate>
            <atom:updated>2020-11-13T05:12:34.003Z</atom:updated>
            <content:encoded><![CDATA[<h4>Welcome to No BS Tutorials. Here you will get “To the Point” tutorials with no BS involved.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SOOWCvFvzeNa0mJQ" /><figcaption>Photo by <a href="https://unsplash.com/@amadorloureiroblanco?utm_source=medium&amp;utm_medium=referral">Amador Loureiro</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a> (keyword: blocks)</figcaption></figure><blockquote>This tutorial will be in Kotlin &amp; assumes you have knowledge of Kotlin Extension functions. You can learn more about extension functions in my other article.</blockquote><p><a href="https://medium.com/devslife/extension-functions-with-kotlin-3d987c3da738">Extension function with Kotlin | No BS Tutorials</a></p><h3><strong>Goal :</strong></h3><p>Create a simple &amp; efficient way to handle Shared Preference in Android</p><h3><strong>Getting Started :</strong></h3><ul><li>In an empty kotlin file</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F18016&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6072%2F18016&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9385e64174e2c0498cf903d07d85f8ee/href">https://medium.com/media/9385e64174e2c0498cf903d07d85f8ee/href</a></iframe><ul><li>In your main <strong>App</strong> file which extends Application</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F18017&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6072%2F18017&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ff1bfec5de057650ace9d9e6745eaae/href">https://medium.com/media/9ff1bfec5de057650ace9d9e6745eaae/href</a></iframe><p><em>Android Studio will auto-import package directory </em><strong><em>Prefs</em></strong><em> was in</em></p><ul><li>Now create 2 extension functions</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F18018&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6072%2F18018&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c3d725aedb5bca481da275d36483ec44/href">https://medium.com/media/c3d725aedb5bca481da275d36483ec44/href</a></iframe><blockquote>Note: SharedPreference accepts String, Int, Boolean, Float, Long &amp; StringSet</blockquote><ul><li>You can simply read &amp; write anything from anywhere using</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F18019&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6072%2F18019&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ca91cc8acea3b2116803613511b85cc/href">https://medium.com/media/2ca91cc8acea3b2116803613511b85cc/href</a></iframe><h3>Conclusion :</h3><p>With few lines of code, in the beginning, we can easily create/read/delete shared preference value anywhere in our code</p><h3>Wrap Up :</h3><p>Once again if you wish to know in more detail about this entire tutorial visit my <a href="https://devslife.dawnimpulse.com/easy-preference-handling-in-android-with-kotlin-extension-functions/">blog</a>.</p><p>Thanks a lot for tuning in today, for more tutorials kindly follow this publication.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=567ad811a2ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devslife/easy-preference-handling-in-android-with-kotlin-extension-functions-567ad811a2ca">Easy preference handling in Android with Kotlin Extension functions | No BS Tutorials</a> was originally published in <a href="https://medium.com/devslife">Devs Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Extension function with Kotlin | No BS Tutorials]]></title>
            <link>https://medium.com/devslife/extension-functions-with-kotlin-3d987c3da738?source=rss-73432e2b9a3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d987c3da738</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[kotlin-extension]]></category>
            <dc:creator><![CDATA[Saksham Khurana]]></dc:creator>
            <pubDate>Sat, 28 Sep 2019 11:31:48 GMT</pubDate>
            <atom:updated>2019-09-28T11:34:08.572Z</atom:updated>
            <content:encoded><![CDATA[<h4>Welcome to No BS Tutorials. Here you will get “To the Point” tutorials with no BS involved.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bjTfJ_Jrp5ah-ArV" /><figcaption>Photo by <a href="https://unsplash.com/@davidhellmann?utm_source=medium&amp;utm_medium=referral">David Hellmann</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a> (keyword: cable)</figcaption></figure><blockquote><strong>A detailed tutorial with thourough explanation will be found on my </strong><a href="https://devslife.dawnimpulse.com/extension-functions-with-kotlin/"><strong>blog</strong></a><strong>.</strong></blockquote><h3>Introduction :</h3><p>As the name suggests Kotlin extension functions extend abilities of your classes by creating your own user-defined functions.</p><h3>Getting Started:</h3><ul><li>We will create 3 different extension functions here to understand the concept</li><li>Create an empty file anywhere in your package (don’t make it class/interface or anything)</li><li><strong>First:</strong> create a simple toast (&amp; not writing a long line for such a simple thing)</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F18021&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6072%2F18021&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d45646c821d6fbb7e925e4c37a39a852/href">https://medium.com/media/d45646c821d6fbb7e925e4c37a39a852/href</a></iframe><p>Now simply you can call it inside your activity as</p><pre>// activity has context hence we call it directly<br>toast(&quot;&quot;)</pre><pre>// if wish a long text then<br>toast(&quot;&quot;, Toast.LENGTH_LONG)</pre><ul><li><a href="https://snipit.io/lists/6072/18021"><strong>Second: </strong></a>Hide or show your view in code</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F18022&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6072%2F18022&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/afbc8ff6d3bdd28863e13a4916b4b5b0/href">https://medium.com/media/afbc8ff6d3bdd28863e13a4916b4b5b0/href</a></iframe><p>Again simply call that as</p><pre>// we will use the view-name followed by the function</pre><pre>anyView.gone()<br>anyView.show()</pre><ul><li><strong>Third:</strong> open a website in the browser (send intent)</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F18023&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6072%2F18023&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a0f71c73852ab008faae4c92b19aebb3/href">https://medium.com/media/a0f71c73852ab008faae4c92b19aebb3/href</a></iframe><p>to open website from activity call</p><pre>startWeb(&quot;https://google.com&quot;)</pre><h3>Conclusion</h3><p>Extension functions in kotlin make your life <strong>so so easy</strong> by not repeating common tasks again and again and include them right along with the respective class itself.</p><h3>Examples</h3><p>I have listed some of the extension functions that make my life easier (&amp; I will update them from time-to-time.</p><p><a href="https://devslife.dawnimpulse.com/list-of-various-kotlin-extension-functions/">Extension function with Kotlin | No BS Tutorials</a></p><h3>Wrap Up</h3><p>Once again if you wish to know in more detail about this entire tutorial visit my <a href="https://devslife.dawnimpulse.com/extension-functions-with-kotlin/">blog</a>.</p><p>Thanks a lot for tuning in today, for more tutorials follow this publication or subscribe to my blog.</p><p><a href="https://devslife.dawnimpulse.com/">Devs Life</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d987c3da738" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devslife/extension-functions-with-kotlin-3d987c3da738">Extension function with Kotlin | No BS Tutorials</a> was originally published in <a href="https://medium.com/devslife">Devs Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple event bus in Android using RxRelay | No BS Tutorials]]></title>
            <link>https://medium.com/devslife/event-bus-android-rxrelay-396f8b35c556?source=rss-73432e2b9a3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/396f8b35c556</guid>
            <category><![CDATA[rxjava]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Saksham Khurana]]></dc:creator>
            <pubDate>Sat, 28 Sep 2019 07:14:41 GMT</pubDate>
            <atom:updated>2019-09-28T11:35:02.216Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Welcome to </em><strong><em>No BS Tutorials</em></strong><em>. Here you will get “To the Point” tutorials with no BS involved.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kUnVQl0VhOhdNNB7" /><figcaption>Photo by <a href="https://unsplash.com/@othentikisra?utm_source=medium&amp;utm_medium=referral">israel palacio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a> (keyword : internet)</figcaption></figure><blockquote>A detailed tutorial with thorough explanation will be found on my<strong> </strong><a href="https://devslife.dawnimpulse.com/event-bus-android-rxrelay/"><strong>blog</strong></a><strong>.</strong></blockquote><blockquote>This tutorial will be in Kotlin</blockquote><h3><strong>Goal :</strong></h3><p>Create a simple mechanism to communicate between different activities/fragments or basically anything as long as a listener is attached.</p><h3><strong>Getting Started :</strong></h3><ul><li>We will use Jake Wharton’s <a href="https://github.com/JakeWharton/RxRelay">Rx Relay</a> to accomplish this task.</li></ul><blockquote>Although Rx Relay is concept of Reactive programming , you don’t need any specific knowledge for this tutorial</blockquote><ul><li>Add in build.gradle (app)</li></ul><pre>implementation &#39;com.jakewharton.rxrelay2:rxrelay:2.1.1&#39;</pre><ul><li>Create an empty kotlin file named anything (don’t make it class/interface or anything at all).</li><li>Simply add</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F17934&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6072%2F17934&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f5ce69f6d167b6ad050c700043238174/href">https://medium.com/media/f5ce69f6d167b6ad050c700043238174/href</a></iframe><p><em>This is a very simple event where we will just send any kind of </em><strong><em>STRING</em></strong><em> between different components in our code</em></p><ul><li>Now let&#39;s send a simple <strong>“Hello” </strong>from Activity B— A</li><li>Create a listener (subscriber) in <strong>Activity A</strong>.</li><li>Apart from your code, <strong>Activity A </strong>should look like</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnipit.io%2Fembed%2F17929&amp;dntp=1&amp;url=https%3A%2F%2Fsnipit.io%2Flists%2F6072%2F17929&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=snipit" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2205f5e7d929e16e8bf593b7769f25bc/href">https://medium.com/media/2205f5e7d929e16e8bf593b7769f25bc/href</a></iframe><ul><li>Now in <strong>Activity B </strong>just call</li></ul><pre>RxBus.accept(&quot;Hello&quot;)</pre><blockquote>Note : <strong>PublishRelay</strong> sends the event (from accept) to all available active listeners at that point — more info about various Relays <a href="https://github.com/JakeWharton/RxRelay">here</a>.</blockquote><h3><strong>Conclusion:</strong></h3><p>VOILA !! That&#39;s all to it.</p><p>Here we have sent a String, in this very similar way we can send a MAP, PAIR, INT or any other data type.</p><blockquote>You can send anything between anything even from A — B as long as a listener(subscriber) is attached (&amp; not destroyed)</blockquote><p>Once again if you wish to know in more detail about this entire tutorial visit my <a href="https://devslife.dawnimpulse.com/event-bus-android-rxrelay/">blog</a>.</p><p>Thanks a lot for tuning in today, for more tutorials follow this publication or subscribe to my blog.</p><p><a href="https://devslife.dawnimpulse.com/">Devs Life</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=396f8b35c556" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devslife/event-bus-android-rxrelay-396f8b35c556">A simple event bus in Android using RxRelay | No BS Tutorials</a> was originally published in <a href="https://medium.com/devslife">Devs Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How reading changed my lifestyle]]></title>
            <link>https://medium.com/@dawnimpulse/how-reading-changed-my-lifestyle-d2c09f9fe1?source=rss-73432e2b9a3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2c09f9fe1</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[reading]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[Saksham Khurana]]></dc:creator>
            <pubDate>Sat, 01 Apr 2017 07:03:34 GMT</pubDate>
            <atom:updated>2019-09-28T07:16:25.288Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w0LGtf8oPLSMEQvtGTiraQ.jpeg" /></figure><blockquote>It was morning of 24th Jan when I was reading an article describing why you should read non fiction books . By the end of that article I was determined to start reading to see how can I change myself by just Reading a book .</blockquote><p>I ordered my first book <a href="http://charlesduhigg.com/the-power-of-habit/">The Power Of Habit</a> , and started to read it while I was travelling back &amp; forth from my work place . I spend half hour per session and to stop distractions of my commute , I listen to Beethoven Symphonies. From the first day I focused my mind towards the learning aspect of the book rather than finding some motivation in the text .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cC0CGH04msdRacuDcrzGOA.jpeg" /></figure><p>As I start incorporating the reading in my daily life , within few days I was able to see how this habit has taken over my other ones which is watching movies,social network etc. in morning commute . I started making notes in the book , and later when I reach home I try to visualize those notes. More I spend time reading , more happier I feel the rest of the day.</p><p>At home , I started maintaining a dairy to visualize my next day work and all the tasks I should complete . My desk at home started to fill with sticky notes keeping track of each small detail of my work and I started to get more punctual every day . Cooking my own meals &amp; keep things clean and organized were the next habit that I took . It was not just because of reading a book but the habit of reading and learning things that started to change my lifestyle one by one .</p><p>After first 20 days , I completed the book . That day I spend my commute watching a TV series but within first few minutes I started to feel how I was wasting my time . Immediately I ordered a couple of books and I was back on track after a break of 3 days .</p><p>2 months later, now I see how changing a small habit could influence your life and can change your perception of time &amp; life .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2c09f9fe1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>