<?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 Aditya Modi on Medium]]></title>
        <description><![CDATA[Stories by Aditya Modi on Medium]]></description>
        <link>https://medium.com/@aditya.modi?source=rss-b0ede6a2b917------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*A0HwvHhFzrhU0kwbnhM_og.jpeg</url>
            <title>Stories by Aditya Modi on Medium</title>
            <link>https://medium.com/@aditya.modi?source=rss-b0ede6a2b917------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 13:55:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aditya.modi/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[How I Convinced My Boss to Migrate to React]]></title>
            <link>https://medium.com/@aditya.modi/how-i-convinced-my-boss-to-migrate-from-angularjs-to-react-83ca10b7a24?source=rss-b0ede6a2b917------2</link>
            <guid isPermaLink="false">https://medium.com/p/83ca10b7a24</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Aditya Modi]]></dc:creator>
            <pubDate>Wed, 10 Jul 2019 15:14:05 GMT</pubDate>
            <atom:updated>2019-07-17T14:58:40.068Z</atom:updated>
            <content:encoded><![CDATA[<h4>The pros and cons of migrating to React</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*nFFgJBVcdM4dD-bj7uNw4Q.png" /></figure><h3>Prologue</h3><p>Ask a car dealer and he will tell you 50 reasons why you should upgrade to the latest model. Ask a web developer and he will tell you 100 reasons why your website sucks. Ask your partner and she will tell you 500 reasons why her wardrobe is obsolete.</p><p>We live in a world where everything a faster, better alternative (or upgrade) is available. Going by car dealership logic, you should be buying a new car every year. But do you? My web technologies progress many times faster than advances in the world of automobiles and fashion. Web frameworks have a brutal lifecycle and if we put it in the most “Stack Overflow” way:</p><p><em>JavaScript UI frameworks and libraries work in cycles. Every six months or so, a new one pops up, claiming that it has revolutionized UI development. Thousands of developers adopt it into their new projects, blog posts are written, Stack Overflow questions are asked and answered, and then a newer (and even more revolutionary) framework pops up to usurp the throne.</em></p><p>Last year, in a similar fashion, ReactJS usurped the throne from AngularJS. The same cycle repeated. Many developers working on our AngularJS projects requested a change of hand and I pressed the demand to my boss.</p><p>It was a cakewalk. I booked an appointment, met him right after lunchtime when he is in his best mood with a pack of chocolates, praised his management skills and how all employees praise and voila, he not only approved all the demands but pushed to get the migrations over in the shortest time.</p><p>If at all this was so simple. Rather, he counter-convinced me that we don’t need to migration at the moment. When I told him that all the developers are pushing for a React migration, he told me to submit a detailed proposal including long-term monetary benefits.</p><p><em>Useful tip: Use </em><a href="https://bit.dev/"><strong><em>Bit</em></strong></a><strong><em> </em></strong><em>(</em><a href="https://github.com/teambit/bit"><em>Github</em></a><em>) to encapsulate your components and build truly modular apps. Easily share and sync your components across projects to speed development and simplify maintenance.</em></p><p><a href="https://bit.dev/">Bit. Composable software.</a></p><figure><a href="https://bit.dev/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ns2l6w5Jn8zrnWoDXRVng.png" /></a><figcaption>Encapsulate, share and reuse components across apps</figcaption></figure><h3>A Year of Migrations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*42gWip5qC3ZR4A9aYJZyXg.png" /></figure><p>In 2018 alone, we received close to a hundred emails from developers working on our AngularJS applications with one question, “When will we migrate to React? They have little to no decision-making power and someone had to convince my boss on their behalf. I took the job and it did not go out very well for me. Did I mention it? Two of the three advisors to my boss are from a non-developer background. It is hard to make the theory of relativity understandable to a bartender. They asked me questions after questions about React and AngularJS. And boy, those were some tough questions. Of course, I could not crack all of them. But, eventually, I convinced him to go for React migration.</p><p>This blog is for any of you: developers, supervisors, managers who are done with AngularJS and don’t want to wait till 2021 to make the big switch. It’s a collection of efforts — what worked for me and what did not. Above all, what your boss likes to hear.</p><h3>The Perspective of Business People on Technology Migrations</h3><h4>“Business Point of View”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*VutHegdulQNhO3xiOgQYAw.png" /></figure><p>People running businesses are the least interested in specs-sheets and other fanboy stuff. Businesses invested in AngularJS because somewhere down the line they saw some business potential in it and today, their application interests in AngularJS are in jeopardy. They are apprehensive as to whether ReactJS could run into the same spot one day. ReactJS is where AngularJS was once upon a time. Your developers might be excited about moving to a new technology; migrations of any sort depress your boss. They come with an additional, unprotected cost. In the ideal world, there should be no migration, only upgradations.</p><p>Whether you are migrating from one office to another or one technology to another, migrations are costly. When you’re convincing your boss to approve the migration to React, you’re actually making him believe that the long term benefits will overshadow the cost.</p><h4>Convince Yourself from Technical and Business Point of View First</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*fULPcEIcS0RBOcSiINcbMw.png" /></figure><p>If you’re someone who’s going to pitch the idea of <a href="https://www.topsinfosolutions.com/angularjs-react-migration-services/">AngularJS to React Migration</a> to your boss, you need to pitch that idea to yourself first. If the idea of coding in JSX allures you because it is fun to write, then trust me you’re not in a good position to pitch the idea yet. Fine JSX makes HTML and JavaScript one single affair romancing in React components, but where the business benefit is. My boss took a special interest when I told him how much faster it is to write JSX code than vanilla JavaScript. Faster coding means fewer man-hours, which means less cost and effort and faster time to market.</p><p>So it was a call with my boss. He was holidaying in Hawaii and I wanted to make sure I have a really strong case to convince him in favor of migration. I, somehow, convinced all three of his advisors and he was the only one in the way. Of course, unless you’re Apple you don’t have a supplementary cash pile lying somewhere in California. As a boss, he has to make most of every part of revenue. It was a huge project, migrating seventy unique websites to ReactJS. But my boss was adamant.</p><p>Tens of presentations, whitepapers and video calls with me, React developers and business developers and he was still unconvinced. The last resort for us was to fly to Hawaii and convince him in person. As the last-ditch efforts before ‘migrating’ ourselves to the US, we created a demo site in React, allowing users to customize a 3D model of the vehicle to their requirement. They could add a fresh coat of paint, spoiler, decals, new set tires, etc. My boss convinced long breathe.</p><h4>Don’t Say It, Show It: Analogies, Business Examples Help</h4><p>That has automobile DNA running in his veins. Our earlier pitch had too many technical features of React: Virtual DOM, JSX, Redux, Components, etc. and, naturally, he was juxtaposing them with car features. Car features are customer centric while the features we were putting in the proposal were developer centric. We realized the problem a little later and our “show it” strategy convinced him without terming us desperate. React made us create such a demanding website in a couple of day and it was responsive on most devices. This addressed all the skepticism raised by him.</p><h4>Breaking Down One-way Data Binding to my Boss</h4><p>One-way, downward data binding is an exciting feature of React that makes many developers coming in its way. So how would you explain it to a CEO who has zero development experience? I can’t stop talking about this analogy. This was the first time I was explaining one-way data binding to my boss. It was a tricky subject to make understand an inexpert.</p><p>I made him understand the concept with a pipeline analogy. I asked him how he would design a piping system for a multistory. He gave me the expected answer: pump the water to an overhead tank and distribute it to every one down below. I asked him would he build a piping system where water can flow upwards too. He looked confused. Then I asked him why is he still insisting on AngularJS? That was one breathtaking moment.</p><h4>Create Necessity, Don’t Sell Luxury</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*0geL9XqtBDhsnpVFTxqm4g.png" /></figure><p>Most businesses don’t have budget for luxury and if you think they are going to migrate their entire technology stack to React just because their developers have fun coding in JSX, you are living one big lie. Business decision is based on many factors, luxury is not one of them, and cost is a dominating factor. Business will make the migration when they absolutely have to and there is no way around. The fate of AngularJS will make migration to another JavaScript library or framework will be a hard nut to crack for many trying to convince the people in decision making. There is a reason business relations are based on trust and value propositions than convenience and apprehensions. Period!</p><h3>Learn More</h3><ul><li><a href="https://hackernoon.com/the-future-of-web-development-8da936743d5c">The Future of Web Development</a></li><li><a href="https://blog.bitsrc.io/the-state-of-angular-in-2019-b5fb7783a1c6">The State of Angular in 2019</a></li><li><a href="https://blog.bitsrc.io/11-react-component-libraries-you-should-know-178eb1dd6aa4">11 React UI Component Libraries you Should Know in 2019</a></li></ul><figure><a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=tech&amp;utm_content=guest_post_image"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PYxBP_WV7LI6zc-zdUkNqQ.png" /></a></figure><p>📝 Read this story later in <a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=tech&amp;utm_content=guest_post_read_later_text">Journal</a>.</p><p>👩‍💻 Wake up every Sunday morning to the week’s most noteworthy stories in Tech waiting in your inbox. <a href="https://usejournal.com/newsletter/noteworthy-in-tech/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=tech&amp;utm_content=guest_post_text">Read the Noteworthy in Tech newsletter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83ca10b7a24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Use jQuery With Angular (When You Absolutely Have To)]]></title>
            <link>https://medium.com/bitsrc/how-to-use-jquery-with-angular-when-you-absolutely-have-to-42c8b6a37ff9?source=rss-b0ede6a2b917------2</link>
            <guid isPermaLink="false">https://medium.com/p/42c8b6a37ff9</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[jquery]]></category>
            <dc:creator><![CDATA[Aditya Modi]]></dc:creator>
            <pubDate>Mon, 27 May 2019 14:49:51 GMT</pubDate>
            <atom:updated>2025-03-06T08:06:30.096Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn how to use jQuery in your Angular app</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*VweW26nPA-Vtt9FaWMkdMg.png" /></figure><p>Not often, I start something on a cautious note. However, I will make an exception this time because when it comes to integrating jQuery in Angular, things get a little weird. Why I am writing this blog in the first place? Well, a few use cases need jQuery to go with Angular development. However, be aware that it goes against the nature of JavaScript frameworks like Angular to mess around with jQuery. Angular is responsible for rendering and manipulating the DOM and if you’re interfering with it using jQuery, you might get some unwanted results.</p><figure><a href="https://bit.cloud/"><img alt="Build in AI speed — Compose enterprise-grade applications, features, and components" src="https://cdn-images-1.medium.com/max/1024/1*yX0vq3scSudyT61IuWFuEg.png" /></a><figcaption>Build in AI speed — Compose enterprise-grade applications, features, and components</figcaption></figure><p>Nonetheless, as I’ve said, there might be some cases where it is required, where it really helps, where it’s a little workaround, and where it is ok to use. These use cases are beyond the scope of this blog. I might cover them in a blog, later. Well for then, let me show you how to add jQuery to Angular. I will be using VS Code throughout the tutorial. You are free to use the code editor of your choice or you can download <a href="https://code.visualstudio.com/download">Visual Studio Code for Windows, Linux and macOS.</a></p><h4><strong>Adding jQuery to Angular</strong></h4><p>You need to create an Angular application using ng new command and then you need to ‘cd’ into that folder to install jQuery via NPM in the development environment. I am going to name the application angularmeetsjquery.</p><pre>ng new angularmeetsjquery</pre><pre>cd angularmeetsjquery</pre><pre>npm install jquery — save</pre><p>Sounds great but jQuery purist would prefer a jQuery CDN over downloading it over npm. The CDN is another way to add jQuery to your Angular application although I prefer the ‘npm’ method. If you browse <a href="https://jquery.com/download/">https://jquery.com/download/</a>, you will find jQuery CDN and other CDNs by Google, Microsoft, CDNJS and jsDelivr. I would recommend you stick with the latest version of the official CDN as it supports Subresource Integrity (SRI).</p><p>To use the jQuery CDN, just reference the file in the script tag directly from the jQuery CDN domain. The code with Subresource Integrity attribute will look like this. As you see I am using jQuery 3.3.1 here.</p><pre>&lt;script</pre><pre>src=”https://code.jquery.com/jquery-3.3.1.js&quot;</pre><pre>integrity=”sha256–2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=”</pre><pre>crossorigin=”anonymous”&gt;</pre><pre>&lt;/script&gt;</pre><p>You can copy the script from code.jquery.com. Then copy the script and paste it in the index.html file under &lt;body&gt;.</p><h4><strong>Making jQuery library ‘Global’</strong></h4><p>In jQuery module, jquery.min.js under ‘dis’ folder is not public. To make jQuery global, head over to .angular-cli.json file and pass reference to the jQuery file path.</p><p>When we reference a file path inside Angular application, the root folder is ‘src’. However, jQuery library is inside node_modules. We need to define the right path in .angular-cli.json file</p><pre>../node_modules/jquery/dist/jquery.min.js</pre><p>To confirm this path, go to node_modules→jquery→dist→jquery.min.js. You will see the path, which means you have added jQuery library globally into this application. Don’t expect ‘localhost:4200’ page on your browser to reload itself since the file is outside ‘src’ folder. To make up for these new changes in the application, we have to rerun this application.</p><pre>ng serve –open</pre><h4><strong>Using jQuery in Angular application</strong></h4><p>To start using jQuery with Angular, head over to app components. I am going to present a simple demo of how Angular and jQuery can work in unison with a simple HTML button. You need to delete every line of code in app.component.html file and add a simple HTML button.</p><pre>&lt;button&gt; Click me &lt;/button&gt;</pre><p>The localhost instance will auto reload to show the button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2i3MWDPrpy-ECmXv-gQHZw.png" /></figure><p>We need to declare to jQuery symbol in app.component.ts file.</p><pre>declare var $: any;</pre><p>You need to implement ngOnInit Lifecycle Hook. You can import OnInit from Angular Core.</p><pre>import { Component, OnInit} from ‘@angular/core’;</pre><p>Then, you need to implement ngOnInit Lifecycle Hook.</p><pre>export class AppComponent implements OnInit {</pre><p>You can write jQuery code inside the method ngOnInit whether DOM is ready or not, as you would in traditional web application development. To test the button we created in app.component.html, add a button.click event inside ngOnInit method.</p><pre>export class AppComponent implements OnInit {</pre><pre>ngOnInit(){</pre><pre>$(‘button’).click(function(){</pre><pre>alert(‘Wass up!’);</pre><pre> });</pre><pre> }</pre><pre>}</pre><p>When you click the button, it will say ‘Wass Up’.</p><h4><strong>Verdict</strong></h4><p>Neither adding nor using jQuery with Angular is a tough bet. The methods are straightforward without any unnecessary complexities. However, as I’ve said at the beginning of this blog — no matter how tempting it may sound to use these two technologies together, it is often a bad idea because in real-world Angular applications you would be working on a far more complicated app than an HTML button connected to an event. My note to all <a href="https://www.topsinfosolutions.com/angular-development-services/">Angular developers</a> looking for the next opportunity to bring JQuery into their TypeScript code: do not do it unless you have to. Best of luck with your coding experiments around jQuery and Angular.</p><h3>Build frontend apps with independent components and teams using Micro Frontends</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*PMAicpZLCKFZjKpO.png" /></figure><p><a href="https://bit.cloud/"><strong>Bit</strong></a><strong>’s open-source tool </strong>helps 250,000+ devs to build apps with components.</p><p>Turn any UI, feature, or page into a <strong>reusable component</strong> — and share it across your applications. It’s easier to collaborate and build faster.</p><p><strong>→ </strong><a href="https://bit.dev/"><strong>Learn more</strong></a></p><p>Split apps into components to make app development easier, and enjoy the best experience for the workflows you want:</p><h4>→ <a href="https://blog.bitsrc.io/how-we-build-micro-front-ends-d3eeeac0acfc">Micro-Frontends</a></h4><h4>→ <a href="https://blog.bitsrc.io/how-we-build-our-design-system-15713a1f1833">Design System</a></h4><h4>→ <a href="https://bit.cloud/blog/how-to-reuse-react-components-across-your-projects-l4pz83f4">Code-Sharing and reuse</a></h4><h4>→ <a href="https://www.youtube.com/watch?v=5wxyDLXRho4&amp;t=2041s">Monorepo</a></h4><h4>Learn more:</h4><ul><li><a href="https://blog.bitsrc.io/top-8-tools-for-angular-development-in-2023-a99d9f3a2e4e">Top 8 Tools for Angular Development in 2023</a></li><li><a href="https://blog.bitsrc.io/how-we-build-micro-front-ends-d3eeeac0acfc">How We Build Micro Frontends</a></li><li><a href="https://blog.bitsrc.io/how-we-build-our-design-system-15713a1f1833">How we Build a Component Design System</a></li><li><a href="https://bit.dev/blog/how-to-reuse-react-components-across-your-projects-l4pz83f4/">How to reuse React components across your projects</a></li><li><a href="https://blog.bitsrc.io/5-ways-to-build-a-react-monorepo-a294b6c5b0ac">5 Ways to Build a React Monorepo</a></li><li><a href="https://bit.dev/blog/how-to-create-a-composable-react-app-with-bit-l7ejpfhc/">How to Create a Composable React App with Bit</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42c8b6a37ff9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bitsrc/how-to-use-jquery-with-angular-when-you-absolutely-have-to-42c8b6a37ff9">How To Use jQuery With Angular (When You Absolutely Have To)</a> was originally published in <a href="https://medium.com/bitsrc">Bits and Pieces</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrate from AngularJS to a Newer Technology While Retaining the Backend]]></title>
            <link>https://medium.com/@aditya.modi/migrate-from-angularjs-to-a-newer-technology-while-retaining-the-backend-8838459d8d06?source=rss-b0ede6a2b917------2</link>
            <guid isPermaLink="false">https://medium.com/p/8838459d8d06</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[vue]]></category>
            <dc:creator><![CDATA[Aditya Modi]]></dc:creator>
            <pubDate>Fri, 10 May 2019 06:53:19 GMT</pubDate>
            <atom:updated>2019-05-10T06:53:19.743Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*4feLxJquB725I2dIC0qvzQ.png" /></figure><p>If you have been following our blogs for a while, then you know we are a <a href="https://www.topsinfosolutions.com/full-stack-development/">full-stack development company</a>. That is, you come in with an idea and walk out with the app(s). We are an end-to-end solution provider for various industry verticals and work on every aspect of application development from conception to lifecycle support. However, not everyone coming to us has requirements this simple. For example, lately we’ve been hitting too many inquiries from people looking to migrate their application base from AngularJS to a newer technology. With AngularJS entering end of support soon and Google not providing any official upgrade path, there are more question unanswered.</p><p>To be frank, migrating an app from one development technology to another even with the same programming language and similar architecture is a complex task and at times requires rewriting the entire code from scratch. Which begs the question, “Do I need to rewrite the backend code too?”. The short answer is a big NO. No, you don’t have to. For the longer answer and little background into ‘why’, keep reading.</p><h3>Frontend and Backend Frameworks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*y0dd1LnjMKbzzrjycCpoEA.png" /></figure><p>AngularJS is a frontend framework and if you ask us to replace it with a newer technology, as a JavaScript developer, I would be least concerned how your backend looks like. The same goes when it comes to replacing the backend technology. If you are using Laravel, I don’t care whether you’re using React or any other front-end technology. People are coming to us with that kind of question. They are apprehensive about the whole cost involving rewriting backend and frontend. With this blog I am going to clear many misconceptions about the development technology migrations from AngularJS in context of JavaScript realm.</p><h3>API Calls: How Frontend talks to Backend?</h3><p>If you’ve been associated with IT operation in any way, you must have heard of APIs a lot lately. APIs let your websites and apps access third party services such NASDAQ, Weather.com, Facebook, Google etc. APIs. If we look at the definition of API, it allows two pieces of software to communicate. Software engineering treats frontend and backend as two pieces of software that builds an application. An API itself is a piece of code which is embedded inside frontend code. The API code has a pointer to the location of backend service on a server, which frontend wants to seek in response to a user’s request over a given protocol. One of the most common protocols over which API calls are made is HTTP(S). Rest APIs or RESTful APIs are the reason for the existence of modern web apps.</p><h3>REST APIs are the Backbone of Modern Web</h3><p>When we write a piece of JavaScript code, it has both stateful and stateless parts. For example, AngularJS applications have code specific to AngularJS which other frameworks won’t understand and JavaScript code which is standard across the board.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*y9QuY8AZk4AgegLOsjRrYw.png" /></figure><p>REST APIs are stateless that is they don’t have any dependency on a particular framework or technology. These APIs are good to go as long as they can establish a HTTP connection between the two ends. With REST APIs, it doesn’t matter the backend or frontend since they communicate over stateless REST APIs in HTTP. At least, this is the ideal case.</p><p>So when your app or website has to seek a service for example weather information, it can make an API calls to its backend or a third party service like Weather.com. The frontend’s job is to show information to the user, it doesn’t matter where the information came from. But in JavaScript there is more to server technology, than facilitate the communication between the two ends.</p><h3>Problems: JavaScript, SSR and Non-Node.js Backends</h3><p>When you are migrating your application from <a href="https://www.topsinfosolutions.com/angularjs-react-migration-services/">AngularJS to React</a>, Vue.js or Angular or any other frontend framework, you don’t have to worry whether your backend is Node.js or not because ultimately, the frontend is seeking certain services to fulfil users’ requests. Your business logic is smarter enough to trigger right API calls at the right time.</p><p>However, when we are talking about JavaScript development tools other than AngularJS such as Vue.js and React, we enter the SSR-dilemma. If you know every modern frontend JavaScript tool has a first class support for server-side rendering (SSR). <a href="https://www.topsinfosolutions.com/blog/server-side-rendering-boost-performance-user-experience/">Developers prefer SSR for improved performance and SEO benefits.</a> For example, while Laravel doesn’t recommend a particular JavaScript or CSS pre-processors, it provides a starting point for using Bootstrap and Vue.js. Until Vue 2.5, it did not support server-side rendering support to non-Node.js environments including those around PHP, Python, Ruby etc.</p><p>Vue.js applications require certain Node.js APIs to run correctly. If your application uses those specific APIs, then either the application or the SSR code will break. To bring SSR support in Vue 2.5, Vue.js community made some major changes: including a block that spawns a JavaScript sandbox from the server to generate an output, which made the server renderer “environment agnostic”.</p><h3>Upgrade your AngularJS Application with TOPS Infosolutions</h3><p>Long-term support for AngularJS will conclude in mid-2021, which will expose your AngularJS application to security threats and zero-day vulnerabilities, limit its community, and deprive it from modern features. <a href="https://www.topsinfosolutions.com/">TOPS Infosolutions</a> has the adequate resources to make the necessary measures to upgrade your Angular application while retaining your backend. We have an experienced team of JavaScript developers, which makes the upgradation a hassle-free, smooth transition.</p><p><em>Originally published at </em><a href="https://www.topsinfosolutions.com/blog/migrate-angularjs-retain-backend/"><em>https://www.topsinfosolutions.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8838459d8d06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Practices For Using TypeScript with Node.js]]></title>
            <link>https://medium.com/bitsrc/best-practices-for-using-typescript-with-node-js-50907f8cc803?source=rss-b0ede6a2b917------2</link>
            <guid isPermaLink="false">https://medium.com/p/50907f8cc803</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Aditya Modi]]></dc:creator>
            <pubDate>Tue, 30 Apr 2019 14:57:30 GMT</pubDate>
            <atom:updated>2019-04-30T14:57:30.382Z</atom:updated>
            <content:encoded><![CDATA[<h4>Opinionated and useful examples on when and how to best use TS with Node.js</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*M2b93-2Dx--IkNPQkNbYTA.png" /><figcaption>Using TypeScript with Node.js</figcaption></figure><p>If any of you have worked on TypeScript 1.x in the past, you might remember it being difficult and unwieldy. TypeScript version 2 brings many nice improvements. One of the biggest of them is how clean and simple has it become to install TypeScript compiler.</p><h3><strong>Installing TypeScript in Node.js</strong></h3><p>You can install TypeScript compiler either globally or locally and have it run by NPM run scripts.</p><pre>$ npm install –g typescript</pre><p>Then we set up the Node.js bindings to say this is a Node.js project.</p><pre>$ npm install --save @type/node</pre><p>Finally, we run the compiler, give it outDir flag and directory it’s going to and then the file that we’re going to compile.</p><pre>$ tsc –outDir dist index.ts</pre><p>Nevertheless, we can do a lot more complicated configuration.</p><h3><strong>Configuration with tsconfig.json</strong></h3><p>You can configure <em>tsconfig.json</em> file which works a lot like the <em>babelconfig.json</em> if you’ve ever used it before. It has all kinds of options: you can declare module system to output files as, point source map input files.</p><pre>{</pre><pre>“compilerOptions”: {</pre><pre>“module”: “commonjs”,</pre><pre>“outDir” : “dist”,</pre><pre>“sourceMap”: true</pre><pre>},</pre><pre>“include”: [</pre><pre>“scr/**/*.ts”</pre><pre>]</pre><pre>}</pre><h3><strong>Linter</strong></h3><p>Typescript also has a linter called tslint, which is similar to eslint. If you’ve used eslint before, then tslint is going to feel right at home. You can start installing tslint like you install eslint.</p><pre>$ npm install –g tslint</pre><pre>$ tslint file1.ts file2.ts</pre><h3><strong>ES6 Considerations</strong></h3><p>If you’re used to Babel, then keep in mind that TypeScript does not ship with a runtime. There’s no equivalent to Babel-runtime if you’ve used that. That is Typescript handles all of the ES6 and a lot of the ES7 syntax but the runtime operations. So things like Object.assign(), Symbol(), etc. are not polyfilled by TypeScript.</p><p><a href="https://www.topsinfosolutions.com/node-js-development-services/">Node.js developers</a> made the choice to TypeScript small. If you have to target older versions of Node.js or if you’re working in the browser, you might have to do something complicated. The recommended way is to go from TypeScript to ES6, which basically just strips out the types. You can even use babel to go the rest of the way and include the babel runtime.</p><p><em>TypeScript →ES6 →Babel →ES5</em></p><h3><strong>Code Editors</strong></h3><p>Out of the box both of the Visual Studio products support TypeScript: Visual Studio and VS Code. All the JetBrains IDes have support out of the box: Webstorm, PyCharm, IntelliJ IDEA.</p><p>In addition, all the other major code editors support TypeScript via a plugin: Sublime, Atom, Vim, Emacs, etc. Whatever editor you’re used to using, you can make TypeScript to work with that editor and can stick with your typical workflows.</p><h3><strong>TypeScript Definition files</strong></h3><p>When working on TypeScript, a great point of concern is to work on modules that are not written in TypeScript. To work with those, you can use TypeScript Definition Files. A definition file creates statically-typed interface for external dynamic code on this external module. Static code is by definition slightly more limited than dynamic code. These definition files are a declaration without an implementation, which is a lot like C++ header files if you’ve ever worked with C++. TypeScript definition files have a d.ts extension.</p><p>So we’re going to create this definition file for a module called planet. It’s going to have a couple of functions on it and an interface that is exported.</p><pre>declare module “planet” {</pre><pre>export function visit(); void;</pre><pre>export function getCities(); city[];</pre><pre>export interface City {</pre><pre>population: number;</pre><pre>founded: Date;</pre><pre>}</pre><pre>}</pre><p>If you notice, these have no implementation, just the signature. That’s enough for TypeScript to give you types, auto-completion and other great stuff which is awesome.</p><h3><strong>Global Type Definition Files</strong></h3><p>If you have to write definitions for all the modules especially when there is tree of modules-inside-modules, TypeScript have this concept of a global type definition file. These are the files that have been created by Microsoft and the TypeScript community, which gets contributions from everywhere. It’s basically definition files for all of the popular modules. Typing files are stored in npm under @types scope. Everything that’s reasonably popular in TypeScript tends to have a definition file. You can install it in Express with a single command.</p><pre>$ npm install — save @types/express</pre><p>Once you run this command, you have these definition files for Express, which brings code completion and many more things to the editor.</p><h3><strong>When and why to choose TypeScript over JavaScript</strong></h3><p>JavaScript’s lack of type checking makes it a bad contender for enterprise applications that require a fair degree of consistency which is typical to strictly typed languages like Java, C# and C++.</p><p>In little applications, anonymous objects with loosely typed fields don’t make a difference. However, when you’re working with thousands of lines of code, you can only work as long as the compiler and runtime system help find you errors. Only a programming language with strong typing can detect certain types of code errors.</p><p><em>“Indeed, TypeScript is JavaScript for application-scale development”</em></p><h3>Learn more</h3><ul><li><a href="https://blog.bitsrc.io/how-to-easily-share-react-components-between-projects-3dd42149c09">How to Share React UI Components between Projects and Apps</a></li><li><a href="https://blog.bitsrc.io/building-a-consistent-ui-design-system-4481fb37470f">Building a Design System like Uber and Airbnb</a></li><li><a href="https://blog.bitsrc.io/5-tools-for-faster-development-in-react-676f134050f2">5 Tools for Faster Development in React</a></li></ul><h3>Develop and manage shared components with Bit</h3><p><a href="https://bit.dev/">Bit’s open-source tools and platform</a> makes it easy to develop, share and reuse components across projects and apps as a team. Give it a try to build faster:</p><ul><li><a href="https://bit.dev/">Bit. Composable software.</a></li><li><a href="https://github.com/teambit/bit">GitHub - teambit/bit: A tool for component-driven application development.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50907f8cc803" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bitsrc/best-practices-for-using-typescript-with-node-js-50907f8cc803">Best Practices For Using TypeScript with Node.js</a> was originally published in <a href="https://medium.com/bitsrc">Bits and Pieces</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Use Server Side Rendering To Boost Performance and User Experience?]]></title>
            <link>https://blog.prototypr.io/why-use-server-side-rendering-to-boost-performance-and-user-experience-1192a67bacfe?source=rss-b0ede6a2b917------2</link>
            <guid isPermaLink="false">https://medium.com/p/1192a67bacfe</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[server-side-rendering]]></category>
            <dc:creator><![CDATA[Aditya Modi]]></dc:creator>
            <pubDate>Thu, 11 Apr 2019 08:45:50 GMT</pubDate>
            <atom:updated>2019-04-13T14:10:12.246Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*MqjhLA6tZDEg0iwXrnrcvA.png" /></figure><p>Server Side Rendering (SSR) took a backseat when dynamic JavaScript frontends built in AngularJS went mainstream. Node.js brought JavaScript under the realm of backend development, giving rise to isomorphic coding. AngularJS(v1.X) did not support server side rendering. When React and Angular (v2.0+) came along with first class support for server side rendering and developers realized its full potential, the dynamics of isomorphic JavaScript coding began to fall away from web browsers to Node servers. JavaScript developers realized server side scripting results in better performance and businesses looking to boost their customer engagement followed the suite.</p><p>Before digging into how server side rendering improves customer experience to boost engagement and why use should implement it, let’s see how server side rendering and client-side rendering work in real world scenarios. I will introduce the concept of client-side rendering which happens in users’ web browsers. Then I will move to explain the concept of server side rendering and how it is better for business as well as users.</p><h4>Let’s see what happens when a user hit URL in the web browser</h4><p>Every web application has two parts: markups and logic. Browsers are champions at rendering markups. In a LAMP stack web app, the logic is in PHP, which the browser can’t render readily and have to rely on an Apache server to render. However, when we talk about isomorphic JavaScript coding in <a href="https://www.topsinfosolutions.com/mean-stack-development/">MEAN stack</a> and <a href="https://www.topsinfosolutions.com/mern-stack-development/">MERN stack</a>, the browser can handily render logic in addition to markup and application can go about without the need of server side rendering. In case of pure JavaScript applications, SSR is more of a luxury than need.</p><h3>Benefits of Server Side Rendering</h3><h4>Server side rendering boost user engagement</h4><p>Server side rendering has been around as long as web development. In modern JavaScript frameworks, it solves newer, modern problems that we did not realize we had. Any shift in technology brings fresh challenges and the shift to client-side rendering with AngularJS wasn’t any different. SSR struck no full-stack JavaScript developer although a few developers moving from LAMP technologies felt homesick without SSR. Most developers took CSR in AngularJS as the future of web development because nobody wanted to rerun into the hassles where the entire web page reloads every time something is changed in the View.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*6kTkWVoACq8CEAr0Hy0POQ.png" /></figure><p>In fact, when Angular and React reintroduced server side scripting, developers criticized them for being overzealous. Soon dynamic front-ends, interactive content, and smooth mobile app-like user experiences became the standard, but they introduced unnecessary complexities, causing overfed client-side executions with empty loading screens and further performance bottlenecks. That wait time to load a CSR page to SSR page may be milliseconds on a decent internet connect, but it is noticeable enough to look for a less-limiting solution.</p><p><em>“A client running a news portal was experiencing huge bounce rate on his website. This was taking a toll on his Google AdSense revenue. The website was developed in AngularJS. Because of client-side rendering the browser was loading an empty page, which was raising false alarm that the website is not working, making visitors leave the website the very moment.</em></p><p><em>AngularJS does not support server-side rendering. We upgraded the underlying technology to React and implemented server-side rendering in order to do away with the “empty page” problem. The redesigned website in React brought the bounce rate under the safe limits and inspired client to bring SSR in all his applications.”</em></p><h4>Better Performance for Page Visitors</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*-CodJ52eaAlCjJjCHDOPRQ.png" /></figure><p>Not every device is same in terms of hardware capabilities or has latest software. A page rendering on the client side relies too much on device’s hardware capability while rendering. A sub-capable hardware may fail to render the entire page in optimal time, thus, hampering user experience. The bounce rate of a page is directly proportional to its load time. Higher bounce is one of search engine ranking factors and may make Google slightly less prefer your website owing to extended load time. As a result, organic traffic to your website will fall, which will ultimately affect engagement on your website.</p><p>Since in server side rendering JavaScript is rendered server side, your users’ devices have little relevance to the load time of your page. Since most servers are capable enough; you will deliver a consistent load time to all the people visiting your website, boosting engagement on your website owing to less bounce rate and a healthy organic traffic.</p><h4>Faster Loading of Page</h4><p>When I drew comparison between CSR and SSR; I mentioned in SSR, the server sends “ready to render” HTML files to instantly load your website on the browser. In CSR, the browser has to download HTML and JavaScript files and execute the framework before it could display the page. In the meanwhile, the user has to deal with a blank page, which is a bad indicator for user experience.</p><p>Although the final page will take the same amount of time to load and user only gets a glimpse of the page initially, server side rendering has the psychological edge from a user’s point of view. A semi-loaded page will look more compelling than a blank page to users.</p><h4>Search Engine Optimization</h4><p>JavaScript front-ends are incomprehensible to Search engines crawlers. The crawler will return a blank page on encountering such a page on its journey to crawl new pages. Google, of course, will not index a page, which is blank to its crawler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*ZgOn-owObIklP78QLCFo0A.png" /></figure><p>Lack of search engine optimization is a huge drawback of client side rendering. server side rendering of JavaScript returns a pre-rendered HTML page for ready-display to the browser. The crawlers can crawl HTML as would any other web application. For businesses invested into digital marketing and SEO, server side rendering makes a lot more sense than client-side rendering.</p><h3>Server Side Rendering with TOPS Infosolutions</h3><p>In fall 2015, our <a href="https://topsinfosolutions.com/react-development">React developers</a> were attempting to rework an application originally built in AngularJS. We invested many hours of efforts to heighten the performance but the client insisted that the application was doing more or less the same in AngularJS. React was still a newer technology and we were quite skeptical about how server side rendering will work out. A few migrations and some changes in business logic and we were ready for the demo. The application out performed the client expectations. He insisted on going SSR way for all his future application.</p><p>Server Side Rendering is a luxury you can deliver in the form of a refined experience to your users. After all, the cut-throat competition doesn’t allow for anything that is any short of best.</p><p><em>Originally published at </em><a href="https://www.topsinfosolutions.com/blog/server-side-rendering-boost-performance-user-experience/"><em>www.topsinfosolutions.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1192a67bacfe" width="1" height="1" alt=""><hr><p><a href="https://blog.prototypr.io/why-use-server-side-rendering-to-boost-performance-and-user-experience-1192a67bacfe">Why Use Server Side Rendering To Boost Performance and User Experience?</a> was originally published in <a href="https://blog.prototypr.io/">Prototypr</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Make Your Mobile App GDPR Compliant]]></title>
            <link>https://medium.com/@aditya.modi/make-mobile-app-gdpr-compliant-82b549e8034?source=rss-b0ede6a2b917------2</link>
            <guid isPermaLink="false">https://medium.com/p/82b549e8034</guid>
            <category><![CDATA[mobile-apps]]></category>
            <category><![CDATA[european-union]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[gdpr]]></category>
            <dc:creator><![CDATA[Aditya Modi]]></dc:creator>
            <pubDate>Thu, 28 Mar 2019 10:02:23 GMT</pubDate>
            <atom:updated>2019-03-28T10:02:23.787Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*w4_Dyrn9hV0JyS1fx5OiPA.png" /></figure><p>GDPR is Euro Zone’s new data protection regulations. General Data Protection Regulation or ‘GDPR’ was established on 25 May 2018 and brings how a company, application or website must protect stored and in-transit data of its Euro residents whether operating inside or outside the continent. GDPR infringements can lead to fines of up to 20 million euros or 4% of the total worldwide annual turnover of the preceding financial year, whichever is higher. British telecom conglomerate TalkTalk made quite a name for itself after European Data Protection Board (EDPB) issued it a half million fines over a data breach.</p><p><strong><em>GDPR TIP#1: Don’t put your European users in the same basket as Asian and Americans</em></strong></p><p>It’s not European Union officials being overly cautious; Euro residents are equally vigilant. TalkTalk lost more than 100, 000 customers in the aftermath of the breach. Unlike Americas and Asia, privacy is a big deal in Europe that some European, even American and Chinese companies use data protection and privacy as a selling for their digital products. A hefty fine for GDPR non-compliance will gather a lot of bad press, which for many years will negatively influence decision of potential customers researching their options.</p><h4>The Expected Virtue of Ignorance is Hefty Fines</h4><p>EDPB won’t take your ignorance as excuse if you come under the scanner. When <a href="https://www.realwire.com/releases/37-Percent-of-Global-Organisations-Unsure-if-They-Need-to-Comply-with-GDPR">Vanson Bourne</a> surveyed 1,600 organizations, it found that 37% of respondents don’t know whether their organization needs to comply with GDPR, while 28% believe they don’t need to comply at all. GDPR has the potential to make your firm file for liquidation to pay up the fines or from operating in the zone. Europe is a key market and preparing for GDPR compliance is barely an impossible task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*21TEOMTe-arpfL2APVDAmg.png" /></figure><p><strong><em>GDPR TIP #2: Stop thinking you’ll get away with penalties by playing dumb.</em></strong></p><p>EDPB might slap you an even higher fine because you made a dumb person sit in charge of your user data’s privacy, not to mention the, subsequent, bad press.</p><p>The smartest move right now would be to start reviewing the data you collect and store. If you ever end up in a GDPR hearing, the member of GDPR board would be very much interested why you collected a set of data. For example, if your mobile app plays nursery rhymes, then a member of the board would love to learn why you collected location data. An answer that you target nursery rhymes according to the location of the kids would make the case only worse. So start acting and stop thinking. Mobile apps of course are at a greater risk if you put them against websites because they collect a lot more data, store most of it, and are infamous for sharing data without users’ consent.</p><h4>Mobile Apps are Subjected to Greater Scrutiny in GDPR</h4><p>The more the data you store, the greater are the implications of GDPR on you. As I said, EDPB won’t let you get away with excuses, and non-compliance with GDPR will probably cost you more than compliance. GDPR compliance won’t even be an effort if your organization runs the best practices of user privacy and data protection. However, if your privacy policies clearly state that you will share customer data with advertisement partners if somebody agrees to the T&amp;C, then you’re already under the breach and may attract penalties with a printout of your T&amp;C page put against you as an evidence. ‘Consent’ is repeated many times in the GDPR documents and you don’t want to ignore it.</p><h4>Users’ Consent Matters More than Anything Does</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*e_WH05ksqvPefUXWjItdsg.png" /></figure><p>Both Android and iOS have excellent permission managers. The problem is they take every permission access on the same level. That is a navigation app and the Fluffy Bird clone both can ask for location permission in the same way. However, GDPR would constitute both permission on a different level of severity. Flapping birds on your mobile doesn’t need to learn where you’re sitting at. However, the Maps app needs access to highly accurate location data to run navigation services.</p><p><strong><em>GDPR TIP #3: Don’t ask for unnecessary permissions</em></strong></p><p>If your application asks for unnecessary permissions, then GDPR expects that you tell your users why you need those permissions. If you need certain permissions to store information to enable targeted advertisements, then you must warn your customers about the true intent.</p><p>So I downloaded a news app and did not give permission to share my personal details with advertisers. The app clearly mentions that advertisements are its methods of monetization and if I want an ad free experience I need to upgrade to a premium version of the app to continue. Fair enough!</p><h4>Store the Data When You Absolutely Have To</h4><p>Data is the new oil and businesses don’t want any of it to go away. Most business logics dictate storing every piece of data their mobiles app collects. When it comes to GDPR, the more the data you store, the more the risk. Collecting data you don’t need is not a problem as long as you subscribe to a secure way to delete them. Companies that store too much data for their size are already under GDPR scanner. GDPR won’t be a problem if they know what they are going to do with that data.</p><p><strong><em>GDPR TIP #4: Do not collect data in the first place</em></strong></p><p>However, EDPB would consider any act of storing the data you don’t need as a case of suspected infringement and may subject you to further investigation. The philosophy is if you’re storing the data, then you need it and the board wants to learn the reason. If you don’t have a reason, the board will have many things to suspect which may not be restricted to selling data in dark web, sharing with CPC officials, illegal data mining, social engineering, etc.</p><h4>Delete any Piece of Data that Identifies a Person, Unless…</h4><p>If you have any piece of data in public directories, which you can identify to a person, you’re playing with fire. User privacy is of utmost importance to Euro people and government won’t let go off an abolisher without a fine.</p><p><strong><em>GDPR TIPS #5: PII data attracts the highest penalties</em></strong></p><p>Euro Zone has some strict regulations around personally identifiable information or <em>PII</em>. For example, a user’s IP address is not classed as PII on its own, but is classified as linked PII in the US and elsewhere. However, in the European Union, the IP address of an Internet subscriber may be classed as personal data. If you log IPs of people using your app and store them in .txt files, you’re already in breach.</p><p>PII deserve an encrypted and secure location on the cloud or local storage of your app. A server storage inside a Euro Zone country would turn out to be a life saver if the Euro officials ever come knocking on your doors.</p><h4>Play with Data Encryption and Secure Connections</h4><p>Any stored data must be encrypted and transmitted over an SSL connection particularly when dealing with PII. If your application accesses an API that is over a non-secure connection, you mention that to the user with the statement, “he should proceed at his own risk”. If the user suffers a privacy violation while accessing data from the API that would be at his discretion and would give you an upper hand if you ever end up in a GDPR trial.</p><p><strong><em>GDPR TIP #6: Say good bye to HTTP once and for all</em></strong></p><h4>Present Accountable in Case of a Breach</h4><p>Breaches happen and even the finest security measure and practices can’t prevent them from happening at times. If your mobile app encounters a breach in which the intruder got hand of your users’ PII and uploads it on a public domain, you must report the breach immediately.</p><p>The board fined TalkTalk heavily because it reported the breach many months later after the rumors mills got too strong to turn a blind eye.</p><p><strong><em>GDPR TIP #7: Report data breaches at the earliest</em></strong></p><p>You’re the head of the company; the board expects you to act accountable for the breach and not play blame games on your colleagues. These games only show your incompetence to take account of the situation and act responsibly. The board will levy even higher fines for hiring a douche and not being serious about your users’ data security.</p><p>If you adhered to the best practices as dictated by GDPR, there is nothing to worry about but present your case in a systematic manner and convince the jury that the intruders broke the locks and the keys were in safe hands.</p><h4>Co-operate with the Agencies and Board Members</h4><p>If the GDPR notice ever comes knocking at your door, there is a no point of playing hide and seek with the investigators. Chances are they already have enough evidence to file a charge and are only here to clear some air and find some supporting evidences. If you don’t co-operate, it will raise more questions than they want answers to and this will weaken your case further.</p><p><strong><em>GDPR TIP #8: Confess, when you’re at fault</em></strong></p><p>If you co-operate with them at the time of interrogation, answer the questions they are asking and clear the doubts; perhaps, that will clear some misconception regarding your practices around stored data, and you might come clean</p><h4>Conclusion</h4><p>Follow the best security and data protection practices to safeguard your users’ interest regardless of their country of residence. Make sure your mobile app deliver superior level of data security for stored and in-transit data owing to encryption and HTTPS respectively. When developing for European markets, comply with most of the guidelines issued by GDPR.</p><p><em>Originally published at </em><a href="https://www.topsinfosolutions.com/blog/make-mobile-app-gdpr-compliant/"><em>www.topsinfosolutions.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82b549e8034" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Might Serverless Impact Node.js Ecosystem?]]></title>
            <link>https://medium.com/bitsrc/how-might-serverless-impact-node-js-ecosystem-b0e312036fcf?source=rss-b0ede6a2b917------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0e312036fcf</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Aditya Modi]]></dc:creator>
            <pubDate>Thu, 28 Feb 2019 15:45:20 GMT</pubDate>
            <atom:updated>2019-02-28T15:45:20.085Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*yFXMrsskATqR69h4jHI3UQ.png" /></figure><p>Since there’s a lot of client-side developers, who know JavaScript and are used to how that language works, it’s very easy for them to walk up to Node.js and start building their own backends. Serverless has a similar kind of thing about it. Serverless is very easy to walk up to, start building a cloud service and get it up and running. You don’t need to worry about setting up and managing VMs, antivirus software, firewalls, etc. — all that’s done for you by the managed service.</p><p>You can now use <a href="https://www.topsinfosolutions.com/blog/serverless-frameworks-coding-without-servers/">serverless frameworks</a> to deploy systems at scale for not only frontend-facing HTTP applications but also back-end systems that might have even been further away from their area of expertise. It’s a very accessible thing to get up to</p><p><strong>The impact of Serverless on Node.js ecosystem</strong></p><p>Because node.js is the star language of serverless, we’re gonna see serverless, as it’s becoming more popular, bringing even more people into the node.js ecosystem. However, there’s a couple of gotchas that new people coming into the node.js ecosystem have to deal with. Lately, Node.js started ignoring some the lessons that we learned from the web-space. We became too comfortable with the fact that since these things are gonna be long running on servers, it doesn’t matter if our packages are huge and we load everything in the world and smooth that process.</p><p>Also, we tend to think as long as the application not taking up huge event memory footprint, who cares coming in tiny little files that we have and things along those lines. Node.js is great because of the simple cases it comes up very quickly. For the cases where you decide to go ahead and import Lodash and every single giant framework that you can think of into memory, it takes a while to even read those things from disk. The memory footprint then means that people who are using those libraries inside of functions have to pay more because they have to pay for that memory footprint to actually exist.</p><p>If you load giant libraries into memory more than ever, you do not have to pay for that. If I can choose a library, which is one megabyte versus a library, which is 30 megabytes that can mean big differences for my end of month bill in the case of serverless.</p><p>It really pays to be thinking about how we can go ahead and reduce what actually gets loaded. Lots of things can help with this.</p><p><strong>The classic example of Node.js impact</strong></p><p>Azure Functions Pack webpacks your code all together. It doesn’t necessarily do as much to reduce memory footprint. For that, you’d want to go ahead and run Uglify on top of the results of the web package output. It does, however, reduce the load time.</p><p>Somebody from Microsoft Azure tested the pack with the four largest node modules he could find. He was trying to understand the impact of serverless on Node.js. He put them into a function and measured it on an i7 with an SSD. It was a blazing-fast system yet it took about two seconds for that function to come up for the first time.</p><p>Then we made Node.js read all that stuff into memory. When he webpacked it, it took about a hundred milliseconds — a giant improvement.</p><p>When you’re running inside serverless, it’s gonna take even longer to load those modules into memory. Many of the sales providers actually have limits on the amount of content you can actually put up there in the first place. It’s important to think as we’re writing these packages, especially if we want these packages to work inside serverless, we need think what those things are gonna do.</p><p><strong>Read the documentation before coding</strong></p><p>In one instance, a socket.io application at a lead database company, started consuming too many sockets. The Node.js developers working on the application realized the function they wrote was coming in there, continuously using it, opening up sockets but was not closing them. Of course, they were misusing the library. They didn’t read the documentation properly. They weren’t using the function as prescribed but they used it the way that it felt natural to use it — inside of their function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*-p1Qd7MFEPvmwAX-JtHabg.png" /></figure><p>A quick workaround when writing a package which might be harmful to use in serverless, developers must write warning. Instructions on how to create a singleton instance of it outside the function so it stays in their memory. If we talk about the socket.io example above, instruction on how to write the code for it to close the socket before the functions completed would have been greatly beneficial.</p><p>These warnings and instruction can help a long way making sure that anyone coding Node.js on serverless doesn’t feel alienated. It’ll pay to make sure the people are successful in that way.</p><p>Node.js and serverless have really gotten very far and been really well because of the strong, open source nature of things and how easy it is to get access to the parts of the system runs on.</p><p><strong>Potential risks</strong></p><p>Since the service implementation today are very vendor specific, there is some risks there. So it’s something that’s worth keeping in mind. There are people out there who are thinking about the ways to address some of these problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*IAqUT8-deHE_7r6WXPTi7Q.png" /></figure><p>Even though vendors are building a specific implementation that’s mainly designed to run on their cloud platform, they can make it open source. They should try to build it in a way it is a bit more of a portable system. They should make sure that you don’t feel like you’re locked in even though it’s built to run really well on their cloud platform.</p><p>The efforts should be in the direction where vendors are trying to make sure that they at least build it in the open source and eventually work towards a way where it’s even open platform.</p><p><strong>The future is now!</strong></p><p>When you are thinking about trying to deploy services out into the cloud, consider the serverless path whatever vendor you feel is right for you. It’s all about trying to improve the agility with which you can deploy and build services, which you can trust will operate well at scale. Node.js can build more with serverless and you’re already in good shape. If know the language of choice on this platform — Node.js, then you’re already ahead of the game. Serverless has taken advantage of the fact that Node.js and JavaScript already had this great, big, open community.</p><p><strong>What do you think?</strong></p><h3>Learn more</h3><ul><li><a href="https://blog.bitsrc.io/5-tools-for-faster-development-in-react-676f134050f2">5 Tools for Faster Development in React</a></li><li><a href="https://blog.bitsrc.io/state-of-react-state-management-in-2019-779647206bbc">State of React State Management for 2019</a></li><li><a href="https://blog.bitsrc.io/11-javascript-animation-libraries-for-2018-9d7ac93a2c59">11 JavaScript Animation Libraries For 2019</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0e312036fcf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bitsrc/how-might-serverless-impact-node-js-ecosystem-b0e312036fcf">How Might Serverless Impact Node.js Ecosystem?</a> was originally published in <a href="https://medium.com/bitsrc">Bits and Pieces</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Node.js Frameworks to Choose from in 2019]]></title>
            <link>https://medium.com/@aditya.modi/best-node-js-frameworks-to-choose-from-in-2019-5bca0984b7b5?source=rss-b0ede6a2b917------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bca0984b7b5</guid>
            <category><![CDATA[nodejsdevelopmentcompany]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[nodejs-app-development]]></category>
            <category><![CDATA[node-js-development]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Aditya Modi]]></dc:creator>
            <pubDate>Thu, 24 Jan 2019 10:02:34 GMT</pubDate>
            <atom:updated>2019-01-24T10:03:32.656Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*XEK-bQPavesXWumfxGJN3Q.png" /></figure><p>Node.js turned the tide across web development when it brought JavaScript under aisle of backend development and made way to <a href="https://www.topsinfosolutions.com/full-stack-development/">fullstack development</a> entirely in JavaScript. JavaScript has been a dominant frontend technology–alongside HTML and CSS–since the days of Netscape. However, its existence as a backend technology was next to none until 2009 when Ryan Dahltook Google Chrome’s V8 engine, which is normally confined to the browser, added an event loop, package manager and a low level I/O API, embedded inside a C++ program and called it Node.</p><p>The possibility of writing backend code in JavaScript opened a whole new world to web developers, who could now access the files, listen to network traffic and HTTP requests, access databases directly, etc. all with a line of JavaScript code. This led to many Node.js frameworks. You all must have heard of Express but there is more to Node.js.</p><p>There are tens of Node.js frameworks available each overcoming a specific limitation of standalone Node package. Of course, all the frameworks I am going to mention here are available for download on your favorite package manager.</p><h3>Backend Frameworks</h3><p>1. Express.js</p><p>2. Hapi.js</p><p>3. Koa.js</p><h3>MVC Frameworks</h3><p>4. Total.js</p><p>5. Sails.js</p><p>6. Meteor.js</p><h3>Real-time Application Development</h3><p>7. DerbyJS</p><p>8. Socket.IO</p><h3>API Platforms/ Frameworks</h3><p>9. StrongLoop/LoopBack</p><p>10. ActionHero.js</p><p>Continue reading on: <a href="http://bit.ly/2T7vJQ8">http://bit.ly/2T7vJQ8</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bca0984b7b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native App Development Part 2: How to Improve Performance of A React Native App]]></title>
            <link>https://medium.com/@aditya.modi/react-native-app-development-part-2-how-to-improve-performance-of-a-react-native-app-9b78832a887?source=rss-b0ede6a2b917------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b78832a887</guid>
            <category><![CDATA[reactive-programming]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react-native-development]]></category>
            <dc:creator><![CDATA[Aditya Modi]]></dc:creator>
            <pubDate>Thu, 27 Sep 2018 05:13:40 GMT</pubDate>
            <atom:updated>2018-09-27T05:13:40.230Z</atom:updated>
            <content:encoded><![CDATA[<p>In the <a href="https://www.topsinfosolutions.com/blog/react-native-app-development-part-1-react-native-architecture/">last blog</a> in React Native series, I comprehended with the help of the architecture diagram that React Native bridges the gap between JavaScript and Native components. The performance of piece of JavaScript code is equivalent if not better than ideal native code. However, that is not the case with the bridge though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*04hHAAzXHjoq29k2.jpg" /></figure><p>The JavaScript realm cannot access data from Native realm just like that because it’s a completely different heap; it’s a completely different address space. Data between the realms is serialized. This serialization is expensive and takes place every time you send stuff between realms inside your app.</p><h3>Keep passes over the bridge to the minimum for maximum performance</h3><p>This brings us to the conclusion the key to writing performant React Native apps; the key to designing them is to keep passes over the bridge to a minimum.</p><p>Let’s consider a simple app. The app screen has a list of cards. The user can scroll that list of cards. An image welcomes the user to the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*bEqO8pfL518yDdXN.jpg" /></figure><p>We’re gonna have two cool effects here on this image: the first effect is as the user is scrolling the list of cards, the image dissolves to the background and the second effect is an over scroll effect if the user is scrolling downwards when it is already at the top, the image zooms.</p><p>The layout for this screen is very simple.</p><p>We have two components side by side: the image component on the background and the ListView. These effects are tied to the scroll position. As the scroll position changes, we want to dissolve accordingly and as the scroll position changes upwards, we want to change the scale. To implement that in a native approach, you want to go with JavaScript and we want to hook up to the onScroll event of the ScrollView inside the ListView.</p><p>Continue reading on <a href="https://bit.ly/2DyMRee">https://bit.ly/2DyMRee</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b78832a887" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native App Development Part 1: A Beginners Guide to React Native Architecture]]></title>
            <link>https://medium.com/@aditya.modi/react-native-app-development-part-1-a-beginners-guide-to-react-native-architecture-55ab5d6b5463?source=rss-b0ede6a2b917------2</link>
            <guid isPermaLink="false">https://medium.com/p/55ab5d6b5463</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[react-native-development]]></category>
            <dc:creator><![CDATA[Aditya Modi]]></dc:creator>
            <pubDate>Wed, 12 Sep 2018 08:48:08 GMT</pubDate>
            <atom:updated>2018-09-12T08:48:08.929Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*CBhkGTVPtTxG6L5j61sSLA.jpeg" /></figure><p>Let’s take a look at one screen from an app that is purely React Native and ask ourselves what is the UI that we see here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*OjKTW4WWnbTxUYFz.jpg" /></figure><p>Is this an HTML? Is this a webview like other implementations like PhoneGap or Cordova?</p><p>The answer is, without a doubt, No. The views in React Native are purely native views so from our app the navigation controller that you see here the top bar is UINavigationController. Now, if you are an iOS developer you would these are the same UI views that you use in your native apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*MeYWvXVcBZmjE3k1.jpg" /></figure><p>If I had shown you the same screen on Android, you would see that the implementation is completely different. It renders to the native views. If the UI is completely native with React Native, where is the JavaScript?</p><p><strong>Where is the JavaScript?</strong></p><p>JavaScript is what running under the hood. Where you as a developer specify the business logic and which components you want and then the framework renders it for you. To understand this better, let’s dive into React Native a little deeper and see the architecture from the inside.</p><p><strong>Understanding React Native Architecture</strong></p><p>Consider there are two realms running side by side in your app. You have the JavaScript realm and you have the native realm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*G7DDWPJR4IQ150gk6Sz8wA.jpeg" /></figure><p>Continue reading on <a href="https://bit.ly/2NCmM1F">https://bit.ly/2NCmM1F</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55ab5d6b5463" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>