<?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 Mohcin Bounouara on Medium]]></title>
        <description><![CDATA[Stories by Mohcin Bounouara on Medium]]></description>
        <link>https://medium.com/@BN_Geek?source=rss-9c5be72097b7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aQpcv_Lb1_xwYvtOhwnOTw.jpeg</url>
            <title>Stories by Mohcin Bounouara on Medium</title>
            <link>https://medium.com/@BN_Geek?source=rss-9c5be72097b7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:04:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@BN_Geek/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to create a good pull request]]></title>
            <link>https://medium.com/@BN_Geek/how-to-create-a-good-pull-request-7ae31049c68b?source=rss-9c5be72097b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ae31049c68b</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Mohcin Bounouara]]></dc:creator>
            <pubDate>Sat, 23 Mar 2024 19:56:01 GMT</pubDate>
            <atom:updated>2024-03-23T19:56:01.851Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*WKR-up8C9rC99thEjGY6ZA.png" /></figure><p>As a software developer throughout my career, I’ve learned many things from several mistakes, one of which is related to creating effective pull requests. Here are some steps to provide a well-structured pull request that simplifies the review process:</p><p>1. <strong>Break Down Large Tasks</strong>: If you’re dealing with a large task that requires extensive changes across multiple files, consider requesting to split it into smaller, more manageable tickets. This promotes a more focused and efficient review process.</p><p>2. <strong>Explain Changes and Motivations</strong>: When making modifications, whether to functions, classes, or properties, always include a clear description of what you changed and why you made those changes. Understanding the rationale behind your changes helps reviewers provide more meaningful feedback.</p><p>3. <strong>Justify Refactoring Efforts</strong>: If you perform code refactoring, ensure you communicate the necessity of these changes. Explain why the refactoring was needed and how it benefits the codebase in terms of maintainability, performance, or other relevant aspects.</p><p>4. <strong>Document UI/UX</strong>: When you alter user interface (UI) or user experience (UX) elements, provide a detailed explanation of the reasons behind these adjustments. Additionally, attach before-and-after screenshots to visually illustrate the changes and their impact.</p><p>5. <strong>Clarify Database Changes</strong>: If you modify database migrations, it’s essential to explain why these changes were required. Be sure to mention if there are related table relationships or adjustments needed elsewhere, such as in the API.</p><p>6. <strong>Include Tests</strong>: Prior to submitting a pull request, write unit tests or end-to-end tests for the code changes you’ve made. Ensure that these tests pass locally, demonstrating the correctness and reliability of your modifications.</p><p>7. <strong>Communicate Delays</strong>: If your pull request requires more time for completion or if you encounter unexpected delays, communicate this with your team or project manager to manage expectations effectively.</p><p>By following these steps, you’ll not only enhance the quality of your pull requests but also facilitate a smoother and more effective collaboration with your team.</p><p>Originally published on my <a href="https://mbounouara.com/posts/create-a-good-pull-request">blog</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ae31049c68b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Backend Engineering Solidified: An Overview of the OSI Model]]></title>
            <link>https://medium.com/@BN_Geek/backend-engineering-solidified-an-overview-of-the-osi-model-b90be9d80d57?source=rss-9c5be72097b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b90be9d80d57</guid>
            <category><![CDATA[backend-engineering]]></category>
            <category><![CDATA[osi-model]]></category>
            <category><![CDATA[backend-development]]></category>
            <dc:creator><![CDATA[Mohcin Bounouara]]></dc:creator>
            <pubDate>Sat, 13 Jan 2024 15:19:58 GMT</pubDate>
            <atom:updated>2024-01-13T15:19:58.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*wLccgTGDuyPdAbXa8RVLMA.jpeg" /><figcaption>Image from here: <a href="https://www.pexels.com/photo/man-standing-infront-of-white-board-1181345/">https://www.pexels.com/photo/man-standing-infront-of-white-board-1181345/</a></figcaption></figure><p>In my pursuit of solidifying my back-end knowledge, I want to share with you an overview of the <a href="https://en.wikipedia.org/wiki/OSI_model">OSI model</a> as I understand it. This post serves as a reference for me to revisit and update later.</p><p>The OSI Model, which stands for Open Systems Interconnection Model, is a conceptual framework that defines the transformation of the data.</p><p>This model organizes the flow of data in a communication system into seven layers, representing sequential steps through which data passes.</p><p><strong>Layer 7</strong>: This is the application layer. When you input a GET request into your browser, various elements such as IDs, strings, and more are included in this GET request.</p><p><strong>Layer 6</strong>: Moving to the presentation layer, this is where encryption, particularly for HTTPS, takes place.</p><p><strong>Layer 5</strong>: The session layer comes next, establishing a session tag ID when initiating a connection.</p><p><strong>Layer 4</strong>: At the transport layer, the requests transfer data using segments and specific ports, often referred to as the destination.</p><p><strong>Layer 3</strong>: The network layer, or the IP protocol, takes the segment and attaches it to an IP address.</p><p><strong>Layer 2</strong>: The data link layer utilizes MAC addresses to identify the destination of the page.</p><p><strong>Layer 1</strong>: The physical layer is the bits and binary transmission.</p><p>Understanding each layer of the OSI model is crucial for comprehending the intricacies of data communication in back-end engineering. This conceptual framework provides a systematic approach to visualizing the processes involved in transforming and transmitting data across a network. Maybe I’ll come up with examples later for this blog post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b90be9d80d57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pivot table in Laravel]]></title>
            <link>https://medium.com/@BN_Geek/pivot-table-in-laravel-93c2499adb3c?source=rss-9c5be72097b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/93c2499adb3c</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel-development]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Mohcin Bounouara]]></dc:creator>
            <pubDate>Sat, 29 Jul 2023 12:53:21 GMT</pubDate>
            <atom:updated>2023-07-29T12:54:34.193Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*NZH9evsAcqWjCvV-WjcX9A.jpeg" /></figure><p>When you work on an app that requires a many-to-many relationship between tables, you often need a pivot table in your database to manage the associations between records. Let’s consider a simple database schema as an example:</p><ul><li>Table: posts (Columns: id, body)</li><li>Table: categories (Columns: id, name)</li></ul><p>Suppose you need to link each post with one or multiple categories. In this scenario, you require a third table to centralize and track which categories are associated with each post. This intermediary table is commonly referred to as a “pivot table” in relational databases. It helps aggregate and present data in a more structured way.</p><p>In Laravel’s Eloquent ORM, a pivot table is used to establish a many-to-many relationship between two models, such as the Post model and the Category model. Here’s how we describe the relationship in our models:</p><p><strong>Post Model:</strong></p><pre>class Post extends Model<br>{<br>    use HasFactory;<br>    protected $fillable = [<br>            &#39;body&#39;,<br>        ];<br>    public function categories()<br>        {<br>            return $this-&gt;belongsToMany(Tag::class);<br>        }<br>}</pre><p><strong>Category Model:</strong></p><pre>class Category extends Model<br>{<br>    use HasFactory;<br>    protected $fillable = [&#39;name&#39;];<br>    public function posts()<br>        {<br>            return $this-&gt;belongsToMany(Post::class);<br>        }<br>}</pre><p><strong>Pivot Table Model:</strong></p><pre>class PostCategory extends Model<br>{<br>    protected $table = &#39;post_category&#39;;<br>    use HasFactory;<br>}</pre><p>Once you have the appropriate migration files for posts, categories, and the pivot table (post_category), you can start using the pivot table to manage many-to-many relationships.</p><p>For example, when you add a new post with associated categories, you can use the categories() method on the Post model to retrieve a BelongsToMany relationship collection of categories.</p><p>In your Blade template, you can loop through the posts and display their categories:</p><pre>@foreach ($posts as $post)<br>    &lt;article&gt;<br>        &lt;div class=&quot;entry-text mb-5&quot;&gt;<br>            {!! $post-&gt;body !!}<br>        &lt;/div&gt;<br>        @foreach ($post-&gt;categories as $category)<br>            &lt;span&gt;{{ $category-&gt;name }}&lt;/span&gt;<br>        @endforeach<br>    &lt;/article&gt;<br>@endforeach</pre><p>By following this approach, you can efficiently manage many-to-many relationships using pivot tables in Laravel.</p><p>Hope the article is clean and helpful.</p><p>Originally posted in my <a href="https://mbounouara.com/posts/pivot-table-in-laravel">blog</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93c2499adb3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The power of reading documentation]]></title>
            <link>https://medium.com/@BN_Geek/the-power-of-reading-documentation-a863af4eb853?source=rss-9c5be72097b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a863af4eb853</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[documentation]]></category>
            <dc:creator><![CDATA[Mohcin Bounouara]]></dc:creator>
            <pubDate>Sun, 20 Nov 2022 12:25:23 GMT</pubDate>
            <atom:updated>2022-11-20T12:25:23.437Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ODf4X51nKEMElimXA706gQ.jpeg" /><figcaption>Image by roserodionova — <a href="http://twitter.com/freepik">freepik</a></figcaption></figure><p>Over the last 4 years in the software development field I was trying to get things / tasks done as much as I can, so I just worked as a programmer/coder.. in my journey in this fields I’m always trying to track my progress and know my weak points to try to improve it or fix it.. So I begin to rebuild my knowledge in my try to be a SOLID SOFTWARE ENGINEER, I will try to document this journey when I can and when I feel that I should write on.</p><p>In this learning journey I discovered that I return to reading documentation when I’m stuck in something, the reading ends with problems ends also — I said that I just still in the developer mindset — but after reading a lot of posts and tweets about the how much is this reading of documentation will helps you as a Developer/Engineer, I tried to practice that in the last week.</p><h3>The importance of reading Documentation</h3><p>Currently I’m working using Laravel framework so I decided to apply this on Laravel documentation to learn this new skill, and here are the big points that I learnt from focusing just 20 mins ~ 30 mins per day in the last week:</p><ul><li>You get deep understanding of the technology or framework</li><li>You fix many wrong concept that already have about that technology</li><li>You get a lot of tips/tricks from the creator of this technology</li><li>More code optimization</li><li>More functions and methods that it exist in this technology but you’re not know it, so you will never use it even if it will be helpful in you web app</li><li>Docs push you to balance between reading/writing code</li><li>Push yourself to read more deeply and focus more time, reading docs 30 mins consecutive isn’t easy.</li><li>You learn to be patient</li></ul><p>Hope this small blogpost will push you to read more docs, see you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a863af4eb853" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Absolute fixed and relative the difference!]]></title>
            <link>https://medium.com/@BN_Geek/absolute-fixed-and-relative-the-difference-7af8e846686c?source=rss-9c5be72097b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7af8e846686c</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-accessibility-a11y]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[css3]]></category>
            <dc:creator><![CDATA[Mohcin Bounouara]]></dc:creator>
            <pubDate>Sat, 25 Apr 2020 22:59:08 GMT</pubDate>
            <atom:updated>2020-04-26T01:09:09.233Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wL3905IBhtweFgeTto1B8w.jpeg" /><figcaption>Image by <a href="https://www.pexels.com/@pixabay">pixabay</a></figcaption></figure><p>Let’s talk about <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">the position property</a> in CSS in my humble view.</p><p><strong>What is?</strong></p><p>The position property are responsible for the positioning of the any HTML element in the whole document.</p><p><strong>CSS Position:</strong></p><p>There are more than one type of positioning: static, relative, absolute, fixed, sticky, initial, and inherit.<br>But I’ll talk in particular about relative, absolute and fixed and the difference between them , so let us know what are those types with this simple definition to each of these concepts.</p><ul><li><strong>Relative: </strong>a relative position without other attributes means that element is relative to it self so it should not had any effect on his positioning.</li><li><strong>Absolute: </strong>this type of positioning like a superpower in CSS, it gives you the possibility to place any page element where you want and over any element you want on the page where you want.</li><li><strong>Fixed: </strong>it’s like absolute position but not for a relative element but for the whole document. If the element have an fixed position will not disappear when you scroll in the page.</li></ul><p><strong>Cases In action:</strong></p><ul><li>Position absolute, this example gives you a clear view about absolute position. <a href="http://jsfiddle.net/macloo/aw9m2vyu/">Check HERE</a></li><li>Position fixed, this example gives you a clear view about fixed position. <a href="http://jsfiddle.net/WSZXL">Check HERE</a></li><li>Position relative, no need for an example. If you didn’t applied attributes (Top, right..) on the element and you just used position: relative you will not have any changes on the element.</li></ul><p><strong>The difference in this short summary:</strong></p><p>The position: relative means the element position will be based on his starter and current position without changing, the position: absolute you have the right to place the element in any place provided that have a parent element with relative position, position: fixed will give your element the position over the other elements of the page even on the scroll.</p><p><strong>Avoid to use:</strong></p><p>The absolute position is one of the best CSS property that is easy to use, especially for junior developers because it solve a lot of problems, personally I used to work with it in several works haha, but I learnt what Iam trying to explain for you now..</p><p>Problem 1 :</p><p>Let’s suppose that you are working on project that required to be responsive and should be accessible in different machines, it will cause a problem.. you will be required to work in all the resolution using <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries">Media Queries</a>, and this isn’t a practical process.</p><p>Problem 2:</p><p>When we use absolute position a several <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Properties_Reference">CSS Properties</a> who using with pixels like margin or padding will don’t be shown the same when you’re changing the resolution or break the browser point.</p><p>So try to use absolute position in special and necessary cases, you will learn to do that with practice.<br>And don’t use “pixels” when you’re using “absolute” position.. use “%” you will save a lot of work and time.</p><h4><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">More Information</a></h4><h4><a href="http://bounouara.me/2020/04/25/absolute-fixed-and-relative-the-difference/">Originally posted on my blog</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7af8e846686c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning without Educational System]]></title>
            <link>https://medium.com/@BN_Geek/learning-without-educational-system-a1d80761b947?source=rss-9c5be72097b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1d80761b947</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Mohcin Bounouara]]></dc:creator>
            <pubDate>Sat, 17 Mar 2018 16:32:38 GMT</pubDate>
            <atom:updated>2018-03-17T16:32:38.979Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of the time “I Believe” that we don’t need to an specific processes to learn something..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w7lEablyKnxsJaJK7BRrUw.jpeg" /><figcaption>Image by Monoar Rahman with CC0 License</figcaption></figure><p>When I was learning and I’m still, regularly I always notice that our teacher keep in the old method of teaching,, except some wonderful teachers.. The theoric courses after that some issues explanation and finally a practice of all those thing you already learned them..</p><p>In such fields as Internet Technology, maybe that will works all the time, and maybe will not work.. but personally I believe in learning without processes or pre-plans, DO YOU?</p><p>Come, I will explain my simple point of view..!</p><h3><strong>The learning Academic norms</strong></h3><p>I’m not an expert at Learning domain but also I’m a developer who knows google and googling things very well, so with a simple search in google using keywords like, ‘learning’ ‘Academic’ ‘norms’ ‘system’ I found this very clear result as, the education system is an process that allow student to learn anything form basics to professional and facilitate that using specific methods.</p><p>An Academic progress: is monitored by the teacher but is driven by the individual student. A student’s progress from one level to the next is based on academic readiness, not chronological age or “seat time.” Upper School students may complete their transcript work in three years, four years, or five years. Counterpane refuses to advance or graduate a student who has not proven academic readiness by an end-of-course grade of at least “75” in all college preparatory work. <em>-Paragraph from Google-</em></p><h3><strong>Without academic processes (Plan)</strong></h3><p>To start from my experiences, I learned a lot of things and in different technologies without any pre-processes or pre-plans, also, I learned a lot of technologies without theory.. maybe looks strange but this is truth, during my 2 to 3 last years I worked as IT developer and a freelancer for a lot o people and startup, also I worked with an web agency as senior web developer and at “SEO” Team in the some agency.. there is things stuck in my mind more than others, as “You LEARN, DISCOVER, FORCED TO KNOW, TRY A LOT, KNOW NEW TECHNOLOGIES” When you NEED THEM!!</p><p>Lets told you who I learn a lot of new technology, tips and skills without plans or processes. I will use this square list to do that because I’m not too good in English :’ guys :D :</p><ul><li>Working with a team is always makes you learn new things “Without Processes”, because if a friend or work-mate explain a tips to you he will be more brief and useful</li><li>Falling into technical problems during you’re working on a real-time project makes you learn new skills or tips “Without Processes”</li><li>When project Manager asking from you to use a specific technologies to do this project you will not say “NO” so even you are never know about it you will go to documentation and you will be able to work with that even hardly, so you are learn and learned “Without Processes”</li><li>When you are on a Side-Project you try to use new thing so you just need a documentation and some blog posts or guide without keeps in order, so you are going to do it “Without Processes”</li><li>When you are going to search for a tutorial to know a new technology,, you will find a lot of them on the net, you choice one.. yo read it.. you learn from it.. REMEMBER that its not a teacher or someone who are using an academic processes to teach you that.. he’s just an guy who share with you what he already knows so you learn “Without Processes” Even that!!.</li><li>REMEMBER You are able teach us what you KNOW so we can learn without processes :D</li></ul><p>I shared you guys what I think from my view.. lets know yours :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1d80761b947" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[11 reasons make me write and maybe make you too]]></title>
            <link>https://medium.com/@BN_Geek/11-reasons-make-me-write-and-you-maybe-make-you-too-fac93ea8e7ce?source=rss-9c5be72097b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/fac93ea8e7ce</guid>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[blogging]]></category>
            <dc:creator><![CDATA[Mohcin Bounouara]]></dc:creator>
            <pubDate>Fri, 24 Mar 2017 14:09:31 GMT</pubDate>
            <atom:updated>2017-03-24T14:14:44.553Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Tr_Pl01Zo_iOGIjdcCQtA.jpeg" /></figure><p>Firstly, i don’t have a stunning english, and sure i’m not a professional writer.. so i will be thankful if you accept my small article..</p><p>1- if you are not writing you will not impact in people who around you.</p><p>2- The writing is a pure mental product of you.</p><p>3- Any experience you had its deserve to share without doubt.</p><p>4- I write to share my thoughts with others even if i’m wrong.</p><p>5- You must write about topics who are happening now (breaking news).</p><p>6- Maybe i will impact positively in someone.. like others writers do with me.</p><p>7- Maybe i will write if i was feeling boring.</p><p>8- Even if you thought that you’re a bad write the most important thing that you are write somethings.</p><h3>9- My father respects, appreciates and admires what I write .. and this is enough for me.</h3><p>10- Maybe i’m not a professional writer, but the important thing is that I write.</p><h3>11- The last reason is that I like writing about problems, technical solutions, software, and sharing what I have previously studied …</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fac93ea8e7ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>