<?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 Damola Adekoya on Medium]]></title>
        <description><![CDATA[Stories by Damola Adekoya on Medium]]></description>
        <link>https://medium.com/@dammak?source=rss-e534c8d0de4c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lHJcWJ5HU5NgkcuQEYhjNg.jpeg</url>
            <title>Stories by Damola Adekoya on Medium</title>
            <link>https://medium.com/@dammak?source=rss-e534c8d0de4c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:39:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dammak/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[Top 10 Youtube channels for Flutter developers (2020)]]></title>
            <link>https://codeburst.io/top-10-youtube-channels-for-flutter-developers-2020-7b60d9e9e37?source=rss-e534c8d0de4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b60d9e9e37</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Damola Adekoya]]></dc:creator>
            <pubDate>Mon, 17 Feb 2020 10:49:13 GMT</pubDate>
            <atom:updated>2020-02-24T04:21:29.676Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*1Lon8jTicEdk4XJi5rccEA.png" /></figure><p>It’s 2020 and the rate in which Flutter is trending is increasing exponentially, and learning can be difficult if people are not been pointed to the right resources. With the below-curated list of the youtube channel, I believe it will help flutter developers to learn and master the Flutter.</p><h4><a href="https://www.youtube.com/channel/UCwXdFgeE9KYzlDdR7TG9cMw/videos">Official Flutter Youtube Channel</a></h4><p>Flutter Youtube channel is a goto place to learn things about flutter, the Flutter team has published various content on flutter. you will get to know things about different widgets, Google IO videos content on flutter, Flutter Interact and lot more.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fb_sQ9bMltGU%3Flist%3DPLjxrf2q8roU23XGwz3Km7sQZFTdB996iG&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Db_sQ9bMltGU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fb_sQ9bMltGU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e166bb8482d7f3d7f349be321af367d9/href">https://medium.com/media/e166bb8482d7f3d7f349be321af367d9/href</a></iframe><h4>MTECHVIRAL</h4><p>MTECHVIRAL is a youtube channel created and managed by Pawan Kumar known as imthepk, Pawan Kumar is the first Google Developer Expert in Indian and he is also an expert for web, firebase e.t.c. He has spent the last 2 years creating a lot of awesome content on flutter.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9UUtD_GR7zw%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9UUtD_GR7zw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9UUtD_GR7zw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/29bfb93dc3ff4e94b9df7949ca8f8b64/href">https://medium.com/media/29bfb93dc3ff4e94b9df7949ca8f8b64/href</a></iframe><h4><a href="https://www.youtube.com/watch?v=hwBUU9CP4qI&amp;list=PL0vfts4VzfNiQYtnn1TZ6U0Ec_vjCN9VY">Fireship</a></h4><p>Fireship has huge content that varies from the web, firebase, flutter e.t.c. Fireship is a goto place to learn various things as a flutter developer either beginner, intermediate or expert. Fireship was created and managed by Jeff Delaney. Jeff Delaney is a Google Developer Expert for firebase and he is passionate about creating content for the community.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FvsyjMrZa5OU%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvsyjMrZa5OU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FvsyjMrZa5OU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b806b934f5879674f62b9fc473c21862/href">https://medium.com/media/b806b934f5879674f62b9fc473c21862/href</a></iframe><h4><a href="https://www.youtube.com/channel/UCrTnsT4OYZ53l0QGKqLeD5Q/videos">Code With Andrea</a></h4><p>Andrea Bizzotto is a Google Developer Expert in Flutter, Udemy instructor and the founder of CodeWithAdrea Youtube channel. Andrea created the channel to be a better flutter developer and he has published videos on flutter for the community.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuckoKNHT24Q%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuckoKNHT24Q&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuckoKNHT24Q%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9bbbfef7810a7a69be779387616cafcc/href">https://medium.com/media/9bbbfef7810a7a69be779387616cafcc/href</a></iframe><h4><a href="https://www.youtube.com/channel/UC6Dy0rQ6zDnQuHQ1EeErGUA/videos">Marcus Ng</a></h4><p>Marcus Ng is a mobile app developer specializing in building apps with Flutter and Swift. Marcus Ng is also an Udemy instructor and the founder of Marcus Ng youtube channel, he has published a lot of flutter content on his youtube channel. feel free to give his channel a shot.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fh-igXZCCrrc%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dh-igXZCCrrc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fh-igXZCCrrc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/17eebc54ab2efbe6c2112b664eba049b/href">https://medium.com/media/17eebc54ab2efbe6c2112b664eba049b/href</a></iframe><h4><a href="https://www.youtube.com/channel/UCjBxAm226XZvgrkO-JyjJgQ/videos">Raja Yogan</a></h4><p>Raja Yogan Youtube channel was created and managed by Raja Yogan himself. Raja Yogan is a Software Engineer, Consultant, and Architect in India, who is passionate about flutter, firebase, and mobile app development. Raja Yogan Youtube channel has a lot of flutter tutorials, tip, and trick you can learn as a flutter developer</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNBjDMRDGbXY%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNBjDMRDGbXY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNBjDMRDGbXY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a040aaf5cb64ea20cecd434ec008debb/href">https://medium.com/media/a040aaf5cb64ea20cecd434ec008debb/href</a></iframe><h4><a href="https://www.youtube.com/channel/UCSIvrn68cUk8CS8MbtBmBkA/videos">Reso Coder</a></h4><p>Reso Coder is a Youtube channel that has a lot of content for beginner, intermediate and expert alike. Subscribe to the channel so you can catch up with the upcoming video</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F7mpNF9zWrMc%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7mpNF9zWrMc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F7mpNF9zWrMc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/16ed31d655a4d014f1e657a47e172eb5/href">https://medium.com/media/16ed31d655a4d014f1e657a47e172eb5/href</a></iframe><h4><a href="https://www.youtube.com/channel/UC3wqIkiaOUpO6EjJoCwH6_Q/videos">Techie Blossom</a></h4><p>Techie Bossom is a youtube channel that has a lot of amazing content around flutter, firebase, and web. if you are a beginner flutter developer who wants to build apps to have the experience, Techie Blossom youtube channel is for you.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FpAYGLroI1DI%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpAYGLroI1DI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FpAYGLroI1DI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c389e71079b9f1b4aa6c7a21d7578d6c/href">https://medium.com/media/c389e71079b9f1b4aa6c7a21d7578d6c/href</a></iframe><h4><a href="https://www.youtube.com/channel/UC2d0BYlqQCdF9lJfydl_02Q/videos">FilledStacks</a></h4><p>Another Youtube channel to explore its content is FilledStack. FilledStack has content dedicated to flutter alone, there are a lot of flutter widgets, tricks and tips you need to add to what you already know. Filledstack also has a dev blog where you can read and learn thing around flutter [click here](<a href="https://www.filledstacks.com/">https://www.filledstacks.com/</a>)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNfvA-7-HzYk%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNfvA-7-HzYk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNfvA-7-HzYk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1177ad1ad3cdfe231e87cd4eebae231f/href">https://medium.com/media/1177ad1ad3cdfe231e87cd4eebae231f/href</a></iframe><h4><a href="https://www.youtube.com/playlist?list=PL4cUxeGkcC9jLYyp2Aoh6hcWuxFDX6PBJ">The Net Ninja</a></h4><p>The Net Ninja is a youtube channel that has a lot of amazing content not only flutter also various content across all areas on the web. The Net Ninja channel was created and managed by Shaun. Shaun is a Udemy instructor who is obsessed with technology and loves creating content around it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1ukSR1GRtMU%3Fstart%3D2%26feature%3Doembed%26start%3D2&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1ukSR1GRtMU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1ukSR1GRtMU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/138441e776387624fa1d2dc99ce80c3d/href">https://medium.com/media/138441e776387624fa1d2dc99ce80c3d/href</a></iframe><h3>Conclusion</h3><p>I hope the above channels will help you to learn flutter faster and easier, if you have any other youtube channel that is not on the list please feel free to drop it in the comment box. you can catch up with me on <a href="https://twitter.com/devdammak"><strong><em>Twitter </em></strong></a>or <a href="https://github.com/DAMMAK"><strong><em>GitHub</em></strong></a>, I do a lot of fun projects and tweets around flutter ecosystem</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*p7LE8gQQwMLsB7tlfGwkMQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b60d9e9e37" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/top-10-youtube-channels-for-flutter-developers-2020-7b60d9e9e37">Top 10 Youtube channels for Flutter developers (2020)</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Submit your story to Flutter Everywhere]]></title>
            <link>https://medium.com/flutter-everywhere/submit-your-story-to-flutter-everywhere-6aaa4db26b83?source=rss-e534c8d0de4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aaa4db26b83</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[publication]]></category>
            <category><![CDATA[flutterdev]]></category>
            <category><![CDATA[fluttereverywhere]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Damola Adekoya]]></dc:creator>
            <pubDate>Sun, 02 Feb 2020 17:35:27 GMT</pubDate>
            <atom:updated>2020-02-02T17:35:27.908Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v880Bjork8iXMga41FcX1A.jpeg" /></figure><p>Greeting!</p><h3>Why write for us</h3><p>We are a community for flutter and flutter alone, we want to help you push your content to people who will cherish your work, and also build a community together along with you being part of the community.</p><h4>The topic we are interested in</h4><p>We are open to diversity, we do accept any topic as long as it is related to flutter. Whether it is about the Web, Mobile, Desktop, ML, VR, AR, IoT e.t.c</p><h4>Things to avoid</h4><p>we are putting this up to avoid disappointing some people if they send their draft article and we ended up not publishing the article. below are the things to avoid if you want your article to be published.</p><ul><li><strong>The story behind Medium paywall:</strong> One of our core values is openness we want every article in our community publication to be accessible by all, so we advise you before you send your draft article to us, it must be out of paywall.</li><li><strong>Clickbait headlines: </strong>an article with a headline that’s totally different from the body of the article, an article that’s not realistic or that is not flutter related. e.g <em>How to become successful in 24 hours</em></li><li><strong>Self-promotion/business: </strong>Articles that advertise your business or about yourself won’t be published in the publication. we can only publish an article that speaks of your work, packages, plugins you built for the community not some kind of the work you monetize.</li></ul><p><strong>Things to do</strong></p><ul><li><strong>Use the free version of Grammarly:</strong> Grammarly is a platform that helps people to improve their writing. it has a browser extension that you can install on your browser. it will make your article outstanding and less stressful for our editor to work through.</li><li><strong>Code related: </strong>if your article has code snippet if the code snippet is more than 5 lines it is better to use <a href="http://gist.github.com/">GitHub gist</a> or <a href="http://carbon.now.sh/">Carbon</a> for it.</li></ul><h4><strong>Send to us</strong></h4><p>you can send your article to our editor <em>editor@fluttereverywhere.dev</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aaa4db26b83" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-everywhere/submit-your-story-to-flutter-everywhere-6aaa4db26b83">Submit your story to Flutter Everywhere</a> was originally published in <a href="https://medium.com/flutter-everywhere">Flutter EveryWhere</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2019 review: The Beginning of the journey]]></title>
            <link>https://medium.com/@dammak/2019-review-the-beginning-of-the-journey-a7cdf7c27d72?source=rss-e534c8d0de4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7cdf7c27d72</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[community]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Damola Adekoya]]></dc:creator>
            <pubDate>Wed, 01 Jan 2020 06:41:08 GMT</pubDate>
            <atom:updated>2020-01-01T07:02:45.726Z</atom:updated>
            <content:encoded><![CDATA[<h3>2019 review: The beginning of the journey</h3><p>2019 is such a wonderful year to me, just looking back from January to December I just have to thank God and also be proud of myself, my 2019 journey actually started December 2018 but that a story for another day.</p><h4><strong>How Everything Started</strong></h4><p>The very first day of the year, I tweeted my goal for 2019, although I don’t know how I am going to achieve them all, so I get started by unfollowed all people I followed on twitter and followed just a few people whose tweet will definitely motivate me and put me on track. People like Sarah Drasner, Sara Soueidan, Ahmad Awais, Kent Codd and lot more</p><p>Below was my Resolution for 2019, I’m glad I achieved them all</p><h3>Damola Adekoya #FlutterInteract on Twitter</h3><p>2019 Resolution * Be a better developer. * Read as many books as possible. * Start writing(Blog)(Although I am suck at it). * Contribute to projects. * Get More involve in Development ecosystem. * Public Speaking (My heart always beat very fast at the mention of it).</p><p><strong>2019 I achieved the following:-</strong></p><ol><li>became a better Developer</li><li>I read 2 books although I wish to read more, unfortunately, I focus less on books, I’m sure 2020 will be different.</li><li>I started writing articles, I wrote 8 articles and also created my own blog using hashnode devblog.</li><li>I contribute to various projects(private and Open Source)</li><li>Get more involved in the development ecosystem Flutter to be precise.</li><li>I got to speak at 3 different events, all about flutter.</li><li>I got a job at one of the best FinTech companies in Africa (Interswitch).</li></ol><h4>My First 3 articles experience.</h4><p>One of my todo lists was to write at least one article so I decided on the topic “Why you should adopt Graphql as a developer”. Lol, whenever I think about the first article I always end up laughing because I spent over 1 month to write a 3 minutes articles eventually when I decided that I’m done writing the articles, I spent more than 3 days just staring at it unable to click on the publish button eventually I summoned the courage to click on the publish button, the funniest part was that the article has less than 10 views for 3 weeks. at first, it was disheartened, but I took it as me learning how to write an article. but I was actually learning how to write articles and currently still learning.</p><p>a few weeks later, I decided to write another article “<a href="https://dev.to/iamdammak/setting-up-eslint-in-your-javascript-project-with-vs-code-2amf">Setting up ESLINT in your JavaScript Project with VS Code</a>”. I didn’t even want to write the article at the very first place, but I came across this quote “The best time to write an article is when you are learning something because you will understand the feeling of not knowing and put them all into the article” during that time I just discovered that I have been using ESLINT wrongly, so I decided to write an article on how to properly setup ESLINT in VS Code hoping it might help someone. so I wrote the article on Dev Community platform currently the article has 30k+ views. after a few weeks seeing that my second article has a lot of views I decided to write another article.</p><p>I reached out to codeburst publication to write on their platform my request was granted. at that time I just finished learning React hook so I decided to come up with an article “<a href="https://codeburst.io/beginner-guide-to-react-context-api-with-hook-usestate-4df7c3e08ad">Beginner Guide to React Context API with Hook</a>” which was featured and currently has a 21K view.</p><h4>Technical Speaking Experience.</h4><p>A few months ago, I already concluded I will postpone technical speaking to next year, fortunately for me, I saw some devfest CFP request so I decided to shot my shoot, I sent to both Nigerian and other African countries devfest event. Fortunately, 3 devfest events approve my request GDG Yola, GDG Makurdi and GDG Ibadan. but GDG Yola and GDG Makurdi event was the same day I had to choose GDG Makurdi over GDG Yola due to some reasons.</p><p>Two days before the event I was nervous to the point that on the event I have already exhausted every nervousness in my body system. Because that was my very first time speaking to people and it surprises me that I did very well more than I anticipated. However one of the reasons I decided to speak at a very far distance was just in case if it turned out to be a disaster nobody knows me there and I would have learned from my mistake discreetly. LMAO</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4f2HhcmFTo6_sjYpuN0y1w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C71tFd7Fbhj7UpqJLmUZJQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wz1iKYAtVd3GKHZ9QCDbFQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z6mKGRL2JAkcsYVncAcPAQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fp8n1UQWlV5iC_0fDZdbuw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*uQl9QOgk_Tn2PvyrQhG1zg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKwLtUYv82A-5s4-cwQjvw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X5DAUU33D7IHI7QFtQLX0A.jpeg" /></figure><p>Two weeks later I went to Ibadan for another event, I was actually not as nervous as the first event, maybe because my previous technical talk was not really bad, the event went smoothly and I met some people I look up to in the Community.</p><p>December 2019, I was opportune to attend Flutter Interact view Party Organized by Flutter Lagos and GDG Lagos which I spoke and Introduce the attendee to flutter and it was an awesome experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NMdv8NOFqFensVOMQBVs6Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZFYmdH5XBqT3YiXtmOnxQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FT6gkz-IIJGlEzRt2cSnuQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ndXGFxmekuB8w0gsY658Kg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gk25JfhjnzAn4f3uXTTAqQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4-J5Uq-T2BrPYRKbhXnU-g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fa1RDxHHKVuiG-PXkWamIg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bRg8WicTZVnx8BBsu9EpRg.jpeg" /></figure><h4>Job Hunting Experience</h4><p>I hunted for jobs for like 3 – 4 months, because I already knew I have to move on in my career to a better place. I shoot my shot at few places and I got this response a lot “unfortunately we won’t be proceeding with your application”, some of my shot led to interviews which ended in tears, some led to offers which I declined but one of my biggest win for 2019 was I learned many things throughout the job hunting process and I also got offer from Interswitch Group which I accepted and now currently working at the Switch.</p><h3>2020 Goal</h3><ol><li>start my own youtube channel</li><li>Speak at many events about flutter both locally and Internationally</li><li>Write 20+ articles.</li><li>Go for a holiday outside Nigeria.</li><li>Read more books as possible</li><li>contribute more to flutter community locally and Internationally</li><li>Say No to insufficient funds.</li></ol><p>I want to say a big thank you to people that motivated me one way or the other <a href="https://twitter.com/sarah_edo">Sarah Drasner</a>, <a href="https://twitter.com/kentcdodds">Kent Codd</a>, <a href="https://twitter.com/Didicodes">Edidiong Asikpo</a>, <a href="https://twitter.com/imthepk">Pawan Kumar</a>, <a href="https://twitter.com/pblead26">Pooja Bhaumik</a>, <a href="https://twitter.com/SaraSoueidan">Sara Soueidan</a>, <a href="https://twitter.com/unicodeveloper">Prosper Otemuyiwa</a>, <a href="https://twitter.com/codebeast">Christian Nwamba</a>, <a href="https://twitter.com/MrAhmadAwais">Ahmad Awais</a> and lot more… Thank you all.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7cdf7c27d72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing multiple themes in flutter application]]></title>
            <link>https://codeburst.io/managing-multiple-themes-in-flutter-application-37411adeb04c?source=rss-e534c8d0de4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/37411adeb04c</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Damola Adekoya]]></dc:creator>
            <pubDate>Wed, 27 Nov 2019 21:51:31 GMT</pubDate>
            <atom:updated>2019-11-27T21:51:31.605Z</atom:updated>
            <content:encoded><![CDATA[<h3>Easy approach to multiple themes in flutter application</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OcG0ht_s6v7_u9RGUTLxyg.jpeg" /></figure><p>One of the trending concepts in the mobile application is the ability to have multiple themes such as light and dark themes, and you can have as many themes as possible in your application. the question right now is how to manage the theme in order to cut across all pages. thinking about managing the state of your theme in the application. one of the ways of managing the state is using stateful widget which is a terrible approach and it’s inefficient and the other approach is to use statement package, there are a lot of statement management packages in flutter such as Providers, BLOC, Redux, Mobx e.t.c in this article I will be chosen provider state management package.</p><h3>Provider State management package</h3><p>using a state management package allows you to manage your state globally in your application, it is more like having a global store where each page, widgets can connect directly to and access and manipulate data.</p><p>1. <strong>How to install Provider Package</strong><br>add below snippet in your pubspec.yml file under the dependencies section</p><pre><br>provider: ^3.1.0+1<br></pre><p>create a dart file that has all your theme definition</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b2adc0b32d22ecbb22455203e8a9edb/href">https://medium.com/media/2b2adc0b32d22ecbb22455203e8a9edb/href</a></iframe><p><strong>Create a theme model</strong></p><p>you need to create your theme model</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8f989702ea334ab21f5a51f1937017c/href">https://medium.com/media/e8f989702ea334ab21f5a51f1937017c/href</a></iframe><p>Explanation:<br>1.we are creating an enum type for our theme, which we allow us to assign a type to each Themedata, it also helps us to check currently theme efficiently</p><p>- <br>We create a class that extends ChangeNotifier, create currentTheme as a property of ThemeData and set the default value to darkTheme and also property _themeType then assign your current themeType to it. you can set to any theme of your choice, it’s the theme that will comes with the app at the default.</p><p>- <br>create a method that handles the toggling of your theme from theme 1 to theme 2. But the most important part is to call notifyListener() method, it is the method that informs your store that your state value has change.</p><p>Wrap provider Class as a parent of your MaterialApp, which will allow all pages, widgets e.t.c have access to the provider value.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9cda68ae274f942f3067b1e264d9c3c6/href">https://medium.com/media/9cda68ae274f942f3067b1e264d9c3c6/href</a></iframe><p>Consuming your state value anywhere in your application</p><pre>Provider.of&lt;object&gt;(context);</pre><p>it allows you to access your provider store value and access your data. by specifying the ThemeModel.</p><p>below is your output</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f92bae3b7e1dd70f6ac7defb07b43aae/href">https://medium.com/media/f92bae3b7e1dd70f6ac7defb07b43aae/href</a></iframe><p>Finally, Adding toggle widget to your app, this is the widget that will enable you to switch from theme 1 to theme 2 and vice-versa. for the sake of simplicity of the article, I will just add a RaisedButton widget to MyHomePage Screen. <br>snippet below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5e94194f514892600cdc685966f7c73/href">https://medium.com/media/a5e94194f514892600cdc685966f7c73/href</a></iframe><blockquote><strong><em>NB:</em></strong>Provider.of&lt;ThemeModel&gt;(context).toggleTheme(); allows you to connect to your themeModel class and run toggleTheme() method.</blockquote><h3>Conclusion</h3><p>The main purpose of this article is to allow you, to have an understanding of how you can create multiple themes based flutter application using Provider State management plugin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*p7LE8gQQwMLsB7tlfGwkMQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37411adeb04c" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/managing-multiple-themes-in-flutter-application-37411adeb04c">Managing multiple themes in flutter application</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bundle your Web application with ParcelJS]]></title>
            <link>https://codeburst.io/bundle-your-web-application-with-parceljs-b4eee99bdb55?source=rss-e534c8d0de4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4eee99bdb55</guid>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[parcel-js]]></category>
            <category><![CDATA[javascript-frameworks]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Damola Adekoya]]></dc:creator>
            <pubDate>Thu, 12 Sep 2019 16:15:48 GMT</pubDate>
            <atom:updated>2019-09-26T10:26:10.150Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*QO0QilSl5RAuMQYiHptD-Q.jpeg" /></figure><p>Some developers enjoy writing vanilla JS but some are forced to use a framework like Vue, Angular, React e.t.c because it comes with a bundler like Webpack, some don’t actually know how to implement bundler natively. With this article, you will be able to actually bundle your javascript project without relying on any framework.</p><h4>What is ParcelJS?</h4><p>ParcelJS is a web application bundler, differentiated by its developer experience. It offers blazing-fast performance utilizing multicore processing and requires zero configuration. With parcel, you don’t have to set up any configuration or any loader for either CSS, JS, assets e.t.c.</p><h4>Why you should use Parcel</h4><ul><li>Zero configuration:</li><li>Performance</li><li>Hot Module Replacement</li><li>Code Splitting</li><li>Support many asset types</li></ul><h4>Get Started with ParcelJS</h4><p>Initialize npm in order to generate package.json file</p><pre>npm init -y</pre><p>Install ParcelJS Bundler as a global package<br><strong>using npm</strong></p><pre>npm install -g parcel-bundler</pre><p><strong>using yarn:</strong></p><pre>yarn global add parcel-bundler</pre><h4>How to serve your project</h4><p>ParcelJS can use any kind of file as an entry point to serve but it’s advisable to serve your HTML/jS file e.g index.html/index.js, about.html/about.js.<br>you can serve your files with the following command:</p><blockquote>parcel filename.extension</blockquote><pre>parcel index.html</pre><p>After you have run your parcel command it will generate an address <a href="http://localhost:1234/">http://localhost:1234</a> where you can view your website. ParcelJS also support watch mode, which basically watches every change in your project and update it directly to your browser.</p><pre>parcel watch index.html</pre><p>you can as well watch multiple entry files with parcel watch file1, file2.. file N</p><pre>parcel index.html about.html service.html contact.html</pre><h4>Importing asset into your project</h4><p>You can import different types of assets such as (CSS, SCSS, LESS, STYLUS, Images e.t.c) into any javascript.</p><p><strong>CSS</strong></p><pre>import ‘./style.css</pre><p><strong>SCSS</strong></p><pre>import ‘./style.scss`</pre><p><strong>NB:</strong> <em>to compile SCSS you need to install npm package called sass</em></p><pre>npm install -D sass</pre><p><strong>JAVASCRIPT</strong></p><pre>//ES6 Import <br>import ‘./script.js</pre><p>or</p><pre>//commonJS module</pre><pre>const script = require(‘./js/script’);</pre><h4>Bundling your project for production</h4><p>To bundle your project for production, you don’t have to do any configuration or stress yourself, Parcel will automatically figure out all your files in your project(*js,*css, *scss, *jpg, *png, *svg e.t.c) and bundle everything for you, which you can push to production. use the following command to run your build process.</p><pre>parcel build index.html</pre><p><strong>Demo<br></strong>Let create a simple project that fetches user from [Randomusers](<a href="https://randomuser.me/">https://randomuser.me/</a>) and displays it on the screen.</p><p>first let install parcel-bundle as a dev dependency, because we only need the package in our development stage, it won’t go with our production build. But if you have installed it as a global package you don’t have to install it again. if you haven’t then you can either install as a dev dependency or global dependency.</p><pre>npm install -D parcel-bundler</pre><p>then create an index.html and index.js file in the root directory, index.html will be our starting point because the browser can only paint element/assets in HTML file on the screen.. index.js file will be the root where will be connecting all our pages/components to the DOM.</p><p>then let create a folder called pages, this is where all our pages files will reside.</p><p><strong>NB:</strong> <em>you can structure the project as you want, what matters most is when you are importing your files, make sure your path name is correct.</em></p><p>in the index.html file let include our index.js file, the markup should look like below.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=”en”&gt;<br> &lt;head&gt;<br> &lt;meta charset=”UTF-8&quot; /&gt;<br> &lt;meta name=”viewport” content=”width=device-width, initial-scale=1.0&quot; /&gt;<br> &lt;meta http-equiv=”X-UA-Compatible” content=”ie=edge” /&gt;<br> &lt;title&gt;Parcel Tutorial&lt;/title&gt;<br> &lt;/head&gt;<br> &lt;body&gt;<br> &lt;script src=”index.js”&gt;&lt;/script&gt;<br> &lt;/body&gt;<br>&lt;/html&gt;</pre><p>then modify your package.json file, in the scripts section add dev and build command. your script section should look like the scripts section below.</p><pre>“scripts”: {<br> “dev”: “parcel index.html”,<br> “build”: “parcel build index.html”<br> }</pre><p><strong>NB: </strong><em>the dev script command we will be using during the development stage after we are done developing, that’s when we will then use build script command to bundle our files to production.</em></p><h4>Adding our Javascript into our Pages folder</h4><p>let create a file called users.js, it going to export a function that will consume the API from [Random Users](<a href="https://randomuser.me/">https://randomuser.me</a>) and return the list of users.<br>which we can later import and reuse anywhere in our application.</p><pre>export const users = () =&gt; fetch(“<a href="https://randomuser.me/api/?results=10">https://randomuser.me/api/?results=10</a>&quot;).then(res =&gt; res.json())</pre><h4>Adding CSS to your project.</h4><p>Personally, I always create a separate CSS file for every component/page. e.g home.css, about.css e.t.c. and each component/page in a different folder. But for the sake of this tutorial not to make it look more complex. I’m just using a single component/page. You can follow the pattern and approach that works for you, what matters is when you’re importing your file make sure your path is always correct.</p><p>let create another file called home.js, which will be component /page that will list our users. copy below snippet to the file.</p><pre>.title {<br>  color: #fff;<br>  margin-bottom: 2rem;<br>  text-align: center;<br>}<br>.userAvatar {<br>  border-radius: 50%;<br>}<br>.user {<br>  list-style: none;<br>  display: flex;<br>  padding-left: -2rem;<br>  /* padding: 0; */<br>  margin-left: -2.5rem;<br>  padding: 10px;</pre><pre>&amp;:not(:last-child) {<br> border-bottom: solid 1px #ccc;<br> }<br> &amp;-details {<br> margin-left: 10px;<br> margin-top: 4px;<br> }</pre><pre>&amp;-name {<br> font-weight: bolder;<br> font-size: 18px;<br> }<br> &amp;-email {<br> font-style: italic;<br> }<br>}<br>body {<br> background-color: rgb(131, 4, 153);<br> font-size: 16px;<br>}</pre><pre>.users {<br> width: 40vw;<br> margin: auto;<br> border: 1px solid #ccc;<br> border-radius: 10px;<br> background: #fff;<br>}</pre><pre>.loader {<br> color: #fff;<br> font-size: 30px;<br> font-weight: bolder;<br> position: absolute;<br> top: 50%;<br> left: 50%;<br> translate: (-50, -50);<br> z-index: 1000;<br>}</pre><p>After you have created our stylesheet and users.js file that has a list of users from <a href="https://randomuser.me/">https://randomuser.me</a>. let import our stylesheet and users into our main.js file.</p><p>full source code for home.js below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/084e56dd40daf8f12b6a99a16d8352c9/href">https://medium.com/media/084e56dd40daf8f12b6a99a16d8352c9/href</a></iframe><p>after we have created our home.js and pasted the source code above inside the file, take a look where we declare the home function, we export the function i.e we are to use it somewhere else (reuseable).</p><p>go to index.js file that we create earlier which is going to be the starting point of our project. if you remember we include the index.js into our index.html. it is the index.js file that the index.html file will load and index.js file will actually make use of every page will create.</p><pre>import { home } from “./pages/home”;</pre><pre>const app = document.createElement(“div”);<br>app.setAttribute(“id”, “app”);<br>app.appendChild(home());<br>document.body.appendChild(app);</pre><p><strong>NB:</strong> Basically, what index.js file does is to collect the view created in the home.js page and append it into the document body. i.e (browser screen).</p><h4>Running your Application</h4><p>To run your application, we will execute the npm script command we created earlier</p><pre>npm run dev</pre><p><strong>NB: </strong>If you are having an error in your project that was due to ES7 syntax used in the project. you can try to install the following npm package <a href="http://twitter.com/babel/core">@babel/core</a> and <a href="http://twitter.com/babel/plugin-transform-runtime">@babel/plugin-transform-runtime</a></p><pre>npm install -D <a href="http://twitter.com/babel/core">@babel/core</a> <a href="http://twitter.com/babel/plugin-transform-runtime">@babel/plugin-transform-runtime</a></pre><p>then create a .babelrc file in the project root folder telling your project to use one of the babel transform runtime plugins that will transpile the ES7 to what your browser can understand. use below snippet.</p><pre>{<br> “plugins”: [“<a href="http://twitter.com/babel/plugin-transform-runtime">@babel/plugin-transform-runtime</a>”]<br>}</pre><p><strong>Demo result below</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*QnTTXaVZ2lKt0-mgdHmViQ.png" /></figure><h4>Bundling your application for production.</h4><p>After the development of your project, you will want to deploy your application to production, that’s one of the main purposes of using Parcel is minified and reduce your project files size. you can run your build command you set in your script section</p><pre>npm run build</pre><h3>Conclusion.</h3><p>The main purpose of this article is to introduce you to ParcelJs and get you started with ParcelJs, with this article you will be able to develop and deploy any javascript project to production. parcel js helps to bundle your app into small size.</p><p>You can find the demo for this project below</p><p><a href="https://qyib9.csb.app/">Parcel Tutorial</a></p><p>[<strong>Github Repo</strong>]</p><p><a href="https://github.com/DAMMAK/ParcelJS-bundler-demo">DAMMAK/ParcelJS-bundler-demo</a></p><p>*NB:*, *if you have any questions or any part is not clear. you can drop it in the comment box. I’m always at your service.*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4eee99bdb55" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/bundle-your-web-application-with-parceljs-b4eee99bdb55">Bundle your Web application with ParcelJS</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test Driven Development with Jest]]></title>
            <link>https://codeburst.io/test-driven-development-with-jest-37e82ddb3989?source=rss-e534c8d0de4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/37e82ddb3989</guid>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Damola Adekoya]]></dc:creator>
            <pubDate>Tue, 09 Jul 2019 04:35:53 GMT</pubDate>
            <atom:updated>2019-08-21T20:49:45.798Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TrwrHnq4evRxih12MQpQXA.png" /></figure><p>Test Driven Development is a principle of software development that ensure your code work exactly as you want it, it is a principle that should be follow by every development although there are lot of people who are yet to follow the principle, But if you did not follow test driven development then you will follow debug later development</p><h4><strong>Why you should follow Test Driven Development Principle</strong></h4><p><strong>It makes debugging easier: </strong>Just imagine their is a bug or issue in your codebase with test driven development approach, your test cases will definitely fail and you will know exactly where to look, what to look for and what to modify. it makes development more easier.</p><p><strong>It works the way you wanted it: </strong>Test Driven Development helps and ensure your code works exactly the way you want it.</p><h4><strong>Types of Test Driven Development</strong></h4><p><strong>Unit Test</strong></p><p>Unit test is a type of software development testing where individual/unit component of a software are tested. The process is done during the development of an application, to ensure and verify the correctness of a units/component of code.</p><p><strong>Integration Test</strong></p><p>Integration test is the process of testing collection/group of unit/component. Integration test is done upon completion of unit tests</p><p><strong>Acceptance/E2E(end to end) Test</strong></p><blockquote>End-to-end testing is a methodology used to test whether the flow of an application is performing as designed from start to finish. The purpose of carrying out end-to-end tests is to identify system dependencies and to ensure that the right information is passed between various system components and systems.</blockquote><h4>Test Driven Development Cycle</h4><p>There are 3 cycle behind test Driven Development,<em>Red</em>, <em>Green and </em><em>Refactor </em>just like there are 3 cycle behind traffic light control red, yellow and green.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*lw2PITaABshBiaBvkHdOwQ.jpeg" /></figure><ul><li><strong>Red</strong>: write a test and it fail</li><li><strong>Green</strong>: write a test for a functionality and make sure it pass the test</li><li><strong>Refactor</strong>: Optimizing the previous passed test and make sure all test cases pass.</li></ul><h3><strong>What is Jest?</strong></h3><blockquote>Jest is a delightful JavaScript Testing Framework with a focus on simplicity.</blockquote><blockquote>It works with projects using: <a href="https://babeljs.io/">Babel</a>, <a href="https://www.typescriptlang.org/">TypeScript</a>, <a href="https://nodejs.org/en/">Node</a>, <a href="https://reactjs.org/">React</a>, <a href="https://angular.io/">Angular</a>, <a href="https://vuejs.org/">Vue</a> and more!</blockquote><h4><strong>How to install jest in your Javascript Project</strong></h4><p>using yarn you install jest with below code</p><pre>yarn add --dev jest</pre><p>using npm you can install jest with below code</p><pre>npm install --save-dev jest</pre><h4>TDD keyword you should know in Jest</h4><p><strong>expect:</strong> When you’re writing tests, you often need to check that the values met certain conditions. expect gives you access to a number of &quot;matchers&quot; that let you validate different things. expect accept a value(a value you want to check against what you are expecting).</p><p><strong>E.g</strong></p><pre>expect(sum(1,2)).toBe(3);<br>expect(sum(1,2)).toBeA(number);<br>expect(sum(1,2).toEqual(3);</pre><p>expect function has some matcher you can use and chain with in jest. such as .toBe() , toBeA , toEqual ,toContainEqual e.t.c. check the <a href="https://jestjs.io/docs/en/expect.html">official documentation</a> for more expect matchers.</p><p><strong>test/it: </strong>test or it is a function that run the test, it allows you to test your unit function For Example. Let Say there is a function called sum that accept two parameter and return the addition of the parameters.</p><pre>test(&#39;Sum of two numbers&#39;, () =&gt; {<br> expect(Sum(5,9)).toBe(14); }<br>);</pre><p>check the official documentation for matcher</p><h4><strong>How to get started with Jest using Javascript</strong></h4><p>initialize javascript project with npm using your terminal</p><pre>npm init --y</pre><p>install <em>jes</em>t into your project using terminal</p><pre>npm install --save-dev jest</pre><p>NB: You can create your test file with .test.js extension which will allows jest to locate your file and run your test cases. To organise and structure your project you can create a folder with the name __test__ in your project directory which will house all test cases file.</p><p><strong>Example</strong></p><p>Let assume you are given a task to write a function that will accept two values as a parameter and sum the two values. the question now is what should you test for. There are lot of things to test for all you need to do is to think about what kind of output/result you want to return to the user. Below are what you can test for.</p><ul><li>Test if the parameters value is number data type, if it is not a number then the test should fail.</li><li>Test if the sum of parameter a and parameter b is logically correct, if not the test should fail.</li></ul><p><strong>NB: </strong>If you want your parameter should accept array and also sum the array. you can write a test case that check if the user supply array as a parameter and check if it does return correct answer.</p><h4>Solution</h4><p>There are two way to TDD either you write your test cases first before you actually start your development or write test cases later after development but the best practice is test case first then development. that’s the approach we are going to follow now.</p><p>Let create a folder called __test__ in root level of our project, inside the folder create a file called sum.test.js, all our test cases for sum function will be in the file.</p><p><strong><em>NB: </em></strong><em>I will be using commonJS, you can use and configure your project to use babel, if it’s already configured with babel so all is good</em></p><pre><em>//import sum</em></pre><pre>const { sum } = require(&quot;./sum&quot;);</pre><pre>describe(&#39;Addition of Two Number functionality test&#39;,()=&gt;{</pre><pre>test(&quot;Add 1 + 2 should be 3&quot;, () =&gt; {</pre><pre>expect(sum(1, 2)).toBe(3);<br>expect(sum(1,2)).toBeA(number);</pre><pre>});</pre><pre>test(&quot;it should fail if string as parameter&quot;, () =&gt; {</pre><pre>expect(sum(&quot;Hello&quot;, &quot;World&quot;))<br>.toEqual(Error(&quot;Expecting number type as parameter&quot;));<br>});</pre><pre>});</pre><p><strong>Explanation</strong></p><p>First test case will check if first parameter and second parameter value return correct answer. i.e if 1+2 equal to 3.</p><pre>test(&quot;Add 1+2 should be 3&quot;, () =&gt; {</pre><pre>expect(sum(1, 2)).toBe(3);</pre><pre>});</pre><p>Second test case will check if first parameter or second parameter value is string and return error.</p><pre>test(&quot;it should fail if string as parameter&quot;, () =&gt; {</pre><pre>expect(sum(&quot;Hello&quot;, &quot;World&quot;))<br>.toEqual(Error(&quot;Expecting number type as parameter&quot;));<br></pre><p>Now that our test cases has been written, we only need to make sure that our sum function pass all the test cases. Let create a file called sum.js in the root folder, the file will contain a function that accept two number and sum the two numbers</p><pre>const sum = (a, b) =&gt; {</pre><pre><em>if</em> (typeof a !== &quot;number&quot; || typeof b !== &quot;number&quot;)</pre><pre><em>return</em> Error(&quot;Expecting number type as parameter&quot;);</pre><pre><em>return</em> a + b;</pre><pre>};</pre><pre>module.exports = { sum };</pre><p><strong>NB:</strong> the above snippet first check the data type of the parameter if it is not number it should return an error with the message <em>Expecting number type as parameter</em></p><p>What next now is to run our test, before then we need to configure our project to work with jest, let go directly to package.json file and add “test”: “jest” to the script section. our script should look something related to the below code.</p><pre>&quot;scripts&quot;: {<br> &quot;test&quot;: &quot;jest&quot;<br>},</pre><p>we can now run our test with npm test or yarn test command, below is the result/output of our test</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*PsM3efGAtxmSC7Pt0CatSw.png" /><figcaption>All test cases passed</figcaption></figure><p>Okay, let me show one of test cases i wrote for login, there are many ways of test cases, all you need to do is to think about what you want to check for.</p><pre>describe(&quot;Login Module for test cases&quot;, () =&gt; {</pre><pre>it(&quot;should return the user if the name is valid&quot;, function(done) {</pre><pre>request(app)</pre><pre>.post(&quot;/login&quot;)</pre><pre>.send({ username: &quot;DAMMAK&quot;, password: &quot;Adedamola&quot; })</pre><pre>.end(function(err, res) {</pre><pre>expect(res.statusCode).toEqual(200);</pre><pre>expect(res.text).toEqual(</pre><pre>JSON.stringify({ username: &quot;DAMMAK&quot;, password: &quot;Adedamola&quot; })</pre><pre>);</pre><pre>done();</pre><pre>});</pre><pre>});</pre><pre>it(&quot;fails if login details is wrong&quot;, function(done) {</pre><pre>request(app)</pre><pre>.post(&quot;/login&quot;)</pre><pre>.send({ username: &quot;wrongUser&quot;, password: &quot;wrongPass&quot; })</pre><pre>.end(function(err, res) {</pre><pre>expect(res.statusCode).toEqual(400);</pre><pre>done();</pre><pre>});</pre><pre>});</pre><pre>it(&quot;fails if empty request data was sent&quot;, function(done) {</pre><pre>request(app)</pre><pre>.post(&quot;/login&quot;)</pre><pre>.send({})</pre><pre>.end(function(err, res) {</pre><pre>expect(res.statusCode).toEqual(400);</pre><pre>done();</pre><pre>});</pre><pre>});</pre><pre>});</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*p7LE8gQQwMLsB7tlfGwkMQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37e82ddb3989" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/test-driven-development-with-jest-37e82ddb3989">Test Driven Development with Jest</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginner Guide to React Context API with Hook(useState)]]></title>
            <link>https://codeburst.io/beginner-guide-to-react-context-api-with-hook-usestate-4df7c3e08ad?source=rss-e534c8d0de4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4df7c3e08ad</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Damola Adekoya]]></dc:creator>
            <pubDate>Mon, 20 May 2019 14:49:18 GMT</pubDate>
            <atom:updated>2019-09-26T10:07:25.937Z</atom:updated>
            <content:encoded><![CDATA[<h3>Beginner Guide to React Context API with Hook(useState</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_5zpmqwH1yLWpkQ2ZufDvA.jpeg" /></figure><p>Managing State in React App is tricky, especially when you want to share data from component 1 to (x)components, you will have to pass the data from component 1, 2 to 7 which is basically unnecessary. Packages like Redux, Flux, MobX e.t.c helps to manage state, but the problem with this kind of packages is that they are external to react library, some people find it kind of cumbersome to fully understand it, working and integrating it in react application. So react team releases alternative to Redux which is Context API in React 16.x.</p><h4><strong>What is React Context API</strong></h4><blockquote>It is a feature/approach that provides a way to pass data through the component tree without having to pass props down manually at every level.</blockquote><p>Let assume I am a delivery man, I want to deliver a package to Floor 7 of a particular building using the staircase. For me to get to floor 7, I have to carry the package from floor 1 to 2 to 3..7, it kinda cumbersome right? why can’t I just jump/teleport myself from floor 1 to 7 and vice-versa without me stressing myself with going through from floor 1 of a building to the last floor(7th Floor)? That’s typically how passing data via props from parent component to nested child component works. But with React Context you don’t have to go through all that, all you need to do is just jump directly to floor 7 and jump back without making any additional/unnecessary trip.</p><h4><strong>Simple Guide</strong></h4><pre>const ThemeContext = React.createContext(&#39;light&#39;);<br><br>class App extends React.Component {<br>  render() {</pre><pre>return (<br>      &lt;ThemeContext.Provider value=&quot;dark&quot;&gt;<br>        &lt;Toolbar /&gt;<br>      &lt;/ThemeContext.Provider&gt;<br>    );<br>  }<br>}</pre><h3><strong>Terminologies to understand</strong></h3><p><strong>React.createContext</strong></p><pre>const MyContext = React.createContext(defaultValue);</pre><p>it will allow you to create a context object, which accepts default values. When React renders a component that subscribes to this Context object it will read the current context value from the closest matching Provider above it in the tree.</p><p><strong>Context.Provider</strong></p><pre>&lt;MyContext.Provider value={/* some value */}&gt;</pre><p>The moment a context object has been created you will have access to context API method such as Provider, Consumer e.t.c. Provider allows consuming component to subscribe to context changes and also set store value/data.</p><p><strong>Context.Consumer</strong></p><pre>&lt;MyContext.Consumer&gt;<br>  {value =&gt; /* render something based on the context value */}<br>&lt;/MyContext.Consumer&gt;</pre><p>Just as the name implies Consumer it allows you to consume the value set/store from the Context Provider.</p><h3><strong>When Should I use React Context API</strong></h3><p>Context API is only meant to be used when you needed to access your data from a nested component, The moment you realized the nested level of your component is more than 3, then try to use Context API to avoid passing unnecessary data via props.</p><h3><strong>React Hook(useState)</strong></h3><p><strong>Sophie Alpert</strong> said at React Conf 2018 Class are very confusing and annoying to understand for both Human and Machine. React team develops React Hook to manage state from a functional component and also handle every component life cycle supported by the class component. e.g componentDidMount, componentDidUpdate,componentWillUnmounte.t.c</p><h4><strong>Simple Guide</strong></h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/feb7450b6cf6eb0ff248d20f153ca039/href">https://medium.com/media/feb7450b6cf6eb0ff248d20f153ca039/href</a></iframe><pre> const [state, setState] = useState(0);</pre><p>I used array destructing to extract state and setState from useState. I set the initial value/state as zero(0). useState can accept any default value string,numbers,bool,array,object.</p><p><strong>NB: </strong>useState return an array of 2 elements: current state and set State. (state and setState) are just variable representation, you can use any name to represent your state and setState.</p><h4><strong>Passing data via props</strong></h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b74e0f4c93ff73eb0b9e98bdf784510c/href">https://medium.com/media/b74e0f4c93ff73eb0b9e98bdf784510c/href</a></iframe><p>From the above source code is the normal way of passing data without Context API or redux in react. In order for component 7 to receive data (package), the package has to pass all the way from Floor 1 to Floor 2… Floor 7.</p><h3><strong>Managing State with hook and context API</strong></h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/04ae0df13b603cafdf0ffcf6dd100a88/href">https://medium.com/media/04ae0df13b603cafdf0ffcf6dd100a88/href</a></iframe><p>in the above snippet, I created a reusable context that can be used across other components in my application.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aea08f4e2e834df648656709124fd867/href">https://medium.com/media/aea08f4e2e834df648656709124fd867/href</a></iframe><pre>import PackageContext from &quot;./context&quot;;</pre><p>I import context component created earlier, we are going to be using it to set our provider value and consume the value.</p><pre>const [state, setState] = useState({<br>companyName: &quot;DHL Delivery Package&quot;,<br>recipientName: &quot;Mr Adekoya Damola Felix&quot;,<br>package: &quot;MacBook Pro retina Display (20Kg)&quot;<br>});</pre><p>I set the initial state which is the package(data) to be delivered, you can consider provider component as the center store and also HOC(Higher-order component which going to wrap our main component.</p><pre>return (<br>&lt;PackageContext.Provider value={{ data: state }}&gt;      {props.children}    <br>&lt;/PackageContext.Provider&gt;<br>);</pre><p>I returned my context component I created earlier, assign a value as props which hold the state data (Package Details)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/89acc565ff83541d0948e0e7239ccda3/href">https://medium.com/media/89acc565ff83541d0948e0e7239ccda3/href</a></iframe><p>Let go straight directly to the last component (Floor 7) where we are going to use our data. I wrapped all my tags with &lt;Context.Consumer&gt; which allows me to connect to my store and access my data directly.</p><p><strong>NB: </strong>In any component, you want to use or consume the data you already saved in the provider. all you have to do is import your context component and use the Consumer property or you can destructure Consumer from the context component. <strong>E.g</strong></p><pre>import {Consumer} from &#39;./context-component&#39;</pre><p>From your App Component, you need to wrap the main component(Building component) as a parent component. Every Child/children component of the building will have access to the Provider Data more like Provider in redux.</p><pre>&lt;Provider&gt;        <br>  &lt;Building /&gt;      <br>&lt;/Provider&gt;</pre><h4>How to Update My State from Child or Consumer Component</h4><p>Updating your state that resides in component 1 from component 7 might look strange, but you can actually update your state from any Consumer component.</p><pre>&lt;PackageContext.Provider value={<br>{<br>data: state,<br>updateDeliveryStatus: () =&gt; <br>{<br>  setState({ ...state, deliveryStatus: &quot;Delivered&quot; });<br>}<br>      <br>}}&gt;</pre><p>in the Provider value data object, you need to set the action you want to perform in the object as a function which can later be triggered in the consumer component.</p><h4><strong>Conclusion</strong></h4><p>In this article, I hope I was able to impact and explain how context API and react hook usestate works. Context API is basically your center store where you can store your data that you want to access globally in your react application. Hook allows you to manage your state in a functional component.</p><p><em>I have created a simple demo on codesandbox to demonstrate how to use context API with react hook useState.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodesandbox.io%2Fembed%2Fm3v26y05y&amp;url=https%3A%2F%2Fcodesandbox.io%2Fs%2Fm3v26y05y&amp;image=https%3A%2F%2Fcodesandbox.io%2Fapi%2Fv1%2Fsandboxes%2Fm3v26y05y%2Fscreenshot.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codesandbox" width="1000" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed0ea7e02e586651ef3d69333c824e6c/href">https://medium.com/media/ed0ea7e02e586651ef3d69333c824e6c/href</a></iframe><p>You can follow me on <strong>twitter:</strong> <a href="https://twitter.com/devdammak"><strong><em>Damola Adekoya</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*gaKDMDYQpriLFtyr58uPQg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4df7c3e08ad" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/beginner-guide-to-react-context-api-with-hook-usestate-4df7c3e08ad">Beginner Guide to React Context API with Hook(useState)</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up ESLINT in your JavaScript Project with VS Code]]></title>
            <link>https://medium.com/@dammak/setting-up-eslint-in-your-javascript-project-with-vs-code-264dcaf1f410?source=rss-e534c8d0de4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/264dcaf1f410</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[eslint]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Damola Adekoya]]></dc:creator>
            <pubDate>Wed, 20 Mar 2019 08:44:29 GMT</pubDate>
            <atom:updated>2019-03-20T08:44:29.853Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*AFwzqiLY9cv90OtP7aE8gA.png" /></figure><p><em>ESLINT</em>: have you ever heard of ESLINT? or have you been wondering how to get started with ESLINT but you have no idea how to get started with ESLINT, But in few minutes with this article you will start using ESLINT in your next project. Yeah in few minutes</p><p><strong>ESLINT</strong> is pluggable linting utility for Javascript and JSX, it help to discover possible errors.</p><p><strong>VS Code</strong> is one of the top editor for development it was developed and maintain by Microsoft it help to improve productivity and also comes with many features, one of the feature i am going to emphasize on is extension. Extension are external packages in VS Code that allows you to extend the functionalities of your editor</p><p>you can download VS Code from their official website <a href="https://code.visualstudio.com/">VS Code Download</a></p><p><strong>NB:</strong> <em>I won’t be digging deep into VS Code..everything on VS Code in this post will only be related to ESLINT</em>.</p><p><strong>steps</strong>:</p><ul><li>create a javascript project</li><li>install eslint as an extension in your VS Code Editor</li><li>Install eslint as a global package using npm</li><li>initialize eslint in your javascript project</li><li>modify your eslint configuration file in your project.</li></ul><p>let create a simple javascript project using</p><p>npm init --yes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*ezX07vJWOCLAFv0za-fbgA.png" /></figure><p>after the operation was successful it will create a <em>package.json</em> file that will manage all configuration for our project.</p><p>let try to install ESLINT extension on vs code editor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*MJZezjD3B5_SNUlsdF2Jfg.png" /></figure><p>once we have installed eslint extension on our vs code editor then let install eslint as a global package via npm using the below code</p><pre>npm install eslint -g</pre><p>you need to initialize eslint in your project so you can leverage the power of eslint. From your root project enter the below code to initialize eslint</p><pre>eslint --init</pre><p>during the initialization eslint will ask you some questions, more like to setup your configuration file.</p><p><strong>How would you like to use ESLint?</strong></p><ul><li><strong>To check syntax only</strong> =&gt; it helps you correct your syntax and make sure it conform to standard.</li><li><strong>To check syntax and find problems</strong> =&gt; to help you check for syntax correctness and also help to find any problems in your code base</li><li><strong>To check syntax, find problems, and enforce code style</strong>_ =&gt; to help you check for syntax, find problem and enforce style, enforcing style means to conforms to a particular coding standard such as Airbnb, Google and other Standard coding style. But I always go for the last option the one with syntax, find problems and enforce code style</li></ul><p><strong>What type of modules does your project use?</strong></p><ul><li><strong>Javascript module (import/export)</strong> =&gt; if your project has babel installed then you definitely need to choose this option. If you are working on a project such as React, Vue, Angular e.t.c they all use babel so you need choose this option.</li><li><strong>CommonJS (require/exports)</strong> =&gt; this option is meant for commonJS that has nothing to do with babel, maybe your nodejs project and any other javascript project</li></ul><p><strong>Which framework does your project use?</strong></p><ul><li><strong>React</strong> =&gt; if you are using react in/for your project then this option is for you</li><li><strong>Vue</strong> =&gt; if you are using Vue in/for your project then this option is for you</li><li><strong>None of these</strong> =&gt; if you are using neither React or Vue in your project choose this option</li></ul><p><strong>Where does your code run?</strong></p><ul><li><strong>Browser</strong> =&gt; if your project runs on browser e.g React, Angular, Vue e.t.c then go for this option</li><li><strong>Node</strong> =&gt; if your project is a node based then gladly choose this option</li></ul><p><strong>How would you like to define a style for your project?</strong></p><ul><li><strong>Use a popular style guide</strong> =&gt; This allows you to choose from set of popular style such as Airbnb,Standard and Google style guide, it is advisable to choose this option in order for you to follow popular and most used style guide and i will be choosen this option in this post.</li><li>Answer questions about your style: <em>This is for custom style guide</em></li><li>Inspect your JavaScript file(s).: <em>custom style guide</em></li></ul><p><strong>What format do you want your config file to be in?</strong></p><ul><li><strong>Javascript</strong> =&gt; whether you want your eslint config file to be in <em>.js</em>file</li><li><strong>YAML</strong> =&gt; whether you want your eslint config file to be in <em>.yaml</em>file</li><li><strong>JSON</strong> =&gt; whether you want your eslint config file to be in <em>.json</em>file you can choose any option in this section</li></ul><p>after you have chosen your preferred configuration file type it will then prompt you to install all necessary dependencies. after all neccessary dependencies has been successfully installed it will now generate a config file with “.eslintrc”.”js/json/yaml”.</p><p><strong>example of the the configuration file shown below</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*QU_hTwNgd7QkPjfF2gtKBg.png" /></figure><p>below is a little animated image that show how vs code works with eslint to notify you of errors in your javascript project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*0oPrycm0s5HI86yEiXx3Hg.gif" /></figure><p><strong>Setting up rules for ESLINT in your project</strong></p><p>Defining rules for ESLINT in your project informed eslint the kind of rules you want to add or remove. you can modify/set your rules in the rules section in the configuration file</p><p>example of rules to set are</p><pre>&quot;rules&quot; : {<br>  no-console: 0; <br>  no-empty: 0;<br>  no-irregular-whitespace:0;</pre><pre>}</pre><p>you can define as many rules as possible, you can read more on ESLINT rules on their official documentation <a href="https://eslint.org/docs/rules/">ESLINT Rules Documentation</a></p><p>Lastly, I am going to show you how you can link your eslint to your javascript project compiler/transpiler</p><p>steps below</p><ul><li>Goto your package.json file, in the script segment in your file add the following</li></ul><pre>script:{<br>    &quot;lint&quot;:&quot;eslint&quot;</pre><pre>}</pre><p><strong>NB:</strong> <em>“lint” is just an ordinary word, you can use any word you are comfortable with</em></p><p>then in your root project you can run your linting script with</p><pre>npm run lint</pre><p><strong>Conclusion</strong></p><p>ESLINT will helps you to increase your productivity, write your code according to standard and flag errors when your code base is breaking style guide rules. With this post you should be able to integrate ESLINT in your JavaScript project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*gaKDMDYQpriLFtyr58uPQg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=264dcaf1f410" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adopting GraphQL as a Developer]]></title>
            <link>https://medium.com/@dammak/adopting-graphql-as-a-developer-70185ab744c1?source=rss-e534c8d0de4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/70185ab744c1</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[web-services]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Damola Adekoya]]></dc:creator>
            <pubDate>Mon, 18 Mar 2019 08:59:59 GMT</pubDate>
            <atom:updated>2019-03-18T08:59:59.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*MsIHB2ZBXbzRq-9DfriRHg.png" /></figure><p>Sharing data across multiple platforms and devices has been a great burden over past years, to find solution to these problem 2000 <strong>Microsoft </strong>launch SOAP(Simple Object Access Protocol) web service architecture. SOAP is a messaging protocol specifically for exchanging structural data over the internet across multiple devices. But SOAP Web architecture has some flaws which led to development of <strong>REST</strong>(Representational State Transfer) Web service architecture.</p><blockquote><strong>Representational State Transfer</strong> (<strong>REST</strong>) is a software architectural style that defines a set of constraints to be used for creating web services. Web services that conform to the REST architectural style, termed <em>RESTful</em> web services, provide interoperability between computer systems on the Internet. RESTful web services allow the requesting systems to access and manipulate textual representations of web resources by using a uniform and predefined set of stateless operations.</blockquote><p>The term Representation State Transfer and the architectural style was introduced by Roy Fielding (2000) during his doctoral dissertation</p><p><strong>REST </strong>was adopted by many organization, projects e.t.c quite many Web services on the internet uses REST architecture.But there are also some flaws with Rest architecture which was later solved by <strong>graphql.</strong></p><h3>What is GraphQL?</h3><blockquote>GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.</blockquote><p>Graphql is language developed by Facebook team, it was internally used on Facebook product before it was publicly released in 2015, it was aim to provide alternative to traditional REST API architecture. many companies such as twitter, GitHub, PayPal, Shopify,Cousera, Stackshare e.t.c has adopted Graphql API as web service architecture</p><h4>Advantages Graphql has over Rest (Representational State Transfer)</h4><ul><li><strong>Not based on HTTP verbs</strong>: Graphql does not base it request on POST, GET, DELETE,PUT, PATCH. it doesn’t care about the HTTP verb, just send your data it instantly understood the kind of operation your want to perform.</li><li><strong>Automated Documentation</strong>: Documentation is a very effectual and efficient way of explaining what your web service entails, all the endpoints, endpoint parameters and response data. Graphql provides a nice documentation approach which is auto-documenting. it provides you with every necessary details that has to do with your web service unlike REST architecture that uses third party packages like swagger, Doxygen, Daux e.t.c.</li><li><strong>Single endpoint Route</strong>: GraphQL exposes only one single endpoint route which will allows you to get your all your data at one shot. Multiple endpoint route on REST has being one of the greatest con’s of REST web service and it has great side effect on performance. assuming you need to get twitter user detail using ID as parameter and also get user’s tweet and also need to get user’s retweet.<br>with REST Web service you have a trip to the database thrice.. i.e you have a three API endpoint.. But with GraphQL you just need to specify all data you needed in a single trip and you have every data you needed</li><li><strong>Data flexibility and Performance</strong>: This allows the client to have full control on the data the web service will be returning, it helps to remove irrelevant data and also optimize performance. GraphQL also provides a playground for client/developer to play around with the data.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*gaKDMDYQpriLFtyr58uPQg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70185ab744c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>