<?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 Ibrahim Mohammed on Medium]]></title>
        <description><![CDATA[Stories by Ibrahim Mohammed on Medium]]></description>
        <link>https://medium.com/@ibrahimdamy7?source=rss-304a9ec65ea0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sDiQc_suJpKj4iUbpl0kag.jpeg</url>
            <title>Stories by Ibrahim Mohammed on Medium</title>
            <link>https://medium.com/@ibrahimdamy7?source=rss-304a9ec65ea0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 00:40:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ibrahimdamy7/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[Difference between web2.0 and web3.0]]></title>
            <link>https://ibrahimdamy7.medium.com/difference-between-web2-0-and-web3-0-3ab40078ef17?source=rss-304a9ec65ea0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ab40078ef17</guid>
            <dc:creator><![CDATA[Ibrahim Mohammed]]></dc:creator>
            <pubDate>Sat, 05 Mar 2022 14:52:52 GMT</pubDate>
            <atom:updated>2022-03-05T14:52:52.984Z</atom:updated>
            <content:encoded><![CDATA[<p>The internet has evolved from just getting information (web 1.0) to an interacting platform upon which one can collaborate , develop and share resources (web2.0). It only gets better and interesting with the invention of the most recent internet version (web 3.0).</p><h4>What is web 2.0</h4><p>Web 2.0 is an open web that gives room for user interaction, collaboration and getting information.</p><p>With web 2.0 , users interact with centralized platforms like hosting services and social websites (Facebook and Twitter).</p><h4>What is web 3.0</h4><p>Web 3.0 (semantic web) represents the next iteration or phase of the evolution of the internet , built upon the concept of decentralization.</p><p>With web 3.0 users have complete ownership of their data because of it’s decentralized nature.</p><h4>Conclusion</h4><p>To you want to learn more about web3.0 join the <a href="https://blockgames.gg/">blockgames</a> program by <a href="https://zuri.team/">zuri team</a> sponsored by <a href="https://nestcoin.com/">Nestcoin</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ab40078ef17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use prefix free]]></title>
            <link>https://ibrahimdamy7.medium.com/use-prefix-free-fd07e7e7dbea?source=rss-304a9ec65ea0------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd07e7e7dbea</guid>
            <category><![CDATA[css-prefixes]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[css3]]></category>
            <dc:creator><![CDATA[Ibrahim Mohammed]]></dc:creator>
            <pubDate>Tue, 05 Jan 2021 17:19:52 GMT</pubDate>
            <atom:updated>2021-01-05T20:53:39.051Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using Prefix free to handle browser vendors prefix with ease</h3><figure><img alt="prefix free" src="https://cdn-images-1.medium.com/max/750/1*MEKmwk9lexCzmuVFouldig.gif" /><figcaption>prefix free</figcaption></figure><p><strong>Introduction</strong></p><p>As a frontend developer you should prioritize building all browser compactible applications / solution. Browser vendor compatibility should be put in to consideration. web tool like <a href="https://caniuse.com/">Can I Use</a> helps you determine if a CSS property is available across all browsers.</p><p>In this article you will learn to use a life saving tool that saves you the stress of having to write CSS codes compatible for all browsers.</p><p><strong>What are CSS Vendor Prefixes</strong></p><p>CSS vendor prefixes are string relating to specific browsers. they are used to to experiment and support new CSS properties before they are fully supported in all browsers.</p><p><strong>Common CSS Vendor Prefixes</strong></p><p>Common CSS prefixes are listed below;</p><ul><li>Chrome, Safari</li></ul><pre>-webkit-</pre><ul><li>Firefox</li></ul><pre>-moz-</pre><ul><li>Internet Explorer and Microsoft Edge</li></ul><pre>-ms-</pre><ul><li>Old Opera</li></ul><pre>-o-</pre><p><strong>CSS Vendor Prefixes in use</strong></p><p>CSS prefix properties comes first in any order and while the standard CSS property at the last.</p><p>The standard property should be at the bottom because of CSS <a href="https://www.w3schools.com/css/css_specificity.asp">specificity rule</a>. The browser checks to see the property it’s compactible with, if it isn’t available, it falls back to the standard rule.</p><pre>-moz-transform: translateY(10px);</pre><pre>-o-transform: translateY(10px);</pre><pre>-ms-transform: translateY(10px);</pre><pre>-webkit-transform: translateY(10px);</pre><pre>transform: translateY(10px);</pre><p><strong>Prefix free to the rescue</strong></p><blockquote>A script that lets you use only unprefixed CSS properties everywhere. It works behind the scenes, adding the current browser’s prefix to any CSS code, only when it’s needed. <a href="https://cdnjs.com/libraries/prefixfree">CDN page</a></blockquote><p>All you need to worry about is writing the standardized version of the CSS property and adding prefix free CDN to your html.</p><pre>...</pre><pre>&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js&quot;&gt;&lt;/script&gt;</pre><pre>&lt;/body&gt;</pre><pre>&lt;/html&gt;</pre><p><strong>Prefix free limitations</strong></p><p>According to the <a href="https://projects.verou.me/prefixfree/">prefix free docs</a> , below are the limitations.</p><ul><li>Prefixing code in @import-ed files is not supported</li><li>Prefixing <strong>cross-origin</strong> linked stylesheets is not supported, unless they are <a href="https://enable-cors.org/"><strong>CORS-enabled</strong></a></li><li>Unprefixed linked stylesheets won’t work <strong>locally</strong> in Chrome and Opera. <a href="https://projects.verou.me/prefixfree/#local-xhr"><strong>You can change that for yourself</strong></a> though.</li><li>Unprefixed <strong>values</strong> in inline styles (in the style attribute) won’t work in IE and Firefox &lt; 3.6. <strong>Properties</strong> as well in Firefox &lt; 3.6.</li></ul><p><strong>Conclusion</strong></p><p>In this article, we have learnt the use of prefix free and it’s limitations.</p><p>Worry less about browser compatibility issues, write your beautiful CSS codes, sit back and relax and let prefix free handle compatible issues for you.</p><p><strong>Attribution</strong></p><p><a href="https://projects.verou.me/prefixfree/">https://projects.verou.me/prefixfree/</a></p><p><a href="https://www.lifewire.com/css-vendor-prefixes-3466867">https://www.lifewire.com/css-vendor-prefixes-3466867</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd07e7e7dbea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understand the “This” keyword, in Javascript]]></title>
            <link>https://ibrahimdamy7.medium.com/understand-the-this-keyword-in-javascript-7e8ba10fad6d?source=rss-304a9ec65ea0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e8ba10fad6d</guid>
            <category><![CDATA[this]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Ibrahim Mohammed]]></dc:creator>
            <pubDate>Fri, 01 Jan 2021 16:06:45 GMT</pubDate>
            <atom:updated>2021-01-06T06:05:50.867Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding the “This” keyword, in Javascript</h3><figure><img alt="this in javascript" src="https://cdn-images-1.medium.com/max/860/1*2HtVBDKNYYK7thMjAsDeDg.jpeg" /><figcaption>pixabay</figcaption></figure><h4><strong>Introduction</strong></h4><p>In this short article, you will learn the use of the this keyword and it’s value in different context.</p><h4>what is “this”</h4><p>In JavaScript, the thing called this is the object that &quot;owns&quot; the code.</p><p>The value of this, when used in an object, is the object itself.</p><p>In a constructor function this does not have a value. It is a substitute for the new object. The value of this will become the new object when a new object is created.</p><p>Note that this is not a variable. It is a keyword. You cannot change the value of this. <a href="https://www.w3schools.com/js/js_object_constructors.asp#:~:text=The%20this%20Keyword&amp;text=In%20a%20constructor%20function%20this,this%20is%20not%20a%20variable.">W3Schools</a></p><h4>The use of this</h4><ol><li>The this keyword can be used to assign value and retrieve values.</li></ol><pre>const Profile = {</pre><pre>name: &quot;Eric Cartman&quot;,</pre><pre>callName() {</pre><pre>return this.name;</pre><pre>},</pre><pre>};</pre><pre>Profile.callName();<br>// Eric Cartman</pre><p>as seen above, the name attribute of Profile was accessed in the callName method using this.</p><p>this can be used to create a new object property as shown below.</p><pre>const Profile = {</pre><pre>name: &quot;Eric Cartman&quot;,</pre><pre>addAge(<em>age</em>) {</pre><pre>this.age = <em>age</em>;</pre><pre>},</pre><pre>};</pre><pre>Profile.addAge(8);<br>// creates an age property for the profile object.</pre><p>2. this is used to create attribute in object constructor functions. Object constructor functions are blueprints for creating objects of the same type (having the same properties).</p><pre>function Profile (name, age) {</pre><pre>this.name = name;</pre><pre>this.age = age;</pre><pre>}</pre><pre>const myProfile = new Profile(&#39;Eric&#39;, 8);<br>const yourProfile = new Profile(&#39;Cartman&#39;, 9);</pre><h4>The value of “this” in function invocation</h4><p>The value of this in a function is determined by how the function is called. lets look at two case scenarios.</p><pre>function name() {</pre><pre>this.name = &quot;john&quot;;</pre><pre>return this.name;</pre><pre>}</pre><pre>name();<br>// name here is a global window object property</pre><p>The value of this in this context refers to the global window object.</p><p>The second scenario is a method. simply put, a method is an object property which is a function.</p><pre>const profile = {</pre><pre>age: 13,</pre><pre>name: function () {</pre><pre>this.name = &quot;john&quot;;</pre><pre>},</pre><pre>};</pre><pre>profile.name();<br>// name here is a profile object property</pre><p>What will be the value of this in the code below?</p><pre>const profile = {</pre><pre>age: 13,</pre><pre>name: function () {</pre><pre>return this.age;</pre><pre>},</pre><pre>};</pre><pre>let call = profile.name;</pre><pre>call();<br>// undefined</pre><p>I think you guessed right, this now refers to the global window object.</p><h4>Bind “this”</h4><p>As seen above, this refers to the global window object when a method is assigned to a new variable outside the scope of the object.</p><p>to maintain the value of this for the declared object, the bind method is used as shown below.</p><pre>const profile = {</pre><pre>age: 13,</pre><pre>name: function () {</pre><pre>return this.age;</pre><pre>},</pre><pre>};</pre><pre>let call = profile.name.bind(profile);</pre><pre>call();<br>// 13</pre><p>call now inherits the value of this from the profile object .</p><h4>Conclusion</h4><p>In this short write up, you have learnt what this is and it’s usage. Let me know what you think in the comment section.</p><h4>Attributions</h4><p><a href="https://www.freecodecamp.org/news/learn-es6-the-dope-way-part-ii-arrow-functions-and-the-this-keyword-381ac7a32881/#:~:text=While%20in%20ES5%20%27this%27%20referred,method%20or%20the%20object%20itself">https://www.freecodecamp.org/news/learn-es6-the-dope-way-part-ii-arrow-functions-and-the-this-keyword-381ac7a32881/#:~:text=While%20in%20ES5%20%27this%27%20referred,method%20or%20the%20object%20itself</a>.</p><p>You might need to create an account to access this <a href="https://classroom.udacity.com/courses/ud711/lessons/504843ae-ba16-4573-a859-94da7a7d1dd4/concepts/27af7aad-6d3b-483e-960d-22d3fc090dc1">https://classroom.udacity.com/courses/ud711/lessons/504843ae-ba16-4573-a859-94da7a7d1dd4/concepts/27af7aad-6d3b-483e-960d-22d3fc090dc1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e8ba10fad6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write tests for file upload using mocha]]></title>
            <link>https://ibrahimdamy7.medium.com/write-tests-for-file-upload-using-mocha-c0661debf356?source=rss-304a9ec65ea0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0661debf356</guid>
            <dc:creator><![CDATA[Ibrahim Mohammed]]></dc:creator>
            <pubDate>Wed, 22 Jan 2020 15:31:58 GMT</pubDate>
            <atom:updated>2020-01-22T15:31:58.603Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="mocha image copied from Google" src="https://cdn-images-1.medium.com/max/365/1*K0WGeFJIoS75VAA7V1xfFg.png" /><figcaption>copied from Google</figcaption></figure><p>Writing tests is essential when creating Apis. It allows you to detect bugs and be sure if your functions are working as they should.</p><p>Here is a good explanation on writing <a href="https://medium.com/@cavdy/write-a-mocha-test-for-file-upload-and-input-field-d8fc6c9fcfa">file upload test</a> by <strong>Franklin Ikenna Isaiha</strong>. In that article he used <a href="https://www.npmjs.com/package/file-system">file system</a> which worked perfectly. But using the file system<strong>, </strong>your test passes locally and not on Travis.</p><p>I reached out to him and he gave me a hint on how to successfully write file upload tests that will pass locally and on Travis.</p><h3>Prerequisites</h3><ol><li>installed all necessary dependencies for your node js project.</li><li>install mocha and chai and chai-http.</li><li>you must have your file upload controller working (if you choose to do that before writing tests).</li></ol><h3>Testing</h3><p>In your test folder, create a folder and add a file or image as the case maybe (what you are testing).</p><pre>import chai from &#39;chai&#39;;</pre><pre>import chaiHttp from &#39;chai-http&#39;;</pre><pre>import path from &#39;path&#39;;<br></pre><pre>//depending on your file structure </pre><pre>import app from &#39;../server&#39;;</pre><pre>chai.use(chaiHttp);</pre><pre>chai.should();</pre><pre>describe(&#39;file upload&#39;, () =&gt; {</pre><pre>it(&#39;should post a gif&#39;, (<em>done</em>) =&gt; {</pre><pre>chai.request(app)</pre><pre>.post(&#39;/api/v1/gifs&#39;)</pre><pre>.attach(&#39;gif&#39;, path.join(__dirname, &#39;./test-images/gif.gif&#39;), &#39;gif.gif&#39;)</pre><pre>.field(&#39;gifTitle&#39;, &#39;my gif&#39;)</pre><pre>.end((<em>err</em>, <em>res</em>) =&gt; {</pre><pre>res.should.have.status(201);</pre><pre>res.body.should.be.a(&#39;object&#39;);</pre><pre>})</pre><pre>done();</pre><pre>})</pre><pre>})</pre><p>By using path, you make the file available locally and also online. This makes it possible for Travis to pick up the file when running.</p><p>.attach() takes in three parameters, the key, the file path and the filename which is the value and the file name..field() serves at the input field.</p><h3>Conclusion</h3><p>Hopefully this article is well explanatory for you to also write your file upload tests.</p><p>Let me know what you think about the article in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0661debf356" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first Node.js App (powered by Andela Teencode)]]></title>
            <link>https://ibrahimdamy7.medium.com/my-first-node-js-app-powered-by-andela-teencode-b06ba059deed?source=rss-304a9ec65ea0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b06ba059deed</guid>
            <category><![CDATA[andela]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Ibrahim Mohammed]]></dc:creator>
            <pubDate>Wed, 04 Sep 2019 08:33:23 GMT</pubDate>
            <atom:updated>2019-09-04T08:33:23.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vrFbKj4B6Vj9qgvsvcMbWQ.png" /></figure><p><strong>I</strong> was one of the lucky ones that was chosen for the Andela Teencode program 2019. The 13 weeks program kicked off on 6th of April.</p><p>I was introduced to node.js at the Andela Teencode Camp. We worked on weekly assignments. Our last task was to build a Maintenance Tracker App.</p><blockquote>Maintenance Tracker App is an application that provides users with the ability to reach out to operations or repairs department regarding repair or maintenance requests and monitor the status of their request.</blockquote><h4><strong>How I Handled Frustration</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*UF0pNhZzMAA4ZRkNsIMcMQ.jpeg" /></figure><p>Yeah, frustration is real. That’s my rubic cube. If you noticed, you can barely differentiate between the colors, that is because i apply pressure when arranging it. Most times i get frustrated that i feel like breaking my laptop. But if i break my laptop, how will i code when i’m calm. So the rubic cube suffered it.</p><h4><strong>My Motivation</strong></h4><p>I can’t recall the number of times i thought of quitting. Each time, i try to talk to people about the project and the problems i am facing with it. My mom was always there, brother Abass and the carton of mini cream crackers my brother (Adam) bought for me.</p><p>I wasn’t born to know it all. I checked for resources and asked questions. Google whom i made my best friend was there, also the best connection (Devs) i have for now.</p><p>It has been a wonderful experience so far.</p><p><a href="https://github.com/Mohamilr/Maintenance-Tracker/tree/develop">The project git-hub link </a>and <a href="https://fix-it-tracker.herokuapp.com/">the hosted pages</a></p><h4>Here are some of the resources i used when building the app.</h4><ol><li><a href="https://dev.to/asciidev/testing-a-nodeexpress-application-with-mocha--chai-4lho">writing tests with mocha</a></li><li><a href="https://travishorn.com/setting-up-eslint-on-vs-code-with-airbnb-javascript-style-guide-6eb78a535ba6">configuring Vscode + eslint + airbnb</a></li><li><a href="https://github.com/istanbuljs/nyc/blob/master/docs/setup-coveralls.md">configuring nyc and coveralls</a></li><li><a href="https://medium.com/@maison.moa/using-jwt-json-web-tokens-to-authorize-users-and-protect-api-routes-3e04a1453c3e">protecting routes with JWT</a></li><li><a href="https://medium.com/@kimtnguyen/how-to-deploy-es6-node-js-express-back-end-to-heroku-7e6743e8d2ff">hosting to Heroku</a></li><li><a href="https://medium.com/@pelensky/environment-variables-in-travis-ci-2c5bce1b01d8">setting environment variable on Travis CI</a></li><li><a href="https://www.digitalocean.com/community/questions/blocked-by-cors-policy-the-access-control-allow-origin-mean-stack">solving blocked by CORS policy in the frontend</a></li><li><a href="https://stackoverflow.com/questions/33527653/babel-6-regeneratorruntime-is-not-defined">solve regenerator not defined error</a></li></ol><h4>THANK YOU ANDELA FOR THE GREAT OPPORTUNITY TO IMPROVE MY SKILLS.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b06ba059deed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Knowledge and its purpose: Doing the right thing]]></title>
            <link>https://ibrahimdamy7.medium.com/knowledge-and-its-purpose-doing-the-right-thing-b53eddf76049?source=rss-304a9ec65ea0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b53eddf76049</guid>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Ibrahim Mohammed]]></dc:creator>
            <pubDate>Sun, 24 Mar 2019 20:55:56 GMT</pubDate>
            <atom:updated>2019-03-24T20:55:56.852Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*1tXxL5Mvw31KxrVwyBTWHg.jpeg" /></figure><blockquote>Mikes photos</blockquote><h3>Knowledge and its purpose: Doing the right thing</h3><p>Knowledge is facts, information, and skills acquired through experience or education; the theoretical or practical understanding of a subject. Knowledge involves familiarity, awareness, understanding someone or something, such as facts, information, descriptions, or skills, which is acquired through experience or education by perceiving, discovering, or learning. Knowledge can refer to a theoretical or practical understanding of a subject.</p><blockquote>“Google definition ”</blockquote><h3>Doing the right thing in seeking knowledge</h3><p>Knowledge has no boundaries. It is compulsory for every human to seek knowledge, there is a great difference between just passing exams and knowledge acquisition. I can decide to take on a course, write exams and pass, but the question is, have I acquired knowledge?, have I been impacted by whatever I have studied? To attain knowledge you will need the following attributes(endurance, persistence, patience follow instructions.) You will not attain knowledge while you are in comfort and ease .When you say to yourself ”I can’t”, it pulls down your motivation, funny enough what you think you can’t do is what you can actually do best when the attributes of learning is adopted. The taught of I can do better energizes you.<br>Do not let anything derail you from learning , its not easy, nothing worthwhile is.<br>When you type the keyword “how to” on a search engine, you get lots of options, there are many courses online but the determination to learn is out of place.You spend most of your time on the internet chatting and surfing stuffs that will not positively impact you. When will you make good use of the facilities(time ,internet, phones)you have?. Learning is greater than any grades.</p><h3>Doing the right thing with acquired knowledge</h3><p>Why do you seek knowledge? We tend to amass knowledge but to what benefit?. And remember no knowledge is a waste!. Knowledge is meant to be of positive impact in you. The real object of knowledge is not by just learning, it is buy putting it to work and it bringing fort fruit for you and to others benefit(the society), it is by reflecting on your day to day activities, it is by you applying it in your deen.<br>Scholars the likes of shiek mufti menk.Billionaires, the likes of Bill gates and Elon Musk did not get successful by being spectators. The former and the latter acquired knowledge and not just that, they put it to work. The product of their knowledge has a great impact on the people. <br>You live a transient life, but the impact of your knowledge out-lives you. The knowledge you have amassed is pointless when not utilized. Make adequate use of it!.</p><h3>Conclusion:</h3><blockquote>&quot;Knowing is not enough we must apply.Willing is not enough we must do.&quot; - Johann Wolfgang Von Goethe</blockquote><p>Procrastination holds you back, do it now!. Don’t just do the right thing, do it at the right time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b53eddf76049" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>