<?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 Vikas Singh on Medium]]></title>
        <description><![CDATA[Stories by Vikas Singh on Medium]]></description>
        <link>https://medium.com/@vikas-singh707?source=rss-f5ec9d2fb16c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gJsLM1QWmppyTl6ZtVa3Tw.jpeg</url>
            <title>Stories by Vikas Singh on Medium</title>
            <link>https://medium.com/@vikas-singh707?source=rss-f5ec9d2fb16c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 20:10:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vikas-singh707/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[NPM to PNPM]]></title>
            <link>https://tech.groww.in/npm-to-pnpm-bb6e60054ea9?source=rss-f5ec9d2fb16c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb6e60054ea9</guid>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[pnpm]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[node]]></category>
            <dc:creator><![CDATA[Vikas Singh]]></dc:creator>
            <pubDate>Sat, 02 Apr 2022 12:23:51 GMT</pubDate>
            <atom:updated>2025-04-21T07:11:28.461Z</atom:updated>
            <content:encoded><![CDATA[<h4>Short blog explaining what, why, and how</h4><p>So, we recently decided to use PNPM instead of NPM as a package manager in <a href="https://groww.in/">Groww</a>. Why? It’s just better than NPM at the moment. I decided to write a small migration guide which will save you some time. And that is why I will just include the bare minimum explanation at the moment. So, let’s jump right into it.</p><h3>What is PNPM?</h3><p>PNPM is a new, less-known package manager for Node.js which is faster and disk space-efficient than NPM (yarn as well).</p><p>You can check out the benchmark posted on their website <a href="https://pnpm.io/benchmarks">here</a>.</p><h3>Why should I care?</h3><p>Because it is fast (Up to 2x), more efficient and strict than the alternatives. It provides rich support for workspaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l9v4QEgYEFIkmu2L3TqSTQ.png" /><figcaption>Credits — <a href="http://pnpm.io/">pnpm.io</a></figcaption></figure><h3>How can I start using it from today?</h3><p>The simplest option to install PNPM is by using homebrew IMO.</p><pre>brew install pnpm</pre><p>You can check the other options as per your need on the official PNPM website <a href="https://pnpm.io/">here</a>.</p><h3>Some basic usage commands to help you out</h3><pre>npm install -&gt; pnpm install</pre><pre>npm install &lt;pkg&gt; -&gt; pnpm add &lt;pkg&gt;</pre><pre>npm run &lt;cmd&gt; -&gt; pnpm &lt;cmd&gt;</pre><pre>npm install -D &lt;pkg&gt; -&gt; pnpm add -D &lt;pkg&gt;</pre><pre>npm install -g &lt;pkg&gt; -&gt; pnpm add -g &lt;pkg&gt;</pre><pre>npm install &lt;pkg&gt;@X.X.X -&gt; pnpm add &lt;pkg&gt;@X.X.X</pre><p>I believe this information is enough to get started on PNPM. Please check out the PNPM website for more details.</p><p>If you’ve enjoyed this story, please click the 👏 button and share it, so that others can find it as well! Also, feel free to leave a comment below.</p><p>Groww Engineering publishes technical anecdotes, latest technologies, and better ways to tackle common programming problems. You can <a href="https://medium.com/groww-engineering">subscribe here</a> to get the latest updates.</p><p>We are hiring. View job openings <a href="https://groww.in/careers">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb6e60054ea9" width="1" height="1" alt=""><hr><p><a href="https://tech.groww.in/npm-to-pnpm-bb6e60054ea9">NPM to PNPM</a> was originally published in <a href="https://tech.groww.in/">The Groww Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Manage your Icons like a pro]]></title>
            <link>https://tech.groww.in/manage-your-icons-like-a-pro-f78b2e35dbb7?source=rss-f5ec9d2fb16c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f78b2e35dbb7</guid>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[icons]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Vikas Singh]]></dc:creator>
            <pubDate>Sat, 12 Mar 2022 12:53:27 GMT</pubDate>
            <atom:updated>2025-04-21T07:11:46.746Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Understanding the need for Icon Store when scaling at a rapid pace.</strong></h4><p>It was around a year back when I started researching to scale our project at <a href="https://groww.in/">Groww</a>. Since then, I have made a lot of changes in the frontend codebase to make it robust enough to withstand the challenges that come from increased team size, more teams to coordinate with, keeping consistency between all the platforms, and products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JSK1RmmAPjyekdADn31bxQ.png" /><figcaption>Some fancy icons</figcaption></figure><p>It is difficult to capture all the changes made in one blog post but I will try to capture one specific challenge here.</p><p>Before we proceed, I’d like to clarify a few things to avoid misinterpretation of the problem statement.</p><ul><li>When I am talking about Icons, I am referring to custom icons generated by the design team as per the brand’s design guidelines.</li><li>Also, the scenario I am talking about here is where multiple teams work on multiple products simultaneously.</li></ul><h3><strong>Problem Statement</strong></h3><p>We have multiple products all served in one app/ website. Thus, you can imagine multiple teams working separately and then merging everything to ship the next build.</p><p>So, suppose there is one notification Icon that first got introduced into the codebase by product team X. Later in time, product team Y also felt the need to use notification Icon and since teams work separately, they provided their own version of the notification Icon unaware of the icon first shipped by product team X. This resulted in following challenges -</p><ol><li>Inconsistency within products</li><li>Icon Size is left out of consideration and sometimes ends up being 80–300kb in size. Like seriously? 🤯</li><li>Since there is no standard way to add and use icons, sometimes bad practices seep into the codebase.</li><li>Multiple copies lead to unnecessary storage overhead.</li></ol><h3>General Solution</h3><p>As such solution for this was simple and did not even need to be a technical one.</p><p>Have a horizontal design team that will serve all the products and ask them to create design guidelines first before designing any further.</p><p>Theoretically, this should work, I mean, why not?</p><p>But when you are hiring constantly in the team, and your team has a good number of new designers then even after all this, inconsistency slips in and due to the decentralized nature of the working environment, they even go unnoticed to the production. Also not to mention, teams are working from home due to COVID which further adds the coordination problem among the teams.</p><p>So, we needed a <em>technical solution that enforces consistency</em> somehow.</p><h3>Technical Solution</h3><pre>&lt;IconStore name=&quot;notification&quot; config={configObject} /&gt;</pre><pre>// config object if you want to make basic changes like width,              // height, etc.</pre><p>Create an Icon Store which will return an optimized version of the icons whenever invoked. We need to keep following things in mind when developing it -</p><ol><li>If working with multiple projects, either go with the <em>monorepo</em> approach or better if you can publish your Icon Store publicly (assuming you have the right to publish and your code does not contain any sensitive information).</li><li>Instead of directly serving the image file, better if you can wrap it in a component. This will give a lot of flexibility like accepting cosmetic changes as props. You can enable a check for icons size in your build process. You can even manage the quality of the icons in the build process only. Sharing the snippet for compiling the icons folder which will contain all your icons.<br>But if you think you don’t need all this then you can directly serve the image file but ensure that they are of SVG format as browsers compress (GZIP) SVG format properly and can scale up or down without affecting the quality.</li><li>You can even host the icons internally or externally whatever works and enable click on Icon to copy the particular icon code, this will speed up the development process and will ensure consistency not only in product but in codebase too.</li><li>If you are loading a woff2 file to use icons from some library then basically you are loading icons that are not even being used on that page, going with the component approach and enabling tree shaking will even solve this issue for you.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KMUe67T0qvnusEDjOb-AMQ.png" /><figcaption>A snippet showing one specific way to compile our icons</figcaption></figure><p>The above approach solved all the problems that we discussed earlier in this post. Before wrapping up, I would like to add that this post assumes a certain type of situation where you need this kind of complex solution. If you have a small team or a single product then maybe you don’t even have the consistency issue and therefore might not even need a complex solution.</p><p>If you’ve enjoyed this story, please click the 👏 button and share it, so that others can find it as well! Also, feel free to leave a comment below.</p><p>Groww Engineering publishes technical anecdotes, latest technologies, and better ways to tackle common programming problems. You can <a href="https://medium.com/groww-engineering">subscribe here</a> to get the latest updates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f78b2e35dbb7" width="1" height="1" alt=""><hr><p><a href="https://tech.groww.in/manage-your-icons-like-a-pro-f78b2e35dbb7">Manage your Icons like a pro</a> was originally published in <a href="https://tech.groww.in/">The Groww Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 To-Do’s That Can Help you Become a Great Developer]]></title>
            <link>https://tech.groww.in/5-to-dos-that-can-help-you-become-a-great-developer-a1bd25e1deb7?source=rss-f5ec9d2fb16c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1bd25e1deb7</guid>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Vikas Singh]]></dc:creator>
            <pubDate>Fri, 25 Dec 2020 14:11:59 GMT</pubDate>
            <atom:updated>2025-04-21T07:38:44.394Z</atom:updated>
            <content:encoded><![CDATA[<p>If a person has been a developer for a significant amount of time, it does not make him or her an ‘out of this world’ developer. Then what is the differentiating factor between a senior, mid-level and junior developer?</p><p>Simple. It is how one can optimize their skill set to solve a problem efficiently. Although, the approach may vary based on the organization or even the product/ service. For example, a senior developer of a start-up may have to tackle snags differently as compared to someone working for a multi-national company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kx3dc9GRC07NpI625wxXXg.png" /></figure><p>However, I can tell you one thing. All ‘senior’ developers possess certain acquired qualities to drive the best level of output and these qualities may differ.</p><blockquote>Experience ≠ Excellence.</blockquote><p>Let’s get started.</p><h3><strong>1. Question. Observe. Code.</strong></h3><p><em>Good questions inform, great questions transform! — Ken Cloeman</em></p><p><strong><em>Question</em> </strong>— If you are starting off in your career the biggest probable quality you can have is to ask questions! They can be absolutely rudimentary and basic, but make sure you clear all your doubts.</p><p>In my experience, a lot of times, freshers are scared to ask questions in fear of being scolded or jaded away. But, hey, remember that everyone was once a fresher! In the early stage, it is beneficial to have a mentor who will assist you in understanding the world of commercial codes.</p><p><strong><em>Observe</em> </strong>— If you work at product oriented companies, your job will encompass you to work with a myriad of departments, like product, design, content and even finance. Figure out how the team structure works, how efficiently you can deliver work by working with each team and how you will resolve dependencies.</p><p><strong><em>Code</em> </strong>— When you learn how to ride a bicycle, you are bound to fall, trip and scuttle, before you get a hang of things. Similarly, when you start coding initially, your codes may not be perfect (whose code is perfect anyway?), but your team will expect you to write a clean code so that they can understand the workings of it. Keep your functions short, variables understandable and the flow neat.</p><h3><strong>2. Be Product-Oriented</strong></h3><p>Your product may be a tool, a service, or a tangible item, but your goal regardless should be to make that product the best version of itself. Elon Musk had said in an interview that, “Great companies are built on great products” and behind every great product, there is a team of developers, stitching the nitty-gritties.</p><p>Learn to think from the mindset of consumers. “Would I want this table to be dynamic?”, “How would I want the interface to be?”, “Is this product beneficial for me?”. As a developer, your main task is to build a product that can provide your customers with a super-awesome experience.</p><h3><strong>3. Be a Team player</strong></h3><p>While it is important to do your work before jumping in to help the next person, when you are part of a team, don’t shy away to extend a helping hand. It is okay if you aren’t very well versed with a job, try to take up the initiative and don’t be scared of being corrected. For bugs will come and bugs will go, but it is upto you to keep doing your best.</p><p>Reviewing each others code is a must, which can help you improve your coding skills and a chance to learn from other people’s work.</p><h3><strong>4. Knowledge — More and More of it!</strong></h3><p>Your learning as a developer should never cease. Read up about products, their workings, new softwares and tools, take courses on Coursera and Unacademy, make a list of books you want to read next, or even start reading articles on Medium!</p><p>The other part is to observe old members in your team, the way they streamline and try to identify problems that occur. Keep them in your mind and try solving problems using those as examples.</p><blockquote>You stop growing the day you stop learning. Be hungry, always.</blockquote><h3><strong>5. Simple Is Cool</strong></h3><p>Once you become a senior developer, you will realize that every move you make comes with its own snags and risk. In this situation, I repeat one mantra ‘Simple is cool’.</p><p>It is your responsibility to stabilize the team and do holistic risk management. Remember, your choice does not depend on what a book thinks you should do in such situations. <strong>It depends on what will be easy to maintain, teach and debug.</strong></p><h3><strong>Ending Note</strong></h3><p>Well, these are just some tactics you can use to make your work experience smoother.</p><p>Remember, to not hang onto ‘titles’. Your worth in a company is determined by the knowledge you have attained overtime and not a fancy title that has been bestowed upon you.</p><p>In my opinion, developers of worth will care much more about the impact they have had on the product, team and company, because that’s ultimately what will contribute to their legacy. And honestly, it’s okay to make mistakes. All of us struggle, fail, get knocked to the ground and then, we spring right back up to continue doing what we love — developing the best software.</p><p>If you’ve enjoyed this story, please click the 👏 button and share it, so that others can find it as well! Also, feel free to leave a comment below.</p><p>Groww Engineering publishes technical anecdotes, latest technologies, and better ways to tackle common programming problems. You can <a href="https://medium.com/groww-engineering">subscribe here</a> to get the latest updates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1bd25e1deb7" width="1" height="1" alt=""><hr><p><a href="https://tech.groww.in/5-to-dos-that-can-help-you-become-a-great-developer-a1bd25e1deb7">5 To-Do’s That Can Help you Become a Great Developer</a> was originally published in <a href="https://tech.groww.in/">The Groww Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[9 SEO Hacks to Double Your Website Traffic]]></title>
            <link>https://tech.groww.in/9-seo-hacks-to-double-your-website-traffic-53828979941e?source=rss-f5ec9d2fb16c------2</link>
            <guid isPermaLink="false">https://medium.com/p/53828979941e</guid>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[content-strategy]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[content-marketing]]></category>
            <category><![CDATA[search-engine-marketing]]></category>
            <dc:creator><![CDATA[Vikas Singh]]></dc:creator>
            <pubDate>Mon, 07 Sep 2020 07:41:56 GMT</pubDate>
            <atom:updated>2025-04-21T07:40:03.306Z</atom:updated>
            <content:encoded><![CDATA[<h4>Search Engine Optimization — The Fuel to your Website</h4><p>Do you ever wonder why your article/piece of content/website page is not ranking on Google, even though you’re publishing a top-notch blog, with the right information and structure?</p><p>Don’t beat yourself too much, it’s not because you’re a bad writer. It’s because your SEO skills need a little upgradation. SEO — Search Engine Optimization is the catalyst to a good article and if you don’t abide by the SEO rules, google will quite simply not push your article to the top. In this article, we will talk about 9 SEO hacks that will boost your article/website page traffic vastly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BtuzQ9Oo_By6LqJqXO9fZQ.png" /></figure><h4><strong>But why is SEO (so) important?</strong></h4><p>I’ve come across people who have asked questions like, “But why is SEO so important? If we publish good content, with the right grammar, it has to rank”. The simple answer is NO, it doesn’t have to.</p><p>Think of it this way, every company you work for has certain rules that every employee has to abide by. If they do not abide by those rules, they face negative consequences. Google — the search engine is like a company. If you want to flourish in the company, you need to stick by its rules. In this case, the SEO rules.</p><p>If you do not stick by the rules, Google will not push your article. From time to time, Google publishes SEO updates, following which website traffic can either shoot or drop. Currently, Google follows the YMYL technique — Your Money, Your Life.</p><p>In most companies, there are two departments that look into SEO</p><ul><li>Content Marketing/Digital Marketing</li><li>Website Developers</li></ul><p>In this blog, I will talk about SEO hacks from the content perspective, as well as from the technical perspective.</p><p>Let’s get started.</p><h4><strong>Content Perspective</strong></h4><ol><li><strong>Content is King</strong></li></ol><p>Most of you have guessed this. Content is the most important part of a good website. Make sure your information is authentic, structured well and most of all, IT SERVES THE PURPOSE. Example, if you write an article on “9 Best SEO Hacks of 2020”, your article must have 9 hacks and not 5. Also, make sure that the first paragraph of your article briefly summarizes the entire article.</p><p>Publishing articles on a regular basis helps as well. Also, make sure that you are covering the entire prism, which is writing evergreen, trending, as well as seasonal topics.</p><p><strong>2. Get Dynamic</strong></p><p>This is an important point, but not many digital marketers are aware of it. Refurbishing/Reworking on articles gives a signal to Google that your article has been reworked with new information and therefore, it is up-to-date and more useful to the user.</p><p>Example, you are writing a feature piece on the upcoming Dota Tournament. You start off by writing about virtual games, it’s popularity and emergence and then move on to write about the teams that are taking part. Now, you publish the article. As and how the tournament progresses, you write about who qualified and eventually who won. Every time you update the article, you can change the date, which intimates Google that your article has been updated. Remember — the newer, the better.</p><p><strong>3. Rich Media Makes You SEO Rich</strong></p><p>The love affair between words and visual media is not unheard of. Rich media in this case means — infographics, relevant pictures (with alt text), graphs, relevant videos, static and dynamic tables.</p><p>As mentioned before, Google’s main objective is to provide value to the customer. And when these elements are added, Google thinks that the page is more wholesome, therefore more valuable to the reader. Plus, it makes your page look cooler :)</p><p><strong>4. Get Linking</strong></p><p>Linking can be of two types — interlinking and backlinking. <strong><em>Interlinking</em></strong> means linking relevant articles from the website with each other. Ideally, for every 150–200 words there should be one link. However, one must be careful that pages do not start competing with each other through the process.</p><p><strong><em>Backlinking</em></strong> is when the link to your blog is published on a credible, third-party website. This is helpful if you want to make people aware of your company/blog or even want to earn sign-ups to your website. However, this is a tiresome process and you have to make sure that the third party website has a decent domain and page authority.</p><p><strong>5. The Game of Keywords</strong></p><p>Keywords is one of the MOST important aspects of a good article. Conceptualization of an article starts off with a relevant keyword. Ideally, if you are a content marketer, you must have a database of keywords encompassing, long-tail and short-tail keywords. Recently long-tail keywords have been more effective. <br>Also, remember that every article must have only one primary keyword and a few secondary keywords. Also remember, that only one keyword should rank for one article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0v68Lt1VkV7ks79-l0T_eQ.png" /></figure><h4><strong>Technical Perspective</strong></h4><p><strong>6. Structured Data</strong></p><p>Structured data encompasses the format through which the contents of the page should be presented. It is the way through which information is structured on the web page. Example, on an online retail platform, how should the content be presented? Ideally, the most important aspects should be towards the beginning,</p><p>You will notice that in an Amazon product page, first the picture of the product along with the price, colour, size etc will be present. Following which, you will find reviews of the product and other similar products. This is a well-structured page.</p><p><strong>7. Indexing, Crawling and Canonicals</strong></p><p>Indexing is the process through which the website page becomes crawlable. Through this process, the page is listed on Google’s database. There are two options ‘Index and no-index’. If the page is indexed, it will be crawlable and if the page is not indexed, it will not be crawlable.</p><p>Crawling is the process through which the Googlebot analyzes your website content for it to start ranking.</p><p>Canonicals primarily give signals to Google that the concerned page is the primary page. Canonical tags were built to take care of duplicate content. Suppose you have two pages with similar/same content. You can add a canonical tag to the page which you think is more important of the two. Canonicals can affect your website ranking vastly.</p><p><strong>8. XML Sitemaps</strong></p><p>An XML sitemap is basically a database, which lets the search engine know that these links from the website are important. Sometimes, there are no interlinks pointing to the various pages of the website, but through the sitemap, these links gain more value.</p><p><strong>9. Hreflang</strong></p><p>Hreflang is a rather new inclusion by Google to the SEO family, which was introduced in December 2011. It is basically an attribute which must be used if your website has content in various languages. It is an HTML attribute which specifies the language and geographic demography.</p><p>Example, Groww has blogs in Hindi and English, through the addition of the hreflang tag, Google will be aware to which populace the Hindi version can be shown to.</p><p>I hope this article has been useful to you. Apart from these 9 main ones, there are innumerable others which can make a difference to your website traffic, like, voice encryptions, chatbots etc.</p><p>However, if you follow these, you’ve got the basics covered.</p><p>SEO soon! 😉</p><p>If you’ve enjoyed this story, please click the 👏 button and share it, so that others can find it as well! Also, feel free to leave a comment below.</p><p>Groww Engineering publishes technical anecdotes, latest technologies, and better ways to tackle common programming problems. You can <a href="https://medium.com/groww-engineering">subscribe here</a> to get the latest updates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53828979941e" width="1" height="1" alt=""><hr><p><a href="https://tech.groww.in/9-seo-hacks-to-double-your-website-traffic-53828979941e">9 SEO Hacks to Double Your Website Traffic</a> was originally published in <a href="https://tech.groww.in/">The Groww Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google’s One-tap sign-up and Automatic sign-in]]></title>
            <link>https://tech.groww.in/googles-one-tap-sign-up-and-automatic-sign-in-c43d444bddde?source=rss-f5ec9d2fb16c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c43d444bddde</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[sign-up]]></category>
            <category><![CDATA[gmail]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[auth]]></category>
            <dc:creator><![CDATA[Vikas Singh]]></dc:creator>
            <pubDate>Sun, 14 Jun 2020 17:45:14 GMT</pubDate>
            <atom:updated>2020-06-15T07:10:36.243Z</atom:updated>
            <content:encoded><![CDATA[<h4>Sign up users with a single tap and keep them signed in automatically.</h4><p>Google set in motion its Beta version in 2018. After much feedback, discussion and deliberation, it finally launched its stable version which came with some important updates like configuration through HTML/ JS, redesigning their UI, and more security features for users, among others. If you have already implemented the beta version prior, then the migration to the stable version will be a piece of cake.</p><p>I know you mostly want to jump to implementation details but just for the sake of completion let me quickly cover what and why part before moving on to actual implementation.</p><h4>One-tap sign-up</h4><p>Users can now sign up with just a tap, without meddling with a sign-up screen. They are presented with a more secured, no-password, and token-based account which is protected by their Google accounts.</p><h4>Automatic sign-in</h4><p>Users can now automatically be signed in to your site, through any device or browser. And this is possible even after their session expires.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4sO2M8-2rjocdhNmfLDKgA.png" /><figcaption>One-tap implementation in <a href="https://groww.in/">Groww</a></figcaption></figure><p><strong>Why bother implementing this when I have a perfectly stable sign-up/sign-in page?</strong></p><p>Simply put, it increases the conversion by providing a seamless and delightful experience to your users. I have also included few success stories of the early adopters of one-tap sign-up and automatic sign-in.</p><blockquote><em>Hipmunk found that by using one-tap sign-up, registered user sign in went up by 118% and new user sign up increased by 115%.</em></blockquote><blockquote><em>Groww reported 70% increase in sign-up rate of new user registrations and increased the number of daily signed-in users by 180% after adding one-tap sign-up to their site.</em></blockquote><h3>Integration, the how part</h3><h4><em>1. Get your Google API Client Id</em></h4><p>To use Google’s streamlined sign-in and sign-up flows, you first need to set up your Google API client ID. If you don’t have Google Client Id then you need to create a new one. Use the information here to <a href="https://developers.google.com/adwords/api/docs/guides/authentication">create a new client id</a>.</p><h4>2. Load the One-tap library</h4><pre>&lt;script src=&quot;https://accounts.google.com/gsi/client&quot; async defer /&gt;</pre><h4>3. Initialize One-tap to display the sign-up prompt</h4><pre>&lt;script&gt;<br>  window.onload = function () {<br>    google.accounts.id.initialize({<br>      client_id: &#39;<strong>YOUR_GOOGLE_CLIENT_ID</strong>&#39;,<br>      callback: handleOnetapResponse<br>    });<br>    google.accounts.id.prompt();<br>  }<br>&lt;/script&gt;</pre><h4>4. Pass the credential to your backend server to verify</h4><pre>handleOnetapResponse = (response) =&gt; {<br>    <br>    /* Pass <strong>response.credential</strong> to your server for verification */<br>    /* Also raise any events that you wish here */</pre><pre>}</pre><h4>Browser Support</h4><p>As the library is security-sensitive, only the latest two versions of each browser are officially supported. The client library isn’t guaranteed to work on any other browser or platform</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bjNa1vp7bUdEI1q_pCVMYA.png" /><figcaption>List of supported browsers</figcaption></figure><h3>Further Reading</h3><p>I recommend reading <a href="https://developers.google.com/identity/one-tap/web"><strong>official docs,</strong></a> they have improved a lot since 2018, when the beta version was launched. You will get to know various error types to display proper messaging in case of failure. Also, there is a section on how to get your Google Client ID if you don’t have one. For any further query, ask a question under the google-identity tag <a href="https://stackoverflow.com/questions/tagged/google-identity"><strong>here</strong></a><strong>.</strong></p><p>If you enjoyed this story, please click the 👏 button and share it to help others find it! Feel free to leave a comment below.</p><p>Groww Engineering publishes technical anecdotes, latest technologies, and better ways to tackle common programming problems. You can <a href="https://medium.com/groww-engineering">subscribe here</a> to get the latest updates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c43d444bddde" width="1" height="1" alt=""><hr><p><a href="https://tech.groww.in/googles-one-tap-sign-up-and-automatic-sign-in-c43d444bddde">Google’s One-tap sign-up and Automatic sign-in</a> was originally published in <a href="https://tech.groww.in/">The Groww Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[11 Quarantine Hacks That Will Double-Up Your Work From Home Efficiency]]></title>
            <link>https://tech.groww.in/11-quarantine-hacks-that-will-double-up-your-work-from-home-efficiency-b335f0daa9bc?source=rss-f5ec9d2fb16c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b335f0daa9bc</guid>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[work-from-home]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[workplace]]></category>
            <category><![CDATA[quarantine]]></category>
            <dc:creator><![CDATA[Vikas Singh]]></dc:creator>
            <pubDate>Wed, 01 Apr 2020 12:58:15 GMT</pubDate>
            <atom:updated>2020-04-01T12:58:15.185Z</atom:updated>
            <content:encoded><![CDATA[<p>The start-up environment is fast-paced and very competitive. Customer obsession and product efficiency is your key goal and your team is always ready to provide it.</p><p>You dedicate five, sometimes six days of your week to work. Stay at the office even after your shift ends, skip lunch when it’s an emergency. In many companies including Groww, the work culture is such that employees are encouraged to bond with their teams, via outings, badminton tournaments, occasional parties, etcetera. This brings the company together, to co-ordinate within, as well as outside the team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cY0dRuWTqZQ2IBbACi_Vsw.jpeg" /><figcaption>A person working from home</figcaption></figure><p>On 24th March, when the lockdown was announced, many of us were baffled because we aren’t accustomed to working from home. In fact, for some departments like Customer Success, working from an office environment is stressed upon. I’m sure most of you wondered what things to get fixed or keep in mind when you have to work from home for 21 days.</p><blockquote>When the world is running down, you make the best of what’s still around.</blockquote><p>Below I have compiled a list of 11 things that will ensure that you have a more efficient and smoother WFH experience.</p><p>Let’s get started.</p><h4><strong><em>Internet Speed</em></strong></h4><p>You obviously know that the internet is the life and blood to get anything done. Whether it’s publishing new content, developing a code, replying to customer emails, it’s super important that your wifi/data speed is fast. Because, quite simply, you need to get things done and you need to get them done fast.</p><p>Also, make sure your laptop is fully charged when you start working, or you atleast have your charger around. Imagine a situation where you’re on a video call with your team and your laptop runs out of charge. Not cool, right?</p><h4><strong><em>Your Space</em></strong></h4><p>If you’ve watched <em>The Big Bang Theory</em>, you would know about Sheldon’s <strong><em>‘spot’</em></strong>, which is a very conducive seating position for him. Similarly, choose a spot for yourself. Make sure your workspace is clean, has a good circulation of air and you always have a chair and table along with it.</p><p>Keep a bottle of water and ‘munchies’ around, so that you don’t have to keep getting up between work hours.</p><h4><strong><em>Privacy</em></strong></h4><p>It’s possible that your family members and friends are not working amidst the lockdown. If you have children in the house or are living with family, let them know your schedule and intimate your friends about your work situation.</p><p>That way you can make sure your mother will not begin to scold you when you’re on a video call with your team.</p><h4><strong><em>Communication Tools</em></strong></h4><p>It is important to stay connected with your team and give them daily updates so that work efficiency is maintained. For this, you need the right communication tools like Slack for sending team updates or Google Hangout and Zoom Call for video conferencing.</p><p>Make sure that your video calling tool has a provision for taking down notes and most importantly has a facility to share screen.</p><p>And since you’re not able to meet your work friends now, it’s nice to have a WhatsApp group where you can discuss things that are not related to work, like — books, movies, or the club you’re going to visit after the lockdown ends.</p><h4><strong><em>Team Co-Ordination</em></strong></h4><p>A product can never become great if the team is average.</p><p>And to build an excellent team, you need excellent communication among team members. Call your team leader if you have a doubt which can’t be solved via mail. Create a channel for your daily updates and keep your team posted</p><p>Also, voice your dependencies on the common channel, so that the concerned person can look into the issue.</p><h4><strong><em>Technical Knick Knacks</em></strong></h4><p>When it comes to the technicalities, make sure you enable secure access to your resources using VPN, because you cannot whitelist the home address of all your team members.</p><p>Also, I suggest having a common channel to handle all the deployment request and restrict deployment access to just 1–2 people.</p><h4><strong><em>Google Calendar Is Your Savior!</em></strong></h4><p>You may have a meeting at 2:00 pm and another one at 3:00 pm. But then, a few days ago, you had scheduled a meeting at 3:15, which you totally forgot about.</p><p>Other times, your teammates may simply call and schedule a meeting verbally, which may have slipped out of your mind during the concerned hour.</p><p>Looks like a mess, doesn’t it?</p><p>And to avoid such sticky situations, you must make sure to record all your meetings on Google Calendar and tell your colleagues to send a calendar invite for important discussions.</p><h4><strong><em>Don’t Lose Track of Time</em></strong></h4><p>I know work from home can often make you feel like night and day are the same. And the pressure to deliver may be less, as you’re sitting inside the comfort of your house.</p><p>Therefore, it’s important to have a schedule and manage your time. Divide your work in a phased manner like you would generally do at the office and keep your deliverables in mind.</p><h4><strong><em>It’s Not All About the Work</em></strong></h4><p>Going to the gym before or after office, or taking a walk with your teammates in the evening is something all of us like doing. And just because you’re working from home, it doesn’t mean you should stop taking those little breaks.</p><p>Yes, you can’t go out, but, who’s stopping you from exercising at home? Put on a YouTube or Instagram workout video, play some music on the side and enjoy the drill. It’s important to do some form of physical activity, to ensure a mental balance.</p><h4><strong><em>Tap into Your Hobby</em></strong></h4><p>All of you have hectic work lives and most of you have let go of your hobbies. Now is the time to explore them again. With all the time you save going to and fro from work, do something you love. It can be painting, playing the guitar, baking or gardening.</p><p>You can also learn new things that you’ve always wanted to. There are various tutorials online that can help you develop a new hobby, from learning a new language to origami. Just give it a go!</p><h4><strong><em>If You Can’t Party, You Can Houseparty!</em></strong></h4><p>Amidst the COVID frenzy, you can’t obviously step out and meet your friends, but you can still have fun at home. Apps like Houseparty help you to stay connected with your friends via interactive games, video calls and messages.</p><p><strong>And yes, these things are important, simply because you spend a good amount of time with your colleagues and interacting during the quarantine time can be a morale boost as a lot of you are living away from family.</strong></p><p>There are other such apps too. Sign into them, interact with your team after work gets over, keep your camaraderie alive!</p><p>Work from home may not be preferred by most of us, but these are few things that will help you keep on track during this phase. If planned well, it can help to transform you into a more efficient employee.</p><blockquote><strong><em>So stay safe and wash your hands every hour!</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b335f0daa9bc" width="1" height="1" alt=""><hr><p><a href="https://tech.groww.in/11-quarantine-hacks-that-will-double-up-your-work-from-home-efficiency-b335f0daa9bc">11 Quarantine Hacks That Will Double-Up Your Work From Home Efficiency</a> was originally published in <a href="https://tech.groww.in/">The Groww Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Groww-ing]]></title>
            <link>https://vikas-singh707.medium.com/groww-ing-b8c3b679a501?source=rss-f5ec9d2fb16c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8c3b679a501</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[grow-w]]></category>
            <dc:creator><![CDATA[Vikas Singh]]></dc:creator>
            <pubDate>Sun, 19 Jan 2020 22:31:01 GMT</pubDate>
            <atom:updated>2020-01-23T07:05:43.836Z</atom:updated>
            <content:encoded><![CDATA[<h4>My first startup experience</h4><blockquote>Success cannot be summoned with money. You dream big. You put your heart, soul and effort to that one single endeavor, only then can victory be yours</blockquote><blockquote>- Anonymous</blockquote><p>It was 2016 and the last day of exams at college. The last day of college holds great significance in my life. For when I came home that night, I found a plane ticket to Bangalore!</p><p>And thus, started my journey at <a href="https://groww.in/">Groww!</a></p><p>I was a nervous wreck on my first day. Not quite sure of how to conduct myself in a corporate setting, I mostly stayed quiet. In my first meeting, I did not speak a word and understood nothing of what was being discussed.</p><p>Back then, Groww did not have an office of its own. The six of us (Lalit, Harsh, Ishan, Neeraj, John and I) worked from a cabin at a co-working space.</p><p>After a few days of being quite, Harsh finally told me, “You know you’ve been here for a few days and you haven’t spoken to us much. Why don’t you take some time out and get to know us better” and so my first ever task was to get to know the founders!</p><p>I realized at that moment that I’m working with some of the brightest minds and this is my opportunity to lap as much knowledge as I could.</p><p>When I joined Groww, John had already built an app, but we were still contemplating a few of its features. The team decided that it would be feasible to make a website, as we were making various changes to the app and users would have to repeatedly keep updating it.</p><p>React was new at that time and when I was asked to learn to React and build a website from scratch it was definitely a big learning opportunity for me.</p><p>Once there was a Server Side Rendering with Redux issue and both John and me were not sure how to fix the problem. Google couldn’t help us here, as React was at a nascent stage and there was hardly any information on the internet.</p><p>John and I stayed up for two nights, thought about nothing, but the snag and we finally fixed it! That was the first sense of achievement that I experienced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hfd7YncSDh0JdXRulj6wrQ.png" /><figcaption>Groww’s landing page</figcaption></figure><p>Also, <strong>I learned how to multi-task</strong>. A perennial manpower crunch in startups mostly mean you will be drowning in work, apart from handling your own share of the work you will also have to chip in with other tasks and duties. In my case, I was trying to make changes in our logo, trying to create a Facebook bot to answer user queries, working on machine learning, writing some APIs, providing customer support from time to time and mostly working on the website.</p><blockquote>Working in a startup will teach you some valuable lessons on how to deal with work pressure and juggle multiple roles and responsibilities.</blockquote><p>It was not all work though, one day, the six of us went out for dinner and since I was the newest and a fresher, they said, “Lets rag Vikas! Let’s make him sing” and yes, I did sing at the restaurant.</p><p>Another day, Lalit asked John and me, “Do you guys have a girlfriend?” we nodded our heads and said “No” to which he said, “I knew the answer”.</p><p>Initially, I was intimidated by the co-founders, but gradually I realized how privileged I was to learn from each of them. Each of their abilities is so profound and the fact that I had the opportunity of being mentored by them at the initial phase of my career, is a proud achievement that I carry.</p><p>Through the initial stint, John guided me vastly. Whether it was playing foosball every day, sending me reading materials or doing the several night outs that we did, my journey at Groww would not have been the same without him. In fact, the entire team at Groww, old employees and new helped me realize my potential.</p><p>Working at Groww really helped make me appreciate the group of like-minded, achievement-oriented individuals, and I realized that together is far greater than the sum of its part, dramatically leveraging each other’s success. And my biggest takeaway from Groww is to have met so many amazing people along the way! No words can express how grateful I am.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*ZSprfrm5PhDoschV5n-mKA.png" /><figcaption>Team in 2017</figcaption></figure><p>In these three years, Groww has deployed several major updates. The team has expanded to large numbers, some of the sharpest minds in the industry work with us and although it does feel surreal, even today when I walk into the office, I feel like it’s my first day!</p><p>I think of how we can make our product better, uplift our core values of customer obsession, build an user-friendly interface and climb to the top spot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rjrbnDml5CM8SYCdcSvS3g.png" /><figcaption>Team in 2019</figcaption></figure><p>And I know that we’ve come a long way, but we have an even longer way to groww!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8c3b679a501" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Module aliasing in Webpack]]></title>
            <link>https://tech.groww.in/module-aliasing-in-webpack-f02fe1b91f94?source=rss-f5ec9d2fb16c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f02fe1b91f94</guid>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[alias]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Vikas Singh]]></dc:creator>
            <pubDate>Fri, 31 May 2019 05:30:14 GMT</pubDate>
            <atom:updated>2019-05-31T05:30:14.509Z</atom:updated>
            <content:encoded><![CDATA[<h4>Problem, Solution, Complications</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ndHRwUP5EUHLS71FBbawBw.png" /></figure><p>Initially, when you start off a project, you don’t mind writing long relative paths and ignore all the troubles that come with it.</p><h4>Problem</h4><p>But as your project starts to scale past a certain point of complexity, you’ll find traversing up and down your file system is <strong><em>time-consuming and error-prone</em></strong>. Even with code-completion features like <a href="https://en.wikipedia.org/wiki/Intelligent_code_completion"><strong>IntelliSense</strong></a> in place (supported by almost every IDE), this can become more challenging as your codebase grows.</p><p>Just imagine a situation where you are changing the directory structure of a module in your project. This will break all the module references and you will be forced to change all occurrences of the module throughout your project. It will be a daunting task!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygtLaRbJ82czdOvm9wKjDg.png" /><figcaption>Moreover, see how ugly it looks?</figcaption></figure><h4>Solution</h4><p><a href="https://github.com/webpack/webpack">Webpack</a> allows you to create aliases to import or require certain modules through the resolve.alias property in your config without any additional plugins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*dj8UoqO7TTBWM2IwKB9rRg.png" /><figcaption>Changes in webpack.config.js</figcaption></figure><p>Concept of aliasing modules in Webpack can help you to turn the above file into this clean version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*qBjE2NQknmBYR5pw3Up8GQ.png" /><figcaption>Neat, clean and customized with so many benefits</figcaption></figure><h4>Consequence</h4><p>Once we start using aliases, <a href="https://en.wikipedia.org/wiki/Intelligent_code_completion"><strong>IntelliSense</strong></a><strong> </strong>stopped working for these imports in <a href="https://code.visualstudio.com/"><strong>VSCode</strong></a><strong>.</strong></p><p>Luckily there is an extension available to remedy the situation, <a href="https://marketplace.visualstudio.com/items?itemName=wanfu.jump-to-alias-file"><strong>Jump To Alias File</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*eL6iMDzHqfNDofGNVhGMxw.gif" /><figcaption>Image showing Jump To Alias File in action</figcaption></figure><p>Another way is to let <em>VSCode</em> know how to resolve these aliases by adding a jsconfig.json file to your project at the root.</p><pre>{<br>  &quot;compilerOptions&quot;: {<br>    &quot;target&quot;: &quot;es2017&quot;,<br>    &quot;allowSyntheticDefaultImports&quot;: false,<br>    &quot;baseUrl&quot;: &quot;./&quot;,<br>    &quot;paths&quot;: {<br>      &quot;config/*&quot;: [&quot;src/config/*&quot;],<br>      &quot;store/*&quot;: [&quot;src/store/*&quot;],<br>      &quot;utils/*&quot;: [&quot;src/utils/*&quot;]<br>    }<br>  },<br>  &quot;exclude&quot;: [&quot;node_modules&quot;]<br>}</pre><p>That pretty much sums it up! If you have any questions or suggestions, don’t forget to leave a comment down below.</p><blockquote>Have you enjoyed reading this blog? If yes, then click on the 👏 icon and share this article! Also, feel free to leave a comment.</blockquote><blockquote>Groww Engineering publishes technical pieces, latest knick-knacks in the coding world and convenient ways to tackle common programming problems.</blockquote><blockquote>Read more of our articles <a href="https://medium.com/groww-engineering">here</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f02fe1b91f94" width="1" height="1" alt=""><hr><p><a href="https://tech.groww.in/module-aliasing-in-webpack-f02fe1b91f94">Module aliasing in Webpack</a> was originally published in <a href="https://tech.groww.in/">The Groww Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top VS Code extensions to improve productivity]]></title>
            <link>https://tech.groww.in/top-vs-code-extensions-to-improve-productivity-9197d7fb224d?source=rss-f5ec9d2fb16c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9197d7fb224d</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[extension]]></category>
            <dc:creator><![CDATA[Vikas Singh]]></dc:creator>
            <pubDate>Mon, 20 May 2019 05:43:18 GMT</pubDate>
            <atom:updated>2019-05-20T05:43:18.433Z</atom:updated>
            <content:encoded><![CDATA[<h3>Top VS Code Extensions You Need to Know About</h3><h4>Personal favorite list.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*mPyZuXUVQq2kNfbn2MZasg.png" /><figcaption>Free. Built on open source. Runs everywhere.</figcaption></figure><p>We all want to optimize our working environment as much as possible. The easiest way to do it with the IDE Plugins/Extensions. One of my favorite editors is VS Code. When it comes to extensions, everyone has a slightly different opinion about which code extensions are the best and what configuration is the most productive.</p><p>I will be sharing a list of VS Code extensions which I use and find useful to have in my arsenal. If you feel I missed a few great ones, let me know in the comments down below.</p><h3>Extensions</h3><h4><a href="https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost">Import Cost</a></h4><p>This extension will display inline in the editor the size of the imported package. The extension utilizes webpack with <a href="https://www.npmjs.com/package/babel-webpack-plugin">bable-webpack-plugin</a> to detect the imported size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*LbfI4D9XXiZYS1Slwsys5g.gif" /></figure><p>I feel this is a must-have extension to keep your bundle size under check.</p><blockquote><strong>Tip: </strong>You can use <a href="https://bundlephobia.com/">bundlephobia.com</a> to check the sizes even before installing the package.</blockquote><h4><a href="https://marketplace.visualstudio.com/items?itemName=ionutvmi.path-autocomplete">Path Autocomplete</a></h4><p>It provides path completion for visual studio code. Now, you don’t have to manually enter the path of the file you’re looking for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*yCPP8f36DjZ7__2i8BHBrA.gif" /></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight">TODO Highlight</a></h4><p>Highlight TODO, FIXME and other annotations within your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5s06_EuXWZIg281ajKN9g.png" /></figure><p>An extension that highlights TODO, FIXME and reminds us that there are notes or things not done yet.</p><h4><a href="https://marketplace.visualstudio.com/items?itemName=naumovs.color-highlight">Color Highlight</a></h4><p>Highlight web colors in your editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/1*yIQSGEjuCxiiiG8oYIwILg.png" /></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer">Bracket Pair Colorizer</a></h4><p>This extension allows matching brackets to be identified with colors. The user can define which characters to match, and which colors to use. It is incredibly convenient when you are working with deeply nested objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*Mc7P11ekmFL7irjflGkMIg.png" /></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag">Auto Rename Tag</a></h4><p>Automatically rename paired HTML/XML tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ME0oAmIJdO6zaaYwL1DPwA.gif" /></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=guillaumedoutriaux.name-that-color">Name that color</a></h4><p>Your designer has uploaded a design with 50 different shades of black. You want to store all those as constants in a file with a meaningful name. But how will you come up with so many names for almost similar shades? Well, Name that color to your rescue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*BPKIYae9VywQpd52930i8A.gif" /></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=medzhidov.hex-rgba-converter">Hex-rgba converter</a></h4><p>Just converter. (Rgba/Rgb) and Hex, for VSCode.</p><pre># How to USE</pre><pre>1. Just select (Rgba/Rgb) or Hex</pre><pre>2. Hit ctrl+shift+c and you will get Hex or Rgba respectively.</pre><h4><a href="https://marketplace.visualstudio.com/items?itemName=xabikos.ReactSnippets">Reactjs Code Snippets</a></h4><p>A must-have extension for React developers. It provides code snippets for react components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ckPS0i2rzBvhhdQr8QHCQ.gif" /></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode">Prettier — Code formatter</a></h4><p>It’s an opinionated code formatter turned into an extension for VS Code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lBjif-Pv2b1o7QlurAVDzQ.png" /><figcaption>FOCUS ON WHY</figcaption></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=andi1984.tinypng">TinyPNG</a></h4><p>This extension uses the API provided by <a href="https://tinypng.com/developers">TinyPNG</a> to compress your JP(E)G and PNG images directly inside VSCode!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*osoRDiHaXKF0C5WVcVgC7g.png" /></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=mkxml.vscode-filesize">Filesize</a></h4><p>This package is intended for use with the <a href="https://code.visualstudio.com/">Visual Studio Code</a> editor and it displays the size of the focused file in the status bar of the editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KqMXgdjU3DECP1a8OOfmEw.jpeg" /></figure><p><strong>Tip:</strong> If you click on the status bar component it will display more information about the file!</p><h4><a href="https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens">GitLens</a></h4><p><a href="https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens">GitLens</a> is one of the most popular VS Code extensions and, in my opinion, one of the most useful. Blame, code authorship, activity heatmaps, recent changes, and history are only some of the features it provides. If you are working on any repository with more than one contributor, this is something you should probably have.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*b0V9PpqPL9VtBnwkws5idQ.gif" /><figcaption>Git supercharged</figcaption></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=softwaredotcom.swdc-vscode">Code Time</a></h4><p>Code Time is an open source plugin that provides programming metrics right in Visual Studio Code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*TEeksorXgwS0YCouu1HWKg.png" /></figure><p>Code time is beneficial if you’re wondering or want to know how much time you spend coding. It also provides a heatmap of your best programming times, by the hour of the day!</p><h4><a href="https://marketplace.visualstudio.com/items?itemName=ChakrounAnas.turbo-console-log">Turbo console log</a></h4><p>This extension makes debugging much easier by automating the operation of writing meaningful log messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*2-HwwXQo9v_4K56UoJRHUg.gif" /></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments">Better Comments</a></h4><p>The Better Comments extension will help you create more human-friendly comments in your code.</p><p>With this extension, you will be able to categorize your annotations into:</p><ul><li>Alerts</li><li>Queries</li><li>TODOs</li><li>Highlights</li><li>Commented out code can also be styled to make it clear the code shouldn’t be there</li><li>Any other comment styles you’d like can be specified in the settings</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*dt0ryLQcGRBFXtYtNPnJeQ.png" /></figure><h4><a href="https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig">EditorConfig for VS Code</a></h4><p>This plugin <a href="https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig#known-issues">attempts</a> to override user/workspace settings with settings found in .editorconfig files.</p><pre># An example of .editorconfig file</pre><pre>root = true</pre><pre>[*]</pre><pre>indent_style = space</pre><pre>indent_size = 2</pre><pre>end_of_line = lf</pre><pre>charset = utf-8</pre><pre>trim_trailing_whitespace = true</pre><pre>insert_final_newline = true</pre><p>It uses editorconfig file to resolve the configuration for that particular file and applies any relevant editor settings and thus provides consistency in the indentation.</p><p>I hope these extensions will be helpful to you for being more productive with the VS Code.</p><blockquote>Have you enjoyed reading this blog? If yes, then click on the 👏 icon and share this article! Also, feel free to leave a comment.</blockquote><blockquote>Groww Engineering publishes technical pieces, latest knick-knacks in the coding world and convenient ways to tackle common programming problems.</blockquote><blockquote>Read more of our articles <a href="https://medium.com/groww-engineering">here</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9197d7fb224d" width="1" height="1" alt=""><hr><p><a href="https://tech.groww.in/top-vs-code-extensions-to-improve-productivity-9197d7fb224d">Top VS Code extensions to improve productivity</a> was originally published in <a href="https://tech.groww.in/">The Groww Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enable Brotli Compression in Webpack with Fallback to Gzip]]></title>
            <link>https://tech.groww.in/enable-brotli-compression-in-webpack-with-fallback-to-gzip-397a57cf9fc6?source=rss-f5ec9d2fb16c------2</link>
            <guid isPermaLink="false">https://medium.com/p/397a57cf9fc6</guid>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[compression]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[brotli-compression]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Vikas Singh]]></dc:creator>
            <pubDate>Thu, 06 Dec 2018 12:31:00 GMT</pubDate>
            <atom:updated>2018-12-06T18:00:42.389Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why should I care, what exactly and how to use.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*9X4-sACx-fb-uxzDne900g.png" /><figcaption>Simply put, Brotli outperforms Gzip.</figcaption></figure><p>Customer Centricity is essential in today’s world. Most of the companies are now adapting customer first strategy to increase engagement, thus business. And providing a super fast web experience is one of the best ways to improve user experience and decrease bounce rate.</p><p>According to a <a href="https://developers.google.com/web/fundamentals/performance/why-performance-matters/">Google</a> study, it was found that sites loading within 5 seconds had 70% longer sessions, 35% lower bounce rates, and 25% higher ad viewability than sites taking nearly four times longer at 19 seconds. Yes, every second matters! And we at <a href="https://groww.in/">Groww</a> saved around 1.8 seconds by using Brotli compression over gzip compression for our Javascript files.</p><h4>It’s important but what the hell is Brotli Compression?</h4><p>Just for the sake of completion, let’s see for a sec what is Brotli Compression.</p><blockquote>Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding, and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.</blockquote><p><em>All the developers out there working to get that performance boost in their React Project already knows the power of shipping less js code. </em><strong><em>Code splitting </em></strong><em>comes into play here. </em><strong><em>Enabling Brotli compression</em></strong><em> further helps to reduce the number of packets you send to the client and thus gives performance boost especially on 3G and 4G network.</em></p><h4><strong>Why we need the fallback to Gzip?</strong></h4><p>Because not all browsers support Brotli compression yet. But all support Gzip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hwpTCsERz4zshrzAMjCqYA.png" /><figcaption>Browser support for Brotli Compression</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*pZlokQNqJx5ZsdLOsHhtEg.png" /><figcaption>“accept-encoding” header can be checked to know what all compression accepted by the browser.</figcaption></figure><h4><strong>Let’s get started</strong></h4><p><em>Goal: We will enable Brotli compression in Webpack with fallback support to Gzip.</em></p><p>There are 2 significant steps in this process.</p><ol><li>Generate Brotli and Gzip compressed version of files.</li><li>Send correct version of the file when requested based on the request headers.</li></ol><p>For the first step, we will use “<a href="https://www.npmjs.com/package/compression-webpack-plugin"><em>compression-webpack-plugin</em></a><em>”</em> and “<a href="https://www.npmjs.com/package/brotli-webpack-plugin"><em>brotli-webpack-plugin</em></a><em>” to generate required files.</em></p><pre>const CompressionPlugin = require(‘compression-webpack-plugin’);<br>const BrotliPlugin = require(‘brotli-webpack-plugin’);<br>module.exports = {<br>plugins: [<br> new CompressionPlugin({<br> asset: ‘[path].gz[query]’,<br> algorithm: ‘gzip’,<br> test: /\.js$|\.css$|\.html$/,<br> threshold: 10240,<br> minRatio: 0.7<br> }),<br> new BrotliPlugin({<br> asset: ‘[path].br[query]’,<br> test: /\.js$|\.css$|\.html$/,<br> threshold: 10240,<br> minRatio: 0.7<br> })<br>]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*1M-z655MHHL9l4mzsogQmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*8znBHhzSFYbT8HlwoegYAw.png" /><figcaption>It will generate files like this. Look how .br file is smaller in size than .gz file</figcaption></figure><p>Next step is to serve right file based on accept-encoding header. We will use <a href="https://www.npmjs.com/package/express-static-gzip">express-static-gzip</a> for handling this part for us.</p><pre>import expressStaticGzip from &quot;express-static-gzip&quot;;</pre><pre>app.use(&#39;/build/client&#39;, expressStaticGzip(&#39;build/client&#39; {<br>   enableBrotli: true,<br>   orderPreference: [&#39;br&#39;, &#39;gz&#39;],<br>   setHeaders: function (res, path) {<br>      res.setHeader(&quot;Cache-Control&quot;, &quot;public, max-age=31536000&quot;);<br>   }<br>}));</pre><p>That’s it. Those few lines enables the Brotli compression with fallback to the Gzip compression for all the static resources of your website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d6b2Zp25jkE4yeaeACosGA.png" /><figcaption>Let’s see it in action <a href="https://groww.in/mutual-funds/reliance-small-cap-fund-direct-growth">here</a></figcaption></figure><p>So, in just a few lines of code, we have given a boost to our Webpack powered website. There are various other things that one can do to improve the performance which I will discuss in my next blog.</p><blockquote>If you enjoyed this story, please click the 👏 button and share to help others find it! Feel free to leave a comment below.</blockquote><blockquote>The Groww Engineering publishes technical stuff, latest technologies and better ways to tackle common programming problems. You can subscribe to get them <a href="https://medium.com/groww-engineering">here</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=397a57cf9fc6" width="1" height="1" alt=""><hr><p><a href="https://tech.groww.in/enable-brotli-compression-in-webpack-with-fallback-to-gzip-397a57cf9fc6">Enable Brotli Compression in Webpack with Fallback to Gzip</a> was originally published in <a href="https://tech.groww.in/">The Groww Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>