<?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 Ahmed Waleed on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Waleed on Medium]]></description>
        <link>https://medium.com/@aw_yt?source=rss-ba0f6f3fd01------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*r-aOTTuC187Vqx8J4nmAJQ.jpeg</url>
            <title>Stories by Ahmed Waleed on Medium</title>
            <link>https://medium.com/@aw_yt?source=rss-ba0f6f3fd01------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:55:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aw_yt/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[AngularJS End of Lifecycle; what you should know about!]]></title>
            <link>https://medium.com/emumba/angularjs-end-of-lifecycle-what-you-should-know-about-aec8c3a2f3f0?source=rss-ba0f6f3fd01------2</link>
            <guid isPermaLink="false">https://medium.com/p/aec8c3a2f3f0</guid>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-applications]]></category>
            <dc:creator><![CDATA[Ahmed Waleed]]></dc:creator>
            <pubDate>Fri, 18 Jun 2021 15:04:56 GMT</pubDate>
            <atom:updated>2021-06-18T18:00:01.270Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sSE8nW4l9BclkzN5BEbOhw.png" /></figure><p>AngularJS is reaching the end-of-life on December 31st, 2021. It essentially means that Google will no longer provide updates on features or security. If you are a stakeholder in an application that is built upon AngularJS, it will have serious implications like the ones mentioned below:</p><h4>Compromised Security</h4><p>Web applications are a prime target for malicious hackers who are constantly looking for vulnerabilities. Developers of such frameworks provide security updates to counter these risks. Once AngularJS reaches end of life, there will be no patch or fix for any security issue! The chances of this happening are pretty low but it will be treated as a security threat. These issues may not pop up right away but it is important to strategize and decide the next course of action.</p><h4>Developers Availability</h4><p>Majority of developers and teams who worked on the AngularJS have already flocked to the newer shiny frameworks and the number decreases day by day. It will become increasingly harder and expensive to find devs who are willing to work on your apps and of course they won’t enjoy working on it either. Ultimately, it will be hard to retain them. Developers always prefer to work on the cutting edge technologies and nobody likes to work on a legacy app built on a deprecated framework.</p><h4>We are fine! Our App doesn’t need more development work!</h4><p>Unless you plan to deprecate or kill the current app, there’s a high chance you will run into problems. There’s always some bug that remains hidden and pops up when the code is deserted! Moreover, people change over time so do they expect change in the stuff they use! Someday you will need to make changes in your app either to meet the growing user expectations or to simply take on the competition.</p><h4>What do we do next? Tip; Migrate</h4><p>There is only one viable solution to this conundrum, migrate your app to a modern framework unless you love the framework so much that you want to maintain a spin-off yourself.</p><p>Modern web frameworks such as React, Vue, Angular have disrupted the space and have built strong open-source communities around them. These strong community-driven ecosystems will make sure AngularJS doesn&#39;t happen again.</p><h4>Is the migration urgent?</h4><p>Not exactly, none of the above-mentioned problems will pose huge challenges right away but their magnitude will increase over time. However, it is important to work on a strategy now so that you have gracefully countered the situation before these challenges become monsters that take a fortune to defeat.</p><h4>What framework to migrate to?</h4><p>There is no single correct answer to this. However, for many noble reasons, we at Emumba prefer the ReactJS and its ecosystem. Check out <a href="https://blog.emumba.com/why-react-in-2050-and-beyond-2d06509e63ff">this</a> write up to know why we believe React is here to stay forever and won’t pull off an AngularJS :D. However, no solution fits every problem. The correct answer for you might be different.</p><h4>Who can help? Tip; Emumba!</h4><p>Emumba has years of experience in building enterprise applications with AngularJS. And since the React disruption, we have worked with our clients to migrate to the newer and better frameworks.</p><p><em>We are giving a free two hours consultation with our architects. We will analyze your problem statement and suggest you a solution strategy which is optimized for your business specifics. Contact us at </em><strong><em>hello@emumba.com</em></strong><em> or visit our </em><a href="https://emumba.com/"><em>website</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aec8c3a2f3f0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/angularjs-end-of-lifecycle-what-you-should-know-about-aec8c3a2f3f0">AngularJS End of Lifecycle; what you should know about!</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing K2: Fastest Way to Develop Dashboards in React]]></title>
            <link>https://medium.com/emumba/introducing-k2-fastest-way-to-develop-dashboards-in-react-57733a790f3e?source=rss-ba0f6f3fd01------2</link>
            <guid isPermaLink="false">https://medium.com/p/57733a790f3e</guid>
            <category><![CDATA[components]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[emumba]]></category>
            <dc:creator><![CDATA[Ahmed Waleed]]></dc:creator>
            <pubDate>Mon, 24 Aug 2020 08:09:51 GMT</pubDate>
            <atom:updated>2020-08-27T07:05:13.969Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zuSqcEdnxGhNX3GTIk9gVg.jpeg" /><figcaption>K2 sample <a href="https://demos.emumba.com/">dashboard</a></figcaption></figure><p>When you work on something for years, you start producing better quality in lesser time. Quality improves because you are more aware of the potential pitfalls and incorporate valuable feedback from stakeholders. Agility improves because you have solved these problems time and time again and have the answers to optimize your work. And when you have been doing something for even longer, you start automating around the patterns to reduce the effort involved.</p><p>Emumba has worked with multiple customers over the years to develop custom dashboards. We developed a tool, K2, for ourselves to improve the delivery of our our solutions. It incorporates years of learning, experience and valuable feedback from our customers.</p><h4>Let’s cut to the chase</h4><p>K2 is a framework of high level react components which allows you to build quality dashboards swiftly.</p><h4><strong>Does K2 sounds cool and familiar?</strong></h4><p>It’s because K2 is inspired from <a href="https://en.wikipedia.org/wiki/K2">K2</a> the peak, the highest mountain in Pakistan and second in the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*hRzfWQAQTzcvaAbkRx97dg.jpeg" /><figcaption><a href="https://en.wikipedia.org/wiki/K2">K2</a>, the peak</figcaption></figure><h4>Why K2 when we have other charting tools like Highcharts, amCharts, Recharts, Victory, and countless others available in market?</h4><p>Dashboards are more than a set of charts or visualizations and there is a lot of effort that goes into the making of a good, informative and usable dashboard.</p><p>K2 is a tool for building e2e dashboards which means we offer out-of-the-box and ready-to-use components for instance essential UI components, layout solutions such as grids, painless integrations with backend APIs, a coherent theming interface, and of course, charts and custom visualizations.</p><h4><strong>How does K2 compares with tools like Grafana?</strong></h4><p>K2 helps you deliver faster where you can’t use such no-code tools and have to develop custom applications. If your use case is served by tools like Grafana, please use them. There is absolutely no reason to write code when you don&#39;t have to.</p><h4>Is K2 built from scratch?</h4><p>No and there is no reason to do so either. We love the famous opensource libraries so we build upon the stable core of the libraries such as React, TypeScript, styled-components, react-vis, and d3.</p><h4>Does K2 support ${your-usecase}? How extendable is it? Can it work with ${xyz-tool}?</h4><p>We support common use cases today out of the box, however if there is something not supported out of box you can always leverage your favorite third party libraries and integrate it in the dashboard built with K2 just like any other React component. On the core, K2 is a set of opinionated React components to make your life easier. This also gives you flexibility to directly work with the other libraries/packages you love or need.</p><h4><strong>Does it support TypeScript?</strong></h4><p>Absolutely, in fact, K2 itself is written in TypeScript so we love it as well.</p><h4>Show me the code and the candy</h4><ol><li>Checkout <a href="https://k2.emumba.com/storybook/">demos</a> of different individual components and the code snippets used to create them.</li><li>Check out <a href="https://github.com/emumba-com/k2-examples">code</a> of a dashboard built with K2 covering wide set of use cases like integration with other libraries.</li></ol><h4>If you dig philosophy, here is ours</h4><ol><li>Visualizations and charts should be beautiful by default. You shouldn&#39;t have to explore documentation and configs for this. Who doesn’t like beautiful?</li><li>Dashboards are more than a set of visualizations and there is a lot of effort that goes into the making of a good, usable, and informative dashboard.</li><li>No-brainer things shouldn’t need extra effort time and time again.</li><li>Simplicity over “customization you don&#39;t need”.</li><li>We don&#39;t like solving the same problems over and over again.</li><li>We want to deliver faster to our customers.</li><li>We want to let designers worry about making it look pretty and focus on making information more meaningful and programming business logic.</li></ol><h4>That’s one hell of a selling pitch. What’s next?</h4><p>Checkout our <a href="https://k2.emumba.com/#pricing-section">pricing plans</a> and talk to us, we are excited to talk about K2 anytime…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57733a790f3e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/introducing-k2-fastest-way-to-develop-dashboards-in-react-57733a790f3e">Introducing K2: Fastest Way to Develop Dashboards in React</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why React in 2050 and Beyond?]]></title>
            <link>https://medium.com/emumba/why-react-in-2050-and-beyond-2d06509e63ff?source=rss-ba0f6f3fd01------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d06509e63ff</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[reason]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Ahmed Waleed]]></dc:creator>
            <pubDate>Fri, 13 Dec 2019 09:52:19 GMT</pubDate>
            <atom:updated>2019-12-14T09:05:27.060Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s fun. That’s the short answer I would give after working for almost 3 years with React. If you can relate to having fun and don&#39;t have time to read on, just know that there are a lot of other people who find it “fun” to work with React, give me a clap and adios!</p><h4>64.8% of people who used React would use it again - StateOfJS survey</h4><figure><img alt="64.8% of people who used React would use it again" src="https://cdn-images-1.medium.com/max/1024/1*7NOAq1N5T8vsgGs2OPT_EQ.png" /><figcaption><a href="https://2018.stateofjs.com/front-end-frameworks/overview/">Frontend frameworks, StateOfJS</a> Survey</figcaption></figure><h4>Most loved framework - StackOverflow survey</h4><figure><img alt="React is the most loved framework!" src="https://cdn-images-1.medium.com/max/770/1*OaatZou0c8PstPCTvRuHzA.png" /><figcaption><a href="https://insights.stackoverflow.com/survey/2019#technology-_-most-loved-dreaded-and-wanted-web-frameworks">Most Loved Frameworks, stackoverflow survey results</a></figcaption></figure><h4>Didn’t know UI programming could be this fun?</h4><p>Neither did I and nor did a lot of other people. If you are a developer looking to learn, you MUST have fun at your job. Similarly, if you are someone who is selecting the technology for a new project, it must be even more important for you because it can potentially keep your developers interested and motivated. So what’s the fun with React?</p><p>React brings in the new-to-us-but-oldest-by-inception style (Functional / Declarative) of programming to UI which opens up a whole new world of possibilities. Functional style is getting really hot in UI programming for some time now but I think the credit goes to React for how it introduced these concepts to common people(who don&#39;t do lambda calculus for fun) in an approachable way. People are able to map more appropriate and fun programming principles to UI code. The ability to create powerful elegant abstractions makes it fun to tame the ever increasing complexity of UI applications. You can say good bye to the old school MVC or MV-whatever.</p><p>If having flexibility of how to solve problems doesn&#39;t sound fun then, my friend, you are beyond saving!</p><h4>Elegant programming style is the most liked aspect of React - State Of JavaScript</h4><figure><img alt="Elegant programming style is the most liked aspect of React" src="https://cdn-images-1.medium.com/max/1024/1*4I0ktXrfIRbmQH4SKud2lg.png" /><figcaption><a href="https://2018.stateofjs.com/front-end-frameworks/react/">React, StateOfJS</a></figcaption></figure><h4>Reinventing the wheel</h4><p>As much as it sounds fun and a chance to learn new stuff, we only get to do it in our world of pet projects. At work, we all leverage libraries and reuse solid battle tested stuff that’s available off the shelf. Although, you can use any JS plugin/library with React but there is a whole lot of dedicated UI libraries and plugins which provide first class support for React and make you feel at home such that you are using same semantics of React and you don&#39;t have to write any glue. In fact, second most liked aspect was rich package ecosystem in StateOfJS survey. We all can do with less mess in application code, can’t we?</p><p>Every use case one can think of will have a tool available in the ecosystem. Create React App for setting up React applications, Jest for testing, NextJS for server side rendering, Gatsby for generating static websites, nwb for creating libraries. A lot of libraries are available for ready made UI components and state management solutions. In fact, any use case you name would most likely have multiple viable options available, giving you a much welcome selection headache!</p><h4>How about the noise, eh?</h4><p>Given that you have solid tech, meta programming / noise can be decisive factor and make-it-or-break-it for technology. React ecosystems is as noisy as it can get. Doesn’t this write up give you a hint :).</p><p>React documentation is a pleasure to read and you could read it just for reading :). It’s that good! Now combine that with the all the talks, articles, guides and MOOCs the community is generating, it’s like an endless supply of React material. React is being taught in every possible way one can learn :). There is no escaping it.</p><p>For people just starting, it helps a lot to know that whenever they are stuck in some problem, someone else has solved it and written about it somewhere. All they need to do is a google search.</p><h4>Talk is cheap show me the code!</h4><p>A quick “React” filter on Github will bombard you with React based repositories but its another story when top companies like Facebook, AirBnB, Netflix, Uber, Microsoft, Atlassian, New York Times and many more not only use it in production but have invested heavily in the React ecosystem by creating useful tools and packages around it. Where I work, <a href="https://emumba.com/">Emumba</a>, is also a small but awesome React brewery, working with customers from the Silicon Valley!</p><h4>Is it like blazing fast?</h4><p>React got famous because it was fast and all about virtual dom and stuff but if you are benchmarks purist, no, it is not the fastest today but it is in competition and continues to improve on that front with React fiber and the new concurrency mode. There are libraries/frameworks inspired by React that edge in performance benchmarks but then their sole aim is to do that. In achieving that, they lose out on other fronts like any software engineering trade off.</p><h4>React team won’t just go ahead and create a React V2</h4><p>Angular folks, sorry but i couldn’t find more cheesy heading :). Facebook uses and is heavily invested in React so they totally understand the pains of migrating big products and code bases. Updates / upgrades are well announced with sensible life cycle. React team goes an extra mile in providing smooth upgrade experience by leveraging guides and codemods to automate whatever can be automated safely.</p><h4>Sloths are starting to catch up</h4><p>Sloths? Guess who? Of course, its the enterprise world and yeah not arguing with their reasons for being slow :). Angular dominated the enterprise world but React is starting to catch up. Why now? Perhaps, now React is old enough or maybe because it got so popular with rest of the world :). Or maybe it’s the realization that React makes it so much easy to increase agility by leveraging re-usability. This adoption trend is only going to solidify React, its ecosystem more and generate more jobs.</p><h4>React Native is taking it to a whole other level</h4><p>People are using React to create applications for mobile and desktop as well. <a href="https://facebook.github.io/react-native/"><strong>React Native</strong></a> is kind of old news now and probably you already know it compiles natively to mobile platforms Android and IOS. There is even a Microsoft framework to build <a href="https://github.com/microsoft/react-native-windows">Windows</a> apps using React Native.</p><p>Think about the power of using the same framework and tech on all your applications…</p><h4>That’s old news! What’s in the labs?</h4><p>We have a new-but-ocamlish-old strongly typed language called <a href="https://reasonml.github.io/docs/en/what-and-why">Reason</a> from Facebook which aims to supercharge React and React patterns. It compiles to JavaScript as well as Native and obviously has first class support for React. They call it ES2050 for good reasons and it allows you to use JS, React and npm ecosystem, albeit in a safer way with run time safety you cant get from JavaScript or TypeScript. Messenger.com web app is already ported to Reason React, so its ought to be graduating slowly from the labs.</p><p>What else is missing? Yep, cross platform desktop applications! You can use <a href="https://electronjs.org/">Electron</a> with React to create cross platform desktop applications as well.</p><p><em>Electron? meh! its a resource hog, it comes with buy a 1 get 1 free app (remember chromium base)… </em><br>Le Me: VS Code, Atom, Skype, Slack…</p><p>Someone again: <em>Let us stop you right there, we know that all these applications are built in electron but it doesn’t change the fact that you are running a website on a browser under the label of desktop application…</em> <br>And that’s where I usually end the conversation with a sheepish yet understanding smile but there are people who did more than that and raised it to whole another level when they decided to <a href="https://www.outrunlabs.com/revery/">build a React inspired framework(Revery) for native cross platform</a> desktop applications. And the only caveat is, it comes with a better JavaScript(Reason):P!</p><h4><strong>What’s the Reason behind Reason?</strong></h4><p>If you want to learn more about the philosophy and how it aims to take React to the next level, watch this talk<em> </em><a href="https://www.youtube.com/watch?v=5fG_lyNuEAw"><em>React to the Future</em></a><em> </em>by none other than Jordan(creator of both React and Reason) himself<em>.</em> Although, if you are just starting, I would recommend to stick with JavaScript and you will know when you need to look else where :).</p><p><em>P.S. This is a fanboy rant from an Engineer who has worked on various projects in React for almost 3 years. Stats are from 2018 year end surveys, i will update once new 2019 results are available.This write-up takes inspiration from Jordan’s talk linked above but obviously with less awesomeness!</em></p><p><em>If you have something interesting that should be added here, i am all ears!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d06509e63ff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/why-react-in-2050-and-beyond-2d06509e63ff">Why React in 2050 and Beyond?</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Components Library for Dummies]]></title>
            <link>https://medium.com/emumba/https-blog-emumba-com-react-components-library-for-dummies-4425b17bd008?source=rss-ba0f6f3fd01------2</link>
            <guid isPermaLink="false">https://medium.com/p/4425b17bd008</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-components]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Ahmed Waleed]]></dc:creator>
            <pubDate>Wed, 30 Jan 2019 17:56:21 GMT</pubDate>
            <atom:updated>2019-01-31T18:04:49.850Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fO07aC3HKpR7IOxVfMGJQ.png" /></figure><p>Looking for the perfect boilerplate to create your awesome react components library? Guess what? there isn’t one.</p><p>I learnt it the hard way by discarding every library boilerplate out there in the wilds of JavaScript. Setting up a library from scratch may seem like an uphill task but benefits of understanding the process easily outweighs the efforts involved. Besides, you probably don’t want to justify your decisions to your boss by saying, “I just followed some random guy’s article and boilerplate”.</p><p>However, if your library is a one off adventure, nothing that’s going to scale and you can sleep peacefully not knowing the nuts and bolts, you may skip to bottom of article for links to some good library starters. And yes, they aren’t perfect!</p><p>If you find the terms such as ES5, ES6, ES2015, Compilers, Bundlers, taken from alien language? React <a href="https://reactjs.org/docs/glossary.html">glossary</a> should make you feel at home.</p><p>Enough rambling, let’s start with the real stuff!</p><p>Most important part of figuring out the unknowns correctly is to list down the set of questions to ask. Once you have the right set of questions, finding answers should be easy and Mr. Google doesn’t disappoint.</p><h3><strong>“One to rule them all”?</strong></h3><p>Deciphered version, is this library going to contain a lot of stuff and might even have lot of dependencies? If so, you may need to convert the library into multiple smaller scoped packages just like modern libraries. You will often see this pattern at work, @scope/my-package}. This approach provides your users with the liberty of installing and using only the required packages. You don’t need to buy the whole shop when all you need is a single item out of it.</p><p>Counting the packages and thinking about the pain of managing the infrastructure? Worry not, Monorepo has got you covered. If that sounds alien to you, Monorepos stand for a single monolith repository containing all the related projects or in our case multiple packages. Monorepos are hot these days and already being used at tech giants such as Facebook and Google. Gone are the days, when it was necessary to shake your head upon the word ‘Monorepos’. A reason behind that might be the sophisticated tools to manage or we can always blame the trends.<br>Need more information? See the links at bottom.</p><h3><strong>How do you serve?</strong></h3><p>There are quite a few ways to do this and no straight answer. Correct answer totally depends upon your users and how they are going to use your library.</p><h4>More importantly, who do you serve?</h4><ol><li>User has a modern application build setup with compiling and bundling tools integrated such as babel and webpack to build their applications. Setups like create react app are prime example of this.</li><li>User doesn’t have any build setup and will likely to use your library as a single script file. Reminds of good ol’ days of Bootstrap and JQuery.</li><li>Users creating applications for IE — Stay away from such people, they are lethal, they strike in stealth and you never know what hit you.</li></ol><p>Majority of your library users belong to the first category if you are reading this in 2019(I see you time travelers). <br><strong>What do you serve?</strong></p><ol><li><strong>Serve it as raw as it comes</strong> — serving your code as it is may sound interesting and easier but beware these stunts are performed by professionals who train for years so don&#39;t try this at home.</li><li><strong>Cook it per the recipe </strong>— Compile your flavor of JavaScript in to the ES5 standard and serve the code. And yes no bundling, because your user will be using a bundler in his application anyway. Moreover, your library can have have multiple modules as entry points so users can selectively include modules they need resulting in better optimizations.<br>For instance, import Button from ‘<a href="http://twitter.com/material">@material</a>-ui/core/Button’; ensures you import the stand alone Button component instead of whole monolith package.<br>This is the recommended way of serving and consuming libraries.<br>Ah yes! its opinionated but keeps things simple and doesn’t need people starting out to start digging in to advanced topics such as Tree shaking and all.</li><li><strong>Wrap it up for unseen </strong>— Let’s get the compiled output from the above step and bundle it in a single file. This approach serves all the different user types we discussed earlier. Needs a bit more work to setup and it brings irresistible Rollup vs Webpack vs ‘x’ showdowns in to play. Point being? Think again, if you really need such controversies in your life!</li></ol><p><strong>Defining the unseen!</strong></p><p>How to accommodate users who don’t have any build setup and will include the library directly in html file as a script?<br>You need to bundle your library in a single file because of usability and ease of distribution purpose. Caveat involved in this approach is simple, your user’s application size can increase substantially because they will be loading the whole package when they all the needed was a single `function` out of it.</p><p>To top it off, if your user also works on legacy browsers such as Internet Explorer or older versions of chrome, blows my mind if some one really is, you will need to change the target module system from `ES` to , one of the legacy module system.</p><p>All the module systems, buzzwords if you aren’t acquainted, such as CommonJS, AMD, UMD, are simply patterns designed to work around the lack of native modules. Now that we have native ES Modules, are they the definite answer?</p><p>In most cases, yes! They are supported in all the modern browsers, secondly, our users will have a proper build setup so they can easily consume our code and compile in to whatever form they need depending upon end users demographics.</p><p>See links at the bottom for more information on module systems.</p><h3>How about the weaponry, Sarge?</h3><ol><li><strong>Angular or React?</strong> This write up works as a sleeping pill as well!</li><li><strong>What JS flavor?</strong> Vanilla, coffee, typescript, clojurescript, reason everything ultimately compiles to JS and there is no other way around it at least for foreseeable future. Choose wisely, this will affect your team’s productivity in a big way. As far as recommendation goes, you can’t go wrong with Typescript and there is a reason Typescript is popular in Library scene.</li><li><strong>What CSS flavor?</strong> We chose JSS and are happy with it, please do check out it’s feature page but you can’t go wrong with other options such as sass or less either.</li><li><strong>How do you develop and showcase your component?</strong> A demo app will do just fine but you should go for Storybooks especially if the library is to scale, they go a long way in making development productive. Interactive showcase with interactive components deployed somewhere is a treat for your users. It’s simply awesome.</li><li><strong>How do you test your components?</strong> If you are just starting out and have limited information on the topic, I would recommend you to check out Jest as it’s also developed by Facebook and it’s experience really is ‘delightful’ as they put it.</li><li><strong>Going for Monorepo, eh?</strong> You should integrate Lerna for managing your Monorepo . Trust me, it will make your life a whole lot easier.</li><li><strong>Forgetting about the docs?</strong> You could leverage the storybooks for this however if you are to document a huge API and have a lot to write, an independent documentation site is the way to go. <br>We used Ocular from Uber to generate a static site from markdown files plus its pretty easy to setup and getting started. This really is some magic from Uber.</li></ol><h3>Is your library public?</h3><p>Yes? Your path is straightforward. All you need to do is to publish it on npm, it’s no rocket science. A quick google search or digging through npm documentation should do the trick.</p><p>No? There are quite a few ways you can deal with it:</p><ol><li>Buy npm private accounts for your organization, your users need to have private accounts as well</li><li>Create/host your own private registry, there are quite a few options available for this such as cnpm, verdaccio</li><li>Use third party services such as gemfire or myget, these services allow you to host your packages privately in cloud</li></ol><h3>Show me the code!</h3><p>A hands on tutorial is in works, stay tuned.</p><h4>Useful Links and References</h4><ul><li>Recommended JS library starter: <a href="https://github.com/insin/nwb">nwb</a></li><li>Secondary option for JS or if you want to go with Typescript: <a href="https://github.com/transitive-bullshit/create-react-library">Create React Library</a></li><li>CSS in JS: features <a href="https://cssinjs.org/features?v=v10.0.0-alpha.8">page</a></li><li>Managing Monorepo: <a href="https://lernajs.io/">lerna</a></li><li>Development environment and Component Showcase: <a href="https://storybook.js.org/basics/introduction/">storybooks</a></li><li>More info on Monorepo: <a href="https://medium.com/@luisvieira_gmr/building-large-scale-react-applications-in-a-monorepo-91cd4637c131">see this write up</a></li><li>Documentation site generator: <a href="https://github.com/uber-web/ocular">Ocular</a></li><li>More on building libraries and selecting module systems: excellent <a href="https://medium.freecodecamp.org/anatomy-of-js-module-systems-and-building-libraries-fadcd8dbd0e">article</a> by Kamlesh</li><li>Intrigued by Module systems? Look no further than this piece of <a href="https://medium.freecodecamp.org/anatomy-of-js-module-systems-and-building-libraries-fadcd8dbd0e">awesomeness</a> by Addi Osmani</li><li>Webpack vs Rollup: <a href="https://medium.com/webpack/webpack-and-rollup-the-same-but-different-a41ad427058c">the same but different</a></li></ul><p><strong>Technical Reviewer: </strong><a href="https://medium.com/u/8411eb6cf419"><strong>Umar Ashfaq</strong></a><strong><br>Cover Image designed by: </strong><a href="https://medium.com/u/fb806b2557eb"><strong>Aiza Chaudry</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4425b17bd008" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/https-blog-emumba-com-react-components-library-for-dummies-4425b17bd008">React Components Library for Dummies</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Hate Front-end Development]]></title>
            <link>https://medium.com/emumba/i-hate-front-end-development-2b7a9ff4704e?source=rss-ba0f6f3fd01------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b7a9ff4704e</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Ahmed Waleed]]></dc:creator>
            <pubDate>Mon, 26 Nov 2018 17:16:37 GMT</pubDate>
            <atom:updated>2018-11-28T04:16:52.847Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJH43eegQ9rBYhxJQnyD9w.jpeg" /></figure><h3>You are a victim of click bait. Ta-da!</h3><p>Chances are you currently work in Front-end development and came looking for someone to mourn with. Or possibly, came looking for a passage to the lights of north star located far away from the black hole called front-end! I totally understand this perception, with a gesture of “Been there, done that!”.</p><h4>But, did you ever stop and think what is it that you hate about Front-end?</h4><p>When someone asked me the same question, here is what I came up with:</p><ol><li>HTML &amp; CSS. Period.</li><li>JavaScript? All the design faults, pathetic tooling, lack of usability, created in 10 days…</li><li>Try dozing off for three days, deprecation messages will wake you up if nothing else</li><li>Its Front-end pal, real programmers don’t do that!</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ij1eUBFHjZSil_dlvzbgOQ.jpeg" /><figcaption><em>Was i naive, people? Anyone?</em></figcaption></figure><h3>Let’s look at it from another angle, shall we?</h3><h4>Who are Engineers? Do we understand the baton passed to us?</h4><p>Want to read the long technical answer? See <a href="https://en.wikipedia.org/wiki/Engineer">wiki</a>.</p><p>Engineers solve problems by designing solutions which conform to the requirements, constraints and practicalities. Front-end is a technical requirement or more appropriately a practical playground with you being the player in it. <em>If you are a good enough engineer then Front-end needs you to solve the problems that come with the ecosystem. Some of which perhaps contribute to the </em><a href="https://medium.com/@ericclemmons/javascript-fatigue-48d4011b6fc4"><em>FATIGUE</em></a><em> as well.</em></p><p>Like it or not people use the web everyday and will continue to use it. As a matter of fact, the number will keep growing. When it comes to users, business and competition, there is always a room for improvement, some extra mile you can go. Problems won’t be solved once and for all, they will keep coming. They will become tougher to spot but on the bright side it makes them tougher to solve as well.</p><p><em>A quick fact for you, </em><a href="https://www.internetworldstats.com/stats.htm"><em>55% of world population is internet user in 2018</em></a><em>. So, even more opportunities will surface because the remaining 45% will start using it someday. So end is not anywhere near, yet!</em></p><h4>‘That’s wise’, can I send that wisdom as a gift from Amazon?</h4><p>If wisdom was sold, it would definitely be most in demand item on Black Fridays :). But its not, you have to earn it by using your brains and accumulating the right set of experiences.</p><p>How did I get my head around it? Someone, once asked me to try creating a Google Docs clone. I gave it some thought and once the complexity of problem hit me, I realized, <em>some of hardest problems around were solved, and will be solved using HTML, CSS and JS.</em></p><p>FYI, Google Docs really changed the game. They made it because so many users faced collaboration problems everyday. Not because working in Front-end was a sweet ride and it was hot in the market. In the end, it’s about what people use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T6UQhsBRaEmhhpqoBDZoWw.jpeg" /><figcaption>We ignore the importance of front-end design and development to the people who actually matter, USERS!</figcaption></figure><h4>Not that you should shut the drapes and zone out other domains because that is also an anti-pattern. Just be an engineer, learn what you can and play according to the field.</h4><h4>Ahem! How about the abomination inflicted on the world called JavaScript?</h4><p>I eventually made my peace with it, however, I am far from a ‘fanboy’. JavaScript has taken over the programming world as a universal language and it deserves respect for that. Web, Mobile, Desktop, Server, IOT, you name it and JavaScript is there. It’s even making inroads in Machine Learning albeit for learning purposes, but who knows, it’s JS after all and you should keep betting on it.<br>This debate would have made more sense in the pre-ES2015 world because the language has matured greatly since then. Despite any problems you may still find, one thing is for sure, it isn’t going anywhere. Probably, its dominance of programming world will continue to increase. It has been the <a href="https://octoverse.github.com/projects#languages">top</a> rated language on GitHub for several years now. In fact, <a href="https://octoverse.github.com/projects">top opensource projects list</a> has also been dominated by JavaScript ecosystem. However, it is not “One to rule them all”, at least yet!</p><h4>How about the limitations that come with JavaScript?</h4><p><em>You can work around the limitations by switching to another language which compiles to JavaScript and has semantics better suited to your needs.</em> <em>Some good examples include Typescript, Elm, ReasonML, ClojureScript, Scala, Kotlin and this list goes on.</em> In fact the JavaScript you write and the code you deploy is already so much different due to it being compiled/transpiled by tools such as babel.</p><h4>Prophecy of tech which might make Front-end more interesting</h4><ol><li><a href="https://webassembly.org/demo/">Web Assembly</a>, native performance right in your browser. Need I say more?</li><li><a href="https://www.rust-lang.org/en-US/">Rust</a>, awesome semantics, built by Mozilla, <a href="https://insights.stackoverflow.com/survey/2018/#most-loved-dreaded-and-wanted">most loved language</a> and compiles to Web Assembly. Future world could be happier using Rust in tandem with JavaScript!</li><li><a href="http://webglsamples.org/">WebGL</a>, take the graphics to next level by leveraging OpenGL.</li><li><a href="https://www.typescriptlang.org/">Typescript</a>, JavaScript that scales!</li><li><a href="https://reasonml.github.io/">ReasonML</a>, an alternative OCaml syntax for JS developers which compiles to JavaScript as well as native. Tight integration with React. Built by Jordan Walke creator of React at Facebook. Regarded as JavaScript with ES2050 features.</li><li>…Any technology you think was worth mentioning here and i missed out. Please reach out via comments!</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oDvfloYYN-B-Ra1umyoHyw.jpeg" /><figcaption>Here’s to the cool tech from future!</figcaption></figure><h4>I am the enlightened one but what about the rest of the world?</h4><p>People don’t know what they don’t know and develop perceptions based on limited information. Key is to enlighten other people with the knowledge you have and this is the hard part. Being an engineer, that is perhaps another problem for you and this blabbering was just a shoddy attempt from my side!</p><p><em>P.S. Motive is to stop the stereotyping against Front-end development affecting the mindset of new Engineers coming into the field. This stereotyping may be unheard of to you but it is very common where I come from. This article is highly opinionated and tries to reason with the audience. You don’t have to nod along but you are welcome to leave your valuable feedback.</em></p><p><em>Kudos to </em><a href="https://medium.com/u/fb806b2557eb"><em>Aiza Chaudry</em></a><em> for amazing Artwork!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b7a9ff4704e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/i-hate-front-end-development-2b7a9ff4704e">I Hate Front-end Development</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Functional Programming?]]></title>
            <link>https://medium.com/emumba/why-functional-programming-a3835a9145ea?source=rss-ba0f6f3fd01------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3835a9145ea</guid>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Ahmed Waleed]]></dc:creator>
            <pubDate>Fri, 02 Feb 2018 09:32:27 GMT</pubDate>
            <atom:updated>2018-02-02T09:32:27.423Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*DcSqV-w5AWR6JHxmARuA9Q.png" /><figcaption>Why Lambda is usually associated with Functional Programming? <a href="https://stackoverflow.com/questions/16501/what-is-a-lambda-function">Read This</a></figcaption></figure><p>If you think you will be writing Functional Code by the time you reach end of this document, well, my friend you need a much longer <a href="https://mostly-adequate.gitbooks.io/mostly-adequate-guide/">document</a> and be banished to dungeons with it from where the only way back is if you climb back on one leg. Purpose of this article is to babble on benefits of Functional Programming and motivate you in going through the steep learning process.</p><p>Getting to the business right away, here is a list of superpowers your code gets once you practice Functional Programming:</p><ol><li>Readable</li><li>Declarative</li><li>Multiple abstract layers(Dig only if you want)</li><li>Can be reasoned about</li><li>Testable</li></ol><p>Arguably, 2,3,4 can be declared as part of code readability on abstract level. So to me, most important gain of FP(Functional Programming) is code readability. So, part of our answer lies in “<em>Why Code Readability”</em>?</p><p>If you are a Programmer, chances are you have already worked in a team. If you hooked on to an existing project, you should remember your struggle to get productive in the project? That struggle is inversely proportional to code readability of that project. I would say, it is a big win for any project and team if new programmers can easily adjust and get productive in code base.</p><p><em>More you adhere to </em><a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=12&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwjY1dyj9IPZAhUMzaQKHQOJDNgQFghYMAs&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FKISS_principle&amp;usg=AOvVaw2C6YJnwvvPdVG-s1G9UR16"><em>KISS</em></a><em>, more readable and manageable your code base becomes.</em></p><p>I like to endorse the view that primary audience of code written today is fellow team members or people who read your code not machines. Code written today usually costs a lot more in terms of Programmer Salaries(People reading and working with your code) than the machines running it. Machines are cheap today.</p><h3><strong>“Code Readability vs Optimization”</strong></h3><p>Your code takes a second less to execute? Congratulations, well done but does it now needs that extra hour or two from fellow junior programmer to fix a future bug? Is that a right trade off? I believe the answer is “No”, in most cases.</p><p>There can be some critical systems where even a millisecond makes whole lot of difference but they are rare and should be treated as such. Thumb rule should be, “Premature optimization is a curse”.</p><p><strong>“Sire, I am a native </strong><a href="https://en.wikipedia.org/wiki/Object-oriented_programming"><strong>OOP</strong></a><strong> speaker”</strong></p><p>Ability to understand code should not be misunderstood with code readability. Since OOP is de facto in industry, most people can understand it easily even if the code is not readable per the OOP standards. FP takes time to get comfortable but once you do, it gives you a new way to decipher problems and makes you a better programmer overall.</p><h3><strong>“Declarative vs Imperative”</strong></h3><p>I recommend to read this <a href="https://tylermcginnis.com/imperative-vs-declarative-programming/">longer and very good version</a> on the topic but for sake of continuity here is a quick version:</p><p>Code is said to be declarative if you start writing what you want not HOW to do it. SQL is a good example of declarative style.</p><pre>SELECT * FROM Cities WHERE Country = ‘France’;</pre><p>Imperative style of coding tells machine what to do and how to do in baby steps. Undeniably, this gives you freedom but also leaves you with unrelated details to manage along with the primary goals of your application.</p><pre>function double(ages) {<br>  let agesResult = []<br>  for (let i = 0; i &lt; ages.length; i++) {<br>    agesResult.push(ages[i] * 2)<br>  }<br>  return agesResult<br>}</pre><p>If we want to double each item of a list of ages then imperative style makes it our headache to initialize a variable and then to control the loop with it while achieving our goal of doubling it.</p><p>Now consider more complex scenarios, more side effects and irrelevant details are there to manage! Let’s convert the example to declarative style:</p><pre>function double(ages) {<br>  return map(age =&gt; age * 2)(ages)<br>}</pre><p>This map function picks every “age” item from the “ages” list and applies the arrow function on it. If you notice, “how” part of the code is now under the hood of map function. It abstracts away the details unnecessary or not related to primary goal. <br>Now this is a very simple example and your code will be huge and way more complex compared to it but that’s the point. This actually matters in huge code bases where code readability can make that code base a heaven or hell. If a code base is not readable then there will be days you spend figuring out why did that code not work and sometimes why did it work precisely.</p><p><strong>“Did we not have enough at our hand already?“</strong></p><p>Functional programming forces, sometimes much required, layered abstraction. You start piling up abstract layers of code, which takes time to get used to but once you do, you will find peace.</p><h3><strong>“Purity vs Mutation”</strong></h3><p>Functional Programming is based upon purity and pure is life. Okay that wasn’t very convincing. Try remembering the most funny bugs you encountered. Some, if not most, existed because of <strong>not</strong> the code in front of you but the code in some other function or file using <strong>“Avada Kedavra”</strong>.</p><p>FP proposes to write pure functions with no side effects at all.</p><pre>// impure<br>const minimum = 34<br>const verifyAge = age =&gt; age &gt;= minimum</pre><pre>// pure<br>function verifyAge(age) {<br>  const minimum = 34<br>  return age &gt;= minimum<br>}</pre><p>If we look at the impure example in the snippet above, we can see “minimum” is affecting our verifyAge arrow function while not being a part which is a side effect. This code will be pure if there are no side effects at all which in our case is as simple as moving the minimum variable inside the function.</p><p>This is just one variable and simplest example but try to imagine some complex functions written using the impure practice. Now, we have a lot of context used in the function coming from virtually everywhere. This puts immense cognitive load on your brain to find the relative contexts if you are reading the code for the first time or may be even reading it weeks after you wrote it yourself.</p><h3><strong>“Pure Application is the one that was never written”</strong></h3><p>While FP advocates the concept of purity, you cannot write a useful application without any impurity. Some examples of impurity include taking user inputs, data from a web service or API, polling data from a sensor. FP aims to contain these side effects methodically as much as possible because you cannot entirely avoid them.</p><p>You can learn such practices in any decent how-to or as per our recommendation “Mostly Adequate Guide to Functional Programming”.</p><p><strong>Even if you only adopt the concept of purity, number of bugs in your code will reduce. You will find new ways of thinking, reasoning and breaking down a problem.</strong></p><p><strong>Where’s the fun in that Ed? What will we do, when there are no bugs to fix?</strong></p><p>There’s a nice beautiful world outside your editor! Get a life!</p><p>There’s a lot unsaid but i have a life outside of this editor as well so let’s save it for some other time.</p><p><strong>References / Recommended Resources:</strong></p><p><a href="https://github.com/MostlyAdequate/mostly-adequate-guide">Mostly Adequate Guide to Functional Programming</a></p><p><a href="https://github.com/xgrommx/awesome-functional-programming">List of Functional Programming Resources</a></p><p><a href="https://tylermcginnis.com/imperative-vs-declarative-programming/">Declarative vs. Imperative</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3835a9145ea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/why-functional-programming-a3835a9145ea">Why Functional Programming?</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>