<?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 Jenny Zalwango on Medium]]></title>
        <description><![CDATA[Stories by Jenny Zalwango on Medium]]></description>
        <link>https://medium.com/@jennyzalwango12?source=rss-76b18a86d22d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0CrJTU2ozOMu855qW3r8ZQ.jpeg</url>
            <title>Stories by Jenny Zalwango on Medium</title>
            <link>https://medium.com/@jennyzalwango12?source=rss-76b18a86d22d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:37:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jennyzalwango12/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Work smarter to Increase Your Productivity.]]></title>
            <link>https://medium.com/jennys-tech-blog/how-to-work-smarter-to-increase-your-productivity-39a9079d271a?source=rss-76b18a86d22d------2</link>
            <guid isPermaLink="false">https://medium.com/p/39a9079d271a</guid>
            <dc:creator><![CDATA[Jenny Zalwango]]></dc:creator>
            <pubDate>Thu, 25 Jun 2020 16:24:26 GMT</pubDate>
            <atom:updated>2020-07-24T08:00:41.967Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Increase Your Productivity by working Smartly.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a3NwFSGVqA2Wr-9r" /><figcaption>Photo by <a href="https://unsplash.com/@windows?utm_source=medium&amp;utm_medium=referral">Windows</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>“Either you run the day or the day runs you,” — Jim Rohn.</blockquote><p>You may be wondering if there is any difference between working smart and working hard. Well, the answer is YES. Working smart is all about time and efficiency, but working hard is mostly concerned with effort and endurance one puts into work.</p><p>In this article l am going to share some tips to help you hack productivity.</p><ol><li><strong>Get Organized</strong></li></ol><p>Getting organized is simple yet a highly effective tip. It includes assigning tasks and delegating authority. It also includes organizing yourself, your desk, and information that you need to get your goals accomplished. Once you are good at organizing yourself, you will say goodbye to searching through your inbox, files, and calendar.</p><p>2<strong>. Effective Time Management</strong></p><p>Now that you are saving time by getting yourself organized, you need to learn to manage that time. This is not something that one can master at once since it comes with practice and discipline. But there are several time management tools and tips you can look at. You can also use time tracking apps such as <a href="https://www.marinaratimer.com/">Pomodoro</a> which will save you a lot of time and help you become more productive.</p><p>3. <strong>Preparing Before Bed</strong></p><p>Sparing 10–20 minutes arranging tasks, tools, and data you would need for the next day will save you time and improve your workflow and productivity the next day. By doing this, your mornings will feel lighter since you wake up knowing where to start from and what problems need immediate attention hence the drive to tackle them.</p><p>4.<strong> Meditating in the morning before work</strong></p><p>There are days that come up when there is alot to be done and once you think of it all at once it instead gets overwhelming and sometimes morning can be tough. But, relaxing, thinking, and planning mentally plus clearing your mind in the morning will set you up for a successful day.</p><p>5. <strong>Setting workday goals</strong></p><p>This is something that is very important and once you understand why it works, alot of things will be automatically triggered for example behavior, sustenance of momentum, and focus. Once this becomes your habit at work or even in your day to day life you will notice growth and productivity</p><p>6. <strong>Learn to</strong> <strong>prioritize tasks</strong></p><p>Work can get overwhelming some times. Deadlines and tasks put us in a panic mode. But to avoid this, practicing prioritization of tasks will help alot. Creating a to-do list on a paper on any project management tool will help you increase productivity. Tasks may be alot but writing it all down and knowing what task is most imperative, and less imperative plus its impact will help organize and focus better.</p><p>7. <strong>Ask for Help</strong></p><p>l understand most of us always want to first dig deep into something but some times we still end up not achieving our goals. This ends up consuming a lot of time. So, whenever you are in a position to ask for help please do. Sometimes you need someone to help you figure it out then you continue. This will help you improve your productivity and also save time spent figuring out something.</p><p>8. <strong>Take care of your self</strong></p><p>This is something some of us forget to do, with all the loads of work and deadlines to meet. We end up forgetting ourselves. That is why l strongly advise that even when you have a lot of work always remember to take care of yourself. Have meals, take breaks, because once you are in a good and healthy state you will be more productive.</p><p>In a nutshell, working smart is a practice that comes with time and it is common that most people can be active but not productive. That is why some times we need to re-think what we do, how we do, and what we can change.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39a9079d271a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jennys-tech-blog/how-to-work-smarter-to-increase-your-productivity-39a9079d271a">How to Work smarter to Increase Your Productivity.</a> was originally published in <a href="https://medium.com/jennys-tech-blog">Jenny’s Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test Rails Applications With Ease Using Rspec.]]></title>
            <link>https://medium.com/jennys-tech-blog/test-rails-applications-with-ease-using-rspec-dbca18daa80?source=rss-76b18a86d22d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbca18daa80</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Jenny Zalwango]]></dc:creator>
            <pubDate>Fri, 17 Apr 2020 17:23:01 GMT</pubDate>
            <atom:updated>2020-04-17T17:23:01.769Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*flWFn4ZtqUj6_nBO" /><figcaption>Photo by <a href="https://unsplash.com/@cdr6934?utm_source=medium&amp;utm_medium=referral">Chris Ried</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Every Developer writes code but best and outstanding developers test their code, People usually ask what does it take to test Rails application. Honestly, this question gets harder if you are just a newbie to the framework or Technology used but worry not because all will be covered in here. First, let’s take a glance at some of the different frameworks that can be used when testing applications with rails.</p><ol><li><a href="https://blog.appsignal.com/2020/02/12/getting-started-with-system-tests-in-ruby-with-minitest.html">Minitest</a></li></ol><p>Minitest is a testing framework that supports Test Driven Development and Behaviour Driven Development approaches, it&#39;s actually the default testing framework for Rails and with it, you do not need to install any gems to the project. This makes it so easy to start testing your application.</p><p>2<a href="https://cucumber.netlify.app/docs/tools/ruby/">. Cucumber.</a></p><p>Cucumber is also a Behaviour Driven Development testing tool that uses the Gherkin language for writing test scenarios. You can learn more about it here Cucumber</p><p>3<a href="https://www.rubydoc.info/gems/factory_bot/FactoryBot">. FactoryBot</a></p><p>This is originally known as Factory Girl and it is a library that provides Factory methods that help you create and test fixtures. The fixture objects would be created on the fly or could be plain objects.</p><p>Now let’s talk about <a href="https://semaphoreci.com/community/tutorials/getting-started-with-rspec"><strong>Rspec</strong></a><strong> </strong>which is going to be our main focus today in this blog. Rspec is a testing tool for Ruby specifically created for Behaviour Driven Development. It is also the most frequent library used for testing in Ruby especially for applications that are in production.</p><p>There are different tests that can be written, so usually in your application, if you are following the MVC pattern you would want to test the models, Views and the controllers. In Rails, you will have Models Specs, Feature Specs, View Specs, and Controller Specs. Let’s dive into each of them.</p><p><strong>Model Specs</strong></p><p>Models specs are similar to unit tests in that they are used to test different and smaller parts of the system such as classes or methods. These interact with the databases well. Let&#39;s look at how they can look in RSpec.</p><pre>describe User, ‘.active’ do <br> it ‘returns only active users’ do <br>   <em>#setup</em> <br>    active_user = create(:user, active: true) <br>    non_active_user = create(:user, active: false) <br>   <em># exercise</em> <br>   result = User.active <br>   <em># verify</em> <br>    expect(result).to eq [active_user] <br>   <em>#teardown is handled for you by RSpec</em> <br>  end <br>end`<br><em><br>#Prefix instance methods with a &#39;#&#39;<br></em> describe User, &#39;#name&#39; do   <br>   it &#39;returns the concatenated first and last name&#39; do   <br>      <em># setup</em>     <br>      user = build(:user, first_name: &#39;Jenny&#39;, last_name: &#39;Little&#39;)                                                                  <br>      expect(user.name).to eq &#39;Jenny Little&#39;   <br>    end <br> end</pre><p><strong>Controllers Specs</strong></p><p>Testing multiple paths through a controller is very necessary so using controller specs over feature specs is better since controller specs are faster to run and easy to write compared to feature tests.</p><pre>describe &#39;POST #create&#39; do</pre><pre>context &#39;when password is invalid&#39; do</pre><pre>  it &#39;renders the page with error&#39; do</pre><pre>     user = create(:user)<br>     post :create, session: { email: user.email, password:&#39;invalid&#39;<br>     expect(response).to render_template(:new)<br>     expect(flash[:notice]).to match(/^Email and password do not match/)</pre><pre>   end<br>end</pre><pre>context &#39;when password is valid&#39; do<br>  it &#39;sets the user in the session and redirects them to their dashboard&#39; do</pre><pre>     user = create(:user)<br>     post :create, session: { email: user.email, password: user.password }<br>     expect(response).to redirect_to &#39;/dashboard<br>     expect(controller.current_user).to eq user</pre><pre>    end<br>  end<br>end</pre><p>Then let&#39;s finalize as we look at the views</p><p><strong>Views Spec</strong></p><p>View specs are great for testing the conditional display of information in your templates. One mistake some developers do is forgetting about these tests and instead use feature spec, then you wonder why to have along with test suite. so l prefer to use view specs like following ;</p><pre>describe &#39;products/_product.html.erb&#39; do   <br>  context &#39;when the product has a url&#39; do     <br>    it &#39;displays the url&#39; do       <br>      assign(:product, build(:product, url: &#39;http://example.com&#39;)<br>      render<br>      expect(rendered).to have_link &#39;Product&#39;,href:&#39;http://example.com&#39;     <br>  end   <br>end    <br>context &#39;when the product url is nil&#39; do     <br>   it &quot;displays &#39;None&#39;&quot; do       <br>     assign(:product, build(:product, url: nil)        <br>     render             <br>     expect(rendered).to have_content &#39;None&#39;         <br>   end   <br>  end <br>end</pre><p>However, there are other ways you can test Rails application depending on how you have planned to do it or what frameworks you want to use. Great thanks to <a href="https://thoughtbot.com/blog/how-we-test-rails-applications">this guide</a><br>In conclusion, it is always important to test your application and sometimes the frameworks your using may not matter but what matters is that you are testing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbca18daa80" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jennys-tech-blog/test-rails-applications-with-ease-using-rspec-dbca18daa80">Test Rails Applications With Ease Using Rspec.</a> was originally published in <a href="https://medium.com/jennys-tech-blog">Jenny’s Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Andela My People]]></title>
            <link>https://medium.com/@jennyzalwango12/my-andela-my-people-9153ee3bc941?source=rss-76b18a86d22d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9153ee3bc941</guid>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Jenny Zalwango]]></dc:creator>
            <pubDate>Sun, 29 Sep 2019 16:32:04 GMT</pubDate>
            <atom:updated>2019-09-29T17:24:18.283Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTzlw7WYm5BCNVSLJSMAcg.jpeg" /></figure><p>Right from the start Andela was a place where my heart yearned to work from and I will forever be grateful that this at least happened and l got to work with such excellent, smart and wonderful people like you all. Right from Women In Tech Program to Bootcamp to Andela 21 and to joining the fellowship……….. I just can’t say it all. My boys, my team whom l was with in Andela 21 l will forever appreciate that period and let’s keep the candle burning and the powers combined.</p><p>John Kagga you have been very supportive from day one and l know you know that there points l would not have reached too if it was not for your unconditional support. You taught me a lot and a lot and a lot all those times where l could break down and cry you were always there to lift me up so that l would keep on going it’s all at heart <em>John</em>. At one time you asked me why l said l wanted to keep you?, It’s because of your endless efforts, intelligence, caring and succour heart. John Kagga l will forever apprize your time and everything l must say l am blessed to have had an opportunity to meet you and i can never stop learning from you.Thank you John Kagga</p><p>Through my technical journey so far l thank God that he has always brought the right people close to me and they have always been very helpful to me…..</p><p>I think all Johns in the world are good or its just me who is just lucky and blessed hmmmmm</p><p>John Paul Seremba you became a protagonist in my life, You have always been a mentor, <em>advisor or maybe even god sent</em> and always strengthen me. Well your seriousness in the things you do and all that, that scared me at one point groomed me into a better person now. Your contributions cannot be ignored l am here today because you also never gave up one me. You where my Learning facilitator and indeed you did your job.Thank you for believing in me, thank you for your time and forever will be grateful. Those times when I felt like giving up and nothing was making sense you helped me stick to the right direction, gave me steps to take and you always followed up thank you. And I know you know that every day that goes by there is something new that I learn from you. Thank you John Paul Seremba.</p><p>It’s never how long you’ve known someone but what you have shared in the shortest time possible is always greater than the times, Friends i meant and made Rytah, James, Edna, Ssemaganda, Deo and Walugembe(Wals), l cannot mention you all but l have gotten to know that I meant something to you in all one way or the other, everyone i have gotten to talk too, smile with, work with the same team and I must say that l will forever hold you all closer to my heart.</p><p>Andela has given me a lot and that will never change a lot and a lot that money can never buy. The learning, self discovery and most of all it has given me <strong>ALL OF YOU</strong> guys . l will forever hold you so close. It’s so sad that l have to leave but l am happy i had you Andela.</p><p>And l wish you all the best, and as we part ways l know at one point all will be well and it will all end in praise. THANK YOU</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9153ee3bc941" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Power of Using JSON Web Tokens.]]></title>
            <link>https://medium.com/jennys-tech-blog/the-power-of-using-json-web-tokens-cf75d0cfc924?source=rss-76b18a86d22d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf75d0cfc924</guid>
            <dc:creator><![CDATA[Jenny Zalwango]]></dc:creator>
            <pubDate>Tue, 30 Apr 2019 15:00:54 GMT</pubDate>
            <atom:updated>2019-04-30T15:00:54.802Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wfz8fAIQBF3d1Tiz" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>What is JSON?</strong></p><p>Befriely let me take you through the meaning of JSON as a word, JSON fully stands for <strong><em>J</em></strong><em>ava</em><strong><em>S</em></strong><em>cript </em><strong><em>O</em></strong><em>bject </em><strong><em>N</em></strong><em>otation. </em>JSON is a lightweight format for storing and transporting data. Its often used when data is sent from the server to a web page. Basically, JSON is self-describing and easy to understand.</p><p>What does a token mean?</p><p>A token is a special frame that is passed from node to node around a node network. When it gets to a node that transmits data, the node changes the token into data and transmits it to the recipient.</p><p>What is JSON Web Token?</p><p>JSON is an open standard that defines a compact and self-contained way for securely transmitting information between parties as a JSON object.JWT mainly ensures trust and security in an application.</p><p>The structure of JWT web tokens</p><p>JWT web token consists of three parts and these parts are separated by a dot[.] it could look like this ;</p><pre>fffff.zxzxzxz.ghyhgyhg</pre><p>These below are the three parts that a token has;</p><ul><li>Header</li><li>Payload</li><li>Signature</li></ul><p>Let&#39;s dive into knowing each of the above in details</p><ol><li><strong>Header</strong></li></ol><p>A header component of the JWT contains information about how the JWT signature should be computed. It only consists of two parts that are, the type of the token, which is JWT, and the signing algorithm being used, such as HMAC SHA256 or RSA. it is a JSON object in this format.</p><pre>{   <br>    &quot;alg&quot;: &quot;HS256&quot;,   <br>    &quot;typ&quot;: &quot;JWT&quot; <br>}</pre><p>2. <strong>Payload</strong></p><p>The payload is the second part of the token and it contains the claims. Claims are statements about the user and additional data. There are three types of claims<a href="https://tools.ietf.org/html/rfc7519#section-4.1">: <em>registered</em></a>, <a href="https://tools.ietf.org/html/rfc7519#section-4.2"><em>public</em>,</a> and <a href="https://tools.ietf.org/html/rfc7519#section-4.3"><em>private</em> claims</a>.</p><p>Under the registered claims we have set of predefined claims which are not a must but recommended since they provide a set of useful, interoperable claims. Some of these are <strong>iss</strong> (issuer), <strong>exp</strong> (expiration time), <strong>sub</strong> (subject), <strong>aud</strong>(audience), and <a href="https://tools.ietf.org/html/rfc7519#section-4.1">others</a>. An example could be;</p><pre>{<br>&#39;exp&#39;: datetime.timedelta(days=1),</pre><pre>&#39;sub&#39;: user_id,</pre><pre>&#39;iat&#39;: datetime.datetime.utcnow()</pre><pre>} </pre><p>3. <strong>Signature</strong></p><p>The signature part of the token is created using the encoded header and the encoded payload plus, a secret and the algorithm specified in the header. The signature is used to verify the message wasn’t changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is.</p><p><strong><em>The</em></strong> <strong><em>Importance</em> <em>of using JWT</em></strong><em>.</em></p><p>JWT Web Tokens are better than the regular token as we going to see below;</p><ul><li>When using JWT there is no session to manage since JWT is a self-contained token which has authentication information, expire time information, and other user-defined claims digitally signed.</li><li>JWT is an open standard. That means that all implementations of JWT should be fairly similar, which is a benefit when working with different languages and technologies. Regular tokens are more free-form, allowing the developer to decide how best to implement the tokens.</li><li>JWTs can contain all of the information about the user, which is convenient for the client.</li><li>Libraries handle the heavy lifting here. Rolling out your own authentication is dangerous, so we leave the important stuff to battle-tested libraries that we can trust.</li></ul><p><strong><em>In conclusion</em></strong>, It is important to understand that the purpose of using JWT is <strong>NOT</strong> to hide or obscure data in any way. The reason why JWT is used is to prove that the sent data was actually created by an authentic source. It ensures trust and security in the application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf75d0cfc924" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jennys-tech-blog/the-power-of-using-json-web-tokens-cf75d0cfc924">The Power of Using JSON Web Tokens.</a> was originally published in <a href="https://medium.com/jennys-tech-blog">Jenny’s Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Understanding of Application Programming Interface. (APIs)]]></title>
            <link>https://medium.com/jennys-tech-blog/the-understanding-of-application-programming-interface-apis-c5db2001d97f?source=rss-76b18a86d22d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5db2001d97f</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Jenny Zalwango]]></dc:creator>
            <pubDate>Tue, 09 Apr 2019 14:33:53 GMT</pubDate>
            <atom:updated>2019-04-10T10:14:02.141Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding the Application Programming Interface. (APIs)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*64M_o8i_xcm8PINt" /><figcaption>Photo by <a href="https://unsplash.com/@_ferh97?utm_source=medium&amp;utm_medium=referral">Fernando Hernandez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://en.wikipedia.org/wiki/Application_programming_interface">Application Programming Interface</a> is a software intermediary that allows two <strong>applications</strong> to communicate with each other. Basically, an <strong>API</strong> specifies how software components should interact. In a lay man’s term, an API is a messenger that delivers your <strong>request</strong> to a service provider and then delivers a <strong>response</strong> back to you.</p><p>Before we go any further let’s dive into knowing the difference between Web Services and Web APIs.</p><p><strong><em>Web Services</em></strong> only support the HTTP protocol and are <em>Simple Object Access Protocol </em><a href="https://docs.brightsign.biz/display/DOC/SOAP+API">SOAP</a>-based which return data as <em>Extensible Markup Languag</em>e <a href="https://en.wikipedia.org/wiki/XML">XML</a>. Web services require a SOAP protocol to receive and send data over the network, so it is not a light-weight architecture.</p><p><strong><em>Web APIs</em></strong> are an HTTP based service that supports the HTTP protocol and returns JSON or XML data. It can be hosted within an application or Internet Information Services (<em>IIS</em>). Both web services and web APIs are used for communication.</p><p><strong>How do APIs work?</strong></p><p>Imagine you are working with your machine, and as you are still working your battery warns that you need to connect your machine to the power source, right? So you have your power source and your machine, but there is no way your machine will enter into the power source!</p><p>You will need a medium of communication between your machine and the power source. That’s where the charger — or the API — enters the picture. You will connect your charger to the power source then your machine will charge.</p><p><strong>A real example of an API</strong></p><p>How are APIs used in the real world? Here’s a very common scenario — <strong>Ordering food Online.</strong></p><p>When you search for food online, you have a menu of options to choose from. You choose an online shop to use, the kind of food they have, the orders you can make and what you want as a person.</p><p>To make your order you will need to interact with the online shop’s website to access their database to see if any of the orders you want to make are available at that particular time, and how much it would cost.</p><p>You need access to that information from the shop’s database, whether you’re interacting with it from the website or an online shop service that aggregates information from multiple shops. Alternatively, you might be accessing the information from a mobile phone. In any case, you need to get the information, and so the application must interact with the shop’s API, giving it access to the shop’s data.</p><p>The API is the interface that, like your helpful charger, runs and delivers the data from the application you’re using to the online shop’s systems over the Internet. It also then takes the shop’s response to your request and delivers right back to the shop’s application you’re using e.g Jumia, Amazon. Moreover, through each step of the process, it facilitates the interaction between the application and the online shop’s systems — from order selection to placing the order, payments, and delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XqLjia1wJuwrDJ8u" /><figcaption>Photo by <a href="https://unsplash.com/@fatosi?utm_source=medium&amp;utm_medium=referral">Fatos Bytyqi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>How to develop an API?</strong></p><p>One may be wondering if the above magic of APIs is developed by humans Yes!!! it let’s dive into it.</p><p>Developers develop APIs using different languages like;</p><ul><li>Javascript</li><li>Java</li><li>Python and so on…..</li></ul><p>Let’s talk about developing APIs in python. <a href="https://devdocs.io/python~3.6/">Python</a> has got over ten different web frameworks like<a href="http://flask.pocoo.org/docs/1.0/"> Flask,</a> <a href="https://docs.djangoproject.com/en/2.1/">Django</a>, <a href="https://web2py.readthedocs.io/en/latest/">Web2py,</a> <a href="https://turbogears.readthedocs.io/en/latest/turbogears/starting.html">TurboGears</a> and so on, But we will look at <a href="http://flask.pocoo.org/docs/1.0/">Flask</a>.</p><p>Flask is a Python microframework which supports both function based and method based views. Let&#39;s look at method views based on classes instead of functions this makes it simpler to develop an API. As we go further please ensure that python 3.5 and above is installed on your machine for you to have a better flow of this.</p><p>Hoping that you have a text editor on your machine lets look at the some of the things we need clearly to kick off;</p><ul><li>Flask</li></ul><pre>pip install flask.</pre><ul><li><a href="https://realpython.com/python-virtual-environments-a-primer/">A virtual environment</a></li></ul><p>This helps to keep dependencies required by different projects. Different operating systems have different ways of creating virtual environments. This below is for Linux users</p><p>To create one,</p><pre>python3 -m venv [the name of the virtual environment you want].</pre><ul><li>then activate it by running</li></ul><pre>source [the name of the created enviromnet]/bin/activate</pre><ul><li><a href="http://www.postgresqltutorial.com/install-postgresql/">Postgres SQL.</a></li></ul><p>PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that safely store and scale the most complicated data workloads.</p><ul><li><a href="http://dwgeek.com/set-and-use-environment-variable-inside-python-script.html/">Environment variables.</a></li></ul><p>These are variables that are set up in your shell or terminal when you log in. These are set locally on your machine and they are used to store temporary values for reference later in a shell script. A running program can access the values of environment variables for configuration purposes. The environment variables, in this case, are and are put in the config file.</p><p>1. Development environment.<br>2. Testing environment.<br>3. Production environment.</p><p>Let’s look at the folder structure to use. You will create a directory that will include your application we will look at developing an API in a flask and storing our data in the database using Postgres SQL.</p><p>You create the application module that will hold all the other submodules for the application, for example, the models, views and the routes.</p><ul><li><strong><em>Models</em></strong></li></ul><p>In the models, this is where your class is instantiated, you remember to include an __init__.py file. This file is included in every subfolder which and its importance is to tell python to recognize that folder as a python package. This is done to prevent directories with a common name, such as string, from unintentionally hiding valid modules that occur later (deeper) on the module search path.</p><ul><li><strong><em>Views</em></strong></li></ul><p>While dealing with methodViews in the flask, in your views, each HTTP method maps to a class with the same name (just in lowercase). The trick is to take advantage of the fact that you can provide multiple rules to the same view.</p><pre>class UserAPI(MethodView):</pre><p>In the code snippet above we create a class called UserAPI which inherits from MethodView. We then create different functions under the same class and the functions will have the main HTTP verbs for example GET, POST, DELETE, PUT. Basically, there are so many HTTP verbs but you choose what is convenient for you depending on what you want to do, and so for this case, we will use the one in the code snippet above</p><pre>def get(self, user_id):<br>  if user_id is None:<br>    # return a list of users<br>     pass<br>  else:<br>    # expose a single user<br>     pass</pre><p>In the code snippet above, we create a function with an HTTP verb get which takes two parameters self and the user_id. Self is used to represent the instance of the class and by using the “self” keyword we can access the<strong> </strong>attributes and methods of the class in python. Note when using methodViews you can use one get HTTP verb to do all the gets, for example, get one order or get all orders that is why we are also specifying the user_id in the second parameter. In case the user_id is none it will return a list of all users else returns a single user.</p><p>We go and create a function with an HTTP verb post which takes only one parameter and that’s the self. The post request method is used when requesting a web server to accept the data enclosed in the body of the request message. This is used to create a new user.</p><pre>def post(self):</pre><pre># create a new user</pre><pre>pass</pre><p>Let’s we go on to creating a method that will help us delete a user and this function takes in two parameters the ‘’self ‘’ as we talked about its importance when explaining the get and the user_id will be needed since we have to specify which user we are to delete hence using the user id because we wouldn’t want to delete anyhow since it will end up crashing the application</p><pre>def delete(self, user_id):</pre><pre># delete a single user<br>  <br>  pass</pre><p>Just like the delete, Put also takes the same parameters although it works differently. The Put method requests that the enclosed entity be stored under the supplied Request-URI. If the Request-URI refers to an already existing resource, the enclosed entity should be considered as a modified version of the one residing on the origin server.</p><pre>def put(self, user_id):</pre><pre># update a single user</pre><pre>pass</pre><ul><li><strong>routes</strong></li></ul><p>In routes, this is where we put the URLs.this is so how do we hook this up with the routing system when dealing with method views. When this is done you are good to go.</p><pre>user_view = UserAPI.as_view(&#39;user_api&#39;)</pre><pre>app.add_url_rule(&#39;/users/&#39;, defaults={&#39;user_id&#39;: None},</pre><pre>view_func=user_view, methods=[&#39;GET&#39;,])</pre><pre>app.add_url_rule(&#39;/users/&#39;, view_func=user_view, methods=[&#39;POST&#39;,])</pre><pre>app.add_url_rule(&#39;/users/&lt;int:user_id&gt;&#39;, view_func=user_view,</pre><pre>methods=[&#39;GET&#39;, &#39;PUT&#39;, &#39;DELETE&#39;])</pre><p>Then you get to run your application, depending on your file name lets say the file name is called run.py.Our command will be;</p><pre>python run.py</pre><p><strong><em>In conclusion,</em></strong> APIs are just containers that contain some information two applications use to communicate with each other they can be developed in different languages and consumed by anyone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5db2001d97f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jennys-tech-blog/the-understanding-of-application-programming-interface-apis-c5db2001d97f">The Understanding of Application Programming Interface. (APIs)</a> was originally published in <a href="https://medium.com/jennys-tech-blog">Jenny’s Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adaptability For More Productivity]]></title>
            <link>https://medium.com/jennys-tech-blog/adaptability-for-more-productivity-a56bb34f8104?source=rss-76b18a86d22d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a56bb34f8104</guid>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Jenny Zalwango]]></dc:creator>
            <pubDate>Wed, 03 Apr 2019 06:03:51 GMT</pubDate>
            <atom:updated>2019-04-04T06:47:11.780Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y8O-AGKX1c4Hrm-G" /><figcaption>Photo by <a href="https://unsplash.com/@rossf?utm_source=medium&amp;utm_medium=referral">Ross Findon</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Adaptability comes with different roles, responsibilities and then a friend called <strong><em>mindset</em></strong> in other words for one to adapt to change it could take a positive mindset and then moving out of your comfort zone. Oh yes when l talk about the comfort zone, it&#39;s really hard for some people to move out of their zones and just cope up to change.</p><p>Most of the time, if you look at change as a good thing to live with, you will then realize that life is a change. When change happens one will have to have another friend to walk with <strong><em>Flexibility</em></strong></p><p>Flexibility is when you train your mind to live with change and being ready for anything that comes your way for as long as it will increase on your value</p><p>Personally, l have always trained me to be flexible and ready for change although there are times when it gets tighter than what you thought of.l remember when l got a challenge to work on with javascript l could not believe that l was going to handle because it was new to me and yet l have to learn, work and then deliver in time. But since am this positive person l did not freak out but l just embraced what has come the way.</p><p>Since am a believer l always believe that God prepares you for what you have asked for so since l want to join and work with Andela. I just don&#39;t give up and freak out because am seeing something for the first time. I look at it on the positive side of it and then I try as hard as l can to take it seriously by giving it my all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hKWcLpb4Th8_TdPu" /><figcaption>Photo by <a href="https://unsplash.com/@maxlarochelle?utm_source=medium&amp;utm_medium=referral">Max LaRochelle</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>l have also realized that change and adaptability lead to more productivity l could never imagine that l could learn javascript in a day and then work to on task and get it done in a short period. This was not easy at all but it really grilled the best out of me.</p><p>l have come to realize that with adaptability and flexibility you go higher than only your imaginations. Since your set mind ready to work on a task.</p><p><em>There is a famous quote by Henry Ford,</em></p><p><em>“</em><strong><em>Whether you think you</em></strong><em> can, or </em><strong><em>you think you</em></strong><em> can’t — </em><strong><em>you’re right</em></strong><em>,”</em></p><p>This emphasizes how much attitude determines success or failure. So in most of the things l do and think of l always keep it positive and positive since it is important.</p><p><strong><em>In conclusion, Adaptability and flexibility will always bring out the best of someone if it&#39;s taken positively and change will always be life.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a56bb34f8104" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jennys-tech-blog/adaptability-for-more-productivity-a56bb34f8104">Adaptability For More Productivity</a> was originally published in <a href="https://medium.com/jennys-tech-blog">Jenny’s Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Relevance of Test Driven Development]]></title>
            <link>https://medium.com/jennys-tech-blog/the-relevance-of-test-driven-development-ef97b684743c?source=rss-76b18a86d22d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef97b684743c</guid>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Jenny Zalwango]]></dc:creator>
            <pubDate>Tue, 26 Mar 2019 13:42:29 GMT</pubDate>
            <atom:updated>2019-03-26T13:42:29.195Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gd7Zx9hfUFJ_fOvK" /><figcaption>Photo by <a href="https://unsplash.com/@the_roaming_platypus?utm_source=medium&amp;utm_medium=referral">The Roaming Platypus</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Test Driven Development(TDD) can be defined as a programming practice that instructs developers to write new code only if an automated test has failed. Tests are written to test code and usually, software engineers write tests to test their code before submitting it for review.</p><p>In the normal Software Testing process, we first generate the code and then test. Tests might fail since tests are developed even before the development. In order for the tests to pass, You refactor the code to make the tests pass but not changing the behavior of the code.</p><p><strong>The cycle of Test Driven Development:</strong></p><ul><li>Write a Test</li><li>Make it run</li><li>Change the code to make it right — refactoring it</li><li>Repeat Process</li></ul><p>Good software engineers write code and test the code for so many reasons. Test Driven Development saves on refactoring and validates the tests some developer first write failing tests and then makes the tests pass.</p><p><strong>Importance of Test Driven Development:</strong></p><ul><li>Avoids duplication of code</li><li>Makes code clearer</li><li>Makes code simple and debug free</li><li>Produces higher -quality software</li></ul><p>In software development, it is always important to write tests for your software. Personally, l have written tests before, when writing tests it depends on the language you are using. Let me dive into python since its the one l have interacted with before.Python has an in-built module which enables you to write tests easily called <strong><em>Unittests.</em></strong></p><p>Unit tests is a unit testing framework which supports test automation, sharing of setup and teardown code for tests. These are explained;</p><h4>SetUp ()</h4><p>This method is called to prepare the test fixture and it is immediately called before calling the test method. Usually, any exception raised by this method will be considered an error rather than a test failure. In other words, this method refreshes the tests before the run.</p><h4>TearDown()</h4><p>This other method is called immediately after the test method has been called and the result has been recorded. This is called even if the test method raised an exception so in simple terms the teardown function is the one that clears the tests every time they run</p><p>Unit tests are imported before you start writing and running your tests and the proper naming convention of the file name would be <strong><em>test_message.py </em></strong>although there is another way which is <strong><em>message_test.py</em></strong></p><p>But as it is in the first naming convention l would advise you go with the first one since here the test modules are grouped together with each other than the second one where each module appears next to its file class in your file system.</p><h4><strong>In conclusion, Test-Driven development is a process of developing and running an automated test before the actual development of the application. This makes the code more clear and bug -free.</strong></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef97b684743c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jennys-tech-blog/the-relevance-of-test-driven-development-ef97b684743c">The Relevance of Test Driven Development</a> was originally published in <a href="https://medium.com/jennys-tech-blog">Jenny’s Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Frontend Systematic Way]]></title>
            <link>https://medium.com/jennys-tech-blog/a-frontend-systematic-way-fd63927168e4?source=rss-76b18a86d22d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd63927168e4</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Jenny Zalwango]]></dc:creator>
            <pubDate>Thu, 21 Mar 2019 11:49:57 GMT</pubDate>
            <atom:updated>2019-03-21T11:49:57.375Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*725H7V7sol6tVjVN" /><figcaption>Photo by <a href="https://unsplash.com/@charlesdeluvio?utm_source=medium&amp;utm_medium=referral">Charles 🇵🇭</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This could be a way things are done or a method used to do a particular thing. While designing a User Interface(UI) for a project l came across alot of things kept my mind thinking and appreciate the magic frontend has.</p><p>The frontend has alot of meaning but let’s talk about it in bits and pieces programming wise. Front-end web development is the practice of converting data to a graphical interface for the user to view and interact with data through digital interaction using HTML, CSS, and JavaScript.</p><p>While developing a web graphical interface there are particular things you should put into consideration as a developer. There could be quite alot of a number of things and during my learning l encountered so much.</p><p>As I was developing my UI, I realized that order is order and order is important during your development because it makes your workflow and gets peoples attention being kept in one place.l had to learn how to much colors on the interface and perhaps use them accordingly and this is one of the most interesting skill.</p><p>Most of the time when working you on projects, you will always get feedback from the project owner. It is always important to respond to it since it improves on your skills, Personally, l got feedback here and there during my challenge one and l had to implement the feedback and by the time my challenge one feedback was done, the work really looked good and better. The lesson is responding to feedback pushes you to learn better.</p><p>Having a growth mindset and collaboration. During the time of development, you will realize that you will have to ask out for guidance on how to accomplish particular tasks, and all this can never be done if you stay in your lane. There times when you need to ask people to see if your concepts or idea or implementation similarly matches with what you have not to be off guard.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd63927168e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jennys-tech-blog/a-frontend-systematic-way-fd63927168e4">A Frontend Systematic Way</a> was originally published in <a href="https://medium.com/jennys-tech-blog">Jenny’s Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Change will Change you;]]></title>
            <link>https://medium.com/@jennyzalwango12/change-will-change-you-a15268b4e00b?source=rss-76b18a86d22d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a15268b4e00b</guid>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Jenny Zalwango]]></dc:creator>
            <pubDate>Tue, 22 Jan 2019 14:00:00 GMT</pubDate>
            <atom:updated>2019-01-23T01:40:26.208Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bG0-J_s646f7vQdo" /><figcaption>Photo by <a href="https://unsplash.com/@rawpixel?utm_source=medium&amp;utm_medium=referral">rawpixel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Andela Bootcamp is a word that one could speak and you click a different understanding. The week is one the most challenging intensive period throughout the all boot camp period. In week two of boot camp l realized that l could no longer get time to sleep due to the time you need to submit work and meet the expectation always flashes in my mind everytime you try to get some sleep. But hey its worth it.</p><p>Learning becomes so blistering and breathless since you don&#39;t stay feeling like you are the lost self. Its really about collaboration and working with your teammates even when you feel intimidated by the guys who know shit. But you take the initiative to be better it makes you feel like you can soar higher and higher.</p><blockquote>As they say, you never realize how possible things can be until you dive in the impossibilities.<br>During week two you just feel like you are discovering this stronger person in you and you are ready to forego all to deliver your best,</blockquote><p>Loneliness at home and a sense of belonging in Andela with your fellow developers comfort you.</p><p>Time and pressure competitive running out of time and then with you because you see you are not progressing since days are just numbered. Besides, the pressure and the time, are less of what you are learning. Actually, there is a way your mind is built then you realize that if it was not Andela boot camp personally wonder how much l could do and what you have done which are worth it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a15268b4e00b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exceptional Teammates and the Learning Facilitator.]]></title>
            <link>https://medium.com/@jennyzalwango12/exceptional-teammates-and-the-learning-facilitator-95838ce1b800?source=rss-76b18a86d22d------2</link>
            <guid isPermaLink="false">https://medium.com/p/95838ce1b800</guid>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Jenny Zalwango]]></dc:creator>
            <pubDate>Wed, 16 Jan 2019 11:52:18 GMT</pubDate>
            <atom:updated>2019-01-16T14:07:25.539Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nEhNzGQBCGBOH28f" /><figcaption>Photo by <a href="https://unsplash.com/@nesabymakers?utm_source=medium&amp;utm_medium=referral">NESA by Makers</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>On day one of boot camp, our names were read according to our groups with the name of the learning Facilitator who will be guiding us through the week. In a nutshell, l heard my name being read and systematically walked to a team of four gentlemen who were my teammates. Self-introductions were made by each of the group members led by our learning Facilitator.</p><p>Kenneth Sanya is one of my teammates he likes rapping and he even gave us a sample rap. l asked him why he wants to be a developer and he told me the following;</p><blockquote>I love computers and I want to change the world through tech and the gospel<br>technology is the future<br>I want to be part of the team that builds the future on tech<br>I want to solve as many problems as I can using tech</blockquote><p>There are many more team members and when l asked jkMugabe his view was also amazing and interesting he told me</p><blockquote>I want to be among the top tech leaders in Africa. and I also want to know how most technological materials are created and how they work.</blockquote><blockquote>I love computer and am an internet addict. I love inventing and I thought being a developer would give me that. I want to have a skill which I can depend on and get a job</blockquote><p>All the answers made me feel how people are so amazing and ambitious. l had to ask <strong><em>my learning facilitator Sonia</em> </strong>the same question and she gave me something so sweet as well;</p><blockquote>1. Its infinite ability to solve current and future societal problems!<br>2. Taking an idea and making it a reality<br>3. There’s a lot of Mathematics and Logic involved in programming and those two happen to be the things I am most passionate about</blockquote><p><strong><em>Mathematics lover;</em></strong></p><p><strong>Sonia</strong> is so passionate about mathematics that&#39;s one of the reasons why she is a developer. She also loves the all logic in programming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wJ8ZhZfo6zkoDabu" /><figcaption>Photo by <a href="https://unsplash.com/@jeshoots?utm_source=medium&amp;utm_medium=referral">JESHOOTS.COM</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Alex Sanya told me why he wants to be a developer,</p><blockquote>The powers programming gives me to create and solve problems</blockquote><blockquote>Freedom of working remotely and challenges it offers keeps me unbored,</blockquote><blockquote>The intellectual joy I get after working a solution people happen to appreciate, The creative person it keeps shaping me into.</blockquote><p>All my teammates gave me amazing answers including Josean and this show how willing they&#39;re able to work and stay more focused. With all the power in their words, l already believe that they know what they want and how to get it.</p><p><strong><em>Sharing and Helping;</em></strong></p><p>One of the major characteristics with my teammates is that teamwork and helping out each other which makes work easier. They&#39;re all down to earth people which makes me feel relaxed with them and l thank <strong>Sonia</strong> my LF who always gives us feedback on everything we do hence improving and being better than the previous day. All in all its a team l would not regret working with.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95838ce1b800" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>