<?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 Kirti Jalan on Medium]]></title>
        <description><![CDATA[Stories by Kirti Jalan on Medium]]></description>
        <link>https://medium.com/@kirtijalan?source=rss-b4b2b85f7956------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Te5cFs8ysq5MSX02.</url>
            <title>Stories by Kirti Jalan on Medium</title>
            <link>https://medium.com/@kirtijalan?source=rss-b4b2b85f7956------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 22:05:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kirtijalan/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[Empty Card Board Boxes]]></title>
            <link>https://medium.com/@kirtijalan/empty-card-board-boxes-d4d24bdd7145?source=rss-b4b2b85f7956------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4d24bdd7145</guid>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[ajio]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[delivery]]></category>
            <dc:creator><![CDATA[Kirti Jalan]]></dc:creator>
            <pubDate>Sat, 24 Feb 2018 00:24:58 GMT</pubDate>
            <atom:updated>2018-02-27T06:11:25.534Z</atom:updated>
            <content:encoded><![CDATA[<p>My Lead asked me to list down few non-functional requirements(NFR) that I could think of — right off the bat. I came home, hit the reply button on the same mail and began to jot down. I manouvered from topics ranging from security to scalabilty, performance to usabilty. I tend to think a lot. And sometimes while doing that I gaze obliviously. When thinking more about NFR, my eyes parked their sight on to the corner of my room where there laid Empty Card Board Boxes.</p><p>At this point, I would like to Pause [ II ].</p><p>Ever since I have joined my current company which happens to be disrupting the e-commerce space, I have switched from being an ‘on-store’ to an ‘on-line’ shopper. Indeed the lucrative offers, the swiftness provided with one/two day delivery, easy return/exchange feasibilty are the few benefits to name. Oh well, I am not (really) trying to sell you the idea of transacting through online stores, but that was just a subtle attempt.</p><p>Sorry(-not-sorry) for digressing, I would now like to start talking about the topic for this discussion. [ I&gt; ].</p><p>The empty card board boxes coaxed me to think:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fQL6om-dh3Da3Q6mFXGhAg.jpeg" /></figure><p>1. Why do I not throw them away?</p><p>2. How can I use them?</p><p>3. What could be an alternative way for the companies to deliver products?</p><p>Let’s get to the questions. One at a time.</p><p>Yes, throwing the Empty Card Board Boxes away alongwith the other daily residuals should be the most instinctive action. But the logo of AJIO on the boxes — that kicks in the sense of emotion. Therefore, I refrain myself from doing so.</p><p>Which brings me to ponder on what could I do with them, instead. I end up filling the boxes with the books I have read, and place it on the loft. But eventually, when I start living in my own home away from home — I would love to have a library and the books will have a permanent place in the cupboards. And then again, I will not know what to do with the Empty Card Board Boxes.</p><p>Keeping my perspectives aside for a while, any other person is quite likely to throw them away. That just piles up the garbage. Some people might even sell them off to the local hawkers.</p><p>While I was shifting from one place to another in Bangalore (I have done that too many times now), I needed the Card Board boxes to transport my stuff. And I would have to go to these hawkers and I have bought them for a price ranging from 0 to ₹10. Whether it’s a departmental store or a store in the mall, they do not give a plastic/cloth bag for free. I have been charged from a minimum of ₹ 3 to a maximum of ₹ 20. The boxes are eco-friendly and can be recycled. Yet, they are valued to be of a price lesser than that of a polybag. That thought baffled me.</p><p>Items like apparels, accessories, shoes, etc. are packaged in polythenes and then sometimes they have a brand-specific box. These together go into the Ecommerce Company’s Card Board Box. Which means there are layers of additional wrappers. Agreed it might temporarily give us a great feeling while receiving a nicely packaged order. On the downside though, what greater purpose is that serving?</p><p>Just like how we are given a choice to take(buy) that poly/cloth bag from the departmental story, why not give the same choice to the online buyers.</p><p>This will definitely help reduce</p><ol><li>the trash size and</li><li>the packaging costs in the long run.</li></ol><p>But that’s just my #ThoughtsOnTheFly — a tiny ripple waiting to create its effect.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4d24bdd7145" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Double or Triple?]]></title>
            <link>https://medium.com/@kirtijalan/double-or-triple-59ec95eb8275?source=rss-b4b2b85f7956------2</link>
            <guid isPermaLink="false">https://medium.com/p/59ec95eb8275</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[triple-equal]]></category>
            <category><![CDATA[coercion]]></category>
            <category><![CDATA[double-equal]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Kirti Jalan]]></dc:creator>
            <pubDate>Wed, 09 Aug 2017 11:35:28 GMT</pubDate>
            <atom:updated>2017-08-09T12:44:29.372Z</atom:updated>
            <content:encoded><![CDATA[<p>I would like to go back to the old school days when scoring the brownie points in essay-writing tests would be guaranteed if you begin it with a quote -</p><blockquote><strong><em>The worst form of inequality is to try to make unequal things equal.<br> -Aristotle</em></strong></blockquote><p>Having quoted that, I would like to safely say that’s exactly what the <strong>double equal to</strong> (<strong>==</strong>) operator sometimes end up doing (using <strong>coercion </strong>— discussed below) in the world of JavaScript.</p><p>It follows the Abstract Equality Comparison algorithm and provides loose equality value-comparisons. On the other hand, triple equals (===) is based on the Strict Equality Comparison algorithm.</p><p>For stacking in my internal memory, I have had them saved as <strong>===</strong> checks for type equality along with the value whereas, <strong>==</strong> eliminates the type check and dives straight into checking the values of the two variables involved. And thereby I assumed that performance wise <strong>== </strong>would give faster results. I was wrong. It was a very naive approach.</p><p>Double Equals also checks the type. It performs a type conversion when comparing two things. Converting a value from one type to another is often called “type casting,” when done explicitly, and “<strong>coercion</strong>” when done implicitly (forced by the rules of how a value is to be used). Therefore, Double Equals evaluates using <strong>Type Coercion</strong>. There are six primitive data types in JavaScript, namely — Null, Boolean, String, Number, Undefined and Symbol (new in ES6). Before initiating the comparison, the compiler checks if any of the operands are <em>coercible</em> and converts it to be of an equivalent type matching to that of the other operand. This increases the time and thus, reduces the performance.</p><p>Eg.,</p><pre>console.log(num == obj); // true<br>console.log(num == str); // true<br>console.log(obj == str); // true<br>console.log(null == undefined); // true</pre><p>Triple Equals operand does not convert any of the types implicitly. If the operands are of different types, they are deemed unequal. The output is easy to predict and is reliable.</p><pre>// both false, except in rare cases<br>console.log(obj == null);<br>console.log(obj == undefined);</pre><p>I executed a simple test on <a href="https://jsperf.com/">https://jsperf.com</a> to check the performance of double v/s triple equals operator. The result showed that Double Equal was 87% slower. Refer the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9jb8Fn_f0PjzmLqo81IC5g.png" /></figure><p>Therefore, for faster evaluation and to avoid ambiguity and uncertainties in the output, we should prefer using Triple over Double.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59ec95eb8275" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>