<?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 Fortress Enebe on Medium]]></title>
        <description><![CDATA[Stories by Fortress Enebe on Medium]]></description>
        <link>https://medium.com/@fortressenebe?source=rss-a6e27c58b85d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4vZ8kP3-acQmByL7EJYVNg.jpeg</url>
            <title>Stories by Fortress Enebe on Medium</title>
            <link>https://medium.com/@fortressenebe?source=rss-a6e27c58b85d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:01:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fortressenebe/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[An Introduction to Frameworks and Libraries]]></title>
            <link>https://fortressenebe.medium.com/an-introduction-to-frameworks-and-libraries-d6878f394bb7?source=rss-a6e27c58b85d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6878f394bb7</guid>
            <category><![CDATA[frameworks-and-libraries]]></category>
            <category><![CDATA[framework-vs-library]]></category>
            <category><![CDATA[libraries]]></category>
            <category><![CDATA[framework]]></category>
            <dc:creator><![CDATA[Fortress Enebe]]></dc:creator>
            <pubDate>Sun, 14 Feb 2021 22:50:48 GMT</pubDate>
            <atom:updated>2021-02-14T22:51:40.625Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*lohNY7MftPYeiEcaz1Yb_A.png" /><figcaption>Source: ICODEMAG</figcaption></figure><p>Today I’ll be taking you on a short journey to understanding what Frameworks and Libraries are, and the differences that exist between them.</p><p><em>That said, let’s hit the road.</em></p><p>One thing that you should get clearly before we proceed is the fact that Libraries and Frameworks are very different terms that shouldn’t be used interchangeably as they both operate with different concepts.</p><p>A number of Frameworks and Libraries exist for various core programming languages. They are developed by certain individuals or groups to make problem-solving in these core languages easier and faster. A list of popular programming languages and an example of their Libraries and Frameworks are shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*jcRiQ4Vvx_KZTdqgHC8Wow.png" /><figcaption>Difference Table</figcaption></figure><p><strong>LIBRARIES</strong></p><p>Libraries are reusable functions created to solve specific problems. These functions are condensed lines of codes called by the developer only when he needs to solve a particular problem or perform a specific task.</p><p>A quick example to drive this home is the process of making rice. In the part of the world where I come from, people make rice with various ingredients (some of which are dispensable), some of which are added at various intervals based on the needs and choice of the cook. The same process of adding ingredients at different intervals applies to libraries as they are only used when appropriate, leaving the developer in charge of when and where they should be called and used.</p><p>Libraries help you perform tasks without changing anything at the structural and architectural level of the codes and this makes it possible and easy for it to be added seamlessly into existing projects.</p><p><strong>FRAMEWORKS</strong></p><blockquote><em>IN COMPUTER PROGRAMMING, A </em><a href="https://en.wikipedia.org/wiki/Software_framework"><em>SOFTWARE FRAMEWORK</em></a><em> IS AN ABSTRACTION IN WHICH SOFTWARE PROVIDING GENERIC FUNCTIONALITY CAN BE SELECTIVELY CHANGED BY ADDITIONAL USER-WRITTEN CODE, THUS PROVIDING APPLICATION-SPECIFIC SOFTWARE.– WIKIPEDIA, MAY 15TH, 2020</em></blockquote><p>In a simpler term: Frameworks provide a skeletal system for your projects and then allow you to add flesh to it.</p><p>Since it can’t be integrated into existing projects seamlessly, Frameworks form the base of a project. That is, if you must use a Framework, you must start the project with it. Once the project is started, the Framework which is highly opinionated determines the flow. Like where and where exactly a developer should add different parts of his codes or files. Frameworks leave the developer with no control (Inversion Control) as the developer is fully immersed in the workflow of the Framework and not his.</p><p>Here’s a quick illustration to drive my point: There are different recipe books describing the procedures involved in making zucchini bread. Any recipe book you decide to use has a Framework you need to follow to arrive at the desired taste, which might be different from what other recipe books may provide. Each step you need to execute is well defined in the recipe book and must be followed from the beginning to the end in the defined order if you must arrive at your result. The recipe book allows you to carry out certain steps while withholding the privilege to edit the steps it provides. The above, explains the way Frameworks work.</p><p><strong>CONCLUSION</strong></p><p>In conclusion, you should remember that any function belonging to a Framework can only be called within that Framework, while a Library can be called at any point out of context.</p><p>With these said, where do you think ReactJS fits in?</p><p><em>Originally published on </em><a href="https://icodemag.com/"><em>ICODEMAG</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6878f394bb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Before and After Pseudo-Elements (Part 2): Making Tooltips]]></title>
            <link>https://fortressenebe.medium.com/css-before-and-after-pseudo-elements-part-2-making-tooltips-f00d3a170f9e?source=rss-a6e27c58b85d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f00d3a170f9e</guid>
            <category><![CDATA[css-pseudo-elements]]></category>
            <category><![CDATA[tooltips]]></category>
            <category><![CDATA[before-and-after]]></category>
            <dc:creator><![CDATA[Fortress Enebe]]></dc:creator>
            <pubDate>Sun, 14 Feb 2021 22:38:49 GMT</pubDate>
            <atom:updated>2021-02-14T22:38:49.091Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*N-I1SuQps7ZEYxIWZOyEpQ.png" /><figcaption>Source: ICODEMAG</figcaption></figure><p>We’ll continue from where we stopped last time on pseudo-elements <strong>::before</strong> and <strong>::after.</strong> We’ll be seeing how to apply them in making <a href="https://en.wikipedia.org/wiki/Tooltip"><strong>tooltips</strong></a>. I’ll advice that you go through the <a href="https://fortressenebe.medium.com/understanding-css-before-and-after-pseudo-elements-fe21d207c0c9">previous article</a> if you haven’t, it will help you better understand what we’re dealing with.</p><p><strong>WHAT IS A TOOLTIP?</strong></p><p>Tooltips help provide extra information and clarify the doubt of users as they use some functions in your websites. They’re necessary to offer explanations about particular features and help users use those features even as they navigate your website.</p><p>OK that understood, let’s get our hands dirty and make mama some tooltips.</p><p>We’ll be making a tooltip that tells users the meaning of CPU once they hover on the word (or abbreviation) <strong>CPU</strong>.</p><p>For our HTML we’ll have,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Szu0SvyK1P91l5uRYHxfig.png" /><figcaption>HTML</figcaption></figure><p>Here we’re trying to attach a tooltip to the text <strong>CPU</strong> enclosed within the <strong>span</strong> tag. Within the tag we’ll have to create a user-defined attribute that is going to hold the text we’ll be displaying in our tooltip which in this case will be: <strong>Central Processing Unit</strong>.</p><p>We might want to style our “CPU” text so that it stands out from the other texts and show our users that there’s something attached to it. To do this, we’ll be adding codes from the snippet below to our CSS file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*ROBSGYK0zCnUdjQxlBlJTw.png" /><figcaption><em>CSS</em></figcaption></figure><p>What we have above is a selection method that picks out the <strong>span</strong> tag with the attribute <strong>simple-tooltip</strong> and applies these styles to its content. After adding the styles, we have this as our output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*vtJOZl_xri8WzoR6tkxA0g.png" /><figcaption><em>OUTPUT (span color change)</em></figcaption></figure><p>That sorted out, we’ll want to start visualizing our tooltip, and to do this I’ll be using the <strong>::after</strong> pseudo-element (you can use the <strong>::before</strong> pseudo-element too). Codes below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*f6hqNvOryz7Vvrref-RRtA.png" /><figcaption><em>CSS</em></figcaption></figure><p>The property <strong>content</strong> will take in the attribute attached to the word <strong>CPU</strong> we’re adding the tooltip to.</p><p>The <strong>transform:scale()</strong> scales the tooltip to <strong>0</strong> so that it’s not displayed initially. This can also be done with <strong>display:none</strong>, but for the sake of some sweet animations, we’ll be using the first one. Our result will look like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*WS1FftM_2mmuwX157PaMbA.png" /><figcaption><em>OUTPUT</em></figcaption></figure><p>Great! We have this displaying already so we’re on track, but wait! It’s a tooltip, we don’t want it displaying always, only when the users hover on the <strong>CPU</strong> text. It is for this reason we initially scaled the tooltip to <strong>0</strong>. To display the tooltip on mouse hover, we can use the <strong>:hover</strong> pseudo class. Here’s what the code will look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*cMyTr6UpUrBubw4GdhX0Cw.png" /><figcaption>CSS</figcaption></figure><p>Remember the sweet animation I told you of? The <strong>transition</strong> property will make that obvious.</p><p>And there you go; your tooltip set and ready to go.</p><p><em>Originally published on </em><a href="https://icodemag.com/"><em>ICODEMAG</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f00d3a170f9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom Laravel-Vue Configuration]]></title>
            <link>https://fortressenebe.medium.com/custom-laravel-vue-configuration-55a866211436?source=rss-a6e27c58b85d------2</link>
            <guid isPermaLink="false">https://medium.com/p/55a866211436</guid>
            <category><![CDATA[custom-laravel-vue]]></category>
            <category><![CDATA[laravel-vue-configuration]]></category>
            <category><![CDATA[laravel-vue]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[vue]]></category>
            <dc:creator><![CDATA[Fortress Enebe]]></dc:creator>
            <pubDate>Sun, 14 Feb 2021 22:07:03 GMT</pubDate>
            <atom:updated>2021-02-14T22:07:03.120Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EGo3xGxVAhp-aROiY0_rVQ.png" /><figcaption>Custom Laravel-Vue Config</figcaption></figure><p>Vue comes prepackaged with Laravel, ever wondered how to “customly” set it up? This is for you, I hope it’s helpful.</p><p>1. As expected, the first step is to create a new laravel project. To do this, you may, or may not need to have laravel installed to in your computer. If you don’t have laravel installed, you’ll simply have to run <em>composer create-project laravel/laravel project-name </em>on your command line to create a new project<em>.</em> Having done this, navigate to the project directory and run <em>npm install</em> to install all node packages present in the package.json file, one of which is Vue.</p><p>2. Next step will be to install the vue-router. To do this, run <em>npm install vue-router. </em>While this installs, you may want to organize and restructure your <em>resources/assets/js/</em> folder directory.</p><p>3. Navigate to<em> resources/assets/js/components</em> folder where you’ll find an <em>example.vue</em> file. You might want to delete this file or keep it and simply make modifications to it, your choice, but I prefer to delete and start on a clean slate. Create a new file (or modify your example.vue as the case may be) and call it whatever you choose. Have it at the back of your mind that this file will serve as the root of your Vue app, for the sake of this short tutorial, I’ll call mine “root”. You can just add your template tag to the file for now.</p><p>4. Navigate to the <em>app.js</em> file which you’ll find on the same level with the <em>resources/assets/js/components</em> folder. Look for a line that looks like what I have below.</p><pre>Vue.component(‘example’, require(‘./components/Example.vue’));</pre><p>Modify the parameters (name and route) passed in appropriately. The first parameter (name) can be any name you choose, while the next parameter is the path to the root component we created, which is “root.vue”. So we have,</p><pre>Vue.component(‘root’, require(‘./components/root.vue’));</pre><p>5. Next, proceed to the resources/views folder where you’ll be creating some sort of bridge between your laravel and vue. You can go ahead and delete the <em>welcome.blade.php</em> file found there, then proceed to make a new blade file which in my case I’ll call <em>home.blade.php.</em> After creating and adding basic html initialization lines to the file, I have something like this</p><pre>&lt;!doctype html&gt;</pre><pre>&lt;html lang=”{{ app()-&gt;getLocale() }}”&gt;</pre><pre>&lt;head&gt;</pre><pre>&lt;meta charset=”utf-8&quot;&gt;</pre><pre>&lt;meta http-equiv=”X-UA-Compatible” content=”IE=edge”&gt;</pre><pre>&lt;meta name=”viewport” content=”width=device-width, initial-scale=1&quot;&gt;</pre><pre>&lt;title&gt;Laravel-Vue Tuts&lt;/title&gt;</pre><pre>&lt;/head&gt;</pre><pre>&lt;body&gt;</pre><pre>&lt;/body&gt;</pre><pre>&lt;/html&gt;</pre><p>6. Proceed to create a div within your body tag and make the id equal to “app”. Within this div, call the vue root component by the name you created in step 4; one called root.</p><p>7. The next step is to create a script tag where you’ll be requiring the trans-compiled js file stored in the public/js directory.</p><pre>&lt;!doctype html&gt;</pre><pre>&lt;html lang=”{{ app()-&gt;getLocale() }}”&gt;</pre><pre>&lt;head&gt;</pre><pre>&lt;meta charset=”utf-8&quot;&gt;</pre><pre>&lt;meta http-equiv=”X-UA-Compatible” content=”IE=edge”&gt;</pre><pre>&lt;meta name=”viewport” content=”width=device-width, initial-scale=1&quot;&gt;</pre><pre>&lt;title&gt;Laravel&lt;/title&gt;</pre><pre>&lt;/head&gt;</pre><pre>&lt;body&gt;</pre><pre>    &lt;div id=”app”&gt;</pre><pre>        &lt;root&gt;&lt;/root&gt;</pre><pre>    &lt;/div&gt;</pre><pre>&lt;/body&gt;</pre><pre>&lt;script src=”{{mix(‘js/app.js’)}}”&gt;&lt;/script&gt;</pre><pre>&lt;/html&gt;</pre><p>8. Next up, setup “Routers”.</p><p>Return to resources/assets folder and create a js file which you can call router.js. This file will act as your vue-router index.</p><p>Proceed to import both vue and vue-router within the file, after which you should add the Vue.use(“<em>Router-Name</em>”) line before proceeding to create and export your array of routes. In the end the file should like this</p><pre>import Vue from ‘vue’</pre><pre>import Router from ‘vue-router’</pre><pre>Vue.use(Router)</pre><pre>const routes = [</pre><pre>    {</pre><pre>       //route details</pre><pre>    }</pre><pre>]</pre><pre>export default new Router({</pre><pre>   mode: ‘history’,</pre><pre>   routes</pre><pre>})</pre><p>Having concluded this, you should return to your <em>resources/assets/components/root.vue</em> file and add the &lt;router-view /&gt; component to return pages based on the route.</p><p>It should look this way now.</p><pre>&lt;template&gt;</pre><pre>   &lt;div&gt;</pre><pre>      &lt;router-view&gt;&lt;/router-view&gt;</pre><pre>   &lt;/div&gt;</pre><pre>&lt;/template&gt;</pre><p>Proceed to the app.js file still on the same level with your router.js where you’ll be registering the router. All you’ll have to do is import the router file and pass it on to app. The file should now look like this afterwards.</p><pre>/**</pre><pre>* First we will load all of this project’s JavaScript dependencies which</pre><pre>* includes Vue and other libraries. It is a great starting point when</pre><pre>* building robust, powerful web applications using Vue and Laravel.</pre><pre>*/</pre><pre>require(‘./bootstrap’);</pre><pre>window.Vue = require(‘vue’);</pre><pre>/**</pre><pre>* Next, we will create a fresh Vue application instance and attach it to</pre><pre>* the page. Then, you may begin adding components to this application</pre><pre>* or customize the JavaScript scaffolding to fit your unique needs.</pre><pre>*/</pre><pre>Vue.component(‘root’, require(‘./components/root.vue’));</pre><pre>import router from ‘./router’</pre><pre>const app = new Vue({</pre><pre>   el: ‘#app’,</pre><pre>   router</pre><pre>});</pre><p>With this done, we’re nearing a close. All we have left is to configure the laravel router to route unregistered paths to the vue router instead of blocking it. To do this, navigate to <em>routes/web.php</em> and add a new route that looks like this (It’s best kept beneath other routes in this file).</p><pre>Route::any(‘{slug}’, function () {</pre><pre>   return view(‘home’);</pre><pre>});</pre><p>What we’re basically doing is telling the laravel router that once a user navigates to any route that it doesn’t have registered in the <em>web.php</em> file, it should forward it to the vue-router through the bridge we created in the<em> </em><a href="http://home.blade.php/"><em>home.blade.php</em></a> file.</p><p>With all these done, you can celebrate; you have successfully setup laravel-vue!!!</p><p>All you may want to do now is just start the app by running <em>php artisan serve </em>and <em>npm run watch</em> to track and compile changes to your vue files.</p><p>If this was helpful, I’ll appreciate your comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55a866211436" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding CSS Before and After Pseudo-Elements]]></title>
            <link>https://fortressenebe.medium.com/understanding-css-before-and-after-pseudo-elements-fe21d207c0c9?source=rss-a6e27c58b85d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe21d207c0c9</guid>
            <category><![CDATA[css-pseudo-elements]]></category>
            <category><![CDATA[tooltips]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[before-and-after]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Fortress Enebe]]></dc:creator>
            <pubDate>Sat, 22 Feb 2020 23:36:36 GMT</pubDate>
            <atom:updated>2021-02-14T22:09:30.633Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*4w_nJABXshG6gYsegmDbgA.png" /><figcaption><em>Original Image Source: Photo by Branko Stancevic on Unsplash</em></figcaption></figure><p>Most likely along the line somewhere, you must have come across <strong>::before</strong> (or <strong>:before</strong>) and <strong>::after</strong> (or <strong>:after</strong>) in some CSS codes and have been asking what they are and what exactly they are used for. Those you see there are referred to as pseudo-elements. As the name <strong>pseudo</strong> implies, they’re anonymous as they are used to apply styles to sections in web pages without actually defining any new HTML element. Today I will be showing you how they can be applied to style web pages and the implications of using them (<strong>::before</strong> and <strong>::after</strong>).</p><p>Please note that either the single colon (<strong>:</strong>) or double (<strong>::</strong>) colon can be used to implement the <strong>before</strong> and <strong>after</strong> pseudo-elements, but the double colon is what is used in <a href="https://developer.mozilla.org/en-US/docs/Archive/CSS3">CSS3</a>. It was introduced to distinguish the pseudo-elements from the pseudo-classes.</p><h3>Before (::before)</h3><p>As the name implies, the <strong>::before</strong> element is used to create and style an anonymous element before the main content of the element we’re actually dealing with. A lot of people have a misconception that pseudo-elements are created outside of the element it is applied to like the image below shows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*PoltAt_1VEQmfPsf8-3slw.png" /></figure><p>But it actually isn’t so. The pseudo-elements are created within the element we’re dealing with as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/197/1*YCr6CRFFw0L5x1OOMZSWHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*XrUORMkMK4SonB0GlAq91g.png" /></figure><p><strong>NOTE:</strong> To implement a visible pseudo-element, it must take in one very important property: <strong>content</strong>. If this property is not defined all the applied styles will not be visible.</p><p><strong>EXAMPLE:</strong></p><p>Using the <strong>::before</strong> pseudo-element to insert an opening quotation mark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*qw7fa8X5o-BqUL-7_qpRiw.png" /><figcaption>HTML</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*zM9BTI8ZZBCBmZQrnE1S5w.png" /><figcaption>CSS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wLG6cu5AgDSyzZTLNEGr4A.png" /><figcaption>OUTPUT</figcaption></figure><h3>After (::after)</h3><p>This is the same as the <strong>before</strong> pseudo-element, but this time the anonymous element is created <strong>after</strong> the element being dealt with — not out of the element, but still within the element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*6uKQ4pnGUayilxXcHCyhVA.png" /></figure><p><strong>EXAMPLE:</strong></p><p>Using the <strong>::after</strong> pseudo-element to insert a closing quotation mark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*FBZNtXJESkwt-dBWMqeMaA.png" /><figcaption>CSS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZ3gJOJTcy-7bH-X4tt-CQ.png" /><figcaption>OUTPUT</figcaption></figure><p>That’ll be all for now. In my next article I’ll be showing you how to make a tool tip without JavaScript using just the <strong>::before</strong> or <strong>::after</strong> pseudo-elements.</p><p>Thanks.</p><p><em>Originally published on </em><a href="https://icodemag.com/"><em>ICODEMAG</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe21d207c0c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>