<?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 Shashank Duhan on Medium]]></title>
        <description><![CDATA[Stories by Shashank Duhan on Medium]]></description>
        <link>https://medium.com/@ShashankDuhan?source=rss-f841cd76d08------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*klbuY3p6x6n350YDkHYf1Q@2x.jpeg</url>
            <title>Stories by Shashank Duhan on Medium</title>
            <link>https://medium.com/@ShashankDuhan?source=rss-f841cd76d08------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 20:17:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ShashankDuhan/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[ReflexJS for Frontend]]></title>
            <link>https://medium.com/@ShashankDuhan/reflexjs-for-frontend-3d52ebd7399a?source=rss-f841cd76d08------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d52ebd7399a</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[framework]]></category>
            <dc:creator><![CDATA[Shashank Duhan]]></dc:creator>
            <pubDate>Fri, 22 May 2020 05:17:54 GMT</pubDate>
            <atom:updated>2020-05-22T05:27:24.976Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*Y4Td-XMRtuFAW_8CpO7KyA.png" /><figcaption>Source of image: <a href="https://www.august.com.au/blog/resources-for-frontend-developers/">https://www.august.com.au/blog/resources-for-frontend-developers/</a></figcaption></figure><p>In 2016 when React and Angular were growing to their glory, I had to create a project from scratch and I don’t wanted to use any preexisting framework. So I decided to design something of my own. I called it Reflex JS which is a light weight Event management architecture.</p><p>Reflex has five main APIs:</p><ul><li>subscribe</li><li>dispatch</li><li>stream_register</li><li>toggleNeurons</li><li>stickers (attachCallback)</li></ul><p>Lets talk about them one by one.</p><h3>subscribe</h3><p>subscribe actually subscribes a linkedlist of events and actions. It takes two parameters</p><pre>reflexes.subscribe(handlers, &quot;basic_actions&quot;);</pre><ul><li>handlers — <em>func</em></li><li>handler_name — <em>string</em></li></ul><h3>dispatch</h3><p>dispatch an action and it’s side-effects will be run which are mentioned in its handlers</p><pre>reflexes.dispatch({id: &quot;PINCH_ALERT&quot;, sender_name: name, sender_email:email, message_to_send:msg});</pre><h3>stream_register</h3><p>stream_register lets you register a global event to a handler</p><pre>reflexes.stream_register(sensors, &quot;click&quot;, &quot;view_clicks&quot;);</pre><h3>toggleNeurons</h3><p>toggleNeurons are called when you have to perform a exception like hiding a menu on click on anything but that menu.</p><pre>reflexes.addTogglers(toggleNeurons, &quot;views_togglers&quot;);</pre><h3>stickers</h3><p>When you have to attach a callback for a particular event like rendering on data_load, then we use stickers</p><pre>reflexes.attachCallback(&quot;RENDER_PAGE&quot;, &quot;DATA_LOADED&quot;);</pre><p>These were the APIs of ReflexJS but lets talk how it actually works and how we structure our code. We have a store of actions that needs to be triggered. Every action have an id and certain steps to be executed. We can then register out actions using subscribe method. Later whenever you need to call that action, just dispatch the action with its id and any data (payload) if you want to pass.</p><p>You can stick any action after call of any other action using attachCallback method which are also know as stickers.</p><p>You can also manage your window events using Reflex JS by using stream_register which allows you to organise all actions needs to execute on trigger of different events.</p><p>You can checkout the codebase here: <a href="https://github.com/shashankduhan/reflex-js">https://github.com/shashankduhan/reflex-js</a></p><p>Find me here: <a href="https://www.toptal.com/front-end">https://www.toptal.com/front-end</a></p><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d52ebd7399a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Project SATURN]]></title>
            <link>https://medium.com/@ShashankDuhan/project-saturn-6affa96f4ad2?source=rss-f841cd76d08------2</link>
            <guid isPermaLink="false">https://medium.com/p/6affa96f4ad2</guid>
            <category><![CDATA[reality]]></category>
            <category><![CDATA[imagination]]></category>
            <category><![CDATA[saturn]]></category>
            <dc:creator><![CDATA[Shashank Duhan]]></dc:creator>
            <pubDate>Wed, 24 Jun 2015 02:32:56 GMT</pubDate>
            <atom:updated>2015-06-24T02:32:56.014Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Lqsc4qoWlFKspxWkAtpUA.jpeg" /></figure><p>I am working on a project intends to connect two browser together via a remote server.</p><p>For that I will found that WebSocket, but I have to understand it, which is very babylove 😁 i.e. very omg.</p><p>So to understand anything I came up with a theory that is called BabyLove Theory.</p><p>So for human beings there are two basic things in this universe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_GxXWGullya8hcZSnPtYA.jpeg" /></figure><p>Yes! As you can see there is very thin line between imagination and reality. What’s that! We come on later. First let’s see what can we relate more to them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uzcuQNHLV87CAjjnKW0dYg.jpeg" /></figure><p>Getting complicated! it’s ok. Actually all the stories and theories are merely the product of imagination and whatever we make in real world is application e.g. iPhone, sketch, article, cycle, aeroplane, mobile app etc.</p><p>Next is how can we relate it with the design of earth and nature itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7F4ieaHDI0lQs98Dg-vlXA.jpeg" /></figure><p>It’s approach (spelling mistake in diagram 😁) and environment and when we fuse them together we get something you guessed 😎</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WS9rgYrd7hVKSv1S77v5Gw.jpeg" /></figure><p>The sperm and egg i.e. Life</p><p>And this is called the babylove theory.</p><p>OK now what about that thin line between imagination and relaity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_GxXWGullya8hcZSnPtYA.jpeg" /></figure><p>Remember! Oh it’s actually just the lack of data which is very similar to conversion of application to environment. Getting complicated!</p><blockquote>So there is a solution i.e. Explore the nature and people because life is quite big, but with honesty.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bEINTBYvLpwZEDwR44karw.jpeg" /></figure><p>So this is our final graph (diagram)</p><p>Where were we by the way! Oh!</p><p>Project SATURN</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4HJZ4lpldg0WqNt_a4ahvg.jpeg" /></figure><p>So I am going back on my project and you too go back on what you were doing i.e. Browsing the Web</p><p>Sayonara 😜🐷🙈</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6affa96f4ad2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Viral cookies]]></title>
            <link>https://medium.com/@ShashankDuhan/viral-cookies-daa306d3cccd?source=rss-f841cd76d08------2</link>
            <guid isPermaLink="false">https://medium.com/p/daa306d3cccd</guid>
            <category><![CDATA[publish]]></category>
            <category><![CDATA[content]]></category>
            <category><![CDATA[viral]]></category>
            <dc:creator><![CDATA[Shashank Duhan]]></dc:creator>
            <pubDate>Wed, 17 Jun 2015 06:31:01 GMT</pubDate>
            <atom:updated>2016-04-17T10:50:26.772Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EAX3ZgGErxpuAuMrRvp3WQ.jpeg" /></figure><p>Why my creative stuff never goes viral?</p><p>This question makes us mad many times. But understands it after baking few cookies and asked myself that ok now why can’t I make these cookies viral.</p><p>So I got answer very easily, I made them at a time when no one is hungry, so similarly we make content at the times when nobody actually requires them. So it’s not always about what we make, but also at what time we make it.</p><p>At the time of practise, we don’t care of the time we bake or create something, whether it’s an video, app or anything. So better aware of the time cycle of need of the content we make. 😁</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daa306d3cccd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Baking ~ Rendering]]></title>
            <link>https://medium.com/@ShashankDuhan/baking-rendering-4fd8f1b37601?source=rss-f841cd76d08------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fd8f1b37601</guid>
            <category><![CDATA[blender]]></category>
            <category><![CDATA[rendering]]></category>
            <category><![CDATA[baking]]></category>
            <dc:creator><![CDATA[Shashank Duhan]]></dc:creator>
            <pubDate>Wed, 17 Jun 2015 00:07:06 GMT</pubDate>
            <atom:updated>2015-06-17T00:07:06.223Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever wonder how baking a cookie/bread etc. and rendering a CGI (Computer Generated Image) is quite similar.</p><p>I mostly used to render my images in night and used to wake up to check if computer is doing well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iXvXotvK1QCerdj_OA74MA.jpeg" /></figure><p>I never baked anything at that time so I could not relate that process with any thing, but when I started to bake, I started to realise that it is very much related to do with my renders.</p><p>Yeah. Happy baking &amp; rendering too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DpGR5NEkoD_Ly-23QEmWEw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fd8f1b37601" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Being Guru]]></title>
            <link>https://medium.com/@ShashankDuhan/being-guru-a6f038946cc7?source=rss-f841cd76d08------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6f038946cc7</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[guru]]></category>
            <category><![CDATA[family]]></category>
            <dc:creator><![CDATA[Shashank Duhan]]></dc:creator>
            <pubDate>Mon, 15 Jun 2015 02:04:31 GMT</pubDate>
            <atom:updated>2015-06-15T02:04:31.961Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b0qM1bshAxBDGUyqj-VLfg.jpeg" /></figure><p>Ever wonder that we use each other as of a phone or another device at home. Many people do understand this and even make it as their full time job. So to provide better service we tries to grow ourselves by exploring the places, reading more tweets or newsfeeds.</p><p>But sometimes we forgot that why are we upgrading ourselves, why are we exploring and learning so much. This happens a lot with everyone and almost everyday. So then we go back and check for our customers list, if it still there in our headbank. People have become so lazy and so tech addict that when we found some healthy and smart person around we start treating him/her like a gadget. And here starts a new business. BeingGuru</p><p>So bhai log! Happy gurugiri!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6f038946cc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>