<?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[Developer Circle Kampala - Medium]]></title>
        <description><![CDATA[Our blog, our stories, our celebration. - Medium]]></description>
        <link>https://medium.com/developer-circle-kampala?source=rss----d05f851145c8---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Developer Circle Kampala - Medium</title>
            <link>https://medium.com/developer-circle-kampala?source=rss----d05f851145c8---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 03:04:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/developer-circle-kampala" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[what is machine learning]]></title>
            <link>https://medium.com/developer-circle-kampala/what-is-machine-learning-645cca00de49?source=rss----d05f851145c8---4</link>
            <guid isPermaLink="false">https://medium.com/p/645cca00de49</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[devckla]]></category>
            <category><![CDATA[gulu]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Fri, 06 Dec 2019 15:42:21 GMT</pubDate>
            <atom:updated>2019-12-06T15:42:21.575Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is machine learning</strong></h3><p>Machine Learning is a sub-area of artificial intelligence, whereby the term refers to the ability of IT systems to independently find solutions to problems by recognizing patterns in databases. In other words: Machine Learning enables IT systems to recognize patterns on the basis of existing algorithms and data sets and to develop adequate solution concepts. Therefore, in Machine Learning, artificial knowledge is generated on the basis of experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Oxp8oY5iHo7J8VefBG_G_w.jpeg" /><figcaption>Source: PNGuru</figcaption></figure><p>In order to enable the software to independently generate solutions, the prior action of people is necessary. For example, the required algorithms and data must be fed into the systems in advance and the respective analysis rules for the recognition of patterns in the data stock must be defined. Once these two steps have been completed, the system can perform the following tasks by Machine Learning:</p><ul><li>Finding, extracting and summarizing relevant data</li><li>Making predictions based on the analysis data</li><li>Calculating probabilities for specific results</li><li>Adapting to certain developments autonomously</li><li>Optimizing processes based on recognized patterns</li></ul><h3>Machine Learning: How it works</h3><p>In a way, Machine Learning works in a similar way to human learning. For example, if a child is shown images with specific objects on them, they can learn to identify and differentiate between them. Machine Learning works in the same way: Through data input and certain commands, the computer is enabled to “learn” to identify certain objects (persons, objects, etc.) and to distinguish between them. For this purpose, the software is supplied with data and trained. For instance, the programmer can tell the system that a particular object is a human being (=” human”) and another object is not a human being (=” no human”). The software receives continuous feedback from the programmer. These feedback signals are used by the algorithm to adapt and optimize the model. With each new data set fed into the system, the model is further optimized so that it can clearly distinguish between “humans” and “non-humans” in the end.</p><p>But Machine Learning means much more than just distinguishing between two classes. Using the <a href="https://www.spotlightmetal.com/redirect/746226/aHR0cHM6Ly93d3cua3VrYS5jb20vZW4tZ2I%3D/4026c43bb7978f3ea2731146a6eb5d597933fe8e32e9402ecd2186cf/article/">KUKA</a> table tennis robot as an example, you can see how a <a href="https://www.spotlightmetal.com/redirect/746226/aHR0cHM6Ly93d3cuZXRtbS1vbmxpbmUuY29tL21hY2hpbmluZ19lcXVpcG1lbnQv/9e6fe3dc65c4c649af54933a2633567cb227f21cad71a8216afd0b13/article/">machine</a> scans the complex tendencies and the playing style of its opponent adapts to them and even makes a world champion sweat this way</p><h3>Advantages of Machine Learning</h3><p>Machine Learning undoubtedly helps people to work more creatively and efficiently. Basically, you too can delegate quite complex or monotonous work to the computer through Machine Learning — starting with scanning, saving and filing paper documents such as invoices up to organizing and editing images.</p><p>In addition to these rather simple tasks, self-learning machines can also perform complex tasks. These include, for example, the recognition of error patterns. This is a major advantage, especially in areas such as the manufacturing industry: the industry relies on continuous and error-free production. While even experts often cannot be sure where and by which correlation a production error in a plant fleet arises, Machine Learning offers the possibility to identify the error early — this saves downtimes and money.</p><p>Self-learning programs are now also used in the medical field. In the future, after “consuming” huge amounts of data (medical publications, studies, etc.), apps will be able to warn an in case his doctor wants to prescribe a drug that he cannot tolerate. This “knowledge” also means that the app can propose alternative options which for example also take into account the genetic requirements of the respective patient.</p><h3>These methods are used in Machine Learning</h3><p>In Machine Learning, statistical and mathematical methods are used to learn from data sets. Dozens of different methods exist for this, whereby a general distinction can be made between two systems, namely symbolic approaches on the one hand and sub-symbolic approaches on the other. While symbolic systems are, for example, propositional systems in which the knowledge content, i.e. the induced rules and the examples are explicitly represented, sub-symbolic systems are artificial neuronal networks. These work on the principle of the human brain, whereby the knowledge contents are implicitly represented.</p><h3>Types of Machine Learning</h3><p>Basically, algorithms play an important role in Machine Learning: On the one hand, they are responsible for recognizing patterns and on the other hand, they can generate solutions. Algorithms can be divided into different categories:</p><p><strong>Supervised learning:</strong> In the course of monitored learning, example models are defined in advance. In order to ensure adequate allocation of the information to the respective model groups of the algorithms, these then have to be specified. In other words, the system learns on the basis of given input and output pairs. In the course of monitored learning, a programmer, who acts as a kind of teacher, provides the appropriate values for a particular input. The aim is to train the system in the context of successive calculations with different inputs and outputs and to establish connections.</p><p><strong>Unsupervised learning: </strong>In unsupervised learning, artificial intelligence learns without predefined target values and without rewards. It is mainly used for learning segmentation (clustering). The machine tries to structure and sort the data entered according to certain characteristics. For example, a machine could (very simply) learn that coins of different colours can be sorted according to the characteristic “colour” in order to structure them.</p><p><strong>Partially supervised learning: </strong>Partially supervised learning is a combination of supervised and unsupervised learning.</p><p><strong>Encouraging learning:</strong> Reinforcing learning — just like Skinner’s classical conditioning — is based on rewards and punishments. The algorithm is taught by a positive or negative interaction which reaction to a certain situation should take place.</p><p><strong>Active learning:</strong> Within the framework of active learning, an algorithm is given the opportunity to query results for specific input data on the basis of pre-defined questions that are considered significant. Usually, the algorithm itself selects questions with high relevance.</p><p>In general, the data basis can be either offline or online, depending on the corresponding system. In addition, it can be available only once or repeatedly for Machine Learning. Another distinguishing feature is the either staggered development of the input and output pairs or their simultaneous presence. On the basis of this aspect, a distinction is made between so-called sequential learning and so-called batch learning.</p><h3>Machine Learning and its most popular applications</h3><p>Machine Learning is applied at Netflix and Amazon as well as for Facebook’s face recognition. For you as a user, Machine Learning is for example reflected in the possibility of tagging people on uploaded images. In fact, Facebook has the largest face database in the world. The data fed by users into the social network is used by Facebook to optimize and train Machine Learning systems in terms of visual recognition.</p><p>Another application of Machine Learning that is now firmly integrated into everyday life is the automatic detection of spam that is integrated into almost all e-mail programs. Within the scope of spam detection, the data contained in the e-mails is analysed and categorised. The “spam” and “non-spam” patterns are used in this respect. If an e-mail is recognized as junk mail, the program learns to identify spam mails even more efficiently. Other areas of application for Machine Learning include search engine ranking, combating cybercrime and preventing computer attacks.</p><h3>The commercial application of Machine Learning</h3><p>With the help of Machine Learning, economic data can be turned into money. Companies that rely on Machine Learning or Machine Learning methods are not only able to increase the satisfaction of their customers, but also to achieve cost reductions at the same time. Through Machine Learning, customer wishes and needs can be evaluated and the following marketing measures can be personalized. This optimizes the customer experience and increases customer loyalty.</p><p>In addition, Machine Learning can help companies to find out whether there is a threat of customer migration in the near future. This is achieved, for example, through the automatic evaluation of support requests. An alternative is to analyse those characteristics that customers who have already migrated in the past have in common. If those existing customers who also have these characteristics are then filtered out on the basis of the characteristics resulting from the analysis, the company receives a list of the customer group at risk of migration. Appropriate measures can then be taken to retain these customers.</p><p>In addition, more and more chatbots are being used in the area of telephone customer service. These are automated programs that communicate with customers. In this way, the chatbots can optimize their cognitive abilities with regard to the interpretation of the tone in different situations. In addition, the chatbots are able to forward the call — for example, if it is a more complex request — to an employee of the call centre.</p><p>Furthermore, Machine Learning is a key technology in the development of autonomous systems: In addition to driverless cars, Machine Learning is also used in collaborative robots. Other areas of application for Machine Learning would be:</p><ul><li>Analysis of the stock market</li><li>Credit Card Fraud Detection</li><li>Automated diagnostic procedures</li><li>Acquisition of landmines in acoustic sensor and radar data</li></ul><h3>Machine Learning: The technology leaders</h3><p>In addition to Microsoft, Google, Facebook, IBM and Amazon, Apple also spends enormous financial resources on the use and further development of Machine Learning. IBM’s Watson supercomputer is still the best-known appliance for Machine Learning. Watson is mainly used in the medical and financial sectors. As already mentioned, Facebook uses Machine Learning for image recognition, Microsoft for the speech recognition system Cortana, Apple for Siri. Of course, Machine Learning is also used at Google, both in the area of image services and search engine ranking.</p><p>Cloud providers such as Google, Microsoft, Amazon Webservice and IBM have now created services for Machine Learning. With their help, it is also possible for developers who do not have specific Machine Learning knowledge to develop applications. These applications are able to learn from a freely definable set of data. Depending on the provider, these platforms have different names:</p><ul><li>IBM: Watson</li><li>Amazon: Amazon Machine Learning</li><li>Microsoft: Azure ML Studio</li><li>Google: Tensorflow</li></ul><p>In addition to the platforms mentioned above, there is a broad spectrum of high-quality, free open source programs through which Machine Learning has been made accessible to a wider audience so that you as a developer or data specialist can work with it.</p><p><strong>About the Author:</strong> <br>Oscar Okello is a highly active member and contributor to DevC Kampala, Lead of GDG Gulu, a data scientist and an open Source enthusaist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*o-4KTqkhR9dU68YGCOyVTw.jpeg" /><figcaption>GDG Gulu 2019</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=645cca00de49" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/what-is-machine-learning-645cca00de49">what is machine learning</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My experience setting up a react-native environment on Ubuntu OS]]></title>
            <link>https://medium.com/developer-circle-kampala/my-experience-setting-up-a-react-native-environment-on-ubuntu-os-5905db69a6d4?source=rss----d05f851145c8---4</link>
            <guid isPermaLink="false">https://medium.com/p/5905db69a6d4</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[devckla]]></category>
            <dc:creator><![CDATA[Moureen Caroline]]></dc:creator>
            <pubDate>Fri, 06 Dec 2019 14:07:22 GMT</pubDate>
            <atom:updated>2019-12-06T14:07:22.471Z</atom:updated>
            <content:encoded><![CDATA[<p>Am a few months old in to serious programming with a background in java that I recently had to change to python due to the application that was assigned to me so am busy trying to understand python and how it works and boom little did I know then I was put on the team building a react- native application , now let’s get this clear i have not done anything in java-script or ES6 nor have I done any react of sorts, yeah confusing right ? yeah I surely was. Now it reaches a time to setup a react native environment on my Intel Pentium machine. So i get access to the react-native documentation and the instructions looked pretty straight forward , so I was like let’s do this!!!! The very thing was going on awesomely until I reached the step that had Android SDK tools that’s where everything became real right before I even wrote a single line of “Hello World ” in react-native. Tried everything possible on the internet but still things were not working out for at least 5 good days straight and the fact that i was installing on an Ubuntu machine did make anything easier since there are a few documents on the same errors that I was facing trying to setup the environment. But I finally got the breakthrough at the end .</p><p>Before proceeding, be sure to install the latest version of the following on Linux ( <strong>Ubuntu</strong> 18.04):</p><ul><li>Node (V 12.10 as of writing)</li><li>Npm (V 6.10.3 as of writing)</li><li>Android SDK tools</li><li>Yarn</li><li>Git</li><li>Genymotion</li><li>Virtual-box</li></ul><p>others :</p><ul><li>USB cable</li><li>Mobile phone</li></ul><p>After installing the virtual-box and confirming that it’s up and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*2JNYMWy-B6isD_1b" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*uPm4vs8z6xSTIlYN.png" /></figure><p>Creating the environment for the Android SDK tools;</p><p>$nano/etc/profile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*MBsEecPLztHmfnWJ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*TQdjN4qrL6fX0akN.png" /></figure><p>Confirm that Android SDK is installed run the following</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*LcBGwKh9rILkRpRU" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*xeoKOoYbsYZV4X40.png" /></figure><p>After one has configured an environment variable called ANDROID_HOME, run the following command to accept all the licenses.</p><p>yes | $ANDROID_HOME/tools/bin/sdkmanager — licenses</p><p>In case one is using <strong>Java version 10</strong> <strong>and above</strong>, you will have trouble running the command above.First run the;</p><p>sudo update-alternatives — config java</p><p>To downgrade the Java to <strong>Java version 8</strong> so that you can be in a position to run the command once again to get all the SDK licenses up-to-date.</p><p>Open up two different terminals</p><ol><li>Run react-native start</li><li>Run react-native run-android</li></ol><p>One will notice the execution is at 99% and its stuck at <strong><em>app:installDebug, why!! Cause its running the Genymotion Android Tools (default). You need to change the radio-button to Use custom Android SDK tools ( put the path of your sdktools) As shown below;</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*V6qOXUzit08AkWeb" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1z--h3ZAmdXr5KsJ" /></figure><p>Change like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*yURMp_B7VoT-Jt4D" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BAX1_jkaJzp8TsNe" /></figure><p>walalalalalalala we got it baby and we are good to GO.</p><p><strong><em>React-Native Here we come BABY!!!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5905db69a6d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/my-experience-setting-up-a-react-native-environment-on-ubuntu-os-5905db69a6d4">My experience setting up a react-native environment on Ubuntu OS</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacktoberfest]]></title>
            <link>https://medium.com/developer-circle-kampala/hacktoberfest-a444f7b90cd1?source=rss----d05f851145c8---4</link>
            <guid isPermaLink="false">https://medium.com/p/a444f7b90cd1</guid>
            <category><![CDATA[devckla]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Moureen Caroline]]></dc:creator>
            <pubDate>Thu, 31 Oct 2019 13:39:24 GMT</pubDate>
            <atom:updated>2019-10-31T13:39:24.688Z</atom:updated>
            <content:encoded><![CDATA[<p>Where would Devs be without open source ,hmm i wonder about the possibilities every single day, interestingly most aspiring developers and the developers in the market would be loners ,Imagine yourself “developer” fighting with your bugs without any help like stackoverflow,Reddit, and e.t.c.</p><p>I was invited by a friend to attend Hacktoberfest, I had no clue what that meant at tall but since the name sounded weirdly familiar i was curious enough to consider being an adventurous lady I was like let’s do this.I tell you this I wasn’t disappointed there was so much to learn from different technologies; 4ir, inclusiveness and other factors affecting the developer community at the end of the day I felt like had got what I subscribed for.</p><p>As I write, I believe a few developers have an idea of what open source is all about and the majority have benefited from it.Open source is where awareness and adoption of building the bridge between open source communities of practice as the saying goes, practice makes perfect so devs let’s it bring on.</p><p>So here I am having no idea of what open source is all about and how I can benefit from it then I was told that Hacktoberfest has got several projects on GitHub in different languages where anyone can contribute to. So another question pops in head and am like How can one contribute ??? We were given a challenge which runs every year between 1st to 31st october it was all about having made 4 Pull requests on 2 particular GitHub projects which I successfully managed to accomplish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppf8UMYeNrx2EYcZWMT9Tw.png" /><figcaption>Jadamoureen’s Hacktoberfest profile</figcaption></figure><p>Hacktoberfest is an interesting site which grants freedom to developers or students learning to code the freedom to learn,collaborate and Infrastructures as well as driving growth of open source to make positive contributions towards an ever-growing community.</p><p>This doesn’t really mean that it’s the end of contributions, as I earlier mentioned Hacktober has got several projects on Github in a couple languages that one can contribute towards.</p><p>Open Source Software grants all the rights to use, study, change and share the software in modified and unmodified form. Software freedom is very essential to enabling community development of open source software.</p><p>So fellow developers let’s be apart of this move…as we enjoy code.Pull requests can be made to any public repo on GitHub as long as one is in line with the project.</p><p><strong><em>“Open source technology is the movement of changing the world we live in.”</em></strong></p><p><strong><em>Big thanks to Facebook Developer Circles, Digital Ocean and the entire team for making this possible.</em></strong></p><p>For more information visit their site : <a href="https://hacktoberfest.digitalocean.com/">https://hacktoberfest.digitalocean.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a444f7b90cd1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/hacktoberfest-a444f7b90cd1">Hacktoberfest</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I Use — My Tools of Trade]]></title>
            <link>https://medium.com/developer-circle-kampala/what-i-use-my-tools-of-trade-552655db4b8d?source=rss----d05f851145c8---4</link>
            <guid isPermaLink="false">https://medium.com/p/552655db4b8d</guid>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[gideon bamuleseyo]]></dc:creator>
            <pubDate>Mon, 16 Sep 2019 16:24:07 GMT</pubDate>
            <atom:updated>2019-09-16T15:57:20.816Z</atom:updated>
            <content:encoded><![CDATA[<h3>What I Use — My Tools of Trade</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6uvNQYS6VQdkEYpIDB9Lyw.jpeg" /></figure><p>So, <a href="https://medium.com/u/57fdf242a358">Stephen Senkomago Musoke</a> challenged us <a href="https://web.facebook.com/groups/DevCKampala/permalink/1743839265923489/?__m_async_page__=1&amp;_rdc=10&amp;_rdr">here</a> to write about our Tools of trade after he shared his in this <a href="https://ssmusoke.com/uses/?fbclid=IwAR2zS2Tv0vjv-BuKMPxmS_f6yrAm0BVR21yiC7NMvwUV1ACXFCkR4gg4-jU">post</a> on his website. In this post, therefore, I will be sharing with you the tools I use day to day.</p><h3>Hardware</h3><ul><li><a href="https://support.apple.com/kb/SP754?locale=en_GB">MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)</a> with 2.3 GHz Intel Core i5 processor, 16 GB RAM, and 250GB SSD Hard drive.</li><li><a href="https://www.amazon.com/HP-Monitor-1080p-Ultra-FreeSync/dp/B07W3YZ23T/ref=sr_1_1?keywords=hp+monitor+27f&amp;qid=1568646518&amp;sr=8-1">An HP Monitor.</a> It&#39;s quite a simple, affordable monitor and I love it.</li><li><a href="https://www.apple.com/ug/airpods/">Apple Airpods</a>. I love using these babies. They are great for music, great for my remote calls.</li></ul><h3>Software</h3><ul><li><a href="https://code.visualstudio.com/">VSCode</a>. Every day, any day, any time, anywhere. I love this text editor. Simple and lightweight. VSCode has grown in popularity and has a rich community of users. Many awesome plugins have been developed for this text editor as a result.</li><li><a href="https://www.iterm2.com/">iTerm2</a>. Very awesome terminal for MacOs.</li><li><a href="https://yarnpkg.com/lang/en/">Yarn</a>. I am JavaScript junkie and for my packages, this is my go-to manager.</li><li><a href="https://brew.sh/">Homebrew</a>. This is what I use to install my software. I am a terminal person.</li><li><a href="https://www.spotify.com/int/why-not-available/">Spotify</a>. For music, this is my software. I love Spotify.</li></ul><p>Those are some of my main daily tools. There are, however, many more Software tools that I use such as Slack, Gmail, Google Calendar, etc that I have not listed because the list would be endless if I did.</p><p>I would love to give a mention to <a href="https://safeboda.com/ug/">Safeboda</a>. I use Safeboda for transport to work and I love what they are trying to build. Safeboda is not only modernizing and making boda transportation safe but also represents the brilliance we have in Uganda. I, therefore, urge Ugandan developers to pick a leaf. We can change our Country one line of code at a time.</p><p>Thank you for reading this article, if you loved it, give it some claps and please do feel free to share what your day to day tools are.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=552655db4b8d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/what-i-use-my-tools-of-trade-552655db4b8d">What I Use — My Tools of Trade</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[<F8 2019 Dev-C Kampala Edition/>]]></title>
            <link>https://medium.com/developer-circle-kampala/f8-2019-dev-c-kampala-edition-da0e8a1874d8?source=rss----d05f851145c8---4</link>
            <guid isPermaLink="false">https://medium.com/p/da0e8a1874d8</guid>
            <category><![CDATA[developer-circles-kampala]]></category>
            <category><![CDATA[andela-uganda]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[f8-2019]]></category>
            <dc:creator><![CDATA[Diana Rita Nanyanzi]]></dc:creator>
            <pubDate>Mon, 01 Jul 2019 12:26:13 GMT</pubDate>
            <atom:updated>2019-07-01T12:52:21.395Z</atom:updated>
            <content:encoded><![CDATA[<h3>&lt;F8 2019 DevC Kampala Edition /&gt;</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/154/1*m_-vrP7FC0ppWBAWFScjKA.png" /></figure><p><a href="https://www.f8.com/"><strong>F8</strong></a><strong> </strong>came around this year and to call it a day of anticipation does not fully cover it. While Leads from different Developer Circle communities all over the world gathered in San Jose to get a close-up, we had our own <a href="https://web.facebook.com/groups/DevCKampala/">Developer Circles Kampala</a> meetup to celebrate, attend, watch and listen in on F8 right here in Kampala at<a href="https://andela.com/"> Andela Uganda</a> offices.</p><h4>A bit of context:</h4><p>New people, this is the section you were looking for. To bring some semblance of meaning to you, we’ll talk a little about what Developer Circles are and why F8 is a big deal.</p><p><a href="https://developers.facebook.com/developercircles"><strong>Developer Circles</strong></a> is a community-driven program under Facebook that’s free to join and open to any <strong>developer</strong>. Each <strong>Developer Circle</strong> is led by members of the local community who act as leads for the <strong>Circle</strong>, organizing events offline and managing a local online Facebook community.</p><p><a href="https://web.facebook.com/groups/DevCKampala">Developer Circles Kampala</a> activities and events are managed by our awesome leads: <a href="https://www.facebook.com/akebirungi"><em>Aretha Kebirungi</em></a><em>, </em><a href="https://www.facebook.com/abahedison"><em>Edison Abahurire</em></a><em>,</em> and <a href="https://www.facebook.com/ethangideon.lytes"><em>Gideon Bamuleseyo</em></a><em> </em>who have attended the F8 conferences with Edison and Gideon representing this year. The point of the online community is to collaborate, engage, share and learn from and with each other. Tons of resources, courses, and opportunities are shared on these platforms. On that note, please join the Facebook Developer Circles Kampala group <a href="https://web.facebook.com/groups/DevCKampala"><strong>here</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wl6837OoyU6j4I1Vr9miiw.jpeg" /></figure><p><strong>F8 </strong>is the annual developer conference held by Facebook. It is open to developers, innovators, and entrepreneurs. This year’s theme was “<strong><em>The Future is Private</em></strong>” and tons of amazing things were shared about Facebook’s family of apps as expounded on later in the article.</p><h4>Back to our viewing party…</h4><p><strong><em>AMA</em> time with Raymond Besiga.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_KxgFPRn5Vvqwady3GWEJQ.jpeg" /><figcaption>Raymond Besiga(Guest Speaker) with the MC Gloria Kemigisha</figcaption></figure><p>We had an <em>“Ask Me Anything(AMA)” </em>session with an inspiring guest, <a href="https://raybesiga.com/">Raymond Besiga</a>. He is a techpreneur who has worked with different organizations in developing, designing and managing their digital products.</p><p>One of his projects and the center of discussion of this AMA amongst other things is his work on the MTN <a href="https://momodeveloper.mtn.com/">MoMo API</a>.</p><p>MTN recently opened its Mobile Money API(<a href="https://momodeveloper.mtn.com/api-documentation/introduction/">documentation</a>). Raymond played a key role in supporting MTN as they transitioned to an open API business model. This involved stakeholder coordination, API testing, and documentation, design, and development of the developer portal, as well as conducting developer training.</p><p><a href="https://drive.google.com/open?id=1kMg6kosOxplBOtImC070NRpKqYKv1eGr">MVI_3401.MP4</a></p><p><strong>Did somebody say Kahoot?!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*opxuJeT9YVAtqqDx5pqqjg.jpeg" /></figure><p>Work hard, play harder 🎮. Sound mantra. We had a <em>kahoot</em> session to gain a sense of who is who when it comes to all things Developer Circle Kampala, Facebook, and F8 2018 highlights. A series of questions about previous F8 events and the code sessions held this year were thrown at the audience. Tension built up with each option displayed. We had a serious contender going by “Zuckerberg”. He knew his craft alright. A bunch of questions and points later reflected Kengo Wada as the winner. Why wouldn’t he be? He is a regular at the Developer Circles Kampala events. Consistency and passion do pay off.</p><p>We also got to mix and mingle with people from different walks of life over snacks 🌭 🍹. There were students, developers, techpreneurs, engineers, and techthusiasts. Basically, all who had to be there showed up, got to know each other, exchanged ideas, challenged themselves and engaged in all that the day had to offer.</p><p><strong>Let The Keynote Begin:</strong></p><p><strong><em>#momentofTruth #Zuckerberg #F82019</em></strong></p><p>This was the moment of truth. The crux of all this. There was a figurative transportation from our seats to the McEnery Convention Center auditorium in which Mark Zuckerberg gave his keynote speech. Privacy is the key issue here and I will just pick a couple of highlights to share.</p><p><strong>The future is private</strong>. Private social platforms aka digital living rooms. What does this entail:</p><ul><li>Private clear intimate conversations</li><li>Secure communication with E2E encryption</li><li>Messages and chats kept just as long as you want</li><li>Seamless communication across applications.</li><li>Secure data storage regardless of country policies.</li><li>Building out infrastructure to support the privacy vision.</li><li>Enforcing stricter regulations on developer tools to ensure they are being used for good.</li><li>Open and consultative approach with governments and experts for future developments.</li></ul><p>There are lots of exciting new features to look out for as well. Here are a couple of them:</p><ul><li>The Facebook website will be rebuilt from scratch with communities as a central point.</li><li>A shopping channel added to Instagram. Browse, order and checkout. Buy directly from creators</li><li>Product catalog added to WhatsApp business</li><li>Messenger rebuilt from scratch. Desktop app has chat and video features.</li><li>Spark AR studio for Windows and Mac</li><li>AR-beta design for Instagram</li></ul><p><strong><em>NB:</em></strong> To watch the F8 keynote, check it out on <a href="https://web.facebook.com/FacebookforDevelopers/videos/422572928569998/">Facebook</a> or on <a href="https://www.youtube.com/watch?v=xK0RwubFi-U">Youtube</a></p><h4>Conclusion:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*luZ3Q88lIVFoSh2s" /></figure><p>F8 came around this year and the excitement that it stirred within the audience was palpitating. From the demos and product expectations set (hey secret crush 😉), meeting exciting people, the future of Facebook’s family of apps as well as getting acquainted with the vast range of facebook technologies. The beauty and growth lie in how much you keep learning, innovating, building better solutions and exposing oneself to what is out there. DevC Kampala gave us a chance to do that through the enriching experience that was<strong><em> F8 2019.</em></strong></p><p>Check out more fun moments that transpired <a href="https://drive.google.com/file/d/1BfNsXseErFImiRwhNGpSiZV0niOQzA1x/view?usp=sharing">here</a>. Thank you to the participants for being part of this brilliant viewing party.</p><p><em>Great </em>thanks to Facebook, Andela Uganda and Developer Circles Kampala for making this happen.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da0e8a1874d8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/f8-2019-dev-c-kampala-edition-da0e8a1874d8">&lt;F8 2019 Dev-C Kampala Edition/&gt;</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How software design fits into the big picture.]]></title>
            <link>https://medium.com/developer-circle-kampala/how-software-design-fits-into-the-big-picture-f9eb1d2af487?source=rss----d05f851145c8---4</link>
            <guid isPermaLink="false">https://medium.com/p/f9eb1d2af487</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-design]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[waitire colline]]></dc:creator>
            <pubDate>Thu, 28 Feb 2019 11:20:05 GMT</pubDate>
            <atom:updated>2019-02-28T11:20:05.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8sMtw4kT7hSfZ2rG" /><figcaption>Photo by <a href="https://unsplash.com/@simplicity?utm_source=medium&amp;utm_medium=referral">Marija Zaric</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Designing is at the heart of almost everything. Name it, you will find yourself back to design!</p><p><strong>What is software design?</strong></p><p>Before we go further, lets first get to know what “software design” is. We all know “Software<em>”</em> is a program that enables a computer to perform a specific task, as opposed to the physical components of the system (hardware). But how about “design”? Well, You might have read about it in some books but I would like to share Max Kanat-Alexander’s precise definitions. He defines it from two points:</p><blockquote><em>As a “verb” and as a “noun”.</em></blockquote><p>As a verb, it is to make a plan for a creation. Example: The engineer will design a bridge this month and build it next month.</p><p>As a noun, it is a plan that has been made for a creation that hasn’t been built yet. Example:</p><ul><li>The engineer came up with a design for a bridge; he will build it next month.</li><li>The plan that an existing creation follows. Example: That bridge over there follows a good design.</li></ul><p>Both perspectives apply when we talk about software design.</p><p>When we are “designing software” (“design” as a verb), we are planning it out. There are lots of things to plan about software — implementations plans, the structure of the code, what technologies we’re going to use, etc. There are many technical decisions to make. Often, we just make these decisions in our minds, but sometimes we also write down our plans or draw some diagrams. The result is a “software design” (“design” as the first noun definition). This is the plan that we made.</p><blockquote>Anything that involves the architecture of your software system or the technical decisions you make while creating the system falls under the category of “software design.”</blockquote><p><strong>Who is responsible for software design?</strong></p><p>You may be telling yourself that “hey, I am not a software designer”, and you are surrendering power and responsibility to some title(Software designer) in the industry. Here is the good news🤓 or bad news to those who hate responsibility:</p><blockquote>Every programmer is a designer.</blockquote><p>Every programmer working on a software project is involved in design. The lead developer is in charge of designing the overall architecture of the entire program. The senior programmers are in charge of designing their own large areas. And the junior programmers are in charge of designing their parts of the program, even if they’re as simple as one part of one file. Did you know this? I didn’t:</p><ul><li><em>There is even a certain amount of design involved in writing a single line of code.</em></li></ul><p>Every single person on a software team is responsible for making sure that their own code is well designed. Nobody who is writing code for a software project can ignore software design, at any level. However, Kanat-Alexander advises us that this does not mean that design is a democracy. We must not design by committee — the result will be an actively bad design. Instead, all developers should have the authority to make good design decisions in their own areas. A designer should always be willing to listen to suggestions and feedback.</p><p><strong>Purpose of software</strong></p><p>In almost everything, we need to know the big picture so that we focus and don’t lose track. So as we are designing for software, we need to have the purpose of software in our minds. And it turns out that there is, in fact, a single purpose for all software:</p><blockquote>- To help people.</blockquote><p>We can break this down to a more specific purpose for individual pieces of software. For example, a word processor exists to help people write things, and a web browser exists to help people browse the Web.</p><p>Software does not exist to help the computer, it always exists to help people. Even when you’re writing libraries, you’re writing to help programmers, who are people. You are never writing to help the computer.</p><p>What does “help” mean in this case?</p><p>Webster’s New World Dictionary of the American Language defines “help” as: to make it easier for (a person) to do something; aid; assist. Specifically…to do part of the work of; ease or share the labor of.</p><p>There are many things you could help with and what you help with is up to you, but the purpose is always to<strong> help</strong>.</p><p>The purpose of software is not “to make money” or “to show off how intelligent I am.” Anybody writing with those as their only purposes is violating the purpose of software and is quite likely to get into trouble. It is “helping” yourself, but that’s a pretty limited scope of help, and designing with only those purposes in mind is likely to lead to lower-quality software than genuinely designing to help people do what they need or want to do</p><p>Here is the fact:</p><blockquote>People who cannot conceive of helping another person will write bad software</blockquote><p>Overall, when we are making decisions about software, our guiding principle can be <em>how we can help</em>.</p><p><strong>Note</strong> that “to make money” can certainly be one of your personal purposes or a purpose of your organization — there’s nothing wrong with making money. It just SHOULDN’T be the purpose of your software. In any case, the amount of money you make is likely to be directly related to how much your software helps people.</p><p><strong>The Goals of Software Design</strong></p><p>Now that we know the big picture(the purpose of software), the goals of software design are towards that direction.</p><p>The first goal is:</p><ul><li>To allow us to write software that is as helpful as possible.</li></ul><p>We usually want people to continue being helped by our software. So, our second goal is:</p><ul><li>To allow our software to<strong> <em>continue</em></strong> to be as helpful as possible.</li></ul><p>The major barrier today to writing and maintaining helpful software is the actual difficulty of design and programming.</p><blockquote>When software is hard to create or modify, programmers spend most of their time focusing on making things “just work,” and less time focusing on helping the user.</blockquote><p>That leads us to our third goal:</p><ul><li>To design systems that can be created and maintained as easily as possible by their programmers, so that they can be — and continue to be — as helpful as possible.</li></ul><p>Most of us are aware of the third goal even if it is never stated explicitly. However, it’s very important to also have the first and second goals to guide us. We want to remember that being helpful now and in the future are the motivations for this third goal.</p><p>One thing that’s important to point out about this third goal is the phrase “as easily as possible.” The idea is to make our programs easy to create and maintain, not to make them difficult or complex. That doesn’t mean that everything will be immediately easy — sometimes it takes time to learn a new technology or design something well — but in the long run, your choices should make the creation and maintenance of your software easier.</p><p>Lastly, here is another good news 😍:</p><blockquote>It is absolutely possible to create a totally maintainable system that is extremely helpful to its users.</blockquote><p>I was inspired by Max Kanat-Alexander’s knowledge in his book titled “code simplicity”. I learned a lot of the above from his book.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9eb1d2af487" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/how-software-design-fits-into-the-big-picture-f9eb1d2af487">How software design fits into the big picture.</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Get Better Deep Learning Results]]></title>
            <link>https://medium.com/developer-circle-kampala/how-to-get-better-deep-learning-results-d154058796a8?source=rss----d05f851145c8---4</link>
            <guid isPermaLink="false">https://medium.com/p/d154058796a8</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Thu, 21 Feb 2019 18:39:41 GMT</pubDate>
            <atom:updated>2019-02-20T21:15:10.929Z</atom:updated>
            <content:encoded><![CDATA[<p>Configuring neural network models is often referred to as a “<em>dark art</em>.”</p><p>This is because there are no hard and fast rules for configuring a network for a given problem. We cannot analytically calculate the optimal model type or model configuration for a given dataset.</p><p>Fortunately, there are techniques that are known to address specific issues when configuring and training a neural network that are available in modern deep learning libraries such as Keras.</p><p>You will discover how you can confidently get better performance from your deep learning models.</p><p>This is a big and important post. You might want to bookmark it.</p><p>Let’s get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*A17x469bBgeTUypCE9AFdw.jpeg" /><figcaption>How to Get Better Deep Learning Performance</figcaption></figure><p>Before we get started, let’s make sure you are in the right place.</p><p>The list below provides some general guidelines as to who this article was designed for.</p><p>You need to know:</p><ul><li>Your way around basic Python and NumPy.</li><li>The basics of Keras for deep learning.</li></ul><p>You do NOT need to know:</p><ul><li>How to be a math wiz!</li><li>How to be a deep learning expert!</li></ul><p>This article will take you from a developer that knows a little deep learning to a developer who can get better performance on your deep learning project.</p><p>Note: I assume you have a working Python 2 or 3 SciPy environment with at least NumPy and Keras 2 installed. If you need help with your environment, you can follow the step-by-step tutorial here: <a href="https://machinelearningmastery.com/setup-python-environment-machine-learning-deep-learning-anaconda/">How to Set Up a Python Environment for Machine Learning and Deep Learning With Anaconda</a></p><h3>Overview</h3><p>Below are seven lessons that will allow you to confidently improve the performance of your deep learning model:</p><ul><li><strong>Lesson 01</strong>: Better Deep Learning Framework</li><li><strong>Lesson 02</strong>: Batch Size</li><li><strong>Lesson 03</strong>: Learning Rate Schedule</li><li><strong>Lesson 04</strong>: Batch Normalization</li><li><strong>Lesson 05</strong>: Weight Regularization</li><li><strong>Lesson 06</strong>: Adding Noise</li><li><strong>Lesson 07</strong>: Early Stopping</li></ul><h3>Lesson 01: Better Deep Learning Framework</h3><p>Modern deep learning libraries such as Keras allow you to define and start fitting a wide range of neural network models in minutes with just a few lines of code.</p><p>Nevertheless, it is still challenging to configure a neural network to get good performance on a new predictive modeling problem.</p><p>There are three types of problems that are straightforward to diagnose with regard to the poor performance of a deep learning neural network model; they are:</p><ul><li><strong>Problems with Learning</strong>. Problems with learning manifest in a model that cannot effectively learn a training dataset or shows slow progress or bad performance when learning the training dataset.</li><li><strong>Problems with Generalization</strong>. Problems with generalization manifest in a model that overfits the training dataset and makes poor performance on a holdout dataset.</li><li><strong>Problems with Predictions</strong>. Problems with predictions manifest as the stochastic training algorithm having a strong influence on the final model, causing a high variance in behavior and performance.</li></ul><p>The sequential relationship between the three areas in the proposed breakdown allows the issue of deep learning model performance to be first isolated, then targeted with a specific technique or methodology.</p><p>We can summarize techniques that assist with each of these problems as follows:</p><ul><li><strong>Better Learning</strong>. Techniques that improve or accelerate the adaptation of neural network model weights in response to a training dataset.</li><li><strong>Better Generalization</strong>. Techniques that improve the performance of a neural network model on a holdout dataset.</li><li><strong>Better Predictions</strong>. Techniques that reduce the variance in the performance of a final model.</li></ul><p>You can use this framework to first diagnose the type of problem that you have and then identify a technique to evaluate to attempt to address your problem.</p><h3>Next</h3><p>Discovering how to control the speed of learning with the batch size.</p><h3>Lesson 02: Batch Size</h3><p>Neural networks are trained using gradient descent where the estimate of the error used to update the weights is calculated based on a subset of the training dataset.</p><p>The number of examples from the training dataset used in the estimate of the error gradient is called the batch size and is an important hyperparameter that influences the dynamics of the learning algorithm.</p><p>The choice of batch size controls how quickly the algorithm learns, for example:</p><ul><li><strong>Batch Gradient Descent</strong>. Batch size is set to the number of examples in the training dataset, more accurate estimate of error but longer time between weight updates.</li><li><strong>Stochastic Gradient Descent</strong>. Batch size is set to 1, noisy estimate of error but frequent updates to weights.</li><li><strong>Minibatch Gradient Descent</strong>. Batch size is set to a value more than 1 and less than the number of training examples, trade-off between batch and stochastic gradient descent.</li></ul><p>Keras allows you to configure the batch size via the <em>batch_size</em> argument to the <em>fit()</em> function, for example:</p><p>Neural networks are trained using gradient descent where the estimate of the error used to update the weights is calculated based on a subset of the training dataset.</p><p>The number of examples from the training dataset used in the estimate of the error gradient is called the batch size and is an important hyperparameter that influences the dynamics of the learning algorithm.</p><p>The choice of batch size controls how quickly the algorithm learns, for example:</p><ul><li><strong>Batch Gradient Descent</strong>. Batch size is set to the number of examples in the training dataset, more accurate estimate of error but longer time between weight updates.</li><li><strong>Stochastic Gradient Descent</strong>. Batch size is set to 1, noisy estimate of error but frequent updates to weights.</li><li><strong>Minibatch Gradient Descent</strong>. Batch size is set to a value more than 1 and less than the number of training examples, trade-off between batch and stochastic gradient descent.</li></ul><p>Keras allows you to configure the batch size via the <em>batch_size</em> argument to the <em>fit()</em> function, for example:</p><p>Neural networks are trained using gradient descent where the estimate of the error used to update the weights is calculated based on a subset of the training dataset.</p><p>The number of examples from the training dataset used in the estimate of the error gradient is called the batch size and is an important hyperparameter that influences the dynamics of the learning algorithm.</p><p>The choice of batch size controls how quickly the algorithm learns, for example:</p><ul><li><strong>Batch Gradient Descent</strong>. Batch size is set to the number of examples in the training dataset, more accurate estimate of error but longer time between weight updates.</li><li><strong>Stochastic Gradient Descent</strong>. Batch size is set to 1, noisy estimate of error but frequent updates to weights.</li><li><strong>Minibatch Gradient Descent</strong>. Batch size is set to a value more than 1 and less than the number of training examples, trade-off between batch and stochastic gradient descent.</li></ul><p>Keras allows you to configure the batch size via the <em>batch_size</em> argument to the <em>fit()</em> function, for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*DLdFZl9fMa6gILaDStnZcQ.png" /></figure><p>The example below demonstrates a Multilayer Perceptron with batch gradient descent on a binary classification problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*iSjOrr5tYMJwTCqSXoamow.png" /></figure><h3>Next</h3><p>Discovering how to fine tune a model during training with a learning rate schedule.</p><h3>Lesson 03: Learning Rate Schedule</h3><p>The amount of change to the model during each step of this search process, or the step size, is called the “<em>learning rate</em>” and provides perhaps the most important hyperparameter to tune for your neural network in order to achieve good performance on your problem.</p><p>Configuring a fixed learning rate is very challenging and requires careful experimentation. An alternative to using a fixed learning rate is to instead vary the learning rate over the training process.</p><p>Keras provides the <em>ReduceLROnPlateau</em> learning rate schedule that will adjust the learning rate when a plateau in model performance is detected, e.g. no change for a given number of training epochs. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*FVF0laCxjapMOKAQUMZ0EA.png" /></figure><p>This callback is designed to reduce the learning rate after the model stops improving with the hope of fine-tuning model weights during training.</p><p>The example below demonstrates a Multilayer Perceptron with a learning rate schedule on a binary classification problem, where the learning rate will be reduced by an order of magnitude if no change is detected in validation loss over 5 training epochs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*qGjI82pcejL3Z0vqnQctig.png" /></figure><h3>Next</h3><p>Discovering how you can accelerate the training process with batch normalization</p><h3>Lesson 04: Batch Normalization</h3><p>Batch normalization, or batchnorm for short, is proposed as a technique to help coordinate the update of multiple layers in the model.</p><p>The authors of the paper introducing batch normalization refer to change in the distribution of inputs during training as “<em>internal covariate shift</em>“. Batch normalization was designed to counter the internal covariate shift by scaling the output of the previous layer, specifically by standardizing the activations of each input variable per mini-batch, such as the activations of a node from the previous layer.</p><p>Keras supports Batch Normalization via a separate <em>BatchNormalization</em> layer that can be added between the hidden layers of your model. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*FE1ICUA9NKXSKyrld4NwJQ.png" /></figure><p>The example below demonstrates a Multilayer Perceptron model with batch normalization on a binary classification problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*jJJTMVLJlc7PwhjoCbKtiA.png" /></figure><h3>Next</h3><p>Discovering how to reduce overfitting using weight regularization</p><h3>Lesson 05: Weight Regularization</h3><p>A model with large weights is more complex than a model with smaller weights. It is a sign of a network that may be overly specialized to training data.</p><p>The learning algorithm can be updated to encourage the network toward using small weights.</p><p>One way to do this is to change the calculation of loss used in the optimization of the network to also consider the size of the weights. This is called weight regularization or weight decay.</p><p>Keras supports weight regularization via the <em>kernel_regularizer</em> argument on a layer, which can be configured to use the L1 or L2 vector norm, for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*ckh3XPK3SG7pijNDcDeGfw.png" /></figure><p>The example below demonstrates a Multilayer Perceptron model with weight decay on a binary classification problem</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*-dznB0Kp0oD8si6ojUHtDg.png" /></figure><h3>Next</h3><p>Discovering how to reduce overfitting by adding noise to your mode</p><h3>Lesson 06: Adding Noise</h3><p>Training a neural network with a small dataset can cause the network to memorize all training examples, in turn leading to poor performance on a holdout dataset.</p><p>One approach to making the input space smoother and easier to learn is to add noise to inputs during training.</p><p>The addition of noise during the training of a neural network model has a regularization effect and, in turn, improves the robustness of the model.</p><p>Noise can be added to your model in Keras via the <em>GaussianNoise</em> layer. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*yocnm01Ls1eIZ0qBuOHy3A.png" /></figure><p>Noise can be added to a model at the input layer or between hidden layers.</p><p>The example below demonstrates a Multilayer Perceptron model with added noise between the hidden layers on a binary classification problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*mq42xcGIqirkCD3dBGazxw.png" /></figure><h3>Next</h3><p>Discovering how to reduce overfitting using early stopping.</p><h3>Lesson 07: Early Stopping</h3><p>A major challenge in training neural networks is how long to train them.</p><p>Too little training will mean that the model will underfit the train and the test sets. Too much training will mean that the model will overfit the training dataset and have poor performance on the test set.</p><p>A compromise is to train on the training dataset but to stop training at the point when performance on a validation dataset starts to degrade. This simple, effective, and widely used approach to training neural networks is called early stopping.</p><p>Keras supports early stopping via the <em>EarlyStopping</em> callback that allows you to specify the metric to monitor during training.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*j7UBtp913xFwcUeT7oQBTQ.png" /></figure><p>The example below demonstrates a Multilayer Perceptron with early stopping on a binary classification problem that will stop when the validation loss has not improved for 200 training epochs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*lLfZB-08PcNuIquiStd62A.png" /></figure><h3>The End!<br>(Look how far you have come!)</h3><p>You made it. Well done!</p><p>Take a moment and look back at how far you have come.</p><p>You discovered:</p><ul><li>A framework that you can use to systematically diagnose and improve the performance of your deep learning model.</li><li>Batch size can be used to control the precision of the estimated error and the speed of learning during training.</li><li>Learning rate schedule can be used to fine tune the model weights during training.</li><li>Batch normalization can be used to dramatically accelerate the training process of neural network models.</li><li>Weight regularization will penalize models based on the size of the weights and reduce overfitting.</li><li>Adding noise will make the model more robust to differences in input and reduce overfitting</li><li>Early stopping will halt the training process at the right time and reduce overfitting.</li></ul><p>This is just the beginning of your journey with deep learning performance improvement. Keep practicing and developing your skills.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d154058796a8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/how-to-get-better-deep-learning-results-d154058796a8">How to Get Better Deep Learning Results</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data science process]]></title>
            <link>https://medium.com/developer-circle-kampala/data-science-process-bcc06f713bea?source=rss----d05f851145c8---4</link>
            <guid isPermaLink="false">https://medium.com/p/bcc06f713bea</guid>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Thu, 21 Feb 2019 18:38:15 GMT</pubDate>
            <atom:updated>2019-02-21T18:38:15.113Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we get into the fun part of working with data, let’s break down how data science involves more than just statistics, why it’s becoming more important, and the data science process.</p><p><strong>Data Science vs. Statistics</strong><br>In short, data science is extracting knowledge from data. But how is that different between statistics? Data science encompasses more than statistics. Statistics is good to have for exploratory data analysis, making sure insights are statistically significant, and creating predictive models. Some extra skills other than statistics are good to have to become a data scientist:</p><ul><li>Creativity will help you think of ways to use the data to find associated variables that may not be trivial to find.</li><li>The data, the insights that you find, and visualizations can all come together to tell an intriguing story. Putting this together is a key way to present your findings and to deploy your models.</li><li>Knowledge of programming is a great thing to have as a data scientist. Several things you can do are:</li></ul><blockquote>Programmatically creating statistical or machine learning models.</blockquote><blockquote>Use <strong>pandas</strong> or <strong>dplyr</strong> to programmatically do data wrangling and cleaning.</blockquote><blockquote>Can create web or mobile applications to use the created models.</blockquote><p><strong>Why Data Science is Becoming More Important</strong><br>This <a href="https://www.forbes.com/sites/bernardmarr/2015/09/30/big-data-20-mind-boggling-facts-everyone-must-read/#4b8a5f7917b1">article on Forbes about big data</a> helps sum up the importance of data scientists and why they are becoming more sought after. Here are a couple of highlights on what it will be like in the future:</p><blockquote>By then (2020), our accumulated digital universe of data will grow from 4.4 <a href="https://en.wikipedia.org/wiki/Zettabyte"><strong>zettabytes</strong></a> today to around 44 zettabytes, or 44 trillion gigabytes.</blockquote><blockquote>Within five years there will be over 50 billion smart connected devices in the world, all developed to collect, analyze and share data.</blockquote><p>And the one that is most relevant to data scientists:</p><blockquote>At the moment less than 0.5% of all data is ever analyzed and used.</blockquote><p>Imagine all the knowledge that can be gathered from looking at even 1% of that data! Also, imagine how much of that data can be used as training data for machine learning opportunities.</p><p>A good bit of that data, too, can be used for really positive outcomes. Can the data help us figure out who is more prone to certain diseases? Will doctors be able to get better diagnoses? Is safer travel possible?</p><p><strong>Data Science Process</strong><br>So what does a data scientist actually do? Data scientists seem to have a bit of a magical quality to them. They are perceived to get a data set, apply some magic to it, and instantly comes insights that will transform the business to higher profits. As much as that may seem like it is, there is a lot more work into the process.</p><p>To get a better idea of this process, here’s a diagram of the <a href="https://en.wikipedia.org/wiki/Cross_Industry_Standard_Process_for_Data_Mining">Cross Industry Standard Process for Data Mining</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*rjON5hSBpDINVkncWw5_vg.png" /></figure><h3>Data Science Process in Detail</h3><p>Let’s look at each of these items in more detail to help give more definition to them.</p><ul><li><strong>Business Understanding</strong> — In this first step, we try to get a better idea of what business needs we should be extracting from data. What kind of questions should we be asking to help further the business and to help the business understand what kinds of actions it should take from the trends that the data shows. This could be open ended in such that you, as the data scientist, ask questions about the data that you see and find. Or it could be a series of questions from your client that they specifically want to know.</li><li><strong>Data Understanding</strong> — This is getting a business idea of the data that you have and understanding what each part of the data means. This may involve actually figuring out what data would be best needed and the best ways to acquire it. This also means finding out what each of the data points signifies in terms of the business. For instance, if you’re given a data set from a client, you have to know what each column and row represent. Do rows represent a single customer? Does this one column with a heading of what looks to be an acronym has a big relationship with the data? We can’t really know this without understanding what exactly it means.</li><li><strong>Data Preparation</strong> — The data preparation part of the process is where most of your time will be. Cleaning the data can be more of an art form than a science since you have to realize if you have the correct data to proceed to a good model and knowing how to clean it correctly so it won’t corrupt your model. I would also consider that having <em>reliable</em> data is part of this, as well. There’s an old saying, “garbage in, garbage out”. Your model won’t be very effective if you’re giving it bad data.</li><li><strong>Modeling</strong> — Here is where doing statistics and analyzing the data come in to create a model that best fits the data. You may have to try several models in order to find one with the best fit. In order to do that, going back to how the data was prepared may often happen. There are more ways to clean missing data. Is it safe to just remove the rows? Is there an average we can put in for it? There may even be a better value to put in the missing ones depending on the business. All of these can help make the model much better.</li><li><strong>Evaluation</strong> — This part is where you test to see if you have a good model or not before deploying or presenting. As the diagram indicates, this is also the part where you make sure the model answers the business questions you had at the beginning of this process. Perhaps it may even uncover more questions that are more important.</li><li><strong>Deployment</strong> — This is where you share your findings of the data. This isn’t limited to having an API to call that uses your model. It could simply be documenting your findings in an email, a shared document, or presenting to a group of executives. While it’s easy to talk technical with your colleagues, relaying what you find in the data to a sales team or the executives so they can take action with it is the key with this step.</li></ul><p>The interesting parts of this diagram indicate that it’s best to have an understanding of the business. Without that, it would be much harder to ask the right questions and extract the most information from the data. Also, some items can have the potential to go back and be iterated on again. For example, if you’ve moved from data preparation to modeling but new data came in, you would have to go back to preparing the new data and merging it with the old data that you already had to help give you more accurate results.</p><p>Once you have a model and are evaluating it, like the arrow indicates, it’s helpful to go back to make sure that the results of the model are in line with the business. Does it help the business take action? Can it give answers to the business questions we had at the beginning? Are there any new questions that were raised?</p><p>Now that we looked at what data science is and its process, I think it’s time to look at a data set to see if we can answer any questions from it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcc06f713bea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/data-science-process-bcc06f713bea">Data science process</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create a simple search app in React]]></title>
            <link>https://medium.com/developer-circle-kampala/how-to-create-a-simple-search-app-in-react-df3cf55927f5?source=rss----d05f851145c8---4</link>
            <guid isPermaLink="false">https://medium.com/p/df3cf55927f5</guid>
            <category><![CDATA[search]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[devckla]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[gideon bamuleseyo]]></dc:creator>
            <pubDate>Wed, 06 Feb 2019 18:13:55 GMT</pubDate>
            <atom:updated>2019-02-06T18:13:55.445Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*St0clj2HjtDi-RtIm9D6yA.jpeg" /><figcaption>IMAGE CREDIT: <a href="https://www.instagram.com/lauragift_/">Laura Gift</a></figcaption></figure><p>Hello there, welcome to my second blog post on React. In my <a href="https://medium.com/developer-circle-kampala/getting-started-with-react-134d3539e611">first blog post</a>, I introduced you to React. Today we are going to dive a little bit deeper into React as we create a simple search application.</p><p>Below is a look at the finished application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W-E3NldJ2sZi6TcNpWuBiQ.gif" /><figcaption>gif of the finished app</figcaption></figure><p>We are going to create a simple application that grabs a search value from the user then makes an API call to one of the <a href="https://www.themealdb.com/">themealdb.com</a> APIs, then displays the results. Below is the URL we shall use to make the query.</p><pre>https://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata</pre><p>Let&#39;s get started by creating a new React project using create-react-app. We shall call our project <strong>meal-search</strong>. Navigate to where you want to create your project, then run the command below in your terminal.</p><pre>create-react-app meal-search</pre><p>This will give you a fresh clean react project. cd into meal-search. or whatever name you gave your project. You should have a file structure similar to the one below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*msP_ZwRnARs0w6Dw_xlbUw.jpeg" /></figure><h4>Exploring the files and folders.</h4><ol><li><strong>node_modules</strong>. This folder contains the javascript packages (directories) that our app is using. When you install node packages. The directories of these packages get placed in this folder</li><li><strong>public</strong>. This folder contains files that are accessible to the public, this is the folder the server looks into when displaying web pages of our app.</li><li><strong>favicon.ico</strong>. Favicon is a website icon that appears on the left-hand side of the tab in which a web page is open just next to the title of the website.</li><li><strong>index.html</strong>. This is the homepage (default page) of the application. All our react components will be rendered through this page.</li><li><strong>manifest.json</strong> this file just contains some information about our react app.</li><li><strong>src</strong>. This folder will contain all of the source code that we are going to write.</li><li><strong>App.css</strong>. This file contains CSS for the App.js component.</li><li><strong>App.js</strong>. This file is a basic component that renders what we currently see when we run our app.</li><li><strong>App.test.js</strong>. This file contains tests for the basic App.js component.</li><li><strong>index.js</strong>. This javascript file is the entry to our application. This is the file where we plug our components that plug it into the root divin the index.html</li><li><strong>logo.svg</strong>. This is the React logo that gets displayed when we run our application.</li><li><strong>serviceWorker.js</strong>. This is a file that is automatically generated by the create-react-app. This file basically serves assets from the local cache when in a production environment.</li><li><strong>.gitingnore</strong>. <strong>create-react-app</strong> automatically initializes our app to be tracked by git and also generates this .gitignore file. Just as the name sounds this file is used to ignore files and folders you don&#39;t want Git to track.</li><li><strong>package.json</strong>. This file contains some metadata about our application. Most importantly it contains a list of dependencies with their versions that our application is using. It would the equivalent of the requirements.txt file in python.</li><li><strong>README.md</strong>. This is a file that is displayed on the GitHub repository of your application. Just as the name sounds, this file should contain information that people visiting your application’s repository can read to inform them about your application.</li><li><a href="https://yarnpkg.com/lang/en/docs/yarn-lock/"><strong>yarn.lock</strong></a> This file contains more metadata about the javascript packages and their versions that your app is using.</li></ol><h4>Running the app</h4><p>You can run the app by running npm start command in your terminal. This will automatically open up your default browser with the app running on localhost on port 3000.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMermj_sNJqjrIMJX49wHA.gif" /></figure><h4>Editing project files and creating our app</h4><p>We are going to delete a few files we will not be needing. Delete App.js, App.css, App.test.js, and serviceWorker.js.</p><p>In the src/index.js file, we also delete some lines of code. We will start with imports from files we have deleted.</p><pre>import App from ‘./App’;</pre><pre>import * as serviceWorker from ‘./serviceWorker’;</pre><p>Let us also delete their instances in the file</p><pre>//<em> If you want your app to work offline and load faster, you can change</em></pre><pre>//<em> unregister() to register() below. Note this comes with some pitfalls.</em></pre><pre>//<em> Learn more about service workers: http://bit.ly/CRA-PWA</em></pre><pre>serviceWorker.unregister();</pre><p>Let us now create our search component, In the src folder, create a new file and call it Search.js Add the code below to this file</p><pre>import React, { Component } from &quot;react&quot;;</pre><pre>class Search extends Component {</pre><pre>state = {};</pre><pre>render() {</pre><pre>return &lt;h1&gt;Welcome to the meal search app&lt;/h1&gt;;</pre><pre>}</pre><pre>}</pre><pre>export default Search;</pre><p>In the src folder, in the index file, import this new component we have just created. import Search from ‘./Search’;</p><p>Replace this line</p><pre>ReactDOM.render(&lt;App /&gt;, document.getElementById(&#39;root&#39;));</pre><p>with</p><pre>ReactDOM.render(&lt;Search /&gt;, document.getElementById(&#39;root&#39;));</pre><p>This will render the Search component that we have just created. When you go to your browser, the application will reload displaying the search component</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hdU0kWNG0n6akAOyfI5-qA.png" /></figure><p>Now, let us add a search input and a button to perform the search. In your Search.js file, in the render method, replace the return statement with the one below</p><pre>return (</pre><pre>&lt;div&gt;</pre><pre>&lt;h1&gt;Welcome to the meal search app&lt;/h1&gt;</pre><pre>&lt;input name=&quot;text&quot; type=&quot;text&quot; placeholder=&quot;Search&quot; /&gt;</pre><pre>&lt;button&gt;Search&lt;/button&gt;</pre><pre>&lt;/div&gt;</pre><pre>);</pre><p>We now have a skeleton of what we can use to perform the search, let us style it a little bit before we go ahead. In the src folder, create a CSS file, you can call it anything, I will call mine Search.css Add the code below to your CSS file</p><pre>* {</pre><pre>margin: 0;</pre><pre>padding: 0;</pre><pre>}</pre><pre>h1 {</pre><pre>color: #4286f4;</pre><pre>margin-top: 30px;</pre><pre>margin-bottom: 60px;</pre><pre>}</pre><pre>div {</pre><pre>text-align: center;</pre><pre>width: 80%;</pre><pre>margin: 0 auto;</pre><pre>}</pre><pre>input {</pre><pre>width: 100%;</pre><pre>margin: 10px;</pre><pre>padding: 18px 10px;</pre><pre>border-radius: 4px;</pre><pre>border: 1px solid #4e5766;</pre><pre>box-shadow: 1px 0.5px #888888;</pre><pre>font-size: 18px;</pre><pre>}</pre><pre>button {</pre><pre>padding: 12px 10px;</pre><pre>width: 30%;</pre><pre>border-radius: 4px;</pre><pre>background-color: #4286f4;</pre><pre>color: #ffffff;</pre><pre>cursor: pointer;</pre><pre>font-size: 18px;</pre><pre>}</pre><p>This will style our skeleton and this is what it will look like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PjxX5rB1JmVBLOdeq0TI_w.png" /></figure><p>Alright, now that we have the interface that can allow us to perform a search, let us power it up. First, we need a variable that will hold the search value entered by the user. In state, create this variable, I will call mine searchValue</p><pre>state = {</pre><pre>searchValue: &#39;&#39;,</pre><pre>};</pre><p>Alright, now let us set the input to this value, by adding the value attribute. While at this, let us also add an onChange listener to our input element.</p><pre>&lt;input</pre><pre>name=&quot;text&quot;</pre><pre>type=&quot;text&quot;</pre><pre>placeholder=&quot;Search&quot;</pre><pre>onChange={event =&gt; this.handleOnChange(event)}</pre><pre>value={this.state.searchValue}</pre><pre>/&gt;</pre><p>We have set the onChange to be handled by a function handleOnChange which takes in event as a parameter. Event is an object of that is created when the user types something in the input element.</p><p>Now let us create the handleOnChange function. In this function, we basically want to grab the value the user typed then use it to perform the search. In your Search class, just below state, add the code below to create the function.</p><pre>handleOnChange = event =&gt; {</pre><pre>this.setState({ searchValue: event.target.value });</pre><pre>};</pre><p>Now, that we have the search value let us perform the search. To do this we need to first add an onClick attribute to our Search Button.</p><pre>&lt;button onClick={this.handleSearch}&gt;Search&lt;/button&gt;</pre><p>We have added an onClick attribute that listens out for a click on this button. We have set this attribute to a function handleSearch . Let us define this function now, below the handleOnChange function, add this code.</p><pre>handleSearch = () =&gt; {</pre><pre>}</pre><p>Alright, now that we have a function to handle the search, let us make that API call. I am going to use the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">Fetch API</a> for this. Below the handleSearch function, create a new function to make the API call.</p><pre>makeApiCall = searchInput =&gt; {</pre><pre>var searchUrl = `https://www.themealdb.com/api/json/v1/1/search.php?s=${searchInput}`;</pre><pre>fetch(searchUrl)</pre><pre>.then(response =&gt; {</pre><pre>return response.json();</pre><pre>})</pre><pre>.then(jsonData =&gt; {</pre><pre>console.log(jsonData.meals);</pre><pre>});</pre><pre>};</pre><p>Call this function in the handleSearch function with the searchValue.</p><pre>handleSearch = () =&gt; {</pre><pre>this.makeApiCall(this.state.searchValue);</pre><pre>};</pre><p>We are now able to fetch the meals that contain the letters the user entered in the search field. Let us display these results. First, we need a variable to hold the meals being returned, preferably an array. So, in state, create a variable called meal and set it equal to an empty array.</p><pre>state = {</pre><pre>searchValue: &quot;&quot;,</pre><pre>meals: []</pre><pre>};</pre><p>Now back in our makeApiCall function, let’s set this array to the meals array being returned. So in the last .then, add this line</p><pre>this.setState({ meals: jsonData.meals });</pre><p>Now that we have this array in our state, let us render it. Below the button element in the render function, add this code.</p><pre>{this.state.meals ? (</pre><pre>&lt;div&gt;</pre><pre>{this.state.meals.map((meal, index) =&gt; (</pre><pre>&lt;div key={index}&gt;</pre><pre>&lt;h1&gt;{meal.strMeal}&lt;/h1&gt;</pre><pre>&lt;img src={meal.strMealThumb} alt=&quot;meal-thumbnail&quot; /&gt;</pre><pre>&lt;/div&gt;</pre><pre>))}</pre><pre>&lt;/div&gt;</pre><pre>) : (</pre><pre>&lt;p&gt;Try searching for a meal&lt;/p&gt;</pre><pre>)}</pre><p>You should now be able to perform the search and display the results.</p><p>Voilà, there we have it, a simple search app. I am just going to style this a little bit more. You can find the final code on Github <a href="https://github.com/lytes20/meal-search-app">here</a>.</p><p>Alright, thank you so much for reading, click on those clap hands if you found this helpful or leave a comment if you have any feedback for me thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df3cf55927f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/how-to-create-a-simple-search-app-in-react-df3cf55927f5">How to create a simple search app in React</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with React]]></title>
            <link>https://medium.com/developer-circle-kampala/getting-started-with-react-134d3539e611?source=rss----d05f851145c8---4</link>
            <guid isPermaLink="false">https://medium.com/p/134d3539e611</guid>
            <category><![CDATA[introduction]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[gideon bamuleseyo]]></dc:creator>
            <pubDate>Tue, 22 Jan 2019 10:57:53 GMT</pubDate>
            <atom:updated>2019-01-22T08:36:31.064Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I0ipeqlmq60ow8oX2re2HA.jpeg" /><figcaption>getting started with React</figcaption></figure><p>Hello, welcome to my very first blog post on React. In this blog post am going to walk you through how to set up a React project.</p><p>But before we dive right into the setup, <strong>what is React?</strong></p><p><a href="https://reactjs.org/">React</a> is a Javascript library that was developed by Facebook for building user interfaces.</p><p>React provides a perfect way to pull the <strong>View</strong> out of MVC (Model View Controller), and have the <strong>Models</strong> and <strong>Controllers</strong> in the backend of your application.</p><h4>React popularity</h4><p>React is a very popular javascript library and many websites in the world today use it for their front end. Some of the popular websites using React include;</p><ul><li>Facebook</li><li>Instagram</li><li>Airbnb</li><li>Udemy</li><li>Reddit</li><li>Pinterest</li></ul><h4>Some alternatives to React</h4><p>Some of the alternatives you can use for the front-end are <a href="http://backbonejs.org/">Backbone.js</a>, <a href="https://www.emberjs.com/">Ember.js</a>, <a href="https://angularjs.org/">Angular.js</a>, just to mention but a few.</p><h4>Why would you choose React</h4><ul><li>React is a very lightweight library that only deals with the view layer. This also makes it easy to learn and understand React quickly.</li><li>React also provides a component-based structure and as such one can construct a component and reuse it throughout the web application.</li><li>React has a rich developer community around the world and as such one can easily find help online.</li><li>React uses the <a href="https://nodejs.org/en/">Node.js</a> environment and since Node comes with its package manager, React developers can pull in other node packages and use them in their application without re-inventing the wheel</li><li>React is compatible with Redux, a very powerful flux architecture for managing state.</li><li>React also has great developer tools. The React Developer tools that can be installed as a Chrome extension are very great for inspecting React components and debugging. If one is using Redux, they can also install the Redux Developer tools.</li><li>React has a high performance compared to other frontend Javascript libraries. This is attributed to React’s virtual DOM. Any view changes are first reflected into virtual DOM, then an efficient diff algorithm compares the previous and current states of the virtual DOM and calculates the best way (minimum amount of updates needed) to apply these changes.</li></ul><h4>Prerequisites for React</h4><p>To start digging into React you need to be familiar with HTML and CSS. You also need to have some basic knowledge of Javascript.</p><p>Alright now that we are somewhat acquainted with what React is let us get started.</p><h4><strong>Installing Node</strong></h4><p>React runs on Node.js so we need to have node installed on our computers. You can simply do this by visiting the Node.js <a href="https://nodejs.org/en/">site</a>, then you chose the right download for your Operating system.</p><h4><strong>Installing create-react-app</strong></h4><p>Node.js comes with the node package manager (npm ). And since we just installed node, we have npm installed as well.</p><p>Using npm we can now install <strong>create-react-app</strong></p><p>Open your terminal or command prompt then run this command</p><pre>npm install create-react-app</pre><h4>Creating our first React project</h4><p>With create-react-app installed, we can now create our first react project. I shall call my project rollex-connect. Navigate to where you want to create your react project, then run the following command</p><pre>create-react-app rollex-connect</pre><p>Now move into the project folder, for my case its rollex-connect so, I would just runcd rollex-connect.</p><p>Now start your react app by running:</p><pre>npm start</pre><p>The project will automatically start up on your localhost server on port 3000 and will automatically fire up your default browser with a webpage that looks like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMermj_sNJqjrIMJX49wHA.gif" /></figure><p>Let us at least edit something in our newly created project. Open up your project in an editor of your choice. (I use <a href="https://code.visualstudio.com/">VSCode</a>). Navigate to the App.js file in the src folder.</p><p>Replace the code in the &lt;header className=”App-header”&gt; with this</p><pre>&lt;p&gt;<br> Welcome to Rollex Connect<br>&lt;/p&gt;</pre><p>Your page should automatically refresh and you should have something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*akzFLqeFZJUyiDT0w9dhzg.png" /></figure><p>Voilà there you have it, your very first react app. Easy peasy lemon squeezy, right 😃 😅</p><p>Alright, thank you so much for reading, click on those clap hands if you found this helpful or leave a comment if you have any feedback for me thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=134d3539e611" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/getting-started-with-react-134d3539e611">Getting started with React</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>