<?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 Samuel Raphael on Medium]]></title>
        <description><![CDATA[Stories by Samuel Raphael on Medium]]></description>
        <link>https://medium.com/@asciidev?source=rss-b3d895cce617------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YFRlAEhCnD2h16vDFk10Bw.jpeg</url>
            <title>Stories by Samuel Raphael on Medium</title>
            <link>https://medium.com/@asciidev?source=rss-b3d895cce617------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 22:57:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@asciidev/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[A Chameleon’s Survival]]></title>
            <link>https://asciidev.medium.com/a-chameleons-survival-bd3c50668aa0?source=rss-b3d895cce617------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd3c50668aa0</guid>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Samuel Raphael]]></dc:creator>
            <pubDate>Tue, 29 May 2018 13:18:20 GMT</pubDate>
            <atom:updated>2018-05-29T13:25:56.026Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*zbyathRgQBQBSCgMsLwbCA.jpeg" /><figcaption>Photo <a href="https://www.casacenina.com/artventura/rainbow-chameleon.html">CaneCina</a></figcaption></figure><blockquote>All failure is failure to adapt, all success is successful adaptation. — Max McKeown</blockquote><p>It’s been a challenging, fun filled bootcamp and I’ve been able to not only learn a lot but also mingled with a lot of developers who are more experienced than I am, seen things their way and also been able to pick their brains.</p><p>During course of the bootcamp, we’ve been constantly introduced to new technologies, new and better ways of doing things. We are expected to put this new knowledge into practice almost immediately. While it has not be easy, as expected, it has been fun and it has also help me grow my adaptability skill.</p><p><strong>What is adaptability?</strong></p><p>Adaptability refers to how you, as a person is able to adjust to new conditions. Change is inevitable, how you react when a change occurs. Are you the type that accepts and learns to live with the change or you’re the type that sucks and blames either yourself or others for the change. I think adaptability helps you see changes in a new light, in a positive way and how best you can take advantage of that change. Adaptability helps you fight for survival no matter the condition you find yourself in. Just like how chameleons change their color to fit in to their environment, we need to be flexible and</p><blockquote>The most important factor in survival is neither intelligence nor strength but adaptability. — Charles Darwin</blockquote><p><strong>How Adaptability Helped me Survive Andela’s Bootcamp</strong></p><p>The first challenge I faced during the bootcamp was making sure to follow the TDD (Test Driven Development) way of writing software. Now, I’ve always heard about TDD before and after a first try, I resolved that it might not be for me, also every software developer I know don’t do TDD, which also made me resolve it might just be another software development buzzword. On receiving the bootcamp’s second challenge, I realized we had to do TDD.</p><p>At this stage, the former me would’ve resolved it wasn’t something I needed to do, but it’s something I needed to learn and start making use of, once and for all. I decided to face the challenge head on and now, even though my TDD game is not strong yet, I’ve been able to adapt to writing TDD code.</p><p>Same thing with other challenges at the bootcamp. These challenges were developed to stretch a candidate and take them out of their comfort zone and I commend Andela because the challenges do exactly what they were meant to. A lot of people, myself inclusive, struggle through them and have to adapt to a lot of new concepts, ideas and ways of doing things.</p><p>Been open to change, seeing opportunities (to learn the world class way of building software) where other people see failure or impossibilities, not complaining or blaming, been curious, seeking to learn more, having an open mind and knowing what I’m here for are skills that have helped me adapt well during the course of this bootcamp.</p><blockquote>Nobody likes to change. There will always be resistance to change, and there always will be change. And the quicker you get to that, the easier it is. It’s not such a difficult thing. If you entrench yourself and go, ‘By God, I will not change, I will not have this.’ Then, you’re a dead man. We’re great at adaptability. It’s our strongest suit. — Nick Nolte</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd3c50668aa0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Friendship is the shadow of the evening]]></title>
            <link>https://asciidev.medium.com/the-andela-bootcamp-which-i-have-been-a-part-of-for-the-past-four-days-has-been-nothing-but-fun-d2ddb0c11901?source=rss-b3d895cce617------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2ddb0c11901</guid>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Samuel Raphael]]></dc:creator>
            <pubDate>Thu, 24 May 2018 15:57:00 GMT</pubDate>
            <atom:updated>2018-05-24T16:01:57.572Z</atom:updated>
            <content:encoded><![CDATA[<p>The Andela bootcamp, which I have been a part of for the past four days has been nothing but fun, inspiring and an avenue to learn, both from the LFAs and my fellow bootcampers. I’ve been opportuned to meet and interact with a couple of bootcampers who I never thought I could’ve ever met if not for the bootcamp.</p><p>They have been a source to learn and draw inspiration from. They have also been thoroughly helpful and fun to be around with. The saying, ‘show me your friend and I’ll tell you who you are’, really holds true, because even though I’ve only spent four days with most of these wonderful individuals, I feel I’ve known them for ages and their hard work, persistence and knowledge really inspires me to growth on a daily basis.</p><p>There are three bootcampers which I’ve interacted more with, who have really had much of an impart on my views about humans in general.</p><p><strong>SAMUEL MICHAEL TOMIWA</strong></p><p>This young man is a bundle of knowledge and he’s really humble for what he actually knows. I kept taunting him for a while trying to see if he’ll blow up but he kept been humble.</p><p>I’ve also benefited from discussions with him. We argue a lot and I still can’t seized to be amazed by the way he structures and delivers his point of views. He argues constructively and also hopes to learn from every other person’s argument.</p><p><strong>AFFIONG UNO</strong></p><p>Fifi (as she’s called), is someone I’ve run into a couple times before the bootcamp but I’ve never really had any form of conversation with her. I finally broke that spell a few hours into the bootcamp when she threw a question at me. We kept talking for a while after and I was let into her world of experience, knowledge and cheerfulness.</p><p>She’s a kind and jovial heart and her love for programming will definitely take her places.</p><p><strong>NDITAH SAMWELD</strong></p><p>While we were all getting set to start the day, on the first day of bootcamp, this young man came out to the front, introduced himself and started asking everyone to introduce themselves too. At first, I wasn’t really paying any attention as I was looking forward to the start of the bootcamp and was actually a little nervous. We got talking a while later and became close friends from there on.</p><p>An electronic engineer from UNN, who graduated 2010. He has been programming for a while and his wealth of experience has helped me through a few bugs.</p><p>My name sake as I usually call him, Sam is a man of integrity and respect. He’s fun to be around with and he also holds the record for been the first bootcamper I interacted with. His intelligence, candid advice and sense of humor is pretty amazing.</p><blockquote>Friendship is the shadow of the evening, which increases with the setting sun of life. — Jean de La Fontaine</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2ddb0c11901" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing A Node/Express Application With Mocha & Chai]]></title>
            <link>https://asciidev.medium.com/testing-a-node-express-application-with-mocha-chai-9592d41c0083?source=rss-b3d895cce617------2</link>
            <guid isPermaLink="false">https://medium.com/p/9592d41c0083</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Samuel Raphael]]></dc:creator>
            <pubDate>Wed, 23 May 2018 11:21:04 GMT</pubDate>
            <atom:updated>2019-08-21T05:35:08.398Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*gbamVtPwMe7MjChrDZD0qw.jpeg" /><figcaption>Photo: <a href="https://www.testbytes.net/blog/software-testing-testbytes-can-help-video/">TestBytes</a></figcaption></figure><p>You have spent a lot of time and effort writing up a fairly medium application, let’s say with a code base of about 1000 lines and you’ve manually tested the application to make sure everything is running fine. You push your code to Github and someone decides to contribute their own quota to your work. They push their code, created a pull request and you merge it in, now your application no longer runs, everything is broken, all because of the code you merged in. In order to avoid this type of problem and many more that come with software development, you need to integrate testing to your workflow.</p><p>Testing requires that you write tests which cover various input a software might receive and the corresponding output to them. That way you can be sure that the application is running exactly how you intended it to and this can prevent a lot of bugs. It is always important to write a test before new code is added to your code-base so you can be sure the new code is not introducing any bug to your codebase and also it helps you know beforehand if the new code is breaking any part of your codebase.</p><p>In this article, we’ll be writing a simple Node/Express API application while incorporating testing using the mocha &amp; chai JavaScript testing packages.</p><p><strong>Mocha</strong>, according to the description on its website, is a testing framework that makes asynchronous testing simple and fun. It will provide a testing environment that makes it easy for us to run chai.</p><p><strong>Chai</strong> is an assertion library that can be paired with any test framework. It is the library that we’ll actually write our tests with.</p><p><strong>Setting up our sample application</strong></p><p>We’ll be building out an application that reads information from non-persistent students record data. To continue, we need to have the following files and folders created:</p><pre>---controllers/<br>------studentController.js<br>---dummy/<br>------students.js<br>---routes/<br>------index.js<br>---tests/<br>------test.js<br>---.babelrc<br>---server.js<br>---package.json</pre><p>To set up our dummy data, we need to include the data in the dummy/students.js file:</p><pre>const students = [<br>   {<br>     id: 1,<br>     name: &#39;Sean Grey&#39;,<br>     age: 24,<br>   },<br>   {<br>     id: 2,<br>     name: &#39;John Doe&#39;,<br>     age: 26,<br>   },<br>   {<br>     id: 3,<br>     name: &#39;Janet Dane&#39;,<br>     age: 19,<br>   },<br>];</pre><pre>export default students;</pre><p>The code block above assigns an array of objects, each object holding the details of a student.</p><p>Now let’s set up our package.json, so we can install all the packages we would be needing to build out and test our application.</p><pre>{<br>   &quot;name&quot;: &quot;student-record&quot;,<br>   &quot;version&quot;: &quot;1.0.0&quot;,<br>   &quot;description&quot;: &quot;An API to manage student record&quot;,<br>   &quot;main&quot;: &quot;server.js&quot;,<br>   &quot;author&quot;: &quot;Samuel Afolaranmi&quot;,<br>   &quot;license&quot;: &quot;MIT&quot;,<br>   &quot;scripts&quot;: {<br>        &quot;test&quot;: &quot;mocha --require babel-register tests/*.js --exit&quot;,<br>        &quot;dev&quot;: &quot;nodemon --exec babel-node --presets babel-preset-env ./server.js&quot;<br>   }<br>   &quot;dependencies&quot;: {<br>        &quot;body-parser&quot;: &quot;^1.18.3&quot;,<br>        &quot;express&quot;: &quot;^4.16.3&quot;<br>   },<br>   &quot;devDependencies&quot;: {<br>        &quot;babel-cli&quot;: &quot;^6.26.0&quot;,<br>        &quot;babel-preset-env&quot;: &quot;^1.7.0&quot;,<br>        &quot;chai&quot;: &quot;^4.1.2&quot;,<br>        &quot;chai-http&quot;: &quot;^4.0.0&quot;,<br>        &quot;mocha&quot;: &quot;^5.1.1&quot;,<br>        &quot;nodemon&quot;: &quot;^1.17.4&quot;<br>   }<br>}</pre><p>In the package.json file, we include our mocha and chai, which we’ll be using to write our tests. We also needed to include chai-HTTP which is a plugin that allows us to run HTTP integrations with chai assertions. We can now run npm install to install the packages and get ready to finish setting up our application.</p><p>The next step is to create our routes and server.js files, but first, we should create our controller file as we would be needing to import it into our routes file. In the controllers/studentController.js file, we should include:</p><pre>import students from &#39;../dummy/students.js&#39;;</pre><pre>class StudentController {<br>    // Get all students<br>    static getAllStudents(req, res) {<br>          return res.status(200).json({<br>                students,<br>                message: &quot;All the students&quot;,<br>          });<br>    }</pre><pre>    // Get a single student<br>    static getSingleStudent(req, res) {<br>           const findStudent = students.find(student =&gt; student.id === parseInt(req.params.id, 10));<br>           if (findStudent) {<br>               return res.status(200).json({<br>                     student: findStudent,<br>                     message: &quot;A single student record&quot;,<br>               });<br>           }<br>           return res.status(404).json({<br>                 message: &quot;Student record not found&quot;,<br>           });<br>    }<br>}</pre><pre>export default StudentController;</pre><p>In the controllers/studentController.js file, we imported our dummy data, created a class to hold our controller methods and created two static methods each for what we want to achieve with the controller class. The first method, getAllStudents, as the name implies gets all the students record we have in our dummy data and returns them with a 200 HTTP status code, while the second method, getSingleStudent, get the record of a single student and returns it with a 200 HTTP status. If a record is not found, a 404 HTTP status code is returned.</p><p>Now that we have our controller set up, we can now go back to working on our routes and server.js. In our routes/index.js file, we should add the following code:</p><pre>import { Router } from &#39;express&#39;;<br>import StudentController from &#39;../controllers/studentController.js&#39;;</pre><pre>const routes = Router();</pre><pre>routes.get(&#39;/&#39;, StudentController.getAllStudents);<br>routes.get(&#39;/:id&#39;, StudentController.getSingleStudent);</pre><pre>export default routes;</pre><p>We imported Router (express router) from express and assigned it to routes, we also imported our StudentController class from our controllers/studentController. js file. We used the Router we imported to create two routes, which are tied respectively to their corresponding controller methods.</p><p>Now we should create our server.js file so we can test the code we’ve been writing if it works.</p><pre>import express from &#39;express&#39;;<br>import bodyParser from &#39;body-parser&#39;;<br>import routes from &#39;./routes/index&#39;;</pre><pre>// Instantiate express<br>const app = express();</pre><pre>// Set our port<br>const port = process.env.PORT || 8000;</pre><pre>// Configure app to user bodyParser<br>app.use(bodyParser.urlencoded({ extended: true }));<br>app.use(bodyParser.json());</pre><pre>// Register our routes in app<br>app.use(&#39;/&#39;, routes);</pre><pre>// Start our server<br>app.listen(port, () =&gt; {<br>    console.log(`Server started on port ${port}`);<br>});</pre><pre>// Export our app for testing purposes<br>export default app;</pre><p>Because we’re writing ES6 code, we need babel to compile our code, and for that to work, we need to add the following code to our .babelrc file:</p><pre>{<br>   &quot;presets&quot;: [&quot;env&quot;]<br>}</pre><p>Now that we have our application all set up, we can go ahead to run npm run dev to run our application and test our endpoints using Postman.</p><p><strong>Writing tests for our application</strong></p><p>Our application works well, but we need to write tests for it. To make sure we don’t break it, while also covering all edge cases. In our tests/test.js file, we’ll write our tests.</p><pre>// Import the dependencies for testing<br>import chai from &#39;chai&#39;;<br>import chaiHttp from &#39;chai-http&#39;;<br>import app from &#39;../server&#39;;</pre><pre>// Configure chai<br>chai.use(chaiHttp);<br>chai.should();</pre><pre>describe(&quot;Students&quot;, () =&gt; {<br>    describe(&quot;GET /&quot;, () =&gt; {<br>        // Test to get all students record<br>        it(&quot;should get all students record&quot;, (done) =&gt; {<br>             chai.request(app)<br>                 .get(&#39;/&#39;)<br>                 .end((err, res) =&gt; {<br>                     res.should.have.status(200);<br>                     res.body.should.be.a(&#39;object&#39;);<br>                     done();<br>                  });<br>         });</pre><pre>        // Test to get single student record<br>        it(&quot;should get a single student record&quot;, (done) =&gt; {<br>             const id = 1;<br>             chai.request(app)<br>                 .get(`/${id}`)<br>                 .end((err, res) =&gt; {<br>                     res.should.have.status(200);<br>                     res.body.should.be.a(&#39;object&#39;);<br>                     done();<br>                  });<br>         });<br>         <br>        // Test to get single student record<br>        it(&quot;should not get a single student record&quot;, (done) =&gt; {<br>             const id = 5;<br>             chai.request(app)<br>                 .get(`/${id}`)<br>                 .end((err, res) =&gt; {<br>                     res.should.have.status(404);<br>                     done();<br>                  });<br>         });<br>    });<br>});</pre><p>At the beginning of the file, we imported all packages needed to make the test run, then we configured chai to use the chai-HTTP plugin. We also configured chai to use the should interface by running chai.should() . Each describe blocks, are used to group our tests together for easier access and better organization.</p><p>The first it block is a test that runs on the first endpoint to get all student record from the data, it asserts that the response should have a status of 200 and it should return an object. The second it block is a test that runs on the second endpoint to get a single student request. Assuming the student exists, it asserts that the response should have a status of 200 and it should return an object. And finally, the third it block is a test that runs also on the second endpoint to get a single request. Assuming the student does not exist, it asserts that the response should have a status of 404.</p><p>All that is remaining is for us to run npm run test and we’ll see our tests passing before our very eyes. Beautiful, isn’t it?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9592d41c0083" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Andela’s EPIC Values, are they really EPIC?]]></title>
            <link>https://asciidev.medium.com/andelas-epic-values-are-they-really-epic-321f7578bf16?source=rss-b3d895cce617------2</link>
            <guid isPermaLink="false">https://medium.com/p/321f7578bf16</guid>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Samuel Raphael]]></dc:creator>
            <pubDate>Tue, 22 May 2018 09:57:08 GMT</pubDate>
            <atom:updated>2018-05-22T09:57:08.756Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*AGqyfLZyo90RY-zd1vzDmw.jpeg" /><figcaption>Photo: <a href="http://mindfuldragon.com/about-me/">Mindful Dragon</a></figcaption></figure><p>I first heard about Andela’s EPIC values when I was looking to apply for the first time. On Andela’s home-study curriculum website, the EPIC values were broken down and every developer at Andela has to embody these values in other to be a successful Andela fellow. The thing I believe is, even without been an Andela fellow, you still need to embody these values to be able to succeed in any industry you choose to work in.</p><p>We all know for a company to succeed, they need to have set down values that would guide the day to day activity of the company. Andela’s EPIC values serves as this, but it’s much more than just values for an Andela fellow to live by. From my own point of view, I see it as a value every human being should live by.</p><p>Let’s look at what each of the EPIC values means:</p><p><strong>Excellence:</strong> No matter what you do, in other to succeed, you need to strive for excellence. You need to be the very best version of yourself. You need to aspire for growth. Without striving for excellence, you would stay stagnant. You need to always hold everything you do in the highest standard and become a lifelong learner. Only with this can you achieve excellence and be held in high esteem among your peers.</p><p><strong>Passion:</strong> Without passion, it might be a little hard to achieve excellence. While striving for excellence, you would get into a lot of pitfalls, face a lot of problems. Been passionate about your field, would help make sure you continue to seek inspiration and be inspired, that way you can continue striving for excellence.</p><p><strong>Integrity:</strong> In all your dealings, discussion and actions, you have to live a life of honesty and strong moral principles. Not been honest means people would start getting skeptical about dealing with you. You need to hold yourself accountable while others also hold you accountable. You have to be sincere, kind and be yourself in all your dealings.</p><p><strong>Collaboration:</strong> No man is an island of knowledge. You would need to work with other people throughout the course of your career. While collaborating, you need to strive not to make the work harder for others. You also need to learn and to seek and incorporate feedback effectively while also giving feedback kindly where needed.</p><p>The break down of the EPIC values above shows that these values are truly EPIC and you as an individual have to put them in practice to succeed no matter the industry you work in. In any industry or field you happen to work in, you need to aspire for excellence while been passionate about what you do, also, you need to live a life of integrity while also learning to collaborate effectively.</p><p>Embodying this values, will guarantee success. Andela’s EPIC values are truly EPIC 😈</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=321f7578bf16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Coveralls Made Me Pull A Hair]]></title>
            <link>https://asciidev.medium.com/when-coveralls-made-me-pull-a-hair-a41118bd8a73?source=rss-b3d895cce617------2</link>
            <guid isPermaLink="false">https://medium.com/p/a41118bd8a73</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Samuel Raphael]]></dc:creator>
            <pubDate>Mon, 21 May 2018 14:12:55 GMT</pubDate>
            <atom:updated>2018-05-21T14:12:55.075Z</atom:updated>
            <content:encoded><![CDATA[<p>So, a little background information…</p><p>I have been working on a project for over 10 days called Maintenance Tracker. It’s a web application that allows users to be able to submit and track their maintenance or repair request to an organization or manufacturer. This article expresses how I faced a seemingly hard challenge while working on integrating code coverage tools, coveralls and code climate and what I learnt during the process.</p><p>I’ve been working on the web application for close to 10 days and I have provisioned and started working on the back-end while following some guidelines which stated that I should implement code coverage to know what percentage of my code is tested. According to the guideline, I was to integrate coveralls and code climate which, as most of the other technologies in the guidelines, I haven’t had any form of experience working with.</p><p>I had a couple of challenges working on the web application but the biggest of them all, with a seemingly easy solution was making the coverage data get picked by coveralls. It was a very big tussle. Normally I was supposed to install a few packages, as follows:</p><ul><li>node-coveralls: Sends your test coverage report over to coveralls.io</li><li>istanbul: instruments your JavaScript code with line counters, so that you can track how well your unit-tests exercise your code base</li><li>nyc: command line client for istanbul</li></ul><p>After installing and setting up the packages, I needed to include the coveralls badge in my ReadMe.md file and run the command:</p><pre>npm run coverage</pre><p>The command above was declared in my package.json as:</p><pre>nyc report --reporter=text-lcov | coveralls</pre><p>It basically takes in your code coverage report in lcov format and sends it to coveralls so that your coveralls badge can be updated with your code coverage. Here in lies the problem.</p><p>My code tests was running correctly and I expected the coverage command to run successfully and be transferred to coveralls but it wasn’t and my badge was not getting updated. Coveralls was not receiving any information from my code and I was getting the error:</p><pre>&#39;error form lcovParse:&#39; &#39;Failed to parse string&#39;</pre><p>I decided to hop on to the big G to get some solution and I was able to get some solutions off Github issues and StackOverflow which led to me changing, rewriting and deleting lines out of my ‘.nycrc’ and ‘.babelrc’ files. All these and nothing seemed to be working. I decided to contact a few colleagues I could talk to but even after we decided to uninstall and reconfigure the whole coveralls system, nothing still seemed to be working and I got tired.</p><p>After almost 2 days of trying to fix the issue, I decided, after speaking with a colleague, to get my mind off it for a while and went to play some game. I came back to it after a few hours away and decided to go back to checking the Github issues I was reading before and somewhere on a solution, there was a note that says to always run tests with the NODE_ENV=test command. I decided to give it a try, just in case and here it was, a miracle, just like when Moses parted the red sea, my code coverage was reporting and also transmitting to coveralls.</p><p>What did I learn from this experience?</p><p>I had a few lessons to take away from the whole experience:</p><ul><li><strong>Don’t stress yourself on an issues:</strong> Issues, bugs are a common occurrence and just like someone I know used to say: ‘in programming, bugs are very generous, solve 1, get 2 free’. You should always have it in mind that you’ll hit bugs but how you react to the bugs really helps a lot in been able to solve the bug.</li><li><strong>Always seek help:</strong> Even though my colleagues were not able to solve the issue with me, they were really helpful and most times it would be them who would help solve issues. It was also a colleague that recommended taking some time away from the problem which ultimately led to me been able to solve it, so colleagues do help.</li><li><strong>Always take a break: </strong>Hitting away at the problem wouldn’t solve it. Most times, once you’ve worked a few hours on a problem without a solution, take a break, stretch your legs, play games, disturb a co-worker then come back refreshed and watch the problem get solved.</li><li><strong>Read a solution in it’s entirety: </strong>Sometimes, at least in my case, this helps. You should not only look at the code solutions, also read the text along with the code, even if it does not hold the key to your happiness as it did in my case, it will help you understand why the code was written the way it was, making it easy for your to edit it to your condition and also it’ll make it easier for you to solve that type of problem by yourself when next you’re faced with it.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a41118bd8a73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#365DaysOfOSSU — Day 1 — Data Types, Conditionals & Loops]]></title>
            <link>https://asciidev.medium.com/365daysofossu-day-1-data-types-conditionals-loops-831329b0fb7b?source=rss-b3d895cce617------2</link>
            <guid isPermaLink="false">https://medium.com/p/831329b0fb7b</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[c]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Samuel Raphael]]></dc:creator>
            <pubDate>Thu, 09 Nov 2017 21:31:13 GMT</pubDate>
            <atom:updated>2017-11-09T21:31:13.567Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*BgHsH5GJI3avG7kbHiaFog.png" /><figcaption><a href="https://github.com/ossu/computer-science">https://github.com/ossu/computer-science</a></figcaption></figure><p>So, it’s the beginning of my #365DaysOfOSSU. First and foremost:</p><p>What is OSSU?</p><p><a href="https://github.com/ossu/computer-science">OSSU</a> is short for <a href="https://github.com/ossu/computer-science">Open Source Society University</a>. It’s a self taught Computer Science curriculum which is a complete education in computer science using online materials. It’s not merely for career training or professional development. It’s for those who want a proper, <em>well-rounded</em> grounding in concepts fundamental to all computing disciplines, and for those who have the discipline, will, and (most importantly!) good habits to obtain this education largely on their own, but with support from a worldwide community of fellow learners.</p><p>I joined OSSU almost two months back but I’ve not really been consistent with the curriculum. Every day I’m always coming up with excuses to skip it and just yesterday, I decided it was time to stop skipping and start doing. I started the #365DaysOffOSSU challenge for myself, which will see me attempt and study the OSSU curriculum every day and put up writings on my progress and what I’ve been able to learn for that day.</p><p>What did I learn on Day 1?</p><p>So, I decided not to start from scratch (the very beginning of the curriculum) because I still understand everything I studied then, I just decided to continue with the curriculum.</p><p>Today, I studied more on: C’s data types, Boolean Expressions, Conditionals &amp; Loops.</p><p>Data Types:</p><p>Data Types are one of the core of any programming language. They provide ways to effectively store data to be used by our software. Presently there are not much data types in the C language, although the language also provides ways to quickly and easily build data types for our own specific use. The data types I was able to look into are:</p><p>Integer: So, if you’ve had any form of interaction with programming, you will have heard of integer, which stores numbers, digits. An integer can only take 4 bytes (32 bits). Now, because we have both positive number (1, 8, 3212) and negative numbers (-1, -8, -3212), the size that the integer can take has been divided into two, 2 bytes (<strong>2³¹</strong>)for the negative side and 2 bytes (<strong>2³¹-1</strong>) for the positive side.</p><p>Char: This is a data type that is used to store a single character. It only takes up 1 byte (8 bits) of memory.</p><p>Float: Just like integer, this also is used to store digits, but it only stores decimal digits. It also only takes up 4 bytes of memory space and is prone to precision problems when dealing with larger float set.</p><p>Double: Double is a type of float that doubles (just like the name implies) the memory space of a floating point number to 8 bytes (64 bits), this, to a large extent helps solve the precision problem a float has.</p><p>=&gt; Unsigned: I would not say specifically that this is a data type, but it works closely with data types by doubling their memory space. For example, marking integer as unsigned deletes the negative part of the integer type and increases the space of the positive side to 4 bytes, instead of the 2 bytes it gets to work with without unsigned.</p><p>Boolean Expressions:</p><p>I also studied boolean expressions. This, to the best of my knowledge, are expressions that evaluate to either true or false. They are basically divided into two:</p><p>Logical Operators: AND(&amp;&amp;) (both sides have to evaluate to true before this can pass), OR(||) (either of both sides just has to evaluate to true before this can pass), and NOT(!) (opposite of the evaluation. if it evaluates true, this becomes not true which is equals false).</p><p>Relational Operators: Less than (&lt;), Less than or equal to (&lt;=), Greater than (&gt;), Greater than or equal to (&gt;=), Equality (==), Inequality (!=).</p><p>Conditionals:</p><p>This helps your software becomes a little conscious and makes very minute decisions for itself.</p><p>if: works more like if — this — then — that.</p><pre>if () <br>{</pre><pre>}<br>else if ()<br>{</pre><pre>}<br>else <br>{</pre><pre>}</pre><p>switch: works like if.</p><pre>switch (x)<br>{<br>     case 1:<br>           printf(&quot;one !\n);<br>           break;<br>     default:<br>           printf(&quot;Blast off!&quot;\n);<br>}</pre><p>Ternary: a more shorter form of the if/else block</p><pre>int x = (expr) ? 1 : 2;</pre><p>Loops:</p><p>Want to repeat a block of code more than once? Rather than having to copy and paste the code block for every repetition, loops come into play. Also, loops are even more important for programs where you might not even know how much repetition you need to make before hand.</p><p>for loops:</p><pre>for (instantiation; condition; counter)<br>{<br>}</pre><p>while loops:</p><pre>while (expr)<br>{<br>}</pre><p>do…while loops:</p><pre>do<br>{<br>} while (expr);</pre><p>That’s all for today. I started some assignments today but was not able to finish them off. I will be working towards that tomorrow before diving bak into the studies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=831329b0fb7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Me, My Software & I]]></title>
            <link>https://asciidev.medium.com/me-my-software-i-651b5db2230a?source=rss-b3d895cce617------2</link>
            <guid isPermaLink="false">https://medium.com/p/651b5db2230a</guid>
            <category><![CDATA[holberton-school]]></category>
            <dc:creator><![CDATA[Samuel Raphael]]></dc:creator>
            <pubDate>Thu, 05 Oct 2017 10:47:20 GMT</pubDate>
            <atom:updated>2018-04-05T11:04:32.069Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fplay.ht%2Farticles%2F651b5db2230a&amp;src=https%3A%2F%2Fplay.ht%2Fembed%2F%3Farticle_url%3Dhttps%3A%2F%2Fmedium.com%2F_p%2Fme-my-software-i-651b5db2230a&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=play" width="700" height="185" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c163a10253d843d91cb4d0adc4db01a/href">https://medium.com/media/4c163a10253d843d91cb4d0adc4db01a/href</a></iframe><p>I have always wanted to become a software engineer. I started gaining interests in software engineering when I discovered Facebook a few years back. Back then, I used to follow my big brother to the internet cafe to, just because I was curious about what people do on the computer. On this fateful day, the day I was to finally meet with Facebook, I followed him to the cafe and he decided to stop browsing before his ticket expired so I can have a few minutes to browse. He opened up Facebook for me, signed me up, showed me around how to update my profile, add friends and he left.</p><p>I sat down there, looking more like a moron at the wonder, Facebook, in front of me. I was able to log out before the ticket expired, but one thing got stuck on my mind then.</p><p>What is this Facebook?</p><p>I started doing lots of research about this Facebook thing. I would save up my daily pocket money, defer food, just to spend it at the cafe, researching about Facebook, adding new friends and looking into anything with a Facebook tag on it.</p><p>Along the line, I started to understand what Facebook was, how it was built (then, I knew it was built by writing a bunch of ‘rubbish’ which I was yet to understand), how it worked, and more importantly, then, how it made money. At first, I was more interested in how it made money and how much it made. My one goal then, was to build something like Facebook, so I can also make money like Facebook.</p><p>I started going through a lot of stuffs, started learning how to use WordPress, Joomla, Xing; all in the quest to build something like Facebook. All through this process, somethings came coming up, I kept realizing I needed to dig deep if I was ever going to be capable of achieving my dreams of building something like Facebook. I started coming to the realization that the bunch of ‘rubbish’ that Facebook was built with, are what I have to learn.</p><p>From there onward, I decided to learn them. In the beginning, it was all about, learning these things so I can build my own Facebook, but along the line, I kept on learning more, seeing more, trying my hands on a lot of things and my dream for building the next Facebook died.</p><p>I realized this, when someone recently asked me, what my dreams are, what I would like to achieve, why I would like to become a software engineer. My answer to her (word for word):</p><p>“Majorly, career wise, I want to become a machine learning and human-machine interaction engineer. To be able to create revolutionary projects for the industry. Also, to embark on researches that will aid other engineers be able to, easily and more efficiently develop projects that will affect the world positively”</p><p>Reflecting back on my answer, I realized, I’ve come a long way from just wanting to build my own Facebook, and make money off that. I realized, I’m now more about wanting to tackle problems head on and solve them, I now want to build, or work on products that would affect people’s lives positively.</p><p><strong>My Choice (Holberton School)</strong></p><p>I have been in search of an institution that can feed my hunger for wanting to learn more about software engineering. An institution that can take me off the rough edges, help me grow my skills and knowledge of software engineering so I can achieve my goals career-wise.</p><p>Through my random search on the internet for that kind of school, I came across Holberton School. Going through the website and other information I could get my hands on, I came to the realization that this school can and is capable of helping me gain mastery in software engineering and this is the main reason why I would love to attend the school.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=651b5db2230a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Python Story]]></title>
            <link>https://asciidev.medium.com/my-python-story-c78bfc1012fb?source=rss-b3d895cce617------2</link>
            <guid isPermaLink="false">https://medium.com/p/c78bfc1012fb</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Samuel Raphael]]></dc:creator>
            <pubDate>Fri, 19 May 2017 23:18:04 GMT</pubDate>
            <atom:updated>2017-05-19T23:18:04.629Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Disclaimer: This post is not to show how good or bad I am writing code with the python programming language or any other thing. It’s just my view of how I came to get started with and love Python</em></p><p>So, a little background story:</p><p>I have always wanted to become a developer, always read every book available, watched every tutorial available to drive me towards becoming a developer. Yes, all that helped me get started writing PHP and Ruby on Rails codes, but the codes were all wacky and there was nothing I did that made the code come out right, they are always wacky.</p><p>That was when I realized that my goal of becoming the developer I would love to become and ultimately getting into the Machine Learning field would not be possible if I stayed at the stage I was, I decided to go find a solution to my problems and that brought me into Switch — an outfit that helps turn budding developers like me into world class developers.</p><p><em>-Just so you know, this is not in anyway a paid advert for the program, it’s basically about my journey — My Python Story</em></p><p><strong>How As That Helped Shaped My Python Story?</strong></p><p>Coming into the program, I always thought I was going to continue in the way I’ve always gone through, learning PHP and Ruby on Rails and I was very very very surprised when, on the first day or backend development, we were told we would be getting to learning a ‘good language for beginners’ known to everyone as Python.</p><p>If you don’t know about the language, according to wikipedia — it’s defined as:<em> </em><strong><em>Python</em></strong><em> is a </em><a href="https://en.wikipedia.org/wiki/Measuring_programming_language_popularity"><em>widely used</em></a><em> </em><a href="https://en.wikipedia.org/wiki/High-level_programming_language"><em>high-level programming language</em></a><em> for </em><a href="https://en.wikipedia.org/wiki/General-purpose_programming_language"><em>general-purpose programming</em></a><em>, created by </em><a href="https://en.wikipedia.org/wiki/Guido_van_Rossum"><em>Guido van Rossum</em></a><em> and first released in 1991. An </em><a href="https://en.wikipedia.org/wiki/Interpreted_language"><em>interpreted language</em></a><em>, Python has a design philosophy which emphasizes code </em><a href="https://en.wikipedia.org/wiki/Readability"><em>readability</em></a><em> (notably using </em><a href="https://en.wikipedia.org/wiki/Whitespace_character"><em>whitespace</em></a><em> indentation to delimit </em><a href="https://en.wikipedia.org/wiki/Code_block"><em>code blocks</em></a><em> rather than curly brackets or keywords), and a syntax which allows programmers to express concepts in fewer </em><a href="https://en.wikipedia.org/wiki/Source_lines_of_code"><em>lines of code</em></a><em> than possible in languages such as </em><a href="https://en.wikipedia.org/wiki/C%2B%2B"><em>C++</em></a><em> or </em><a href="https://en.wikipedia.org/wiki/Java_(programming_language)"><em>Java</em></a><em>.</em><a href="https://en.wikipedia.org/wiki/Python_(programming_language)#cite_note-Summerfield-22"><em>[22]</em></a><a href="https://en.wikipedia.org/wiki/Python_(programming_language)#cite_note-23"><em>[23]</em></a><em> The language provides constructs intended to enable writing clear programs on both a small and large scale.</em><a href="https://en.wikipedia.org/wiki/Python_(programming_language)#cite_note-AutoNT-7-24"><em>[24]</em></a></p><p>Yes, it’s a widely used general purpose programming language which means I can definitely use it for developing my ML and AI applications. Something I never knew was a bit possible. Coming into the program opened my eyes into that and I got converted from a PHP lover to a Python lover in just a few minutes of introduction to the language.</p><p>Ever since then, even though I’ve been having lots of hard times wrapping my head around most of the concepts as they all feel new to me even though I’ve been writing code before now, something I believe most if not all developers go through, I can confidently say I’m growing by the day as a developer.</p><p>That, in as little words as possible is My Python Story. I know that might not sound as enticing or educational as you all might want but the one thing I want to take away from this article is that, ‘Always be on the lookout, you never might know when that next level comes’. Also, before signing off, I would like to officially start my own #100DaysOfCode, which I solemnly promise to adhere to. Any day I don’t adhere to, I will have to add an extra-code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c78bfc1012fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Read The F’ing Error Codes Bro!]]></title>
            <link>https://asciidev.medium.com/read-the-fing-error-codes-bro-99671c28bf38?source=rss-b3d895cce617------2</link>
            <guid isPermaLink="false">https://medium.com/p/99671c28bf38</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Samuel Raphael]]></dc:creator>
            <pubDate>Wed, 19 Apr 2017 09:08:24 GMT</pubDate>
            <atom:updated>2017-04-19T09:08:24.665Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Disclaimer: This post is going to be pretty short as it’s more of a rant than an actual post.</em></p><p>So, one thing everyone knows about developers is that we all run into errors, bugs and problems with our codes a lot. Like someone said, as a developer, you spend 80% of your time fixing bugs and errors and I’ve come to almost believe that statement.</p><p>As we all know there are mostly two types of errors you would always come across as a developer, namely:</p><ol><li>Syntax Errors: Where there is an error with the syntax of your code and it throws errors telling you where the error originated from and what’s causing it. (Emphasis on the ‘telling you’)</li><li>Logical Errors: Where the program runs successfully without throwing any errors but it does not give the desired results. (These are errors you always want to be extra careful of)</li></ol><p>I will be ranting more about syntax errors today as, in my little (not up to 6 months) career in tech, I’ve already grown tired of peeps coming across syntax errors in their code and not knowing how to solve it, like bro — the error code and the big G exists for a reason bruh.</p><p>When you come across a syntax error, your program does you well by giving you a run down of what’s causing the error, so kindly read through it and try fixing it by following through with what the error code tells you. The error code always points to what’s causing the error.</p><p>In the case where you don’t know how to solve the error, the big G is always there to help you out. There’s always a probability someone has encountered your problem and they have documented how they got to solve the problem, that should also provide a pointer on the solution to the problem for you.</p><p>Most times, when you get to ask people the solution to an error you are getting and they don’t have a ready response, they would also have to consult the big G before getting back to you.</p><p>So, to put a stop to my rants I would say —</p><p><strong>READ THE F’ING ERROR CODES BRUH!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99671c28bf38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Changed My Django App Admin Password]]></title>
            <link>https://asciidev.medium.com/how-i-changed-my-django-app-admin-password-cb9c046026a8?source=rss-b3d895cce617------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb9c046026a8</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[django]]></category>
            <dc:creator><![CDATA[Samuel Raphael]]></dc:creator>
            <pubDate>Mon, 17 Apr 2017 14:04:18 GMT</pubDate>
            <atom:updated>2017-04-17T14:06:43.304Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*ujjzz4lq_4dFYVbKL-K6kQ.jpeg" /><figcaption>Image Source: SlideShare</figcaption></figure><p>I know most of all have fallen prey to setting a ridiculously hard password to our admin panels, saving them somewhere and loosing the password due to forgetfulness, or one of the other many reasons we lose our passwords.</p><p>This happened to me while working through a Django tutorial a few minutes ago and I just want to document how I was able to solve it.</p><ol><li>Access your python shell using:</li></ol><pre>python manage.py shell</pre><p>This little code snippet will bring up your python shell development.</p><p>2. Next thing we will do is to get the lists of users and this can by done by:</p><p>a: Import Users from Django auth:</p><pre>from django.contrib.auth.models import User</pre><p>b: Assign Users objects to a variable and print it:</p><pre>users = User.objects.all()<br>print users</pre><p>This prints out the total users in your application, and you can select which is your admin. Generally though, the admin user is often always the first user created.</p><p>3. Select the ‘id’ of the admin user:</p><pre>user = users[0]</pre><p>4. Set a new password for the user:</p><pre>user.set_password(&#39;the password&#39;)</pre><p>5. Save the new password:</p><pre>user.save()</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb9c046026a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>