<?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 Priyanka Shah on Medium]]></title>
        <description><![CDATA[Stories by Priyanka Shah on Medium]]></description>
        <link>https://medium.com/@priyankashah_67842?source=rss-1bc4203e9e8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ryxLNrvWzRZ81hbPD16TAA.jpeg</url>
            <title>Stories by Priyanka Shah on Medium</title>
            <link>https://medium.com/@priyankashah_67842?source=rss-1bc4203e9e8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 03:36:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@priyankashah_67842/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[Recursion —  Decluttered]]></title>
            <link>https://medium.com/@priyankashah_67842/recursion-decluttered-486fc5593a1?source=rss-1bc4203e9e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/486fc5593a1</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[decluttering]]></category>
            <category><![CDATA[coding-interviews]]></category>
            <category><![CDATA[recursion]]></category>
            <dc:creator><![CDATA[Priyanka Shah]]></dc:creator>
            <pubDate>Wed, 15 Apr 2020 05:27:13 GMT</pubDate>
            <atom:updated>2020-04-15T05:32:32.791Z</atom:updated>
            <content:encoded><![CDATA[<h3>Recursion — Decluttered</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*Jwa0MW1UDUaBGDZiU1S6pw.jpeg" /></figure><p>What is Recursion?</p><p>According to the definition of the word it is a repeated application of a recursive procedure. Recursive function calls itself over and over again till it arrives at the result. In recursion you take a big problem break it down to identify repeated pattern and the base case.Once you establish those, you keep iterating(stacking) with repeated calls till you reach the base case and then cascade the value obtained down the stack. Simple:)</p><p>In the stone <strong><em>cairn(stack)</em></strong> above I stacked one stone above the other till there was no space left for another stone to fit. We are going to use this to understand how recursion works in the background. It’s no magic! Just repetition.</p><p>I am writing this column with sole aim of simplifying what I have learnt about how recursion works and am presenting it to you with the rules and an example.</p><p>Steps:<br>1 There should be a if case: case 1:recursion case 2:base case<br>2.Define base case: Simplest case where no recursion is needed<br>3.Define recursion and save it in a variable. Perform operation needed<br>Return the value<br>4. Assume recursion works: ask urself → what does it do?How can I build from base case to final result</p><p><strong>Example: Find factorial of a number(n) or find n!</strong></p><pre>//Input: number Eg:5</pre><pre>//5! = 5*4*3*2*1</pre><pre>//Output:120</pre><pre>function factorial(n){<br> if(n==0){<br> return 1;<br> }else{<br> return factorial(n-1)*n//B;<br> }<br>}<br>console.log(factorial(5))//A</pre><p>*Assume //A and //B are the names of the respective sentences</p><p><strong>How it works:</strong><br>When factorial(5) is called :<br>step1: find factorial(5) and then return to statement//A<br>step2: 5!==0, hence factorial(5–1)-&gt; find factorial (4) and return to //B<br>step3: 4!==0, hence factorial(4–1)-&gt; find factorial (3) and return to //B<br>step4: 3!==0, hence factorial(3–1)-&gt; find factorial (2) and return to //B<br>step5: 2!==0, hence factorial(2–1)-&gt; find factorial (1) and return to //B<br>step6: 1!==0, hence factorial(1–1)-&gt; find factorial (0) and return to //B<br>step7: 0==0, hence factorial(0)= 1 return to //B with value =1<br>Stack is now complete, hence the value starts getting passed down the stack<br>step8: now value of factorial (1) becomes 1, return 1*n = 1*1 =1 <br>step9: now value of factorial (2) becomes 1, return 1*n = 1*2 =2 <br>step10: now value of factorial (3) becomes 2 return 2*n = 2*3 =6<br>step11: now value of factorial (4) becomes 6 return 6*n = 6*4 =24<br>step11: now value of factorial (5) becomes 24 return 24*n = 24*5 =120</p><p>Basically, once the recursive call is made the ‘code stack’ keeps building up till it hits the base case, exactly like the stone stack in the picture above. Base case yields result. Now this value keeps getting passed down the stack we built till it reaches the last case and then it returns the result.</p><p>Hope the explanation helps you understand the concept of Recursion better. Please leave feedback if you like and benefitted from the declutter approach.</p><p>References: Watch this video by Dave Feinberg to better understand the concept: <a href="https://www.youtube.com/watch?v=ozmE8G6YKww">https://www.youtube.com/watch?v=ozmE8G6YKww</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=486fc5593a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dog-a-life]]></title>
            <link>https://medium.com/@priyankashah_67842/dog-a-life-2356512a0cb5?source=rss-1bc4203e9e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2356512a0cb5</guid>
            <category><![CDATA[pets]]></category>
            <category><![CDATA[fun]]></category>
            <category><![CDATA[happiness]]></category>
            <category><![CDATA[dogs]]></category>
            <category><![CDATA[pet-owners]]></category>
            <dc:creator><![CDATA[Priyanka Shah]]></dc:creator>
            <pubDate>Mon, 09 Dec 2019 22:01:01 GMT</pubDate>
            <atom:updated>2019-12-13T22:50:08.784Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5fpLLa0_obmkAwFsvy1LUw.jpeg" /><figcaption>Just before going to bed</figcaption></figure><p>Morning sun rays beam in, my eyes flicker adjusting to the light, my partner-in-life is still fast asleep and what I see first thing waking up — my dog staring at me while yawning and saying you really had to stretch now, I was having a good snore. Welcome to dog-a-life.</p><p>It&#39;s been 2 years since Argo got into our life. One fine morning two spontaneous souls leaped across the laptop screen of the adoption agency website and decided to go out there and see for themselves if they were in luck to find another crazy musketeer like themselves. The dog we originally selected turned out to be super hyper. She was in high demand though because of her good looks, lots of people to see if they could make her theirs. We occasionally saw her dragging poor future parents and kids across the hall. I and he looked at each other and raised our eyebrows. Next on the list was Mr. Argo. Black, shiny, handsome and muscular lab-pitbull pup with lots spunk but little ignorant following rules. Our guide warned us against taking him as first-time pet-owner. But something about him made us kids again. He is a complete nut with bouncy energy. Its been around two years since we got him and its the best decision we have made as a couple!</p><p>It is a responsibility to get a pet. But I won’t talk about it much, because, basically pets become a part of your family and you got to take care of them. He has taken care of us much more than we have. He has dragged toys and licked our faces when we have had fights, sat with us when we have been sick and happily accompanied us on road trips, and of course growled to keep away unwanted elements on walks(something much appreciated when you are living in a city like San Francisco and that it includes some annoying neighbors is an added zinger). I think he is happiest when he is running at full speed across the dog park, ears flying back, eyes all spazzed out, tackling other dogs. He looks like a complete goofball when he gets a good backscratch and gives a sheepish grin at the end of it. He howls hearing the sound of an ambulance, once right in the middle of the road while crossing, with the whole traffic audience as witness:P</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLZrKuPkEPTMv0dRrreRMA.jpeg" /><figcaption>That Grin after a good back rub</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cEGhAWoxgZOtFqVzUtDnFw.jpeg" /><figcaption>Just before you throw out a good ball for him</figcaption></figure><p>He has gotten better with following simple basic manners over the years, but pigeons and teasing squirrels still prove too tempting to resist for a good jump and chase. We have become super alert walkers with him since we need to beat him at his game. Of course, there are cons to having a pet and he has gotten us into some tricky situations at dog parks and streets and has gotten disciplined for it.</p><p>On a broader picture, its a 100x investment and effort deal for 10,000x return. It’s fun sharing home with another species that has a completely different take on everything you interact with and in general life. Pets are like limited time-bound bonus package, only ones who are younger than you when they walk into your life and become older to you in human years as time passes. It’s been a pleasure sharing home with this active crazy love ball and hope we get his company for many more.</p><p>Pssst…To all those people sitting on a fence whether or not to get a pet, did I change your mind?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fa9j8GM6LdQiJWLxyQTouw.jpeg" /></figure><p>You can follow Argo and his many moods on <a href="https://www.instagram.com/darthdogger/">https://www.instagram.com/darthdogger/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2356512a0cb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Human.call(lifeMethods)]]></title>
            <link>https://medium.com/@priyankashah_67842/human-call-lifemethods-ff21f01b448b?source=rss-1bc4203e9e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff21f01b448b</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[musings]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[scopes]]></category>
            <dc:creator><![CDATA[Priyanka Shah]]></dc:creator>
            <pubDate>Sat, 06 Jul 2019 16:34:46 GMT</pubDate>
            <atom:updated>2019-07-06T16:34:46.632Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>I was recently coding and my distracted self got thrown off why I couldn’t access value from a method I described on my object. I kept staring for a while, was describing the method right, the operation was ok, was returning the value. Then why couldn’t I harness its value?? Realized I wasn’t calling the method/function, that is why I couldn’t get the value out of it.</blockquote><blockquote>Something familiar struck me when I saw this, it’s similar in our life, right? We as humans are object instances of the parent constructor. We all have default methods given to us by the parent prototype like kindness/fight-or-flight response/survival/adaptation/empathy/jealousy/regret/procrastination. We as instances can add new methods to the existing list too depending upon our experiences as we navigate life. That makes us unique and gives us a personality. Bear with me if this getting a little technical, my nerd self can’t help it:)</blockquote><blockquote>So tell me if a person has a kind quality in him/her, is the person kind if he /she never exercises it? It’s similar to Theseus’s paradox. People in and around your life can only experience the value of quality in you only and only if you call it. Otherwise, it will be scoped and never be accessed by the outside world or for that matter your self too.</blockquote><blockquote>If you are a parent when your kids are finding their way to get to their dreams or having hard days. Maybe it&#39;s not enough to believe in your kids and not expressing it. Call the function. Let your instances(kids) access the value of it and feel the presence of it. Otherwise, you might have to live with the fact that your kids won’t even know that you have such a method on you since they can never access its value. Call the motivate function and motivate them. And last but not the least if in case you have the cheer method, call the hell out of that too. We live in an Earth, which is occupied by 6 billion other humans like us. Your kids are going to find the things they need from some other human, but you are going to weaken your link. So think about it.</blockquote><blockquote>If you are an employee, you all know, action is crucial. You just can’t be a star employee and sit there cooling your heels. You need to call the function that makes you best at a good frequency to let your company benefit from the values it brings to the table. Without value, your scoped skill is of absolutely no use.</blockquote><blockquote>So call your methods() both as a programmer and as a human:P</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff21f01b448b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey learning ReactJS: Day3]]></title>
            <link>https://medium.com/@priyankashah_67842/my-journey-learning-reactjs-day3-b00d0ef8ab89?source=rss-1bc4203e9e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b00d0ef8ab89</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Priyanka Shah]]></dc:creator>
            <pubDate>Wed, 09 Jan 2019 00:03:06 GMT</pubDate>
            <atom:updated>2019-01-09T00:03:06.374Z</atom:updated>
            <content:encoded><![CDATA[<h3>State change</h3><p>State is a special property defined within a component which allows you to pass content from inside the component rather than from outside like we are currently doing through functional component SuperHeroes.js.</p><p>Important properties about state:</p><ul><li>state is only available in class-based components. It is not available within functional components but you can pass it as a reference. However, state cannot be directly edited from props</li><li>state is used to manipulate the DOM and trigger a UI update</li><li>It should be used as succinctly as possible</li><li>state forms the crux of React along with props.</li></ul><p>According to new ES7 syntax, the variables inside class are simply stated without <em>var</em> or <em>let</em> in front of them. So, now we define state which has a value. In my case, it’s an object. It contains an array called SuperHeroes which is a collection of objects. Hence, rather than hardcoding the name and weapon inside JSX we make them available in this state property.</p><p>How do we access this state property?</p><p>Using ‘this’ keyword. Here ‘this’ refers to class App. Now, it&#39;s straightforward, accessing both name and weapon from within this state property as we can see in pic 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kTKQat5TTHvpOG4Bp3JrlQ.png" /><figcaption>pic 1: state property with SuperHeroes array within class App &amp; how it is accessed</figcaption></figure><h3>Handler/method to edit state:</h3><p>React library makes available a special method called <em>setState </em>which helps us edit <em>state</em> property defined above. Now, if we add a button in our JSX with an onClick property, we can pass a reference to a new method defined called: makeSuperheroHandler. That is a naming convention followed in React:</p><p>Eg: ..methodName..Handler</p><p><strong>Important to note:</strong> Please follow ES6 arrow convention for proper scope reference, comes in handy when you start editing the <em>state</em> property.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6PoSr6gyw3d5uEIcPimNrA.png" /><figcaption>pic 2: makeSuperheroHandler</figcaption></figure><p>Edit superHeroes array inside this method. Now, when you click the button, the key: value pairs within <em>state </em>should be updated with the newly created key: value pairs through <em>setState </em>method as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3GST0zFNDPJpEyZOEOoVQ.png" /><figcaption>pic 3: setState updates state of component on DOM</figcaption></figure><h3>Passing methods as props:</h3><p>React makes it possible to pass a method as props to outside components so that the method could be called from there which could trigger the DOM state change.We can do it by simply passing a reference to <em>this</em>.makeSuperheroHandler within click property inside JSX of one of the components-pic4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4m5n3q9hUJAyujxE8Zashg.png" /><figcaption>pic 4: App.js</figcaption></figure><p>click property could be accessed from SuperHeroes component as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cApLfHTZf9iRf3zQwTti4A.png" /><figcaption>pic 5:SuperHeroes.js</figcaption></figure><h3>Passing an argument to setState:</h3><p>Arguments can be passed to makeSuperheroHandler like newName and newWeapon. Data can be passed to these arguments by calling bind on {this.makeSuperheroHandler}. Inside bind, first you need a reference to arguments, it is done using ‘this’-which refers to list of arguments within method makeSuperhero.You can now follow it up by listing out the argument values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PQj3ywpwEAi_s_XRhoFOzg.png" /><figcaption>pic 6: Passing and referencing arguments to setState</figcaption></figure><p>Now when you click on the button you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jZSlVmfbPZPlC2ddf5zKkg.png" /></figure><p>When you click on the second component on which we have passed the method reference you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dl4sb6SGzZjDX47LPlSe6w.png" /></figure><p>To summarize, we learned to manipulate DOM from within component today using state property and setState method to edit state. Also, we learned how to call setstate method from an outside component which could trigger an indirect DOM-update. We also passed an argument to container method and referred it within our component calling bind on method reference.</p><p>Two-way binding and props.children manipulation in the next blog. Chao for today!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b00d0ef8ab89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey learning ReactJS: Day2]]></title>
            <link>https://medium.com/@priyankashah_67842/my-journey-learning-reactjs-day2-29e9fabf71ee?source=rss-1bc4203e9e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/29e9fabf71ee</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Priyanka Shah]]></dc:creator>
            <pubDate>Fri, 04 Jan 2019 21:47:29 GMT</pubDate>
            <atom:updated>2019-01-04T21:47:29.065Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bch4IjaC1dmw1kJd2RQ6Tw.png" /><figcaption>My component, SuperHeroes.js being rendered on react app</figcaption></figure><p>Welcome to day2: Today, I learned how to render content on my react app through a component file. React as a framework allows you to split up a page in mini-components(parts) as per requirement. For example navigation bar, header, footer, content. Now each of these parts are called components and will have their separate folder with .js and .css files.</p><p>How content flows between component and app.js?</p><p>The variable from inside these components will be exported. It will be imported/received by app.js file. Now they can be used as customized components within the JSX** inside app.js file starting with a capital letter.</p><p>Example:</p><blockquote><em>In app.js:</em></blockquote><blockquote><em>import</em> SuperHeroes <em>from</em> ‘./SuperHeroes/SuperHeroes.js’;</blockquote><blockquote>Inside app.js JSX:</blockquote><blockquote>&lt;SuperHeroes&gt;</blockquote><blockquote>…..Your Component content will be rendered here…..</blockquote><blockquote>&lt;/SuperHeroes&gt;</blockquote><p>This is how you render various components inside the app.js file.</p><p>What is JSX**?</p><p>It allows you to write HTML inside Javascript using syntactic sugar. One thing to keep in mind is that it is still JS. So it has some rules you need to follow. As a class is a reserved word within Javascript, you need to use className within JSX. One big advantage of JSX over HTML is the super-fast rendering of content. For further knowledge about JSX a good posts to refer:</p><p><a href="https://codeburst.io/understanding-jsx-9bfcdc7fe01b">Understanding JSX</a></p><p>Differences I found between angularJS and React JS till now:</p><ol><li>Angular: Design entire page at one go</li></ol><p>React: Split-up page based on components</p><p>2. Angular: MVC based model. Has Factories, Controllers, Services and View/Partials</p><p>React: View-based model. No factories, controllers, Services</p><p>What’s the advantage of components?</p><ul><li>Reusability</li><li>Customization</li></ul><p>The top picture represents my first component called Superheroes. Great advantage of components is that they can be reused and customized as per our convenience with minimum code like follows:</p><blockquote>&lt;SuperHeroes&gt;</blockquote><blockquote>…..Your Component content will be rendered here…..</blockquote><blockquote>&lt;/SuperHeroes&gt;</blockquote><blockquote>&lt;SuperHeroes&gt;</blockquote><blockquote>…..Your Component content will be rendered here…..</blockquote><blockquote>&lt;/SuperHeroes&gt;</blockquote><blockquote>&lt;SuperHeroes&gt;</blockquote><blockquote>…..Your Component content will be rendered here…..</blockquote><blockquote>&lt;/SuperHeroes&gt;</blockquote><p>Customization:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7dI6IcS3Fl_k5l4RNvU32A.png" /><figcaption>Customized SuperHeroes.js component</figcaption></figure><p>For customized rendering of content, we use javascript inside JSX with single curly braces inside app.js. Further,SuperHeroes.js file receives this content via something called: props.</p><p>Going one step further, if you now want to add something inside the customized components, for example, text, &lt;div&gt; or &lt;img&gt; you need to render it inside a {props.children} within the SuperHeroes.js file. For example, we are rendering a new image for each new Superhero here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kFIgiWhgnOjxutZOPGznHw.png" /><figcaption>SuperHeroes.js file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0v4Uro6fGi-cnrpEU8eYng.png" /><figcaption>App.js file</figcaption></figure><p>*() single braces are important for writing multi-line code inside functional components.</p><p>That’s all for today!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29e9fabf71ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey learning ReactJS: Day1]]></title>
            <link>https://medium.com/@priyankashah_67842/my-journey-learning-reactjs-day1-4a4595129aeb?source=rss-1bc4203e9e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a4595129aeb</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[reactive-programming]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Priyanka Shah]]></dc:creator>
            <pubDate>Thu, 03 Jan 2019 22:03:24 GMT</pubDate>
            <atom:updated>2019-01-03T22:06:21.974Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JV5lj8CiLFLF-XTLeWUAlA.jpeg" /><figcaption>Wind in my ears and curiosity on my face, onwards we go..</figcaption></figure><p>Hi folks! I am an Angular developer with 2+ years of experience plunging into the ReactJS world. Thought of documenting my journey as I paddle through.</p><p>First thing, get acquainted with next-generation JavaScript features. The knowledge is going to make your life way smoother as you begin building a new app in React(or that matter any JS-based framework).</p><p>Key features you need to start building React app are:</p><blockquote>Dependency Management Tool (npm/yarn) — to manage dependencies and packages like React and ReactDOM.</blockquote><blockquote>Bundler (Webpack) — To tie together various React components into a lean file structure. It reduces the server request being made to varies components we build in React. Webpack also helps to hook Babel and Presets so that it can be a part of the bundling and optimization process.</blockquote><blockquote>Compiler (Babel +Presets ) — to compile Next-gen JS and make it accessible in all browsers. Basically, it converts Next-gen JS features to workarounds for older browsers which are still not accepting the latest JS features. Now, the code is accepted and displayed for better UI-experience and there is sunshine on the screen for one and all!</blockquote><blockquote>Development Server — to run a React app in our local machine.</blockquote><p>Sounds complicated? Worry not, create-react-app to rescue! It’s a Github repository developed and maintained by Facebook. It helps to install all the elements required to set up a React app on your computer with one single command — npm install create-react-app my-app.</p><p>Check out the link for the Github repository here: <a href="https://github.com/facebook/create-react-app">https://github.com/facebook/create-react-app</a></p><p>Simply navigate to your my-app folder post this and type — npm start and voila! Your first React app is spun up and ready to develop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1PdH0_Z0ph17TNyyYBg8w.png" /></figure><p>It&#39;s time to explore various files created by the app. Make changes to JSX of app.js to see the content change on the local browser. The good thing about the app is it automatically takes up changes and displays output to the browser. More to follow on my next blog of this journey. Toodles!</p><p>P.S. The resource I am following to learn ReactJS is an awesome course on Udemy by Maximilian Schwarzmuller called React 16.6 — The complete guide</p><p><a href="https://www.udemy.com/react-the-complete-guide-incl-redux/learn/v4/overview">https://www.udemy.com/react-the-complete-guide-incl-redux/learn/v4/overview</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a4595129aeb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MiND: My private Beach]]></title>
            <link>https://medium.com/@priyankashah_67842/mind-my-private-beach-ecf297733249?source=rss-1bc4203e9e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecf297733249</guid>
            <category><![CDATA[surfing]]></category>
            <category><![CDATA[mind]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[happiness]]></category>
            <category><![CDATA[sapiens]]></category>
            <dc:creator><![CDATA[Priyanka Shah]]></dc:creator>
            <pubDate>Tue, 07 Aug 2018 20:12:11 GMT</pubDate>
            <atom:updated>2018-08-09T17:34:55.205Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3sod8IZ0pILU13BpTwJv8g.jpeg" /><figcaption>That’s your mind</figcaption></figure><p>I recently read <em>Sapiens</em> by Yuval Noah Harari, the renowned writer and professor from Jerusalem. One line in his book stuck a chord with me. It goes like this —</p><blockquote>“ All kinds of feelings go on arising and passing — joy, anger, boredom, lust — but once you stop craving particular feelings, you can just accept them for what they are. You live in the present moment instead of fantasising about what might have been. The resulting serenity is so profound that those who spend their lives in the frenzied pursuit of pleasant feelings can hardly imagine it. <em>It is like a man standing for decades on the seashore, embracing certain ‘good’ waves and trying to prevent them from disintegrating, while simultaneously pushing back ‘bad’ waves to prevent them from getting near him. Day in, day out, the man stands on the beach, driving himself crazy with this fruitless exercise. Eventually, he sits down on the sand and just allows the waves to come and go as they please. How peaceful!””</em></blockquote><p>It’s a powerful thought. The way I interpreted it is, each individual’s mind is like a private beach. We are all born with clean, soft white sand under our feet, vast azure blue ocean touching the beach and extending for miles on other side to meet the horizon. Each person owns her/his own beach. Its your own <strong>Mind Palace </strong>like Sherlock Holmes says. How you maintain it, whom you allow to dock on it, how you fence it off from stranger’s depends upon you.</p><p>If I am owner of this beach sometimes I can go surf on the waves (feelings), its my beach afterall:). I can occasionally catch a good wave, sometimes I am going get crashed against a bad one. Doesn’t mean I am going to stop surfing, just sitting on beach watching waves might be pretty boring for lot of us, but we need to accept the above trade off along wading into waters. Some good waves(opportunities) are going to break(missed opportunities) before they come to the shore where you are standing in the sand, you might have to venture further in order to catch them. Some bad waves are going to pull you in with them even if you try hard to resist. Whatever happens, both these waves are going to break eventually on the shore, so its short lived feeling of happiness or sadness. Ask a surfer if she can keep riding on a good wave forever? She needs to understand when to get off it and catch another one.</p><p>Does that mean to feel happy you will have to keep surfing to catch one good wave after another? You are going to get tired eventually since each wave is only going to give you so much wind (happiness) for a limited time. Sometimes you might need to chill on your private beach, sun bath and see good and bad waves come and go.</p><p>Now where do family and friends fit into this private beach scenerio?</p><p>I feel family members are like adjoining beaches, you share a boundary wall with them right from when you are born. Whether you accept or deny their presence , they are always going to be a short walk away. Parents are like veteran beach shack owner, they have seen so many colorful people(in all shapes and sizes) come and go, they could dole out a gem of advice to maintain your beach from time to time. But they have their own beach to tend, so don’t go expecting them to come clean and maintain your beach, unless a helpful adjacent beach owner generously offers to do so.</p><p>Friends are like ships whom we have given liberty to anchor on our beach. They can get down from their ship, roam about on your beach, get their baggage with them from time to time, accompany you and suggest you innovative, crazy and often effective ways of getting rid off your garbage(issues). Friends can make our beach pretty but they can also turn it into a dumpster, so we need to be really careful which ships we allow to anchor.</p><p>So who is your spouse or girlfriend/ boyfriend? I will let you figure that one out. You know them way than better I do.</p><p>Now if there is problem on the inland and it going to affect your beach, you can always recruit your fellow beach owners and people anchored on your beach to defend your property. Each one of us needs to realize how much power rests in this Mind Palace of ours. All our goals and ambitions start from here and its very important to tend to it. Each morning a individual wakes up she/he has this beach to take care off. If it’s maintained well enough, one day it’s going to take care of you.</p><p>Meditation, Yoga, dance, sport, passions are so popular with people because they all take you back to your Mind Palace. Once you get there you know which part needs repairing and maintenance and which corner you can decorate. In today’s chaotic world retrieving onto this beach is difficult, some of us go about much of our life even without realizing about it. Everyone owns this piece of land and no one can ever take it away from you. All we need to do is find our own way to get onto this private beach property of ours and own it.</p><p>P.S. Photo credit Viktor Elizarov</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecf297733249" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s make us Ageless: The New Mantra]]></title>
            <link>https://medium.com/@priyankashah_67842/let-s-make-us-ageless-the-new-mantra-898ec66cc099?source=rss-1bc4203e9e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/898ec66cc099</guid>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Priyanka Shah]]></dc:creator>
            <pubDate>Sat, 12 Dec 2015 00:57:48 GMT</pubDate>
            <atom:updated>2015-12-13T00:14:37.065Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Let’s make us Ageless: The New Mantra</blockquote><p>We are witnessing a boom of age related research in the current century. It almost looks possible. Billions of dollars are being poured into solving this age-old (pun intended) mystery, which makes us wonder about a world where age would just be a number in the literal sense. Just one Google click and you can find the facts on the finest brains of our times all over the world rattling their minds on projects like “Calico”, Google’s very own home bun, “Avatar” project to convert humans into cyborgs by 2045 by Russian magnet Dmitry Itskov, “Vicarious” by Facebook’s Mark Zukerburg, Telsa’s owner Elon Musk and actor Tech investor Ashton Kutcher. If that happens, we would need to look around for newer planets to reside for sure! People might take interesting routes to go about their life once they know they are ageless.</p><p>How money would play a role in this new world would be quite interesting. Will it change hands as often as today, where the people have to pass on their batons at least on their deathbed? Will the socio-economic divide increase or decrease? If people could learn forever and gain more knowledge the discoveries that will come into the world might be a something to look forward for. Once you live as long as 1000 years your threshold to take risk might increase and people may be more up for flying off on distant missions and in turn discover life beyond our very dear Mother Earth!</p><p>In Anatomical term ‘Aging’ is quite straightforward. As a Biochemist I can tell you how we get old. We all start as ONE cell. It is formed when one of our dad’s sperm fertilizes our mom’s egg. Then this ONE cell multiplies and we are formed and the package is delivered into the world. Now each time the cell multiplies, the telomeres, present on both the ends of the gene required for multiplication, get partly nipped. Initially, this doesn’t matter much since the copy material to make the new cell is huge in comparison to this tiny cut at the ends. However, as more and more copies are made, that is as we grow old, it starts to matter and people begin to grey and catch diseases. If this could be fixed, the youth fountain could keep gushing for a long time and guessing everyone’s age would be a problem even for the Chinese! I think we need some in-depth research on those folks if we plan to successfully complete this age maze.</p><p>In philosophical terms, death defines release of energy and soul. The energy of thousands of atoms goes back to create something new. If the new “Avatar” era really dawns upon us, various pundits laughing their way to the bank prying on people’s fear of death might be out of business and need to think of innovative ways to revive lost customer base. How much will you believe in God if you know you were immortal?</p><p>I will leave you all with a interesting Quora answer I read, which tells us even if we do crack this ageless riddle and make everyone immortal by the age of 35; the average age a person to survive will still be 635. Ask why? The insurance agent who accounted in and calculated the figure says we can assure immortality by avoiding diseases…sure. How about uncertainties like accidents, cuts, bruises, natural disasters? Those factors would also get weighed in and they are beyond our mortal remote control. So keep wondering …I personally think I could use a few extra years, so how about you?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=898ec66cc099" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creative oasis: We researcher’s need one!]]></title>
            <link>https://medium.com/@priyankashah_67842/creative-oasis-we-researcher-s-need-one-65e3dc94ab87?source=rss-1bc4203e9e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/65e3dc94ab87</guid>
            <category><![CDATA[workplace]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[change-management]]></category>
            <dc:creator><![CDATA[Priyanka Shah]]></dc:creator>
            <pubDate>Fri, 24 Jul 2015 18:44:53 GMT</pubDate>
            <atom:updated>2015-07-24T21:09:10.414Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Creative oasis: We researcher’s need one!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*9He-Q38CJKmF5o0oQfYbdg.jpeg" /></figure><p>I happened to visit my boyfriend’s workspace the other day. Like most Indian guys, he is into software industry. Imagine my surprise, a console of Tetris, a dedicated room for board games and comfy mini theatre invited me in. The workspace accommodating around 10–12 employees was painted tastefully in hues of red, orange and yellow. It set my creative juices flowing right away! I learnt that the workspace accommodated majority of the developers of the company. Software development being a creative field, often marked with complex bugs, which need to be unriddled, the workspace reflected stress busters where people could socialize, play videogames and be game for another round of debugging. Settlers of Catan, Game of thrones, full-fledged kitchen, you name it and they had it. It felt like a dream!</p><p><strong>Simple investments to motivate people keep them going and make work life more fun.</strong></p><p>It didn’t cost much, people were sane enough not to misuse the luxury but it was a giant step towards creativity for the benefit of their own company.</p><p>It made wonder about my field. I was a researcher (Biochemist) with major Government research Institution for almost 4 years. It is supposed to be world’s leading cutting edge hardcore research development facility. Creativity more and anything else helps us solve and save (with budget cuts) most of our projects. Imagine our workspace: 4 chairs and desk, working benches for each of us and normal lab equipment dominated the other space. The walls were painted in beige all over. It was a happy space but I wondered why we with good funding didn’t have sleeping stations (so needed when your legs are killing you with 6 hour long experiments), game zones to chill with your colleagues and think over your research from another angle and full fledged kitchen (to wipe up a yummy meal). The amount of dollar which my building invested on all this equaled to the number Arya Bhatta invented many decades ago: zero, nil, zilch. Why?</p><p><strong>We researchers need such work environments where we can relax and think over our next steps.</strong></p><p>I wonder when this corporate cultural of having fun on work is going to hit our field. Don’t get me wrong, I know lots of events take place in summer which motivate people to socialize and have fun. But I am talking about a systematic change in our day-to day life as researchers. Won’t you be up for a game of settler’s of Catan with colleagues over lunch?</p><p><strong>Every year, lots of youngsters join research and after 3–4 years in the field, a considerable number want to change their fields or get into management because the environment isn’t motivating enough to keep them there.</strong></p><p>I am at a similar stage. Preparing for my GMAT because my 4 years of research even with a major publication burnt me out due to lackluster environment and no-fun monotonous work. Earliar, I thought it was research I was running from, I was bored of the field all to together. But I still thoroughly enjoy reading medical books like “Cancer-Emperor of all Maladies”. I love research but I can’t stand going back to the dull atmosphere. Maybe after MBA , I might dedicate my time fix this broken link which takes people like me away from research. But you, working in research right now, can get a change in your working style &amp;space.</p><p><strong>IT has caught on to the new trend…. when will we?</strong></p><p>I want hear more views on this. Do leave a comment and let the discussion begin.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65e3dc94ab87" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>