<?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 Abhay Srivastav on Medium]]></title>
        <description><![CDATA[Stories by Abhay Srivastav on Medium]]></description>
        <link>https://medium.com/@abhaysrivastav?source=rss-8935e888ad40------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*s9W4MDqORglVW7IQHbF80w@2x.jpeg</url>
            <title>Stories by Abhay Srivastav on Medium</title>
            <link>https://medium.com/@abhaysrivastav?source=rss-8935e888ad40------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 14:15:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhaysrivastav/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[Life story of Akshay]]></title>
            <link>https://abhaysrivastav.medium.com/life-story-of-akshay-a502dfaa3876?source=rss-8935e888ad40------2</link>
            <guid isPermaLink="false">https://medium.com/p/a502dfaa3876</guid>
            <dc:creator><![CDATA[Abhay Srivastav]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 03:21:24 GMT</pubDate>
            <atom:updated>2026-08-04T12:33:12.210Z</atom:updated>
            <content:encoded><![CDATA[<h3>Akshay’s story</h3><p>Once there was a boy named Akshay in a town called Prayagraj. He had quite a few good friends. But he used to be often bullied. He liked playing cricket, chess, singing, art and participating in debate competitions. He always used to win first or the second prize in any of the competition. Be it be an art competition, essay writing or debates.</p><p>Akshay had a lovely family. A loving mother and a teacher as a father. Life was good. Mother used to become very happy whenever the Akshay used to win any kind of small prize. Be it a small thermos bottle or a medal.<br>Once he came back from a debate competition and pretended that he did not win anything as he wanted to give his mother a surprise. When he finally revealed his small thermos bottle, mother’s eyes were filled with tears of joy and she hugged him.</p><p>Akshay liked playing cricket with his friends. First time when started playing in a a ground in his locality, he played very well. But for the next matches onwards he couldn’t score. Maybe it was beginner’s luck. His friend taunted him of not being able to play well again. There was this one friend Vaibhav, who was also very good at cricket and was an all rounder. Akshay liked bowling. But as soon as he started bowling, Vaibhav used to say that he can bat quite well Akshay’s bowling. Despite of trying very hard Akshay used to take few wickets.</p><p>Time passed by and all the friends entered into class 10th and joined an engineering coaching center in their town. Akshay was quite good at Physics. Vaibhav was also quite good at Mathematics/Chemistry/Physics. Akshay’s interest were in Probability, Theory of relativity, Astronomy. And there was another friend Kishan who was quite good at Mathematics. Engineering entrance exams’ months were coming near by. When there were 5 months left, Akshay’s mother got very sick and had to be hospitalized.</p><p>Akashay and his sisters were living in materbal uncle’s home during his mother’s death. They were watching Harry Potter and Goblet of FIre or some version of the movie. Akshay’s maternal uncle and informed that his mother is no more. He gave the reasoning that some junior doctor was researching on her body. Her whole family was probably conspiring against his family. Everyone was trying to make us fight.</p><p>When Akshay joined college, for first few months thihgs were pretty good.Akshay was doing quite good academically. He used to ask physics questions during lecture. And someone in the cafeteria said to him that “This is not school. This is a a college, You can’t ask questions like that”. But the professors were very happy with his questions. After few months Akshay again went into depression. He wasn’t able to understand what to do with life. Is this all to it. Just go to class and come back. Then he saw what other friends were doing, they were playing games, watching movies.</p><p>Computer attracted Akshay. He asked his father to buy a laptop. His father somehow arranged 40k INR Dell laptop. He started learning coding. Started with basic html, css. Learned Flash, Actionscript. He started builiding flash games. As his final semester project he created a game of Nagaraj, To give the context here Nagraj is an Indian Superhero who has power of controlling snakes,. It was a quite popular comics in Indian demography. When Akshay presented his game , everyone in the batch clapped. Akshay was not expecting such response from his colleagues. His professor Dhanush felt very proud.</p><p>But somewhere in Akshay’s mind his mother’s death was bothering him. He met his soul mate in Delhi. Then coincidences started happening. as long as Akshay was with Ambuja, coincidences kept happening. Initially Ambuja didn’t believe Akshay, when he called out on coincidences, but slowly she also started seeing patterns. For example When they were travelling to Mangalore, Abhay mentioned NIT Raipur, then immediately NIT Raipur appeared.</p><p>Akshay got interested in meditation. He started with 5 minutes initially, then started increasing time. Slowly he reached to a 30 min meditative state.</p><p>About Akshay’s professional career, he got an internship opportunity in Software electronics company with the help of a friend named Arnab. Akshay also met Dheeraj Sir in the company. Sir was a genius. He used to explore the limits of web development language on Smart TVs. He was way ahead in his IQ of his colleagues.</p><p>Back in college, Akshay also started talking to a girl from his school through orkut. The girl was Akshay’s schoolmate from standard 8th to 10th. But they never got to talk during school. When Akshay got into the college, he saw her photo coicincidentally on orkut. Then he started talking to her. It was kind of love at first sight for both of them.</p><p>Back to Akshay’s professional career. After the internship, Akshay got the job of Software Developer in the same company. As soon as Akshay joined the company, he wanted to meet Vertika. Becuase they had never talked face to face earlier. They met in a nearby town’s shopping mall. But Akshay’s ego didn\t see the Vertika’s beauty. He was quite immature at that point of his life. Due to his immatureness Akshay got confused that should he pursue his love or no.</p><p>Because of immaturish behaviour Akshay also got attracted to other girls which were not meant for him. When Akshay left the first company in search of a better pay, he became very lonely. He had quite a few friends. He got frustated with the daily routine. Going to office, coming back again, then repeating the same thing again and again. He had very few friends,. Those who were his friends used to live far in the city. When Akshay used to travel to meet them, They Would often point out his clothes. Because Akshay didn’t used to care much about is clothes.<br>As time passed by Akshay became more lonely. H etried everything. Tried reading books in park. Tried eating burgers from local burger point. But nothing was making Akshay happy.</p><p>He was thinking about his loneliness and the pointlessness of the life he was living. He realized that since he had tried every thing, he was missing love in his life. He decided to go to Jaipur to meet Vertika.</p><p>When they met, he came to his senses that Vertika looked quite beautiful. And from that day Coincidences started happening. Akshay felt like there are coincidences happening as soon as he met Vertika. But Vertika gave logical explanations for each of the coincidences. For example they were sitting in a Pizzacafe, Elderly women around him started noticing them. Akshay said to Vertika about this, but Vertika gave the logical explanation that nothing such thing is happening. It is all in your head. But somehere Akshay had this doubt that something started happeing as soon as he met Vertika. Another coincidence, When Akshay And Vertika met in Jaipur, Akshay was watching some cartoon on TV. The boy character in the cartoon was crying and feeling sad for not having anything in his life. So his robot friend introduced him to Shinzo. And he felt happy there after. This was also noticed by Vertika.</p><p>That cartoon’s name was Doraemon. He was a robot which could produce anything from its pocket. It was a cat. Shizuka was Nobita’s girlfriend. Doraemon had a anywhere door through which anyone could travel to any place possible in the world. Once Nobita was sad with his life, then Doraemon made him meet Shizuka, and he became happy. Such was Akshay’s life. Before meeting Vertika, he was unhappy. But once he met her, he became happy momentarily. Such is life, once we meet any potential mate (female), we become happy momentarily. But when she leaves, we become dead or shav in Hindi. Aghor is also one way to get out of this mayajaal (matrix). But that path is very dirty. A lot of dirty activities has to be done on that path. So I don’t want to become an aghori. I want to live in this world with its worldly pleasures like food, fresh air, water and a mate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a502dfaa3876" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meditation. Why bother?]]></title>
            <link>https://abhaysrivastav.medium.com/meditation-why-bother-a0bf5129ac41?source=rss-8935e888ad40------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0bf5129ac41</guid>
            <category><![CDATA[self]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[spirituality]]></category>
            <category><![CDATA[meditation]]></category>
            <category><![CDATA[refresh-the-soul]]></category>
            <dc:creator><![CDATA[Abhay Srivastav]]></dc:creator>
            <pubDate>Sat, 03 Sep 2022 18:31:11 GMT</pubDate>
            <atom:updated>2022-09-07T13:17:00.301Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Quiet the mind and the soul will speak" src="https://cdn-images-1.medium.com/max/1024/1*UeIc5S0DhxxhqqMHPJ2jZQ.jpeg" /><figcaption>Image Source — <a href="https://quotefancy.com/quote/39449/Ma-Jaya-Sati-Bhagavati-Quiet-the-mind-and-the-soul-will-speak">https://quotefancy.com/quote/39449/Ma-Jaya-Sati-Bhagavati-Quiet-the-mind-and-the-soul-will-speak</a></figcaption></figure><p>Everyone in the world is seeking something. Most of us are seeking happiness. It is the most important thing that keeps us going. All our goals and desires are an attempt to achieve happiness. But is happiness something that lies in the future? Or it can be achieved right now. We humans have come a long way beyond survival. Most of us don’t have to struggle for food, clothing, or shelter anymore. Now we all are seeking something beyond basic survival. Animals don’t have that luxury yet. Call it fate, they have to fight for basic survival. But we humans are not struggling anymore for basic survival. But are we happy? And what about yogis, who have left the materialistic world and are seeking god/enlightenment/knowledge in the wilderness? Are they happy? Just like the rest of us, they are also chasing something that means are not satisfied with their current life. It is through this wishful thinking to achieve all our goals, we’ll be happy and satisfied. But will we ever be? Are the richest people the happiest ones? Look around. No one is truly happy, not even the richest person. Everyone is seeking something. So how to be permanently happy?</p><h3>Will money make us happy?</h3><p>Think about it, in your work career, compare your happiness when you were younger and didn’t have much money, probably in college, and now when you have money to lead a good life. Are you happier now or earlier? Most of us will likely say that they were happier when they were young, carefree, and didn’t have to worry about money or relationships. Happiness isn’t directly related to happiness? It is a means to an end. But money makes life comfortable. You won’t be happy if you are sleeping hungry. So money might solve most of our problems, but it won’t truly make us happy. The happiness that comes with money is momentary. To be permanently happy, you need something else. That something is the awareness of the present moment. Let’s focus on this unimportant present moment. We all consider the present moment as a way to reach our goals. Our whole day consists of a series of this present moment. But most of the time, we aren’t aware of it. What if we become aware of this present moment? Will that change how you generally feel in life? Well, it does. Focusing on the present moment is meditation. It is not something that is only practiced by monks.</p><h3>The practice</h3><p>How do you meditate? Well, you start with sitting down and closing your eyes. Then you start focusing on one object. That object can be your breath, a mantra, or repeating a word in your mind. As long as you hold your focus throughout on this object, you are meditating. Being in a quiet environment will improve meditation. Quieter is the surrounding, better will be the meditation. How long should we meditate? Start small, like five minutes, put on a timer, and gradually increase the time. The most important thing in meditation is being consistent. Do it daily, no matter what. The best time to meditate is early morning or late night when the world around you is not very active. But actually, you can meditate anytime, anywhere. You might face thoughts popping up when you start meditating. Thoughts will be like, something you have to do, your To-do list. You might feel like getting up and completing the important task, but here you have to persevere. Don’t get up until your time runs out. You might feel bored during meditation. That is fine. It is your mind playing tricks on you. If you get stuck in your thoughts, just bring back your attention to your breath/focus object. Slowly the frequency of thoughts will reduce, and you will reach a state of no thoughts. When you reach that state, you will experience something you might never have experienced in your entire life.</p><p>How will you know that meditation is working? There is no wrong way or right way to meditate. You have to just do it. The benefits of meditation are that you will feel calmer, grounded, less agitated, more passionate, and more aware of your thoughts. You will deal with difficult situations calmly. You will start noticing small things that you might have ignored normally. Like a bee on a flower or the rustling on the leaves, the color of the flowers. You will be more attracted to nature and will start appreciating its beauty.</p><p>What is the end goal of meditation? Well, there is no end goal in meditation, it is just an exercise for the mind. Your mind is your best friend if you tame it or your worst enemy if you let it loose. People take great care of their bodies, but most of us don’t do anything about our minds.</p><p>A cool thing that you might experience with meditation is that if you do it right before you sleep, your dreams will be vivid, and you will get insights from it. Usually, dreams which seem random will start making sense.</p><p>Meditation need not be limited to just those fifteen or thirty minutes. You should integrate meditation into your entire day. Whenever your thoughts start racing, or you encounter a difficult situation, you focus on your breath and be aware of the present moment. You will find a way to deal with the situation. Your happiness and satisfaction will start depending upon the degree to which you are aware of the present moment. This one practice will change your life. I know it has changed mine.</p><p>If you still have questions about meditation, you can reach out to me at <a href="http://abhaysrivastav.net/">http://abhaysrivastav.net</a> or any other meditator. I am in no way an expert on meditation, I still have a long way to go. I still get angry and frustrated with situations but can deal with them calmly and peacefully.</p><p>I truly believe that if everyone starts meditating, this world will become a better place to live in.</p><p>Here’s one video that I found very helpful on the topic —</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FukTaodQfYRQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DukTaodQfYRQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FukTaodQfYRQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/44b96a848de19511a97ccc53b12757ff/href">https://medium.com/media/44b96a848de19511a97ccc53b12757ff/href</a></iframe><p>There’s also this good book on meditation — <a href="http://www.ahandfulofleaves.org/documents/Mindfulness%20in%20Plain%20English_Gunaratana.pdf">http://www.ahandfulofleaves.org/documents/Mindfulness%20in%20Plain%20English_Gunaratana.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0bf5129ac41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dare to take the Red pill ?]]></title>
            <link>https://medium.com/spiritual-secrets/dare-to-take-the-red-pill-2054ab21ec49?source=rss-8935e888ad40------2</link>
            <guid isPermaLink="false">https://medium.com/p/2054ab21ec49</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[spiritual]]></category>
            <category><![CDATA[meditation]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Abhay Srivastav]]></dc:creator>
            <pubDate>Sun, 20 Sep 2020 09:50:37 GMT</pubDate>
            <atom:updated>2020-09-22T00:59:15.862Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>Life, Matrix and God</h3><figure><img alt="Meditation is one of the way to see beyond the mind" src="https://cdn-images-1.medium.com/max/800/1*97rk-Oc2ZzoucEH1yBetoQ.jpeg" /><figcaption>Meditation is one of the way to see beyond the illusion.</figcaption></figure><p>Have you ever felt that there are never-ending problems in our life? Almost like the world is against you. Something is stopping us to realise the true happiness or the real truth. We are always planning for the next moment but never really reach there. Everyone around you is trying to tame you, trying to slow you down, rejecting your ideas, keeping you waiting, trying to waste your time. Then you are not alone. Many of us feel the same. There is some secret hidden in the world. The world is not as it seems. Someone doesn’t want us to realize the real truth. They want us to get stuck in the web of <a href="https://en.wikipedia.org/wiki/Maya_(religion)">Maya.</a></p><p>Let’s talk about Maya. In Hindi, it is <strong>Maya</strong> or <strong>The Matrix</strong>. If you have seen the movie Matrix, you either think that it is just another action movie, or you have connected with the character of Neo at some deeper level. How he was looking for the truth. Because he knew there was something wrong with the world. And then when he finally realized his true identity and defeated all the <a href="https://en.wikipedia.org/wiki/Agent_(The_Matrix)">Agents.</a> And this is all an illusion, he finally wakes up.</p><p>Aren’t we all Neo, waiting to wake up?</p><p>My latest belief or theory about Maya is inspired from this <a href="https://www.youtube.com/watch?v=vjsgJ5-i6Tk">video</a>. The video is in Hindi. The gist of the video is that the world is an illusion and we have forgotten our true purpose here. At the end of our life, we all have to go back to the source or God (if you may say).</p><p>Now why would God or someone create this illusion of the world to trap us here. I think that God has sent us here to make us learn something. We will keep repeating this cycle of birth and death, till we have realised the real truth. Or as they say in Hinduism, that it is our <strong>Karmas</strong> from our previous life that lead us to the next birth. And till the time all our Karma are not resolved, we will keep coming to this world to learn and repay all our <strong>Karmic debts.</strong></p><p>The same thing is told, in some movies. You have to see some of the movies and shows in order to understand the context here. Here I’m listing some of them. I would highly recommend to watch them.</p><p><a href="https://en.wikipedia.org/wiki/The_Truman_Show">The Truman Show</a></p><p><a href="https://en.wikipedia.org/wiki/The_Matrix">The Matrix</a></p><p><a href="https://en.wikipedia.org/wiki/Hang_the_DJ">Hang the DJ</a></p><p><a href="https://en.wikipedia.org/wiki/Eternal_Sunshine_of_the_Spotless_Mind">Eternal Sunshine of the Spotless Mind</a></p><p>P.S. I’m on this parallel spiritual path. I know i haven’t reached the final destination yet. But i know it exists and if are on a similar journey. Let’s connect.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2054ab21ec49" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spiritual-secrets/dare-to-take-the-red-pill-2054ab21ec49">Dare to take the Red pill ?</a> was originally published in <a href="https://medium.com/spiritual-secrets">Spiritual Secrets</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use multiple git accounts]]></title>
            <link>https://abhaysrivastav.medium.com/how-to-use-multiple-git-accounts-378ead121235?source=rss-8935e888ad40------2</link>
            <guid isPermaLink="false">https://medium.com/p/378ead121235</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[efficiency]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Abhay Srivastav]]></dc:creator>
            <pubDate>Fri, 11 Sep 2020 00:35:07 GMT</pubDate>
            <atom:updated>2020-09-20T10:27:44.343Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to configure multiple Git accounts in your computer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqbCWnKGCuSsdHqr0mjWuw.jpeg" /></figure><p>If you are a developer, then you must be using git. And there are chances that you might have faced the problem of using different git accounts for each git repository. How do we switch users each time we clone a new repository.</p><p>One of the solutions is to change the repository username config using the below command</p><pre>git config user.name &quot;youremail@email.com&quot;</pre><p>But you have to do this for every new repository. Fortunately, there’s a better solution of setting multiple accounts in ssh config. Below are the steps to do that.</p><p>First of all, you need to generate ssh keys for each of the emails.</p><p><a href="https://docs.gitlab.com/ee/gitlab-basics/create-your-ssh-keys.html">How to generate and link public ssh keys to your git accounts</a></p><p>Next, edit your ssh config file</p><p>For Linux or Mac, run the below command in terminal</p><pre>sudo vim ~/.ssh/config</pre><p>For Windows, ssh config file is found generally at below location</p><pre>C:\Users\username\.ssh\config</pre><p>Open this folder and edit config file in any editor (Notepad/Sublime)</p><p>Lets say you have two account on github, one is your personal account and the other is work.</p><p>And from the first step, you have generated two ssh keys <strong>your-ssh-public-id</strong> using personal email and <strong>your-work-ssh-public-id</strong> using work email.</p><p>Paste below configuration in config file</p><pre>Host github.com<br>  HostName github.com<br>  User git<br>  IdentityFile ~/.ssh/your-ssh-public-id</pre><pre>Host github.com-work<br>  HostName github.com<br>  User git<br>  IdentityFile ~/.ssh/your-work-ssh-public-id</pre><p>Now whenever you clone any repository, edit the clone url accordingly.<br>For example, if you are cloning a repository from github, then change</p><pre>git clone git@github.com:Abhay07/repository-name.git</pre><p>to</p><pre>git clone git@github.com-work:Abhay07/repository-name.git</pre><p>If you don’t change the clone url, your <strong>your-ssh-public-id</strong> will be used which uses personal email id.</p><p>You can also update the remote url <strong>after cloning the repo</strong>, with below command</p><pre>git remote origin set-url git@github.com-work:Abhay07/repository-name.git</pre><p>That’s it. Let me know if it helped or you have any suggestions.</p><p>P.S. — I have created some tools. Do check it out</p><ul><li>Youtube video downloader or cutting tool : <a href="https://youtubecut.com/">youtubecut.com</a></li><li>Check your IP address / Locate an IP : <a href="https://myips.in/">myips.in</a></li></ul><p>Here is another article i have written: <a href="https://medium.com/@abhaysrivastav/dare-to-take-the-red-pill-2054ab21ec49">https://medium.com/@abhaysrivastav/dare-to-take-the-red-pill-2054ab21ec49</a></p><p>Tip: <strong>Share your reusable components </strong>between projects using <a href="https://bit.dev/"><strong>Bit</strong></a> (<a href="https://github.com/teambit/bit">Github</a>). Bit makes it simple to share, document, and organize independent components from any project<strong>.</strong></p><p>Use it to maximize code reuse, collaborate on independent components, and build apps that scale.</p><p><a href="https://bit.dev/"><strong>Bit</strong></a> supports Node, TypeScript, React, Vue, Angular, and more.</p><figure><a href="https://bit.dev/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q28muiT0ZiR49KG6.gif" /></a><figcaption>Example: exploring reusable React components shared on <a href="https://bit.dev/">Bit.dev</a></figcaption></figure><p><a href="https://bit.dev/">Bit. Composable software.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=378ead121235" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Benchmarking Angular, React and Vue for small web applications]]></title>
            <link>https://medium.com/bitsrc/benchmarking-angular-react-and-vue-for-small-web-applications-e3cbd62d6565?source=rss-8935e888ad40------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3cbd62d6565</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Abhay Srivastav]]></dc:creator>
            <pubDate>Tue, 08 Jan 2019 15:02:15 GMT</pubDate>
            <atom:updated>2020-09-20T10:29:56.534Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*8aPI6GzDbV2xc-TcOOJvIg.jpeg" /></figure><h3>Introduction</h3><p>If you are a front end developer, at some point in your career you might have chosen a javascript framework, for your project. And most probably the options would have been below three</p><ul><li>Angular</li><li>React</li><li>Vue</li></ul><p>There are lot of articles and expert talks on this topic, and everyone has their verdict. But in this article i’ll take more practical approach to compare these 3 frameworks by creating a simple application using each of them.</p><ul><li><strong>Tip</strong>: Combine your component-based framework with tools like <a href="https://github.com/teambit/bit">Bit</a> to turn your components into building blocks you can easily share, use and sync across your projects and apps- to build faster. Give it a try.</li></ul><p><a href="https://bit.dev/">Bit. Composable software.</a></p><h3>Sample application (Movies of 2018)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*4AC4Fpa9iCyOT14Ok9lZ2A.gif" /><figcaption>“Movies of 2018&quot; Application <a href="https://abhay07.github.io/movieAppVue/">https://abhay07.github.io/movieAppVue/</a></figcaption></figure><p><strong>Project description </strong>Application makes an api call, to get the movies having the word “Love” in their title, in the year 2018 and displays them in tabular format. You can sort the movies according to year and name. Below are the links to the application hosted on Github.</p><p><strong>Angular<br></strong><em>Link:</em> <a href="https://abhay07.github.io/movieAppAngular/">https://abhay07.github.io/movieAppAngular/</a></p><p><strong>React</strong><br><em>Link:</em> <a href="https://abhay07.github.io/movieAppReact/">https://abhay07.github.io/movieAppReact/</a></p><p><strong>Vue</strong><br><em>Link:</em> <a href="https://abhay07.github.io/movieAppVue/">https://abhay07.github.io/movieAppVue/</a></p><h3>Comparison criteria</h3><p>We’ll compare these application on below criteria</p><ul><li><strong>JS bundle size: </strong>Javacript bundle size is the only resource that differs for the application in each framework. Images, CSS, and other resources are same.</li><li><strong>First Contentful paint:</strong> First Contentful Paint (FCP) measures the time from navigation to the time when the browser renders the first bit of content from the DOM.<br>More info on FCP: <a href="https://developers.google.com/web/tools/lighthouse/audits/first-contentful-paint">https://developers.google.com/web/tools/lighthouse/audits/first-contentful-paint</a></li></ul><p>Let’s get on to the comparison.</p><h4>JS bundle size</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/22d6fd41eea39be59ce791cb505dba6f/href">https://medium.com/media/22d6fd41eea39be59ce791cb505dba6f/href</a></iframe><p>Angular’s js bundle size is almost double of React and Vue. <br>React and Vue’s bundle sizes are very close but with Vue having the most light weighted bundle, Vue is the winner.</p><h3><strong>First Contentful Paint (</strong>using Lighthouse<strong>)</strong></h3><p>In layman terms, it is the time taken to actually see something on the screen. Below are the comparison. These are taken using lighthouse audit.</p><p><strong>CPU and Network throttling settings</strong>: Fast 3G, 4x CPU slowdown</p><p><strong>Angular</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*rjtAwFy-CrpZ1kthDY0nxQ.png" /><figcaption>Angular Lighthouse audit</figcaption></figure><p><strong>React</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*bdoL9P3NdBC-rwGdYtWRHg.png" /><figcaption>React Lighthouse audit</figcaption></figure><p><strong>Vue</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*7psooy2mZ7MX_diqNX6Z6A.png" /><figcaption>Vue lighthouse audit</figcaption></figure><p><strong>Vue</strong> and <strong>React</strong> performed much better with <strong>1.0 s</strong> as First Contentful Paint time than <strong>Angular</strong>’s <strong>1.5 s</strong></p><p>More about Lighthouse <a href="https://developers.google.com/web/tools/lighthouse/#devtools">https://developers.google.com/web/tools/lighthouse/#devtools</a></p><h3>Load time performance (using Chrome dev tools)</h3><p>It is the time taken for the first render, without the api wait time.</p><p><strong>CPU and Network throttling settings</strong>: Fast 3G, 4x CPU slowdown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xdmqVbB74zi0xXy0Z8dnWw.png" /><figcaption>Angular recording summary</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mf1jVxHlZWeJgp4dWtSwaw.png" /><figcaption>React recording summary</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4TtZ7pF0odOsTnOzWwz8Gg.png" /><figcaption>Vue recording summary</figcaption></figure><p>Excluding idle time from the chart, following is the time taken for first render</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/02c3a9fc6668b66639ccb9841946e74d/href">https://medium.com/media/02c3a9fc6668b66639ccb9841946e74d/href</a></iframe><p>React and Vue are very close, but Angular took almost double time for first paint. Here React is the marginally winning over Vue by 10 ms.</p><p>More about load performance analysing with Chrome dev tools: <a href="https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/reference#record-load">https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/reference#record-load</a></p><h3>Learning curve</h3><p>Adding one more criteria for comparison. This is solely my opinion as a developer. Vue is easiest to learn, React takes a little time to learn, and Angular has the steepest learning curve. If I had to order in terms of <strong>ease of learning</strong>. They’ll be as below.</p><p>Vue &gt; React &gt; Angular</p><h3>Conclusion</h3><p>Taking each metric into account, i choose Vue as the winner having lightest bundle size, faster “first contentful paint time” and easiest to learn. <br>If you want to make your own analysis, below are the source codes and links to the application.</p><p><strong>Angular<br></strong><em>Code:</em> <a href="https://github.com/Abhay07/movieAppAngular">https://github.com/Abhay07/movieAppAngular</a><br><em>Website:</em> <a href="https://abhay07.github.io/movieAppAngular/">https://abhay07.github.io/movieAppAngular/</a></p><p><strong>React</strong><br><em>Code:</em> <a href="https://github.com/Abhay07/movieAppReact">https://github.com/Abhay07/movieAppReact</a><br><em>Website:</em> <a href="https://abhay07.github.io/movieAppReact/">https://abhay07.github.io/movieAppReact/</a></p><p><strong>Vue</strong><br><em>Code:</em> <a href="https://github.com/Abhay07/movieAppVue">https://github.com/Abhay07/movieAppVue</a><br><em>Website:</em> <a href="https://abhay07.github.io/movieAppVue/">https://abhay07.github.io/movieAppVue/</a></p><p>Please feel free to comment below and ask me anything! I’d be happy to talk. Thanks for reading :) 👏</p><p>P.S. — I have created some tools. Do check it out</p><ul><li>Youtube video downloader or cutting tool : <a href="https://youtubecut.com/">youtubecut.com</a></li><li>Check your IP address / Locate an IP : <a href="https://myips.in/">myips.in</a></li></ul><p>Here is another article i have written: <a href="https://medium.com/@abhaysrivastav/dare-to-take-the-red-pill-2054ab21ec49">https://medium.com/@abhaysrivastav/dare-to-take-the-red-pill-2054ab21ec49</a></p><h3>Learn more</h3><ul><li><a href="https://blog.bitsrc.io/5-tools-for-faster-development-in-react-676f134050f2">5 Tools for Faster Development in React</a></li><li><a href="https://blog.bitsrc.io/5-tools-for-faster-vue-js-app-development-ad7eda1ee6a8">5 Tools for Faster Vue.js App Development</a></li><li><a href="https://blog.bitsrc.io/11-react-component-libraries-you-should-know-178eb1dd6aa4">11 React UI Component Libraries you Should Know in 2019</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3cbd62d6565" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bitsrc/benchmarking-angular-react-and-vue-for-small-web-applications-e3cbd62d6565">Benchmarking Angular, React and Vue for small web applications</a> was originally published in <a href="https://medium.com/bitsrc">Bits and Pieces</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript “Light Bulb” Moments: Tricky Comparison]]></title>
            <link>https://medium.com/bitsrc/rookie-light-bulb-moments-tricky-comparison-in-javascript-83d02ab6648f?source=rss-8935e888ad40------2</link>
            <guid isPermaLink="false">https://medium.com/p/83d02ab6648f</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Abhay Srivastav]]></dc:creator>
            <pubDate>Thu, 06 Dec 2018 15:49:21 GMT</pubDate>
            <atom:updated>2020-07-05T15:22:23.650Z</atom:updated>
            <content:encoded><![CDATA[<h4>How can “55” be less than “6” in Javascript?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*2wQk_cMxzlUJ48eZRGnKYw.jpeg" /><figcaption>I promise….</figcaption></figure><h4>Introduction</h4><p>I was recently debugging a strange issue in javascript which was somehow always happening for 2 digits numbers.</p><p>This short post is the outcome of the learning process I went through in that debugging.</p><p>I’ll start with a bit of code.</p><pre>&quot;7&quot; &gt; &quot;6&quot; - true<br>&quot;55&quot; &gt; &quot;6&quot; - false</pre><p>So the first one makes sense.</p><p>But, how come “55” is lesser than “6” in Javascript? Strange, right?</p><p>I had the exact same reaction the first time this happened to me.</p><p>Then, I decided to dig deeper and understand the reason for this behavior, diving into how comparison really works in JavaScript.</p><h3><strong>How does comparison work in JavaScript?</strong></h3><p>When you compare a <strong>string</strong> and a <strong>number</strong>, both will be converted to numbers and then compared.</p><pre>&quot;55&quot; &gt; 6 - true</pre><p>The above code makes sense, since both are converted to numbers, then compared.</p><p>When you compare a <strong>string</strong> to a <strong>string</strong>, then the comparison is done <strong>character by character, </strong>meaning first character is compared to the first character of second character and so on.</p><pre>&quot;a&quot; &gt; &quot;b&quot; - false<br>&quot;d&quot; &gt; &quot;c&quot; - true</pre><p>Since strings are compared in lexicological order, the above expressions make sense.</p><h4>Back to “55 &gt; “6”</h4><p>Now back to our actual problem statement.</p><p>We are comparing a <strong>string</strong> to another <strong>string,</strong> and string comparison is done <strong>character by character </strong>which happens as below.</p><pre>&quot;55&quot; &gt; &quot;6&quot;</pre><pre>First character of &quot;55&quot; is lesser than first character of &quot;6&quot;, hence false</pre><pre>&quot;55&quot; &gt; &quot;51&quot;<br>First character of &quot;55&quot; and &quot;51&quot; are equal, then we move on to the second character, i.e. &quot;5&quot; and &quot;1&quot;, since &quot;5&quot; &gt; &quot;1&quot;, hence we have true</pre><h4>Conclusion</h4><p>To avoid such glitches, whenever we are comparing numbers, we should always convert it into numbers first.</p><pre>Number(&quot;55&quot;) &gt; Number(&quot;6&quot;) - true</pre><p>I hope it makes sense now.</p><p>Now to let you explore a bit more below are some statements.</p><p>Wonder what the results would be and why?</p><pre>&quot;a&quot; &gt; &quot;b&quot;<br>&quot;a&quot; &gt; 5<br> 5 &gt; undefined</pre><h3>Thanks for reading :)</h3><p>Do check out a youtube trim tool i created <a href="https://youtubecut.com/">https://youtubecut.com</a></p><h3>Learn more</h3><ul><li><a href="https://blog.bitsrc.io/solid-principles-every-developer-should-know-b3bfa96bb688">SOLID Principles every Developer Should Know</a></li><li><a href="https://blog.bitsrc.io/understanding-design-patterns-in-javascript-13345223f2dd">Understanding Design Patterns in JavaScript</a></li><li><a href="https://blog.bitsrc.io/understanding-asynchronous-javascript-the-event-loop-74cd408419ff">Understanding Asynchronous JavaScript</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83d02ab6648f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bitsrc/rookie-light-bulb-moments-tricky-comparison-in-javascript-83d02ab6648f">JavaScript “Light Bulb” Moments: Tricky Comparison</a> was originally published in <a href="https://medium.com/bitsrc">Bits and Pieces</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>