<?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 Jean Luc Kabulu on Medium]]></title>
        <description><![CDATA[Stories by Jean Luc Kabulu on Medium]]></description>
        <link>https://medium.com/@jeanluc.kabulu?source=rss-2888c3c5058a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*mMsRYfM416K8pVoFdSQZlw.jpeg</url>
            <title>Stories by Jean Luc Kabulu on Medium</title>
            <link>https://medium.com/@jeanluc.kabulu?source=rss-2888c3c5058a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 12:22:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jeanluc.kabulu/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[5 Useful Dart Packages]]></title>
            <link>https://medium.com/flutter-community/5-useful-dart-packages-92fa3ec197d0?source=rss-2888c3c5058a------2</link>
            <guid isPermaLink="false">https://medium.com/p/92fa3ec197d0</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[package]]></category>
            <dc:creator><![CDATA[Jean Luc Kabulu]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 22:01:01 GMT</pubDate>
            <atom:updated>2020-04-21T22:01:01.014Z</atom:updated>
            <content:encoded><![CDATA[<p>Dart has more packages than Flutter in Mobile development. Let’s learn them here!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*zHrsBua8I6Z7l1Iu.jpg" /><figcaption>pub.dev</figcaption></figure><h3>1.system_info</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3cpEhUajiR9QRtJnM_0Hw.png" /></figure><p><em>Dart can get information about the Operating System (OS).</em></p><ul><li><strong><em>SysInfo.operatingSystemName</em></strong><em> </em>: shows the Operating Systems Name</li><li><strong><em>SysInfo.userName</em></strong><em> </em>: User name</li><li>…</li></ul><p><a href="https://pub.dev/packages/system_info#-readme-tab-">system_info | Dart Package</a></p><h3>2. Path</h3><p><em>It helps manipulating folder &amp; file path</em></p><ul><li><strong>path</strong> package is very useful because every Operating system has different path delimiter</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PTCL3Vng642A1rYKc77ZLA.png" /></figure><p><a href="https://pub.dev/packages/path">path | Dart Package</a></p><h3>3. string_scanner</h3><p>This package exposes a StringScanner type that makes it easy to parse a string using a series of Patterns. For example:crypto</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*un2WRyz5qYdMCqTtBezplw.png" /></figure><p><a href="https://pub.dev/packages/string_scanner#-readme-tab-">string_scanner | Dart Package</a></p><h3>4. crypto</h3><p>Cryptographic hashing functions for Dart<br>A set of cryptographic hashing functions implemented in pure Dart</p><p>To hash a list of bytes, invoke the <a href="https://www.dartdocs.org/documentation/crypto/latest/crypto/Hash/convert.html">convert</a> method on the <a href="https://www.dartdocs.org/documentation/crypto/latest/crypto/sha1.html">sha1</a>, <a href="https://www.dartdocs.org/documentation/crypto/latest/crypto/sha256.html">sha256</a> or <a href="https://www.dartdocs.org/documentation/crypto/latest/crypto/md5.html">md5</a> objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7UoTZeVOXYbvpJGpWzeDdA.png" /></figure><p>Photo by Pete Pedroza on UnsplashThe following hashing algorithms are supported:</p><ul><li>SHA-1</li><li>SHA-224</li><li>SHA-256</li><li>basic_utilsSHA-384</li><li>SHA-512</li><li>MD5</li><li>HMAC (i.e. HMAC-MD5, HMAC-SHA1, HMAC-SHA256)</li></ul><p><a href="https://pub.dev/packages/crypto">crypto | Dart package</a></p><h3>5. basic_utils</h3><p>A dart package for many helper methods fitting different situations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZ3qe2q9Bi-SKRjD-MH5kQ.png" /></figure><p>The package contains different classes. Each class contains methods that provide a solution for certain problems.</p><ul><li><a href="https://pub.dev/packages/basic_utils#stringutils">StringUtils</a></li><li><a href="https://pub.dev/packages/basic_utils#domainutils">DomainUtils</a></li><li><a href="https://pub.dev/packages/basic_utils#emailutils">EmailUtils</a></li><li><a href="https://pub.dev/packages/basic_utils#mathutils">MathUtils</a></li><li><a href="https://pub.dev/packages/basic_utils#httputils">HttpUtils</a></li><li><a href="https://pub.dev/packages/basic_utils#dnsutils">DnsUtils</a></li><li><a href="https://pub.dev/packages/basic_utils#sortutils">SortUtils</a></li><li><a href="https://pub.dev/packages/basic_utils#colorutils">ColorUtils</a></li><li><a href="https://pub.dev/packages/basic_utils#dateutils">DateUtils</a></li><li><a href="https://pub.dev/packages/basic_utils#x509utils">X509Utils</a></li><li><a href="https://pub.dev/packages/basic_utils#iterableutils">IterableUtils</a></li><li><a href="https://pub.dev/packages/basic_utils#cryptoutils">CryptoUtils</a></li></ul><p><a href="https://pub.dev/packages/basic_utils#-readme-tab-">basic_utils | Dart Package</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dtMuP9CuWd7MbW_H" /><figcaption>Photo by <a href="https://unsplash.com/@peet818?utm_source=medium&amp;utm_medium=referral">Pete Pedroza</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Photo by Pete Pedroza on UnsplashPhoto by Pete Pedroza on Unsplash</p><p><a href="https://www.twitter.com/FlutterComm">https://www.twitter.com/FlutterComm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92fa3ec197d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/5-useful-dart-packages-92fa3ec197d0">5 Useful Dart Packages</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Simple CLI Calculator App in Dart]]></title>
            <link>https://medium.com/flutter-community/building-a-simple-cli-calculator-app-in-dart-a1f7e0f55338?source=rss-2888c3c5058a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1f7e0f55338</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Jean Luc Kabulu]]></dc:creator>
            <pubDate>Mon, 20 Apr 2020 16:01:01 GMT</pubDate>
            <atom:updated>2020-04-20T16:01:01.476Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*xG9xXWMPsKa-lBjd" /><figcaption>Photo by <a href="https://unsplash.com/@prairiedog">AS</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This article assumes you know a little bit about the basics of Dart, like how to set up classes and their instance fields and methods. There are also some constraints and improvements we could add to this app, discussed in the <em>Limitations and Improvements</em> section.</p><p>Topics covered in this article are:</p><ul><li>Composing basic app setup (public class, constructor, etc.)</li><li>Creating basic mathematical functions in Dart</li><li>Receive input from User</li><li>Conditionals and switch statements</li><li>The basics of typecasting</li><li>Implementing recursion</li></ul><p>You can follow along with the repo here:</p><p><a href="https://github.com/jeanluc243/dart-calculator.git">https://github.com/jeanluc243/dart-calculator</a></p><h3>Setting up the Basics</h3><p>This app gets input from a user, and we’ll need the Stdin class to accept this input. At the top of our file, we’ll import it.</p><p>import &#39;dart:io&#39;;</p><p>The next thing we’ll do is set up the skeleton of our app. First, we’ll create a public class, naming it Calc. This class will use two numbers for calculations, instance fields we can define as num1 and num2. The datatypes for both of these will be doubles, so we can add both whole and fractionated numbers. This is also needed for the exponentiate function, explained later.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce578c1aa6df1be267f066d51847fe14/href">https://medium.com/media/ce578c1aa6df1be267f066d51847fe14/href</a></iframe><p>The … represents the code we’ll write in the future.</p><p>The next thing we’ll do is make the constructor method. All this is going to take is take two numbers and set them as our instance fields.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7711950e621b4654e691e70d05042b9d/href">https://medium.com/media/7711950e621b4654e691e70d05042b9d/href</a></iframe><p>To finish up the skeleton, we’ll make the main method, which we’ll leave empty for now.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/08284c4152c0652ead9399a2ba0bea5f/href">https://medium.com/media/08284c4152c0652ead9399a2ba0bea5f/href</a></iframe><p>It’s good to get all the basics done first, even if we’re not filling them in right away.</p><p>Now that we’ve got the edifice for our app, we can get to the fun stuff, building out the functionality.</p><h3>Addition, Subtraction, Multiplication, Division</h3><p>All of these functions are pretty simple and have the same structure.</p><p>Basically, all we do is take the first number and put it on the left side of the operator, while the second number goes on the right side of the operator. We return the resulting value:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e1cb2d0264351416ed3f570ac57a15a3/href">https://medium.com/media/e1cb2d0264351416ed3f570ac57a15a3/href</a></iframe><p>Basic math functions.</p><h3>Exponentiation</h3><p>This function will raise the first number to the second number’s power. There’s no built-in operator for this, as opposed to other languages like JavaScript. Because of that, we have to utilize the Math lib pow function. It takes two arguments: the first being the base, and the second being the exponent. It’s basically the call of other functions we wrote already.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9a00bd0ef216cc120f1dac8f96d52668/href">https://medium.com/media/9a00bd0ef216cc120f1dac8f96d52668/href</a></iframe><p>We’re also using an example of typecasting here. There’s a lot more to it than this, but basically it allows conversion between data types. By writing our desired datatype in parentheses, we tell Dart to process whatever it’s going to process, then take the value and convert it to the datatype.</p><p>The reason we’re using typecasting, in this case, is to account for large numbers that result from exponents. The double data type can only account to numbers up to a certain degree, while long can account for more.</p><h3>Using Stdin to Enhance the User experience</h3><p>Now that we’ve made the mathematical functions, we need some way to receive input from a user. Also, we should try to make it easy to exit this program any time input can be provided, so users don’t have to do something sloppy like Ctrl+C. A scanner can solve both these problems.</p><p>Earlier, we imported dart:io into this app. I’m not too familiar with it myself, but the documentation is easily available and we don’t need to know the world about it for an app like this.</p><p>Using Stdin is like using any other class. First, we’ll make a new instance of it like so:</p><p>String Input = stdin.readLineSync(encoding: Encoding.getByName(&#39;utf-8&#39;)) ;</p><p>Then, we’ll set up another variable in the meantime named firstNum, a double. This will store the first number a user inputs. For now, we’ll just set its default value to 0.0. This helps us avoid initialization issues we might come across (refactoring the code could also help get around this issue).</p><p>double firstNum = 0.0;</p><p>Next, we’ll use a conditional to assess the user’s input.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9bfec793c3592a1a3747c7d68f75acab/href">https://medium.com/media/9bfec793c3592a1a3747c7d68f75acab/href</a></iframe><p>This basically says “If the user typed exit, abort the program. If not, convert the user’s input to a double value and assign it to firstNum. Use double.parse() to convert a value into a double.</p><p>We can apply this exact same logic for the second number. For simplicity’s sake, this is repeated in the file, but could easily be made more DRY by taking this functionality and consolidating it in a helper function.</p><p>Finally, we’ll assess what mathematical function the user wants to perform on the two numbers, saving the user input as string as a variable called operator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5hNluMTP3nq7AkNGObCuw.png" /><figcaption>This gist was too big to fit in a gist on Medium.</figcaption></figure><p>You’ll notice that we also account for the user deciding to exit at this point, or if an unrecognized input is received, via the default case.</p><p>At this point, we’d normally close the scanner since we’re done using it. However, this causes issues when we introduce recursive functionality, so we won’t close it. Doing so causes a resource leak, discussed further in the Limitations and Improvements section.</p><p>In the switch statement, there’s a function we haven’t talked about yet, backToMainMenu(). This is the recursive part of our app. When run, we’ll start the whole input process over. What’s the body of this function look like? It’s really simple, but to explain it, we’ll have to discuss how every part of this app comes together.</p><h3>Bringing together the whole thing</h3><p>So far, we’ve built pretty much everything this app needs. For the final touches, we should build out messages the user can see so they know what to input and when. That’s relatively simple though, so I won’t cover that here.</p><p>Imagine we’ve done that and are now ready to run the app. Instead of bogging main down with all that logic, why don’t we put the whole thing in a function? I was tired by this point, so rather than naming it something appropriate, I just named it wholeThing(), but it gets the point across enough.</p><p>By providing wholeThing() with all of our logic, calling it in main looks a lot cleaner, and makes it easier for us to recurse. As we saw in the switch statement, when an operator is given we run the backToMainMenu() function. Let’s explore the body of it:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9d3459ae391de225f0021f576f4f2566/href">https://medium.com/media/9d3459ae391de225f0021f576f4f2566/href</a></iframe><p>All this method does is call wholeThing, which will reset app functionality.</p><p>Super simple. All we do is give a message to the user and then run the whole thing again. This means that if the user gives the right inputs, this thing could go on forever. Good thing we gave them the option to exit.</p><p>With that, we’ve built the whole calculator. There are some things that could be refactored or made better, which we’ll touch upon in the next section.</p><p>Extremely thanks to <a href="https://medium.com/u/f28ebaffdb32">Matt Cummings</a> for this article in Java :</p><p><a href="https://medium.com/swlh/building-a-simple-cli-calculator-app-in-java-4a2de3484284">Building a Simple CLI Calculator App in Java</a></p><h3>Conclusion</h3><p>In this article, we’ve discussed how to set up a basic CLI calculator with helpful features such as display messages and recursion to benefit the user experience. We discussed the use of the Stdin class to receive user input along with the use of conditionals and switch cases to handle this input. There are some issues with this code that were discussed along with solutions to those issues that can be implemented.</p><p>While this is a simple app, we’ve gone over a decent amount of stuff! It’s a great exercise for those just starting out in Dart, so have fun, and happy coding.</p><p>You can write to me here :</p><ul><li><a href="https://twitter.com/JeanlucKabulu">Jean Luc kabulu ⚡️💙 (@JeanlucKabulu) | Twitter</a></li><li><a href="https://www.twitter.com/FlutterComm">JavaScript is not available.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1f7e0f55338" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/building-a-simple-cli-calculator-app-in-dart-a1f7e0f55338">Building a Simple CLI Calculator App in Dart</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Genymotion Emulator with Flutter (in VS Code)]]></title>
            <link>https://medium.com/msp-central-africa/genymotion-emulator-with-flutter-in-vs-code-311ed5de47ae?source=rss-2888c3c5058a------2</link>
            <guid isPermaLink="false">https://medium.com/p/311ed5de47ae</guid>
            <category><![CDATA[genymotion]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter-community]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Jean Luc Kabulu]]></dc:creator>
            <pubDate>Tue, 25 Feb 2020 04:06:46 GMT</pubDate>
            <atom:updated>2020-02-25T04:06:46.349Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xZpykEVHVSBkKbecIm_Nmg.png" /></figure><h4>Genymotion🕵‍♂️️?</h4><p>When we talk about emulators, we mainly expect to talk about “<strong>Android Studio”</strong>, personally I don’t like Android Studio because I find it heavy and slow under my computer which makes me less productive.</p><p>Funnily enough, I don’t think I’m the only one, if you agree, please feel free to applaud this article 😅️.</p><p><a href="https://stackoverflow.com/questions/48060286/android-studio-consumes-huge-amount-ram">Android Studio consumes huge amount RAM</a></p><p>for a long time I started looking for a better alternative and bingo I found “<strong>Genymotion” </strong>💌️.<br>It is lighter and more powerful than Android Studio Emulators</p><p><a href="https://www.genymotion.com/">Genymotion - Android Emulator in the Cloud and for PC &amp; Mac</a></p><p>You can <strong>download</strong> it for free on this link and follow all the installation process, sorry guys it’s not the purpose of this article show you how to install <strong>Genymotion Desktop :</strong></p><p><em>download link</em><strong><em> : https://www.genymotion.com/download/</em></strong></p><h4><em>“No Devices”</em></h4><p>So I had this problem where I was done with getting flutter working, VS Code was all set up but I kept on getting the <strong><em>“No Devices”</em></strong> message in the flutter bottom bar in the IDE, even though my <strong>Genymotion </strong>emulator was running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*65zNsDSutUlu9JdwXGbQjg.png" /><figcaption>no devices</figcaption></figure><p>So far I haven’t plugged in any devices but I managed to install Genymotion but why this error?</p><h4>The Cup of Solution</h4><p>I installed with success “<em>VS code”</em> and also Genymotion, I installed “<strong><em>Google Pixel XL”</em></strong> as Device.</p><p>The first thing to do is to launch Genymotion to launch its emulator, you should have the same interface as me.</p><p>1 . Open up <strong>Genymotion </strong>and go to the <strong>ADB Setting</strong> section.</p><p>2. Change ADB to <strong><em>“Use custom Android SDK tools”</em></strong>, set the SDK location to where your SDK is (in my case it’s at <strong><em>“</em>/home/jeanluckabulu/Android/Sdk<em>”</em></strong>).</p><p><em>Make sure the tick mark (</em><strong><em>“This folder is valid”</em></strong><em>) is displayed.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PWz2lx1Y269S6MSpzVFORQ.png" /></figure><p>3. Close the settings box.</p><p>4. Now reload your <strong>“VS Code”</strong> IDE.</p><p>Run the application with <strong><em>“flutter run” </em></strong>in the terminal as usual<strong><em> </em></strong>or<strong><em> “VS code” </em></strong>and see the application running in the emulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJYjyEchPy4nhhNLKc_rcQ.png" /><figcaption>App is running inthe emulator</figcaption></figure><h4>article.finished()</h4><h3><em>I hope this article has helped you one way or another</em></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=311ed5de47ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/msp-central-africa/genymotion-emulator-with-flutter-in-vs-code-311ed5de47ae">Genymotion Emulator with Flutter (in VS Code)</a> was originally published in <a href="https://medium.com/msp-central-africa">Microsoft Student Partners Central Africa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DSCEsisalama Lead 2019–2020, My Experience Journal]]></title>
            <link>https://medium.com/@jeanluc.kabulu/dscesisalama-2019-2020-calendar-263d3856d1ee?source=rss-2888c3c5058a------2</link>
            <guid isPermaLink="false">https://medium.com/p/263d3856d1ee</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[africa]]></category>
            <category><![CDATA[cd]]></category>
            <dc:creator><![CDATA[Jean Luc Kabulu]]></dc:creator>
            <pubDate>Mon, 11 Nov 2019 20:48:13 GMT</pubDate>
            <atom:updated>2020-01-05T05:13:10.289Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIWtACNQZYhOOOuYtKsqpg.png" /><figcaption>DSC our Logo</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VIqOfEC397wPHXzq0t9XGg.jpeg" /><figcaption>“all you need, you have it in your hand”</figcaption></figure><p><em>this article is an evolutive article and will be updated regularly as it is a personal but public calendar to help all the </em><strong><em>DSC</em></strong><em> in the world or all the community leads.</em></p><p><strong><em>to be notified of each update, write to me by email or in a comment like that, I will remind you .</em></strong></p><p><strong><em>jeanluc.kabulu@gmail.com</em></strong></p><p>🙌 I also keep thanking <a href="https://medium.com/u/aaa1fed5b491">Auwal MS</a>, our regional DSC Lead, who gave me the idea to write this article.</p><h3><strong>June 15, 2019</strong></h3><p>on June 15, 2019, on the eve of the closing of the DSC registration, I had registered with this video :</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMVnZs3zy9Ec%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DMVnZs3zy9Ec&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FMVnZs3zy9Ec%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/b11a43755def38390ff4107af3970a9f/href">https://medium.com/media/b11a43755def38390ff4107af3970a9f/href</a></iframe><h3><strong>Between September 10 and 14, I was in Accra for the DSC Summit</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*P0w2b9fN3djdW9ZqKpezrA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AUzVZox6_DQtBFMr1G4_1w.jpeg" /><figcaption>The left picture with <a href="https://medium.com/u/df2718a158b">Erica Hanson</a> — — DevFest Acrra, Speaking about Flutter Package</figcaption></figure><h3>Septembre 25, 2019</h3><p>one of the best things that ever happened to me was to join the @flutter-community and publish an article</p><p><a href="https://medium.com/flutter-community/execute-only-dart-code-after-installing-flutter-e05ea9b46627">Execute Only Dart Code After Installing Flutter</a></p><h3><strong>On October 12 we organized MLh Local Hack Day Learn</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*GHhpGWC8cXoaIqXmRmtiew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*_qL5NU_aiLBTtAd89fCLPA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*5rtRg2LMLKzaAIKJx32Wog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*p-GAdQFPZJvbtnKrQMTSOg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*zZJE-JsEi7uxLtCBx98sxQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*uvaeUTE0ymV_E4oe7noOMQ.jpeg" /><figcaption>posters</figcaption></figure><p>and during at least 12 hours we learned a lot and gathered more than 50 people.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L_naBZJuDhfMo1VWZZSo4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIaX4eTOtkg6YxkjxIt8kQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wS9T6QqyqyKUUUQU6a2mKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NQFA3zoJxsGtZgzhFph9dg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BwK-NNhhiQTaCecsZZvjDA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yzp5YPKBWHELNrn9NK_LGA.jpeg" /><figcaption>MLH Experience</figcaption></figure><p>photos are here 🖼</p><p><a href="https://photos.app.goo.gl/5XG6n3kKcgbrpNcz9">#MLHRDC</a></p><p>Special Article for this is Here</p><p><a href="https://medium.com/@jeanluc.kabulu/our-first-local-hack-day-in-lubumbashi-4f67889086a7">Our first Local Hack Day in Lubumbashi 🇨🇩</a></p><h3>November 3, 2019</h3><p>A bit of a holiday doesn’t kill anyone with a local freelance team😎.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wthOl3mWg0GSaDHIYbTLAg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*oY4NUd-Ofq7XFASd0VoEjQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2pkWTMHDRj1pJbBiRjl3JA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pLnIt4TIVCiddf4daL3fOw.jpeg" /></figure><h3>November 4, 2019</h3><p>it’s one of the best days as a DSC</p><p>we launched the activities of the DSC in front of more <strong>than 500 students</strong>, the majority of them are new to CS, during 1-hour break we were able to create this experience with the help of my team 🏉.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*22ZSmqDKw7DkyJEKLGfUNw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sFAjWvnMzgv8BzKj-tov1w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2rhP4BkkKhBLtSZF6N9Y6g.jpeg" /><figcaption>👏👏👏👏</figcaption></figure><p>photos are here 🖼</p><p><a href="https://photos.app.goo.gl/LjFrnddCCp246Cc77">Open Day 2019-2020</a></p><h3>November 9, 2019</h3><p>we had a meeting with all those who wanted to become members of our different clubs in Salama and we explained our missions and objectives for our year 2019–2020</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qvpFXtT97qFm0HSsaOH5Gg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8QQJgFbARpNl-f9rQOkQ4g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*znm0z9CUirP1qFk39rRezg.jpeg" /></figure><p>photos are here 🖼</p><p><a href="https://photos.app.goo.gl/6uTFyWTuLF2QdQCn6">Clubs Info Session</a></p><p><strong>As a DSc, here is my List of events in preparation</strong></p><h3>November 16, 2019</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*ST_p7Ugz9GX9Rk7_" /></figure><h3>November 16, 2019</h3><h4>since this is the first time that DSC is in my country, I want next year that there will be as many DSCs as in Kenya or Nigeria</h4><h4>then we have DSC evangelization missions in universities in my city and country to encourage them to apply next year</h4><p>Evangelization DSC at ISP Lubumbashi, a university in my city</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*RrFUOEuBluQY_QYb" /><figcaption>Institut Superieur de Lubumbashi</figcaption></figure><h3>November 19, 2019</h3><p>Evangelization DSC at UNH, a university in my city</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*fvlEUMh87Vl_joWD" /><figcaption>universite nouveaux horizons</figcaption></figure><h3>November 25 — 26 — 28, 2019</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/0*3B3wRHSwb3CBtbVd" /></figure><h3>November 30, 2019</h3><p>Kotlin Night</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oOQxZhxk7ThHwOJ4xuAJNg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MieAZ_aSVZQfN3SdwxNokg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JjYzQaz6CT9F44t-fHKieA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JoyFCgYBn3Y7r0XfdRb8EQ.jpeg" /></figure><p>pictures are here :</p><p><a href="https://photos.app.goo.gl/KZJZjZbXRZ6tLgrUA">Kotlin Night 2019</a></p><h3>December 07, 2019</h3><p>MLH : Local Hack Day : Build Step</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Stfi2SN-QvB6ua-Sy9saGw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_XfHgpTUd7ef_r8A3t8pg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VUvXkoOW0O9lJi9-IQASCQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EV0fJNpA2RkoKGkwzGPXgQ.jpeg" /><figcaption>MLH , the Only One at Lubumbashi</figcaption></figure><p>more pictures , here :</p><p><a href="https://photos.app.goo.gl/7ZK1VrTADUsPNJ358">MLH Local Hack Day Build</a></p><h3>December 14, 2019</h3><p>Flutter Interact Party</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kjfnLUTfYXXOa2QSOZACww.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FPCrpkOzp1WM3qJZ-0ZugA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FVol5IcZ7tZNzNEvdneEHw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U7PHgq6FaFKfVHMpUgbtPg.jpeg" /></figure><p>more picture here:</p><p><a href="https://photos.app.goo.gl/pxBBxYb1CSrSN9oX6">Flutter Interact LUBUMBASHI</a></p><p>We stop first in 2019, and we can modify this article at any time.</p><p>I am Jean Luc KABULU from Lubumbashi and I am DSC and don’t forget to applaud if you like</p><p><a href="https://twitter.com/JeanlucKabulu/media">https://twitter.com/jeanluckabul</a>u</p><p><a href="https://www.youtube.com/channel/UCO_DLUQ_t5hlQJaowtO7nyQ?view_as=subscriber">jeanluc kabulu</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=263d3856d1ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Our first Local Hack Day in Lubumbashi ]]></title>
            <link>https://medium.com/@jeanluc.kabulu/our-first-local-hack-day-in-lubumbashi-4f67889086a7?source=rss-2888c3c5058a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f67889086a7</guid>
            <category><![CDATA[congo]]></category>
            <category><![CDATA[mlh]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[build-something]]></category>
            <dc:creator><![CDATA[Jean Luc Kabulu]]></dc:creator>
            <pubDate>Sun, 27 Oct 2019 01:57:25 GMT</pubDate>
            <atom:updated>2019-10-27T08:39:26.044Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Lubumbashi is a city in the Democratic Republic of the Congo</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*82MOKH-L4P3AUfB9" /><figcaption>Saturday, Oct 12, 2019</figcaption></figure><h3>MLH? 🤔</h3><p>MLH’s Local Hack Day, a global hackathon, is a celebration of learning, building, and sharing! This is the fifth year that MLH is organizing the local hacking day.</p><p><a href="https://localhackday.mlh.io/">Local Hack Day 2022</a></p><h3>Heroes 🦸‍♀️</h3><p>The MLH Local Hack Day at Esis Salama (my University 🏫) has been successfully organized and this is the first time this is happening in the DRC 🇨🇩. This is an initiative of a group of student volunteers ( <a href="https://medium.com/u/2888c3c5058a">Jean Luc Kabulu</a> “ Developer Student Clubs Lead ”, <a href="https://medium.com/u/cc5dac98208e">Dan Kyungu</a> “ Microsoft student partner Lead”, <a href="https://medium.com/u/b81e4ca2d300">Eric Ampire</a> “Kotlin Lubumbashi User Group Lead” , <a href="https://medium.com/u/38d0644d90f2">Nathan Bangwa</a> “Microsoft student partner”, and with great support from a teacher: <a href="https://medium.com/u/35126da7c76b">Eddysha Jabulani</a> “Microsoft Certified Trainer) to help people to learn to program by creating useful micro-products. The motto is — Build to learn and learn to build. It was only an aptitude for them to collaborate with Hack to Learn volunteers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*3P3Y61JrNo5s1F9W" /><figcaption><a href="https://medium.com/u/38d0644d90f2">Nathan Bangwa</a>, <a href="https://medium.com/u/35126da7c76b">Eddysha Jabulani</a>, <a href="https://medium.com/u/b81e4ca2d300">Eric Ampire</a>, <a href="https://medium.com/u/cc5dac98208e">Dan Kyungu</a>, and <a href="https://medium.com/u/2888c3c5058a">Jean Luc Kabulu</a> (me 🤩)</figcaption></figure><h3>achievements<strong> </strong>🏗</h3><p>What did we learn at this event?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*0GkkeCxzGN-KwhOi" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*NLMas360uW-d_tV_" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*2LKhkjv1j6e0zobr" /></figure><h4>Here’s basically what we’ve learned and from our mentors</h4><ol><li>The importance of learning, building, and sharing : by <a href="https://medium.com/u/2888c3c5058a">Jean Luc Kabulu</a></li></ol><p>2. How to collaborate with Github: by <a href="https://medium.com/u/b81e4ca2d300">Eric Ampire</a></p><p>3. Send SMS and Phone Call with Twilio with C#: by <a href="https://medium.com/u/cc5dac98208e">Dan Kyungu</a></p><p>4. The Python Basics for AI: by <a href="https://medium.com/u/38d0644d90f2">Nathan Bangwa</a></p><h3><strong>PRICE </strong>🏆</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F12380630&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fviralhog-grandma-dance-back-pack-dance-funny-the-floss-dance-gif-12380630&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fimages%2F35f9e0f0421674736161a40f1ff3e21e%2Ftenor.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/a48f895757253cf32c9c268e87f8ddb8/href">https://medium.com/media/a48f895757253cf32c9c268e87f8ddb8/href</a></iframe><p>❤️❤️❤️ <strong>HACKERS LOVE STICKERS 😍😍😍😍</strong></p><p>📜📜 📜 <strong>INTERNATIONAL CERTIFICATES OF PARTICIPATION</strong> 📜📜📜</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*lv1Zo5-Hzlsv9pqg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/0*l_PdrLlUQemjAWsf" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/0*FSbbgPA5nXhqOjW5" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/0*kgt-z2WY8rLvZb10" /></figure><h3>PHOTOS 🖼</h3><p><a href="https://photos.app.goo.gl/5XG6n3kKcgbrpNcz9">#MLHRDC</a></p><h3><strong>TWITTER WALL </strong>🐦</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdocs.google.com%2Fdocument%2Fd%2F1zeU_b3W4_Vs0tf-hMX3gpDYZ4xX9nuxg8qepn6QLT8g%2Fedit%3Fusp%3Dsharing&amp;url=https%3A%2F%2Fdocs.google.com%2Fdocument%2Fd%2F1zeU_b3W4_Vs0tf-hMX3gpDYZ4xX9nuxg8qepn6QLT8g%2Fedit%3Fusp%3Dsharing&amp;image=https%3A%2F%2Flh5.googleusercontent.com%2F9Srkzi0V0rHAAZz4YclNMD0eYw9IWya-txZA0mwnEAr_IMdRZ1iIJMX0xz-hOse8vvFHCw%3Dw1200-h630-p&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=google" width="700" height="530" frameborder="0" scrolling="no"><a href="https://medium.com/media/960c7e4a079728bc96cf91dc1640a684/href">https://medium.com/media/960c7e4a079728bc96cf91dc1640a684/href</a></iframe><p>on this wall, this is the twitter accounts of most people that were at our MLH</p><h3>Thanks and see you Soon 🙌</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F5192198&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fvolvere-gif-5192198&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fimages%2F1ba67f22c54ae7ab494f43800fddd24c%2Fraw&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1b2a9102b2cb274bed05be93e098151/href">https://medium.com/media/b1b2a9102b2cb274bed05be93e098151/href</a></iframe><p>thank you for reading me, especially I write articles about my experience of programmers in my city so do not hesitate to follow me on Twitter to know me more otherwise we see well in December for another MLH</p><p>follow me 🦶</p><p><a href="https://twitter.com/JeanlucKabulu">https://twitter.com/JeanlucKabulu</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f67889086a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Execute Only Dart Code After Installing Flutter]]></title>
            <link>https://medium.com/flutter-community/execute-only-dart-code-after-installing-flutter-e05ea9b46627?source=rss-2888c3c5058a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e05ea9b46627</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Jean Luc Kabulu]]></dc:creator>
            <pubDate>Wed, 25 Sep 2019 20:10:41 GMT</pubDate>
            <atom:updated>2019-09-29T02:14:41.046Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rro97iWFZp8tueyUTWCARg.png" /></figure><p><em>I do not speak well English, my default language is French, so if there are small mistakes, let me know …</em></p><h3>Dart 🐦?</h3><p>Dart (originally called Dash4) is a web programming language developed by Google. Its original purpose is to replace JavaScript to become the new lingua franca of web development, however, the current focus of developers is that Dart code can be converted to JavaScript code compatible with all modern browsers, as well as multi-application development.</p><p>Dart can also be used for server-side programming as well as mobile application development (via the Flutter API).</p><p>And we will have to know that Dart has a long history … It was already almost dead and Flutter made he resuscitate from death</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*l6u9QwiC4f6jag9h2uxMww.png" /><figcaption>source: <a href="https://insights.stackoverflow.com/trends?tags=dart">https://insights.stackoverflow.com/trends?tags=dart</a></figcaption></figure><p>We see how Dart Evolves in time and more and more dart becomes one of the best languages to learn in 2019 see even 2020.</p><p><strong>No more blah blah, let’s get to the basics anyway </strong>🕺💃</p><p>⚠️<em>I am working on Linux Ubuntu 18.04</em></p><h3><strong>1. Install Flutter</strong></h3><p>obviously to be able to use flutter, you will have to install Flutter</p><p><a href="https://flutter.dev/docs/get-started/install">Install</a></p><p>And in the link above, it is largely well explained the steps of the installation …</p><h3>2. Locate Flutter Installation</h3><p>you have it installed … it’s good now, just find where you installed the Flutter project in your system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*_8P1JXBN19tPbUbeftV0vA.png" /><figcaption>here is the place where mine is settled calmly</figcaption></figure><h3>3. Add Dart to environment variables</h3><p>in the <strong>/home/</strong> folder of your Linux you would find the file .bashrc (in case you use Bash), and if you do not see this file you can create it.<br>And once in the open file, at the last line of the file add the code that follows, obviously by moving against the location of flutter and then add the path to flutter :</p><ul><li><strong>export PATH=”$PATH:/path/to/flutter/bin/cache/dart-sdk/bin/”</strong></li><li>and launch a new terminal</li></ul><h3>4. Rejoice in dart simply</h3><p>And then write in your terminal: “dart” and then press tab, you will have to see the same thing as me anyway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*qIehFyU81QArIdm0i4msuA.png" /><figcaption>my terminal</figcaption></figure><h3>5. Hello world</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5JT0VnyscWZ5PGuxJWqZQ.png" /><figcaption>hello world in dart code</figcaption></figure><p>After having our code hello world, we will run it from the terminal as in the good old days … 😄</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*phd-pl5CJEToXupIzc1pTw.png" /><figcaption>🎊🎊 our dear Dart is Alive 🎊🎊</figcaption></figure><h4>Thanks</h4><p>Thank you very much for reading me, I hope you liked the article … Without further ado, we read in the next article 😋😋😋😋…</p><p>Best.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e05ea9b46627" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/execute-only-dart-code-after-installing-flutter-e05ea9b46627">Execute Only Dart Code After Installing Flutter</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Django 2.2 : Vues basées sur les classes et vues basées sur les fonctions]]></title>
            <link>https://medium.com/espace-du-code/django-2-2-vues-bas%C3%A9es-sur-les-classes-et-vues-bas%C3%A9es-sur-les-fonctions-ccc4e7b0d5cd?source=rss-2888c3c5058a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccc4e7b0d5cd</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[francai]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[facile]]></category>
            <dc:creator><![CDATA[Jean Luc Kabulu]]></dc:creator>
            <pubDate>Thu, 04 Apr 2019 23:48:12 GMT</pubDate>
            <atom:updated>2019-04-07T06:08:15.621Z</atom:updated>
            <content:encoded><![CDATA[<h3>Django 2.2 : Vues basées sur les classes et vues basées sur les fonctions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NEPmhk9A6WdeLDJSNn9glQ.png" /></figure><p>On me demande souvent pourquoi je n’utilise pas les vues basées sur les classes plus fréquemment. Alors j’ai pensé à partager mes pensées sur ce sujet.</p><p>Avant de lire, gardez cela à l’esprit: <em>les vues basées sur les classes ne remplacent pas les vues basées sur les fonctions.</em></p><h4>Introduction</h4><p>Je ne suis pas un développeur Django de la vieille école qui l’utilisait lorsqu’il n’y avait que des vues fonctionnelles et observait la publication des vues basées sur les classes. Mais il fut un temps où seules les vues basées sur les fonctions existaient.</p><p>Je suppose qu’il n’a pas fallu longtemps avant que toutes sortes de solutions et de hacks soient créées pour étendre et réutiliser les vues, les rendre plus génériques.</p><p>Il fut un temps où <em>les vues génériques basées sur les fonctions</em> étaient une chose. Ils ont été créés pour traiter les cas d’utilisation courants. Mais le problème était qu’ils étaient assez simples et qu’il était très difficile de les étendre ou de les personnaliser (autre que l’utilisation de paramètres de configuration).</p><p>Pour résoudre ces problèmes, les vues basées sur les classes ont été créées.</p><p>Maintenant, les vues sont toujours des fonctions. Même les vues basées sur les classes.</p><p>Lorsque nous les ajoutons à l’URL conf à l’aide de la View.as_view()méthode class, une fonction est renvoyée.</p><p>Voici à quoi as_viewressemble la méthode:</p><pre><strong>class</strong> <strong>View</strong>:     <br>    @classonlymethod     <br>    <strong>def</strong> <strong>as_view</strong>(cls, <strong>**</strong>initkwargs):         <br>    &quot;&quot;&quot;Point d&#39;entrer pour la requete&quot;&quot;&quot;         </pre><pre><strong>        for</strong> key <strong>in</strong> initkwargs:<br>        <em># Code effacé pour la clarte<br></em>        <em># ...</em>          <br>    <br>        <strong>def</strong> <strong>view</strong>(request, <strong>*</strong>args, <strong>**</strong>kwargs):             <br>            self <strong>=</strong> cls(<strong>**</strong>initkwargs)             <br>            <strong>if</strong> hasattr(self, &#39;get&#39;) <strong>and</strong> <strong>not</strong> hasattr(self, &#39;head&#39;):                                  <br>    <br>            self<strong>.</strong>head <strong>=</strong> self<strong>.</strong>get             <br>            self<strong>.</strong>request <strong>=</strong> request             <br>            self<strong>.</strong>args <strong>=</strong> args             <br>            self<strong>.</strong>kwargs <strong>=</strong> kwargs             <br>            <strong>return</strong> self<strong>.</strong>dispatch(request, <strong>*</strong>args, <strong>**</strong>kwargs)          <br>       <em># code efface pour la clarte</em>         <br>       <em># ...</em>          <br>     <strong>return</strong> view</pre><p>Certaines parties du code ont été omises pour plus de clarté.</p><p>Donc, si vous voulez appeler explicitement une vue basée sur les classes, voici ce que vous devez faire:</p><pre><strong>return</strong> MyView<strong>.</strong>as_view()(request)</pre><p>Pour que cela paraisse plus naturel, vous pouvez l’affecter à une variable:</p><pre>view_function <strong>=</strong> MyView<strong>.</strong>as_view() <br><strong>return</strong> view_function(request)</pre><p>La fonction de vue renvoyée par la as_view()méthode est la partie externe de chaque vue basée sur les classes. Après l&#39;appel, la vue transmet la demande à la dispatch()méthode, qui exécutera la méthode appropriée en fonction du type de demande ( <strong>GET</strong> , <strong>POST</strong> , <strong>PUT</strong> , etc.).</p><p>Exemple de vue basée sur la classe</p><p>Par exemple, si vous avez créé une vue étendant la django.views.Viewclasse de base, la dispatch()méthode gérera la logique de la méthode HTTP. Si la demande est un <strong>POST</strong> , il exécutera la post()méthode dans la vue. Si la demande est un <strong>GET</strong> , il exécutera la get()méthode dans la vue.</p><p><strong>views.py</strong></p><pre>from django.views import View  </pre><pre><strong>class</strong> <strong>ContactView</strong>(View):     <br>    <strong>def</strong> <strong>get</strong>(self, request):         <br>        <em># block de code pour la requete GET</em><br>    <strong>def</strong> <strong>post</strong>(self, request):         <br>        <em># block de code pour la requete GET</em></pre><p><strong>urls.py</strong></p><pre>urlpatterns <strong>=</strong> [     <br>    url(https://medium.com/r&#39;contact/r&#39;contact/$&#39;, views<strong>.</strong>ContactView<strong>.</strong>as_view(#39;,%20views%3Cstrong%3E.%3C/strong%3EContactView%3Cstrong%3E.%3C/strong%3Eas_view(), name<strong>=</strong>&#39;contact&#39;), ]</pre><h4>Exemple de vue basée sur les fonctions</h4><p>Dans les vues fonctionnelles, cette logique est gérée avec les instructions if:</p><p><strong>views.py</strong></p><pre><strong>def</strong> <strong>contact</strong>(request):     <br>    <strong>if</strong> request<strong>.</strong>method <strong>==</strong> &#39;POST&#39;:         <br>        # bloc de code pour la requete POST<br>    <strong>else</strong>:   <br>        # Bloc de code pour la requete GET (PUT, HEAD, DELETE, etc)</pre><p><strong>urls.py</strong></p><pre>urlpatterns <strong>=</strong> [     <br>    url(https://medium.com/r&#39;contact/r&#39;contact/$&#39;, views<strong>.</strong>contact, name<strong>=</strong>&#39;contact&#39;#39;,%20views%3Cstrong%3E.%3C/strong%3Econtact,%20name%3Cstrong%3E=%3C/strong%3E&#39;contact&#39;), <br>]</pre><p>Ce sont les principales différences entre les vues basées sur les fonctions et les vues basées sur les classes. Maintenant, les <em>vues génériques basées sur les classes de</em> Django sont une autre histoire.</p><h4>Vues génériques basées sur les classes</h4><p>Les vues génériques basées sur les classes ont été introduites pour traiter les cas d’utilisation courants dans une application Web, telles que la création de nouveaux objets, la gestion de formulaires, les vues de liste, la pagination, les vues d’archives, etc.</p><p>Ils viennent dans le noyau Django, et vous pouvez les implémenter à partir du module django.views.generic.</p><p>Ils sont excellents et peuvent accélérer le processus de développement.</p><p>Voici un aperçu des vues disponibles:</p><p>Vues génériques simples</p><ul><li>Vue</li><li>TemplateView</li><li>RedirectView</li></ul><p>Vues détaillées</p><ul><li>DetailView</li></ul><p>Lister les vues</p><ul><li>ListView</li></ul><p>Modification de vues</p><ul><li>FormView</li><li>CreateView</li><li>UpdateView</li><li>DeleteView</li></ul><p>Vues basées sur la date</p><ul><li>ArchiveIndexView</li><li>YearArchiveView</li><li>MonthArchiveView</li><li>WeekArchiveView</li><li>DayArchiveView</li><li>TodayArchiveView</li><li>DateDetailView</li></ul><p>Vous pouvez trouver plus de détails sur chaque implémentation dans la documentation officielle: <a href="https://docs.djangoproject.com/en/1.10/ref/class-based-views/">API intégrée aux vues basées sur les classes</a> .</p><p>Je trouve cela un peu déroutant, car les implémentations génériques utilisent beaucoup de mixins, donc au moins pour moi, le flux de code n’est parfois pas très évident.</p><p>Voici maintenant une excellente ressource, également issue de la documentation Django, un index aplati contenant tous les attributs et méthodes de chaque vue: <a href="https://docs.djangoproject.com/en/1.10/ref/class-based-views/flattened-index/">Vues génériques basées sur des classes — index aplati</a> . Je garde celui-ci dans mes favoris.</p><h3>Les différentes écoles de vues Django</h3><p><strong>Ecole de “Utiliser toutes les vues génériques”! </strong><br>Cette école de pensée est basée sur l’idée que, puisque Django fournit une fonctionnalité permettant de réduire votre charge de travail, pourquoi ne pas utiliser cette fonctionnalité? Nous avons tendance à appartenir à cette école de pensée et nous en avons fait un grand succès en construisant rapidement puis en maintenant un certain nombre de projets.</p><p><strong>Ecole de “Il suffit d’utiliser django.views.generic.View”</strong><br>Cette école de pensée est basée sur l’idée que la base Django CBV en fait juste assez et qu’elle est “le True CBV, tout le reste est un CBV générique”. Au cours de la dernière année, nous avons constaté que cette approche pouvait s’avérer très utile pour les tâches complexes pour lesquelles l’approche basée sur les ressources consistant à «Utiliser toutes les vues» échoue. Nous couvrirons quelques cas d’utilisation pour cela dans ce chapitre.</p><p><strong>École de « Évitez les à moins que vous êtes en train de vues sous — classement »</strong><br>dit Jacob Kaplan-Moss, « Mon conseil général est de commencer avec vue sur la fonction , car ils sont plus faciles à lire et à comprendre, et utiliser uniquement CBV où vous en avez besoin. Où avez-vous besoin d’eux? N’importe quel endroit où vous avez besoin d’une bonne quantité de code pour pouvoir être réutilisé entre plusieurs vues. ”</p><p>Les auteurs disent dans le livre qu’ils sont à la première école. Personnellement, je suis à la troisième école. Mais comme ils l’ont dit, il n’y a pas de consensus sur les meilleures pratiques.</p><h4>Avantages et inconvénients</h4><p>À titre de référence, certains avantages et inconvénients des vues basées sur les fonctions et des vues basées sur les classes.</p><ol><li>Avantages Les inconvénients Vues basées sur les fonctions</li></ol><p><strong>Avantages</strong></p><ul><li>Simple à mettre en œuvre</li><li>Facile à lire</li><li>Flux de code explicite</li><li>Utilisation directe des décorateurs</li></ul><p><strong>Inconvenients</strong></p><ul><li>Difficile d’étendre et de réutiliser le code</li><li>Gestion des méthodes HTTP via la création de branches conditionnelles</li></ul><h3>Vues basées sur les classes</h3><ol><li><strong>Avantages</strong></li></ol><ul><li>Peut être facilement étendu, réutiliser le code</li><li>Peut utiliser des techniques OO telles que mixins (héritage multiple)</li><li>Traitement des méthodes HTTP par des méthodes de classe séparées</li><li>Vues génériques intégrées basées sur les classes</li></ul><p>2. <strong>Inconvenients</strong></p><ul><li>Plus difficile à lire</li><li>Flux de code implicite</li><li>Code caché dans les classes parentes, mixins</li><li>L’utilisation de décorateurs de vue nécessite une importation supplémentaire ou un remplacement de méthode</li></ul><p>Il n’y a pas de vrai ou de faux. Tout dépend du contexte et des besoins. Comme je l’ai mentionné au début de cet article, les vues basées sur les classes ne remplacent pas les vues basées sur les fonctions. Il y a des cas où les vues basées sur les fonctions sont meilleures. Dans d’autres cas, les vues basées sur les classes sont meilleures.</p><p>Par exemple, si vous implémentez une vue liste et que vous pouvez le faire fonctionner simplement en sous- ListViewclassant les attributs et en les redéfinissant. Génial. Fonce.</p><p>Désormais, si vous effectuez une opération plus complexe, gérant plusieurs formulaires à la fois, une vue basée sur les fonctions vous sera plus utile.</p><h4>Conclusions</h4><p>La raison pour laquelle j’utilise souvent des vues fonctionnelles dans mes exemples d’articles, c’est parce qu’elles sont beaucoup plus faciles à lire. Beaucoup de lecteurs qui tombent sur mon blog sont des débutants. Les vues basées sur les fonctions communiquent mieux, car le flux de code est explicite.</p><p>D’habitude, je commence toujours mes vues en tant que vues fonctionnelles. Si je peux utiliser une vue générique basée sur les classes simplement en surchargeant les attributs, j’y vais. Si j’ai des besoins très spécifiques et que la réplication s’effectue sur plusieurs vues, je crée ma propre vue générique personnalisée django.views.generic.View.</p><p>Maintenant, un conseil général tiré de la documentation de Django: <em>Si vous rencontrez des difficultés pour implémenter votre vue en tant que sous-classe d’une vue générique, il peut être plus efficace d’écrire uniquement le code dont vous avez besoin, en utilisant votre propre classe ou vues fonctionnelles.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccc4e7b0d5cd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/espace-du-code/django-2-2-vues-bas%C3%A9es-sur-les-classes-et-vues-bas%C3%A9es-sur-les-fonctions-ccc4e7b0d5cd">Django 2.2 : Vues basées sur les classes et vues basées sur les fonctions</a> was originally published in <a href="https://medium.com/espace-du-code">Espace Du Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Django 2.2 :Une petite Application pour debuter]]></title>
            <link>https://medium.com/espace-du-code/une-petite-application-pour-debuter-avec-python3-et-django-2-1-b710975f217a?source=rss-2888c3c5058a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b710975f217a</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[debutant]]></category>
            <category><![CDATA[simple]]></category>
            <category><![CDATA[francai]]></category>
            <category><![CDATA[django]]></category>
            <dc:creator><![CDATA[Jean Luc Kabulu]]></dc:creator>
            <pubDate>Thu, 04 Apr 2019 21:33:05 GMT</pubDate>
            <atom:updated>2019-04-04T21:59:16.843Z</atom:updated>
            <content:encoded><![CDATA[<h3>Django 2.2 :Une petite Application pour debuter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*32BnvkTXIYODKYf6nEPBkA.jpeg" /></figure><p>Dans cet article, je souhaite explorer certains des concepts de base de Django, en mettant en place une application Web minimale pour mieux comprendre le fonctionnement de Django sous le capot.</p><p>Un important avertissement avant de commencer, ce n’est pas un tutoriel sur la façon de démarrer une application Django, c’est plus une expérience exploratoire à des fins d’apprentissage.</p><h3><strong>introduction</strong></h3><p>Si vous lisez cet article, il y a de fortes chances que vous sachiez déjà que Django est un framework Web écrit en Python. Mais c’est une définition abstraite. En pratique, Django est un paquet Python qui réside dans le répertoire site-packages de votre installation Python actuelle. Cela signifie qu’il cohabite avec d’autres packages Python, tels que Requests, Pillow et NumPy.</p><p>Un moyen simple de vérifier une installation Django consiste à l’importer dans un shell Python:</p><pre>&gt;&gt;&gt; import django <br>&gt;&gt;&gt; print<strong>(</strong>django.get_version<strong>())</strong> <br>2.2</pre><p>Mais la façon dont nous interagissons avec Django est un peu différente de la façon dont nous interagissons avec d’autres packages Python. En général, nous ne l’importons pas directement dans nos programmes Python pour utiliser ses ressources.</p><p>Lorsque nous commençons à apprendre Django, on nous apprend qu’il faut démarrer un nouveau projet à l’aide de l’utilitaire de ligne de commande “<strong><em>django-admin”</em></strong> en exécutant la commande “<strong><em>startproject”</em></strong>.</p><p>`</p><p><em>&gt;&gt;&gt; print</em><strong><em>(</em></strong><em>django.get_version</em><strong><em>())</em></strong><em> 1.11.4</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b710975f217a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/espace-du-code/une-petite-application-pour-debuter-avec-python3-et-django-2-1-b710975f217a">Django 2.2 :Une petite Application pour debuter</a> was originally published in <a href="https://medium.com/espace-du-code">Espace Du Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Entrepreneur Africain]]></title>
            <link>https://medium.com/series/entrepreneur-africain-eb4ead7d6ae1?source=rss-2888c3c5058a------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb4ead7d6ae1</guid>
            <dc:creator><![CDATA[Jean Luc Kabulu]]></dc:creator>
            <pubDate>Thu, 28 Mar 2019 16:07:18 GMT</pubDate>
            <atom:updated>2019-03-28T16:07:18.376Z</atom:updated>
            <content:encoded><![CDATA[<p>En tant que Entrepreneur j’ai une histoire a raconter</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb4ead7d6ae1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>