<?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 Sudhanshu Joshi on Medium]]></title>
        <description><![CDATA[Stories by Sudhanshu Joshi on Medium]]></description>
        <link>https://medium.com/@sudhanshuj0shi?source=rss-73acd9f3597c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sCtsOaERUuG_l05tzcbUDA.jpeg</url>
            <title>Stories by Sudhanshu Joshi on Medium</title>
            <link>https://medium.com/@sudhanshuj0shi?source=rss-73acd9f3597c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 05:28:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sudhanshuj0shi/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[My experience as a Software Engineer at Helpshift]]></title>
            <link>https://medium.com/helpshift-engineering/my-experience-as-a-software-engineer-at-helpshift-7e6652b9cc1d?source=rss-73acd9f3597c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e6652b9cc1d</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[helpshift]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[engineering-culture]]></category>
            <dc:creator><![CDATA[Sudhanshu Joshi]]></dc:creator>
            <pubDate>Wed, 16 Feb 2022 09:14:08 GMT</pubDate>
            <atom:updated>2022-06-28T04:44:07.562Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XrDqHt6duvopcCteQdpfEw.jpeg" /><figcaption>Workation from Bir (Himachal Pradesh)</figcaption></figure><p>I have been at Helpshift for around a year now, and it has been a beautiful experience so far. Filled with mistakes, lots of learning, and surely a lot of fun. From learning how to write good code, documenting projects and meetings, communicating with different teams, to playing FIFA, TT, chess, badminton, football, and so many new board games, it has been amazing.</p><p><em>I work as a Frontend engineer at Helpshift and each day has been kind of fun and challenging. Working on exciting new projects, participating in various kinds of discussions, and cherishing the people and culture that the team has developed, each day is unique in its own sense.</em></p><p>With this article, I will try to cover different aspects that have been a part of my journey here at Helpshift so far.</p><ol><li>Cross-team discussions</li><li>Code review</li><li>Knowledge Sharing</li><li>Tech Debts and Initiatives</li><li>1 on 1 session</li><li>The Fun parts</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F7666771&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fexcited-listening-go-on-jon-stewart-gif-7666771&amp;image=https%3A%2F%2Fc.tenor.com%2FAbP5ekv-nKQAAAAC%2Fexcited-listening.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/a56097bac6a01d61d195a0a72b201938/href">https://medium.com/media/a56097bac6a01d61d195a0a72b201938/href</a></iframe><h3>Cross-team discussions</h3><p>Every project involves a collective effort across teams. The product team comes with documentation around the problem that we are trying to solve and a potential solution to it - <em>The product requirement</em>. After thorough discussions, once the product requirement is all clear, with the help of the product document and detailed design document, the developers are expected to come up with time estimations. The frontend and the backend developer create and decide on an XHR spec, which is the contract for different APIs to be involved in the development process. This basically involves the changes in existing XHRs and details of new XHRs to be added.</p><h3><strong>Code Reviews</strong></h3><p>Once you start with the development phase of the project, you start with getting the dev spec being reviewed by 2 more engineers in the team. A dev spec (developer specification) is basically detailed documentation of the implementation plan, identifying code areas to be changed, new requirements, and pseudo-code for the same. The review discussion is usually initiated by a brainstorming session around the project and its expected implementation. This is done just to make sure that all possible scenarios are covered and nothing is missed, neither from a code understanding point of view nor from an edge case handling point of view. In this process, you are also expected to break the entire project down into smaller tasks with estimations to each.</p><p>Once you start with the coding part, we have a set of coding conventions in place. It is encouraged to make smaller commits, following those conventions and every single commit is reviewed by 2 peer developers. While reviewing a commit, a developer sees it from readability, efficiency, reusability, and adherence to convention point of view. The reviewers either approve the commit if the commit looks good to them or they leave comments specifying things that can be improved upon in the commit. Once all the comments are resolved and you get approval from both the reviewers on the commit, then only the commit gets merged to the branch.</p><p><em>This is one of the very important ways of learning while developing. Similarly, you also review the code of other developers and hence are able to learn by being on both sides of the process.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F19991265&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fstudying-school-reading-kid-child-gif-19991265&amp;image=https%3A%2F%2Fc.tenor.com%2FCtH3jzV7Sa0AAAAM%2Fstudying-school.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/61469511fb627bcc2e423ba17b3ef2c5/href">https://medium.com/media/61469511fb627bcc2e423ba17b3ef2c5/href</a></iframe><h3>Knowledge Sharing</h3><p>Every developer works on a different project and hence comes across different kinds of interesting problems or topics. All such topics get discussed across the team and many get documented for further action. This brings a lot of learning which otherwise you wouldn’t have encountered.</p><p>Also, every Thursday, we have frontend lightning talk which is all about learning new things in the frontend space — be it around performance, libraries, security, browsers, basically anything frontend. One of us comes up with a topic/learning and presents it to the team and explains all of it, the team does discussions around it and whenever there is a possibility of it being helpful for the product, we tend to make one-page documents to take that ahead.</p><p><em>Similar to this, we have more such weekly sessions across teams and an overall engineering lightning talk, every Friday.</em></p><h3><strong>Tech Debts and Initiatives</strong></h3><p>Along with all the efficient code you write, the repositories are also home to some tech debt or things to be improved upon as the tech keeps changing and evolving at such a fast pace.</p><p>It’s important to pause and have a look at those and take initiatives in that direction — how to remove the tech debts, how can we improve the processes, what can make the development cycle faster, and all other things that fall in this territory.</p><p>Also, as mentioned earlier, we have coding standards in place. If during our development phase, we feel like any convention isn’t really helpful, or if any new convention can be helpful, we encourage such discussions and make amendments accordingly as per the larger team.</p><p><em>Taking initiatives in such directions, in identifying debt, in breaking it down into achievable, in improving workflows, is encouraged across the team and done enthusiastically by many. This also works in helping you grow multifold as an engineer.</em></p><h3><strong>1 on 1 session</strong></h3><p>Mentoring is a very natural process in Helpshift. Every day you’ll end up learning something or the other from all the folks here.</p><p>The streamlined process of mentorship is the 1:1 sessions with your managers or senior developers or peer developers. The 1:1 sessions are encouraged to be good meaningful conversations around growth, career, aligning paths, setting and knowing expectations, getting to know the other person and their thought processes better, and insights into how things work in other verticals.</p><p>They can be literally about anything, the way you expect them to be, and hence seek the maximum benefit you can out of them.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F9627169&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Ffun-gif-9627169&amp;image=https%3A%2F%2Fc.tenor.com%2F-lF82nEOjoEAAAAC%2Ffun.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3725d6f6055fc38f434c08feb97c9765/href">https://medium.com/media/3725d6f6055fc38f434c08feb97c9765/href</a></iframe><h3><strong>The Fun parts</strong></h3><p>When I first joined Helpshift as an intern during my last college semester, I was mesmerized by the culture and the people here. Along with being amazing developers, so many of them had such interesting hobbies which they passionately followed along with work. You would find people playing the sitar and tabla in the office after office hours, you would find people playing new board games each day with the same enthusiasm to learn the rules and give it a try. You’ll find people hustling over the TT table, beating each other in FIFA matches and so much more.</p><p>Apart from these, the team books court to play football and badminton on a weekly basis. We go for chai outside the office and have so many varied good and fun conversations. Though now the work environment is hybrid, the passion among people to follow their hobbies, the urge to maintain this culture is still there intact in both online and offline environments.</p><p>Overall, Helpshift is a fun place to be. Not only do you grow technically here, but also as a person and end up building good bonds. I am sure there is a lot that I must have missed mentioning and a lot more that I am yet to experience.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F13896929&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fkel-mitchell-good-burger-eyes-gif-13896929&amp;image=https%3A%2F%2Fc.tenor.com%2FGFVEZORuTm0AAAAC%2Fkel-mitchell.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/17fcfd8ea84fb587b41b9d087d2b51b5/href">https://medium.com/media/17fcfd8ea84fb587b41b9d087d2b51b5/href</a></iframe><p><em>Though this might feel like a marketing article, surprisingly it’s not! This is honestly how my experience at Helpshift has been so far and this is what makes me look forward to growing here.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e6652b9cc1d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helpshift-engineering/my-experience-as-a-software-engineer-at-helpshift-7e6652b9cc1d">My experience as a Software Engineer at Helpshift</a> was originally published in <a href="https://medium.com/helpshift-engineering">helpshift-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Frontend Development: Choosing Libraries the right way]]></title>
            <link>https://medium.com/helpshift-engineering/frontend-development-choosing-libraries-the-right-way-94c1f696d21f?source=rss-73acd9f3597c------2</link>
            <guid isPermaLink="false">https://medium.com/p/94c1f696d21f</guid>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[npm-package]]></category>
            <dc:creator><![CDATA[Sudhanshu Joshi]]></dc:creator>
            <pubDate>Wed, 14 Jul 2021 07:01:14 GMT</pubDate>
            <atom:updated>2021-07-14T07:01:14.309Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8MtzJBA-AD5OQOrrr4eotA.png" /><figcaption>Header image for the article, Choosing Libraries the right way</figcaption></figure><p>While breaking the entire project into smaller tasks or components, we often end up finding patterns that seem to be common problems to have been solved by many developers beforehand.</p><p>The basic idea while developing a piece of code is to not spend time on things that are just about reinventing the wheel and to reuse parts wherever possible, and this is where frameworks and libraries come into the picture.</p><p>Libraries are like the refined packaged solution to those common problems which have been worked upon by many developers and hence provide us with a ready-to-use piece of code, making the development cycle a bit easier.</p><p>Though all of this looks very beautiful to think about, the sheer abundance of so many options to choose from leads the developers into another web of confusion.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F13933485&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fah-shit-here-we-go-again-ah-shit-cj-gta-gta-san-andreas-gif-13933485&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fimages%2Fae01db3b5f7d698d1c3a752a3fe99d31%2Ftenor.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b2fa3f4e0d36e5e51d4e6ec7886c00e/href">https://medium.com/media/8b2fa3f4e0d36e5e51d4e6ec7886c00e/href</a></iframe><p>This is exactly what we would try to make simpler today! Through this article, I would try to lay out a process and factors to consider for choosing a library.</p><p><strong>It is important to have a clear understanding of the problem you are trying to solve.</strong> For example:</p><ul><li>If your need is to have a collapsible list, you would just want to include an accordion component library in your project instead of a library that has a pool of other components too.</li><li>If your need is to have multiple (from the atomic level to hybrid level) ready-to-use components and make the development faster, you would probably go for a library that has a pool of components instead of selecting a separate library on a component-to-component basis.</li><li>What kind of functionality/behavior should that component have in place and how much customization are you able to observe in the library. Does it provide ease to make those customizations exclusively instead of you making efforts and changes in its codebase?</li></ul><p>When you have these requirements and understanding in place, figure out 3–4 libraries that you feel would suit your use case best, and then we can select the best fit out on the basis of the factors discussed. You can just search for your requirement in the <a href="https://www.npmjs.com/">npm directory</a> to get a list of libraries.</p><figure><img alt="Snippet example of searching for an accordion component to be used in a react project in npm website" src="https://cdn-images-1.medium.com/max/1024/0*-AzfEKUCqDSAmhP1" /><figcaption>Example: Looking for an accordion component to be used in a react project</figcaption></figure><p><em>After sorting down to 3 – 4 libraries, I finalize upon a library by considering the following factors:</em></p><ul><li><strong>Bundle size:</strong> Size that the package brings with it to the project.</li><li><strong>Accessibility:</strong> A11y principles followed by the library.</li><li><strong>Cross-browser compatibility:</strong> Browser support that the library provides.</li><li><strong>Customizable/Flexibility:</strong> Ease to customize the component.</li><li><strong>Community:</strong> Popularity of the library (Usage and maintenance).</li><li><strong>Free for commercial use/License:</strong> License under which the library is released.</li><li><strong>Security vulnerability: </strong>Potential security risks that the library might bring with it to your project.</li></ul><p><em>Now let’s try to understand one by one in detail why these factors are important and how to compare.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F5011220&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fare-you-ready-gif-5011220&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fimages%2Fc9667d2693388a6fd1d6a22c5fe76936%2Fraw&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/47b3590a0241997a281eef4ce9117717/href">https://medium.com/media/47b3590a0241997a281eef4ce9117717/href</a></iframe><ol><li><strong>Bundle Size: 📦</strong></li></ol><ul><li>The idea behind bundling is to group multiple files or modules into a single file or module. Therefore, it helps in reducing the number of individual HTTP requests to the server for fetching the files.</li><li>Bundlers also come in handy to reduce the total file size by performing optimizations- identifying unused code, identifying dependency relations to make fetching easier, and many such optimizations to basically have an efficient file being served to the browser.</li><li>Now coming back to the point, lower bundle size or package size would basically mean less javascript being served to the browser which would eventually improve the page load time and hence making the performance of the web page better!</li><li>So while choosing any library, we should take into consideration the size that the package brings with it to your project. There are two ways to look at it:</li></ul><p>→ Unpacked size: This is basically the unzipped size of the package. You can have this data from npm documentation of the library.</p><figure><img alt="Snippet of Unpacked Size comparisons of packages via npm documentation" src="https://cdn-images-1.medium.com/max/974/1*NgVZsM-MKaoL5n3OrX5euA.png" /><figcaption>Unpacked Size comparisons of packages via npm documentation</figcaption></figure><p>→ Minified bundle size:<strong> </strong>This is a more optimized size that the package would include in the project. Utilities such as bundlephobia do a good job to get this metric. It also helps in identifying if the package supports tree shaking or not. (<a href="https://bundlephobia.com/"><em>Bundlephobia</em></a><em> is preferred for frontend packages and </em><a href="https://packagephobia.com/"><em>packagephobia</em></a><em> for backend packages</em>)</p><figure><img alt="Snippet of Minified bundle size comparison of packages via bundlephobia" src="https://cdn-images-1.medium.com/max/1024/1*89VJk3N0Zp6KKHAUiNYEcA.png" /><figcaption>Minified bundle size comparison of packages via bundlephobia</figcaption></figure><p><strong>2. Accessibility: </strong>♿</p><p>As the name suggests, accessibility is about making your web pages accessible to as many people as possible.</p><blockquote>Think of accessibility as treating everyone the same, and giving them equal opportunities, no matter what their ability or circumstances. Just as it is wrong to exclude someone from a physical building because they are in a wheelchair (modern public buildings generally have wheelchair ramps or elevators), it is also not right to exclude someone from a website because they have a visual impairment<em>. — </em><a href="https://developer.mozilla.org/en-US/docs/Learn/Accessibility/What_is_accessibility"><em>MDN docs</em></a></blockquote><p>Accessibility is also enforced by the law in some countries, and hence not wanting to lose customers would also mean you follow the best practices while developing your product. In my opinion, it should not be considered as an afterthought but should be considered an equally important part of your development cycle.</p><p>Making your website accessible would potentially involve: <em>Use of semantic HTML for creating components, the right use of aria tags, having proper contrast of color, adding keyboard event listeners, adding alt texts, and proper roles so that the accessibility tree that the browser produces covers everything that is visually present to be conveyed in the best way possible by the screen readers too.</em></p><p>And hence, while considering any library you must keep this factor in mind. Most of the libraries in the npm documentation either specify this separately as to which accessibility guidelines it adheres to or have the accessible tests in their storybook component demo or would provide with just the demo of the library. If it is just a demo, you can check out the accessibility tree for that component using the developer tools and choose for yourself which library takes care of it best.</p><figure><img alt="Snippet of Comparison of accessibility trees for different libraries" src="https://cdn-images-1.medium.com/max/1024/1*FLZQehoAyczRh1_R_8LITQ.png" /><figcaption>Comparison of accessibility trees for different libraries</figcaption></figure><p><strong>3. Cross-browser compatibility </strong>🌐</p><p>A good website is one that works the same way across all the browsers and in case if some browser lacks some feature, it should handle such scenarios properly.</p><p>This is what cross-browser compatibility talks about and hence should be considered while choosing a library so that you don’t have to code and handle such scenarios by yourself.</p><p>You’ll find this info in the npm documentation itself in most of the scenarios.</p><p><strong>4. Security vulnerability </strong>🛡️</p><p>Along with all the good parts, open-source code might come with some security vulnerabilities that might get exploited and can cost your product/company, it might get vulnerable to some malware injections, data breaches, or DDOS attacks.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F15705678&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fziekenhuisbal-steward-guard-security-guard-guard-check-gif-15705678&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fimages%2F53b0438d5aa65427be4f32022dc3d593%2Ftenor.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e34b100c867a178d5f501631e76eca0d/href">https://medium.com/media/e34b100c867a178d5f501631e76eca0d/href</a></iframe><p>So this is one concern that you must keep in mind and check thoroughly while finalizing your library. This is where vulnerability scanner utilities can help you. You can use scanners such as <a href="https://snyk.io/advisor/">synkAdvisor</a> to see the security issues with any packages and it also tells how healthy a package is taking into consideration security and few other factors that we discussed.</p><figure><img alt="Snippet of comparison of different libraries on the basis of their security metrics and health score via synkAdvisor utility" src="https://cdn-images-1.medium.com/max/1024/1*yB0sc8B6a1z7XpmSVaYMgg.png" /><figcaption>Comparison of different libraries on the basis of their security metrics and health score via synkAdvisor utility</figcaption></figure><p><strong>5. Customisable/Flexibility </strong>⚙️</p><p>While you do sort these 3–4 libraries based on your requirements, the exact match is hard to find. A component that would follow the same color theme, same functionality/behavior, and same styling to the component and its content would probably never be the case.</p><p>So in order to align the chosen component with the exact requirement, what eases the development is the flexibility that the component provides with respect to customizations.</p><p>So while you finalize a component, do have a look if the component provides that ease for customizations, does it provide props to achieve those customizations or not.</p><p><strong>6. Free for Commercial use/license </strong>🆓</p><p>An open-source license tells you what you can and can’t do with the open-source code. Consuming the library for your company’s project would mean that you will be consuming it for profitable use cases and you would not want to get into any compliance requirements or legal concerns around the consumption.</p><p>So it is good to have an idea about the types of open-source licenses there are and which one you would want to choose. You can get to know about the license under which a particular library is released via the npm documentation.</p><figure><img alt="Snippet of Licenses across different libraries" src="https://cdn-images-1.medium.com/max/1024/1*zR9rnCbi4t_cOVnX-0BgZQ.png" /><figcaption>Licenses across different libraries</figcaption></figure><p><a href="https://fossa.com/blog/open-source-licenses-101-mit-license/">MIT License</a> is by far the most popular open-source license and it comes with zero concerns around any legal aspects, making profit out of the library or open source your usage code.</p><p><strong>7. Community </strong>👩🏼‍💻</p><p>One of the most important factors that are easily visible and very convincing while selecting a library is the consumption of that library by the developers. How actively is the community using it and how actively are developers contributing to it and maintaining it!</p><p>You can consider this factor by comparing the weekly downloads from the npm documentation. Another way is to compare the stats from GitHub repos of the packages, by seeing the stars on the repo or the ‘used by’ section to see how many projects are dependent on it.</p><p>For more detailed and well-documented data around this, you can also check the utilities such as <a href="https://snyk.io/advisor/">synkAdvisor</a>, which beautifully represents everything that’s stated above plus maintenance graphs and stats around it.</p><p><strong><em>Conclusion </em></strong>🏁</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F19896540&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fthe-office-michael-scott-iguess-this-is-it-this-is-it-this-is-the-end-gif-19896540&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fimages%2Ff40106c0c4aba13621c94ffc47a17c6e%2Ftenor.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/4aecd12d7d84bc5783b0577bc434fc3c/href">https://medium.com/media/4aecd12d7d84bc5783b0577bc434fc3c/href</a></iframe><p>This seems to be like a long process to follow up on, but trust me it would save your time from just mindlessly looking for different libraries and building out perceptions rather than factual comparisons. Once you have gone through each of these factors, you would have a clear idea around which library aligns with your needs best, and boom — <em>You have your library </em>📦<em> selected!</em></p><p><em>Thanks to Vedang Manerikar and Nachiket Kakatkar!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94c1f696d21f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helpshift-engineering/frontend-development-choosing-libraries-the-right-way-94c1f696d21f">Frontend Development: Choosing Libraries the right way</a> was originally published in <a href="https://medium.com/helpshift-engineering">helpshift-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Sybil Attack]]></title>
            <link>https://medium.com/b-in/understanding-sybil-attack-8c74ce534651?source=rss-73acd9f3597c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c74ce534651</guid>
            <category><![CDATA[blockchainatindia]]></category>
            <category><![CDATA[sybil-attack]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[understanding]]></category>
            <dc:creator><![CDATA[Sudhanshu Joshi]]></dc:creator>
            <pubDate>Fri, 07 Jun 2019 09:09:33 GMT</pubDate>
            <atom:updated>2019-06-07T10:09:43.862Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding Sybil Attacks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*L5E7h935TlPJQs1cmnrNDg.png" /></figure><p>Since I started studying and exploring the field of blockchain, I have been intrigued by how different concepts are used around and bundled together. There is so much to learn and explore in this field and it&#39;s actually fascinating. One such concept that I came around is Sybil Attack. I tried reading a white paper on it and that’s when I decided to write something simpler for people to understand.</p><h4>So, What actually are Sybil Attacks?</h4><p>A Sybil attack in computer security is an attempt by an individual to take over the network by creating multiple identities/accounts/nodes on the same network which appear to be different unique identities to every other participant of that network. The motive behind a Sybil attack is to undermine the authority/power in the reputation systems. To understand this in simpler terms — the objective is to achieve a majority in the network to carry out processes(which do not align with the set of rules within the network) in the network as desired by the individual causing this attack. Let us understand this better with a real-world situation which caused a lot of tension but it will help to make this concept easier, unlike the situation it created.</p><p>There was an allegation of Russian interference in the United States’s election which claimed the use of fake social media accounts to spread a political influence campaign to disrupt the midterm election. This is a kind of Sybil-attack because it influenced people with the use of fake identities under a common hood. Though it did create an influence it didn’t affect the network in general that is facebook hence this is known as a pseudo-Sybil attack.</p><p>Now, before going deeper into how blockchain is related to Sybil attacks or how they can be prevented let me brief you about how the name Sybil was chosen. In 1973, a book named Sybil was published. It was about a woman named Sybil Dorsett who was being treated by her psychoanalyst Cornelia B. Wilbur for dissociative identity disorder also known as multiple personality disorder. The similarity in the concept led Brian Zill at Microsoft Research to suggest the name Sybil Attack. Interesting! Isn’t it?</p><p>One such system which is highly vulnerable for such attacks is the blockchain network. The Blockchain network is made up of different nodes and these nodes use the consensus algorithm such as Proof of Work(PoW) for reaching out a conclusion i.e. whether the block to be added is correct or not. Since the consensus requires an agreement from the majority about the authenticity of the block, it is required that these nodes are not controlled by a single entity so that the addition of faulty nodes could be prevented. This is where Sybil attack finds its place; If the attackers create enough fake identities, the attackers can outvote the honest nodes from the network. In such cases, even the order of transactions can be changed; But managing such a large amount of computing power is considered to be almost impossible.</p><p>To prevent Sybil attacks on a blockchain network, different consensus algorithms such as Proof of Work(PoW), Proof of Stake(PoS), Delegated Proof of Stake(DPoS) are used. Though they don’t directly prevent the Sybil attack, they make it practically impossible for the attackers to carry out the Sybil attack. The common concept behind these consensus algorithms is to attach a cost for creating an identity in the network. For example in Proof of Work(PoW) consensus algorithm, the user has to perform a set of difficult calculations/puzzles and then only they are able to add a block. An attacker who tries to flood the network with a huge number of fake identities will have to solve the calculations/puzzles the corresponding number of times, costing money in computing cycles and making the attack more difficult and inefficient. This is what limits the attackers from flooding and taking over the network.</p><p>Sybil attack is surely an interesting topic, isn’t it? There are many such interesting concepts in the world of blockchain and I will be trying to write as many as possible. Thank you for reading the article and stay connected to reading the new ones.</p><p><strong>About Sudhanshu<br></strong>Sudhanshu is a final year computer engineering undergraduate who has an interest in the field of full-stack development and Blockchain. He loves to automate stuff and is always enthusiastic about learning and solving real-world problems. Find him on <a href="https://www.linkedin.com/in/sudhanshu-joshi-27a236157/">LinkedIn</a>.</p><p><strong>About B@I<br></strong>Blockchain At India is a community formed by blockchain enthusiasts who aim to inspire university undergraduates from every nook and corner of the country to try their hands out at blockchain by providing the necessary motivation, drive and resources.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F26bf07%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F26bf07%2F&amp;image=http%3A%2F%2Fapi.screenshotlayer.com%2Fapi%2Fcapture%3Faccess_key%3Dfe59908dad3baab69ffab249a2224b03%26viewport%3D1024x612%26width%3D1000%26url%3Dhttps%253A%252F%252Fupscri.be%252F26bf07%253Fscreenshot&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/b3e1cf93b1f2b69428d4b40ee361cc14/href">https://medium.com/media/b3e1cf93b1f2b69428d4b40ee361cc14/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c74ce534651" width="1" height="1" alt=""><hr><p><a href="https://medium.com/b-in/understanding-sybil-attack-8c74ce534651">Understanding Sybil Attack</a> was originally published in <a href="https://medium.com/b-in">Zubi</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Merkle Tree and Its Importance]]></title>
            <link>https://medium.com/b-in/understanding-merkle-tree-and-its-blockchain-use-case-cca1beecf9bd?source=rss-73acd9f3597c------2</link>
            <guid isPermaLink="false">https://medium.com/p/cca1beecf9bd</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[merkle-root]]></category>
            <category><![CDATA[merkle-tree]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Sudhanshu Joshi]]></dc:creator>
            <pubDate>Wed, 23 Jan 2019 20:24:26 GMT</pubDate>
            <atom:updated>2019-06-05T06:22:08.174Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding Merkle Tree</h3><h4>Why is it important in Blockchain?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*M8bzmkUjL-8cJsNGz1FpDw.png" /></figure><p>Merkle tree, also known as the hash tree was named after Ralph Merkle who patented it in 1979. Merkle tree is a binary tree which helps in an efficient and secure record validation in any network irrespective of the amount of data in the network. Because of this unique property, Merkle tree plays a significant role in the blockchain network where the transaction records in the ledger are boundless and no one can delete it. In a Merkle tree, the nodes store cryptographic hashes instead of data values and this is actually the underlying technology which makes it work. For understanding how exactly Merkle trees work and what makes them so important we first need to get an idea of what cryptographic hash functions are.</p><h3><strong>Cryptographic hash functions</strong></h3><p>Cryptography or hashing, in general, is something which is largely used in any blockchain system. To understand it in simple terms, cryptographic hash functions can be thought of as a black box to which we provide input and receive an output which is fixed in length. This fixed length output is termed as a cryptographic hash or hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*44A8nh4B7uroT-hMvTzGvw.png" /></figure><p>The output of a particular data value will always provide the same hash but if any change is made to the value, a new hash gets generated. So even if a record is changed only by a character, the difference can be spotted by the changed hash of the data value. The hashing algorithm used in a cryptographic hash function is open for choices but the most widely used hashing algorithm is the SHA-2 (Secure Hash Algorithm-2).</p><p>Now, since we have a basic understanding of how cryptographic hash functions work, we are good to move forward to understand the working of a Merkle tree.</p><h3><strong>Understanding Merkle Tree</strong></h3><p>As stated earlier, the Merkle tree is a binary tree. The leaf nodes in a Merkle tree contains the hash of the transaction data and every other node is a hash of its underlying nodes. The Merkle tree is created by repeatedly hashing the pair of nodes until we are left with only one hash. This hash is called the <strong>Root Hash</strong> or the <strong>Merkle Root</strong>. Since Merkle trees are binary, they need an even number of leaf nodes but in case the number of transactions is odd, then the last node is replicated to create an even number of leaf nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5_IxeqmimPB5ZccFpkECg.png" /></figure><p>Let’s look at an example for better understanding: Let us consider that we have 4 transaction records namely — txA, txB, txC and txD. These transaction records are hashed and stored in leaf nodes A, B, C and D respectively. The consecutive pair of leaf nodes is then supplied to a cryptographic hash function to form another single hash. Let’s say the leaf nodes A and B form a node AB and the leaf nodes C and D forms another node CD. These two hashes AB and CD are then supplied to the cryptographic hash function and we obtain the final hash. Since this is the last hash of this Merkle tree, we call it the Merkle root (ABCD). This is how a Merkle tree is generated.</p><h3><strong>Merkle tree in blockchain</strong></h3><p>As stated earlier Merkle tree plays a significant role in the blockchain network, let us try to understand the why behind it. A blockchain is a continuously growing list of records or blocks which are linked to each other. Each block in the blockchain contains a hash pointer to its previous block, transaction data and timestamp. These transaction data can be stored in blocks, which are actually the leaf node of a Merkle tree and the root hash can then be stored in the block. So these continuously growing records in the blockchain network can be stored in an efficient manner. Bitcoin was the first blockchain network to use the merkle tree. It uses the SHA-256 hash function for creating the hashes and hence the Merkle tree. The created Merkle root is 32 bytes in size.</p><p>Merkle tree helps in checking whether a transaction is tampered or not. If anyone tries to change the transaction then as discussed earlier its hash also changes. Now, the change in a hash of this specific transaction will lead to changes in the subsequent hash generated with the previous nodes and hence the Merkle root will differ from the original Merkle root and therefore not even a slightest of change can be performed.</p><p>Apart from providing a tamper-proof network, Merkle tree also helps in verifying a transaction. With the help of the merkle tree, we can verify whether a particular transaction has been included in a block of our network or not without having to download the entire blockchain. If Merkle tree would not have been there then to check whether a transaction belongs to a block or not we would need to download the whole copy of the ledger and compare it with every record. But luckily with the Merkle tree, the scenario is much simpler and efficient. We only need to check the lightweight hashes for verifying a transaction, to validate whether a transaction was a part of the ledger or not we will only need the nodes which will be helping to make the Merkle root/root hash rather than requiring each and every node.</p><h3><strong>Conclusion</strong></h3><p>Merkle trees are an efficient and secure method to organize large data records. Its application in the blockchain world is very powerful as one of the important features of blockchain the immutability of the ledger can be handled well by maintaining the records in a much efficient manner. Imagining the blockchain to have the same power without the existence of the Merkle tree is not even possible.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F26bf07%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F26bf07%2F&amp;image=http%3A%2F%2Fapi.screenshotlayer.com%2Fapi%2Fcapture%3Faccess_key%3Dfe59908dad3baab69ffab249a2224b03%26viewport%3D1024x612%26width%3D1000%26url%3Dhttps%253A%252F%252Fupscri.be%252F26bf07%253Fscreenshot&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/b3e1cf93b1f2b69428d4b40ee361cc14/href">https://medium.com/media/b3e1cf93b1f2b69428d4b40ee361cc14/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cca1beecf9bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/b-in/understanding-merkle-tree-and-its-blockchain-use-case-cca1beecf9bd">Understanding Merkle Tree and Its Importance</a> was originally published in <a href="https://medium.com/b-in">Zubi</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>