<?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 Bouazza Ayyoub on Medium]]></title>
        <description><![CDATA[Stories by Bouazza Ayyoub on Medium]]></description>
        <link>https://medium.com/@bouazzaayyoub?source=rss-6bf3825c84c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3fzwrpGe9x3exItGJVGCbg.png</url>
            <title>Stories by Bouazza Ayyoub on Medium</title>
            <link>https://medium.com/@bouazzaayyoub?source=rss-6bf3825c84c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 16:47:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bouazzaayyoub/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[The Equation of Money… and the Equation of Baraka]]></title>
            <link>https://bouazzaayyoub.medium.com/the-equation-of-money-and-the-equation-of-baraka-6c3b3d09d3ef?source=rss-6bf3825c84c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c3b3d09d3ef</guid>
            <category><![CDATA[money]]></category>
            <category><![CDATA[success]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[minimalism]]></category>
            <category><![CDATA[personal-growth]]></category>
            <dc:creator><![CDATA[Bouazza Ayyoub]]></dc:creator>
            <pubDate>Wed, 15 Apr 2026 10:46:01 GMT</pubDate>
            <atom:updated>2026-04-15T10:46:01.263Z</atom:updated>
            <content:encoded><![CDATA[<p>What If You Are Solving the Wrong Equation?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7eaeH0nhRmUf92_k1fKGWw.png" /><figcaption>Repas familial traditionnel marocain</figcaption></figure><h3><strong>The Question Nobody Asks</strong></h3><p>Money is everywhere in our conversations.</p><p>In cafés, where friends compare salaries between sips of coffee. At family dinners, where the first question is often <em>“So, what are you earning now?”</em> On buses filled with tired students and workers, each one quietly carrying the same weight — the feeling that they are not quite where they should be yet.</p><p>Everyone is trying to solve the same equation: <em>How do I make more money?</em></p><p>It is not a bad question. It is a human one. But it is incomplete.</p><p>Because beneath it — quieter, more patient, rarely spoken aloud — lives a deeper question. One that our grandparents understood instinctively, that our traditions have always carried, but that modern life has slowly drowned out with noise:</p><p><em>What if money was never the real equation to begin with?</em></p><p>This is not an article about rejecting money, or romanticizing poverty, or pretending that bills do not exist. It is about something older and more honest — a concept that generations of Moroccan families built their lives around, without ever needing to define it.</p><p>It is about <strong>Baraka</strong>.</p><h3>Eating Alone</h3><p>Our grandparents lived with less money… but somehow with more peace.</p><p>They rarely ate alone. Even a simple meal of bread and olive oil could become a small gathering. A neighbor passing by would be invited in. A stranger could become a guest. There was no occasion needed, no planning required — just an open door and a shared table.</p><p>Because food, at that time, was never only about hunger. It was about connection and about baraka.</p><p>Today, many of us eat alone — in front of a glowing screen, tasting without savoring, chewing without noticing. Or inside a silent apartment, surrounded by a crowded city.</p><p>There is more food now. More variety, more abundance, more options than our grandparents could have imagined.</p><p>And yet — less baraka.</p><p>Something invisible has slipped away. And no raise in income, no new restaurant, no food delivery app seems capable of bringing it back.</p><h3>When Money Becomes the Master</h3><p>Money was meant to be a tool. But slowly, quietly, it became a goal — and there is a rule of life that few talk about:</p><blockquote><strong><em>If you don’t use money for good, money will use you for something else.</em></strong></blockquote><p>It begins subtly. You start chasing numbers instead of meaning. Comparing lifestyles instead of building a life. Running faster and faster without ever asking where you are going.</p><p>From the outside, it looks like success. Like you have accomplished something real. But from the inside, it feels strangely, inexplicably empty.</p><p>A friend of mine lived in Casablanca for years — a city that pulses and pushes, that hums with ambition and noise. He worked hard. He stayed busy. But something about the city’s energy whispered to him constantly: <em>you are not enough yet, keep going, keep producing.</em> He called what he was building “fake achievement” — motion disguised as progress, busyness mistaken for purpose.</p><p>So he left. He moved to a quieter city. And now, one of his favorite things is simply riding a bicycle along the beach — not to get anywhere, not to achieve anything. Just to exist, to breathe, to feel alive.</p><p>That shift did not come from earning more. It came from wanting less of the wrong things.</p><p>Because money can buy comfort — but it cannot buy baraka.</p><p>And without baraka, even abundance can feel poor.</p><h3>Happiness Is Not for Sale</h3><p>Many people carry a secret belief, rarely spoken aloud:</p><blockquote><strong><em>“When I earn enough, I will finally be happy.”</em></strong></blockquote><p>But happiness, in our tradition, was never a number to reach. It was never a salary, a balance, or a milestone. It was a state of the heart, interior, independent of what you owned.</p><p>It looked like gratitude for what was already there. A simple meal shared with people you love. A quiet prayer before the world woke up. A mother’s dua whispered in the dark, heard by no one but God.</p><p>These things cost nothing. And yet they carried everything.</p><p>You can have very little — and feel profoundly full. You can have everything the world calls success — and lie awake feeling hollow.</p><p>Because money was never built to carry the weight of a soul. It cannot hold your longing, answer your deepest questions, or fill the silence that material things leave behind. It was designed for <strong>transactions</strong> — not <strong>transformation</strong>.</p><p>And no transaction, however large, has ever bought a single moment of true peace.</p><h3>You Are Not Meant to Chase Money</h3><p>Perhaps the greatest misunderstanding of our time is this:</p><p><strong>You were never supposed to <em>make</em> money. You were supposed to <em>build</em>.</strong></p><p>Build skills that outlast any economy. Build relationships that hold when everything else shakes. Build something genuinely useful — something people need, something that solves a real problem, something that would be missed if it disappeared. <strong>Build a life that still makes sense on the days when the money is gone.</strong></p><p>Money is only a shadow of value. It follows real worth the way a shadow follows a person — faithfully, automatically, without needing to be chased.</p><p>But here is what no one tells you: a shadow has no substance of its own. You cannot hold it. You cannot build with it. You cannot feed your soul on it.</p><p>When the value is real, the shadow follows. When you chase the shadow directly, you run forever and arrive nowhere.</p><p>And somewhere along the way, you forget what you were actually trying to build.</p><h3><strong>The Equation That Truly Matters</strong></h3><p>There are two equations in life — and most people only learn one.</p><p>The first is the equation of money: <em>Work. Earn. Spend. Repeat.</em> Clear. Logical. Endless. It keeps you moving, but it never tells you where you are going.</p><p>The second is the equation of baraka: <em>Give. Share. Be grateful. Feel peace.</em> Invisible. Quiet. Eternal. It does not show up on a bank statement — but you feel it in your home, at your table, in the way you sleep at night.</p><p>One fills your pocket. The other fills your life.</p><p>And if you walk the countryside, sit at enough family tables, or stay quiet long enough after Maghrib prayers, you start to notice something. The people who truly lived well were not always the richest. They were the ones whose days were touched by baraka. Who gave without calculating. Who ate with others. Who built things that mattered beyond money?</p><h3><strong>A Moment to Pause</strong></h3><p>Before you move on to the next thing — the next scroll, the next task, the next goal — sit with these questions for a moment. Not to answer them quickly, but to let them stay with you.</p><ul><li><em>When was the last time you ate a meal slowly, with people you love, without looking at your phone?</em></li><li><em>When was the last time you gave something — your time, your attention, your resources — without expecting anything in return?</em></li><li><em>Are you building a life?</em></li><li><em>If your income disappeared tomorrow, what would remain? What have you built that money cannot take away?</em></li><li><em>Who in your life carries baraka — that quiet peace, that invisible fullness and what do they do differently than everyone else?</em></li><li><em>Are you chasing something? And if you stopped — truly stopped — do you know what you actually want?</em></li></ul><p>These are not comfortable questions. They are not meant to be. Because the life you truly want is probably not far from where you already are — it is just buried under urgency, comparison, and noise.</p><p>Baraka is not reserved for saints or scholars. It is not a reward for the perfect or the wealthy. It is available to anyone who slows down enough to receive it — anyone who gives, shares, stays grateful, and builds with intention.</p><p>HAPPY READING!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c3b3d09d3ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why is success not a linear equation?]]></title>
            <link>https://bouazzaayyoub.medium.com/why-is-success-not-a-linear-equation-0f5593b73650?source=rss-6bf3825c84c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f5593b73650</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[success]]></category>
            <category><![CDATA[philosophy]]></category>
            <dc:creator><![CDATA[Bouazza Ayyoub]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 09:28:48 GMT</pubDate>
            <atom:updated>2026-04-07T09:28:48.952Z</atom:updated>
            <content:encoded><![CDATA[<p>Most people don’t quit because they’re weak.<br>They quit because they expected success to move in a straight line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqrnDpXVSqdqz2eCvRKmfw.png" /><figcaption>Journey to the Bright Peak</figcaption></figure><p>They believed that if they worked twice as hard, results would come twice as fast, like some formula:</p><p><strong>result = effort × time + luck</strong></p><p>Simple. Logical. Comforting.<br>And… completely disconnected from real life.</p><p>Because right when you think the reward is about to arrive on schedule,<br>life looks at your beautiful equation and says:</p><p><strong>“Really? … I mean, <em>really</em>?”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*OlKpdOXNFmOcbIK2gzE9Fg.jpeg" /></figure><p>Days quietly turned into months… with absolutely <strong>no visible progress</strong>.</p><p>From the outside, it looked like you were doing nothing.<br>From the inside, you were working hard… just without the very unnecessary detail called <strong>results</strong>.</p><p>Dreams started to feel distant, like tiny mathematical errors in an equation that was supposed to be simple.<br>You know, the kind of error that makes you question the entire universe… or at least your life choices at 2 a.m.</p><p>And in that silent, uncomfortable space between effort and results, a very dramatic thought shows up:</p><p><strong>“Maybe I’m just not meant for success.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*oQZcmDq_7Q3-Edx5KF5-8A.jpeg" /></figure><p>This is the exact moment where many ideas, stories, and brilliant inventions quietly die.<br>Not because success was impossible…<br>But because it dared <strong>not be linear</strong>.</p><h3>The Straight-Line Illusion</h3><p>From childhood, we are trained to trust straight lines.</p><p>Study harder → get better grades.<br>Follow the rules → move to the next level.<br>Apply effort → receive reward.</p><p>Very clean. Very logical. Very… fictional.</p><p>So your brain starts seeing life as linear, and your ego becomes wonderfully confident that existence is basically a solvable math problem.</p><p><em>Just plug in enough effort, and success appears.</em></p><p>Slowly, we learn to assume success follows a neat little formula, something like <strong>ax + b. </strong>Unfortunately, reality did not attend that math class. The equation keeps changing.<br>Sometimes there isn’t even an equation; it feels more like abstract art.</p><p>And honestly, look at nature.</p><p>Have you ever seen a perfectly straight line in biology?<br>Trees don’t grow straight.<br>Rivers don’t flow straight.<br>So your life definitely doesn’t go straight.</p><p>You can give more and receive less.<br>You can wait far longer than expected.<br>You can do everything right… and still feel stuck.</p><p>Not because you are failing, but because real success was never designed to be simple, predictable, or linear.</p><p>Which is slightly disappointing… but also the only reason miracles are possible.</p><p>It’s the <strong>very thing</strong> that allows poor people to become rich, failure to turn into success, and ordinary people to chase goals that look completely impossible on paper.</p><p>Human history is full of achievements that looked impossible right until someone ignored the math and did them anyway.</p><ul><li>We went from <strong>throwing rocks</strong>… to <strong>landing on the Moon</strong>.<br> In less than 70 years.<br> Not linear. Not normal. Very confusing for the math.</li><li>Someone looked at a giant ocean and said:<br> <em>“I think we can cross this in a wooden boat.”</em></li><li>A broke college dropout built a company in a garage and accidentally changed how the entire planet communicates.</li><li>Entire civilizations rose from <strong>nothing but ideas</strong>, which is impressive…considering most of our ideas today are “I should sleep earlier.”</li></ul><h3>The Invisible Season of Growth</h3><p>Every meaningful journey contains a phase few people talk about:</p><p>A long stretch where <strong>the effort is huge, </strong>but <strong>the results are invisible</strong>.</p><p>Engineers and doctors spend more than 20 years studying and learning before they graduate. <br>Athletes train for years before anyone knows their name. <br>Young professionals work in silence before an opportunity appears.</p><p>The bamboo tree is a quiet reminder of this truth.</p><p>For nearly four years after it is planted, nothing remarkable appears above the ground.<br>No leaves. No visible growth. No inspiring progress.</p><p>But beneath the surface, something important is happening.<br>The bamboo is building a deep, strong root system — preparing for the height it will one day reach.</p><p>Then, in the fifth year, it suddenly rises.<br>Rapidly.<br>Almost unbelievably.<br>Growing taller in weeks than it did in years.</p><p>To someone watching only the surface, this growth looks instant. But it was never instant. It was prepared in silence. because in life, just like in nature,<br>The most important progress happens <strong>before it can be seen</strong>.</p><h3>When Harder Work Isn’t Enough</h3><p>At some point, effort alone stops being the answer.</p><p>You must think differently.<br>Learn faster.<br>Risk uncertainty.<br>Persist beyond comfort.</p><p>This is where the straight line breaks, because success is never just effort; it is a combination of timing, resilience, courage, failure, patience, and growth moving together in ways no simple equation can measure.</p><p>Sometimes you must give <strong>ten times more energy </strong>for <strong>one small visible step, </strong>and sometimes, after years of quiet work, progress arrives all at once; what looks sudden is usually <strong>slow preparation finally revealed</strong>.</p><h3>Thinking Beyond the Equation</h3><p>Understanding that success is nonlinear changes how we live.</p><p>We become more patient with slow seasons.<br>More respectful of unseen growth.<br>Less afraid of temporary stillness.</p><p>Most importantly, we stop quitting too soon, because many people walk away just before the curve begins to rise, not from lack of talent but from <strong>misunderstanding the journey; </strong>they expected a straight road in a world shaped like waves.</p><h3>Effort as Investment, Not Transaction</h3><p>In a linear world, effort is a trade: work in, results out.</p><p>In the real world, effort is an <strong>investment,</strong> and investments take time; some grow slowly, then multiply, some return lessons instead of rewards, but none are truly wasted.</p><p>Every attempt builds something invisible: Discipline, Clarity, Emotional strength, Skill that will matter later.</p><p>When the moment finally arrives, and it will arrive, these hidden assets become visible power.</p><h3>Conclusion</h3><p>Success was never meant to be a straight line.<br>It was always meant to be a curve that you cannot fully see while walking on it.</p><p>The quiet seasons, the slow months, the invisible effort, none of them are wasted; they are roots growing underground, preparing you for a height that will only make sense later.<br>It may simply mean you are still in the part of the story<br>where the roots are forming.</p><p>And history has shown us something beautiful:<br><strong>The greatest rises often begin in complete silence.</strong></p><p>So keep going.<br>Not because success is guaranteed tomorrow,<br>But the only people who never reach it are those who stop before the curve begins to rise.</p><p><strong>HAPPY READING!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f5593b73650" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Things I learned from 2025]]></title>
            <link>https://bouazzaayyoub.medium.com/things-i-learned-from-2025-343914a23b03?source=rss-6bf3825c84c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/343914a23b03</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[psychology]]></category>
            <dc:creator><![CDATA[Bouazza Ayyoub]]></dc:creator>
            <pubDate>Tue, 10 Feb 2026 12:50:46 GMT</pubDate>
            <atom:updated>2026-02-10T12:50:46.850Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A personal review of a year as a software engineer, son, colleague, and friend.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uOIGoxNJEhH9WCjt5EpffA.png" /><figcaption>The solitary thinker</figcaption></figure><p>Every year, one quiet question returns to me:</p><p><strong>“How did I really do this year?”</strong></p><p>Not only financially or professionally,<br>but personally… emotionally… humanly.</p><p>To answer it honestly, I built a small ritual: <br>On the <strong>first day of every new year</strong>, I sit down and review the one that just ended.<br> — No noise.<br> — No celebration.<br> — Just a reflection.</p><p>And every single time, that moment becomes a strange mix of emotions:</p><ul><li>Happiness for the people I met</li><li>Sadness for the mistakes I made</li><li>Gratitude for what I managed to build</li><li>Excitement for everything still waiting ahead</li></ul><p>But most importantly, it’s the moment where I write down <strong>what the year tried to teach me.</strong></p><p>Because maybe… if lessons are shared, someone else won’t need to lose a full year to learn them.</p><p>So this is my list. The things <strong>2025 quietly taught me</strong> — and the ideas I’m carrying into 2026:</p><h3>1. Time is priceless. Track it like money.</h3><p>In 2025, I understood something simple but uncomfortable:</p><p><strong>Time is the only resource you can’t earn back.</strong></p><p>We protect our money.<br>We track our expenses.<br>We think before we spend.</p><p>But with time… we often let it disappear without noticing.</p><p>Planning my <strong>months, weeks, and even ordinary workdays</strong> changed that, then 2 things becomes clear:</p><ul><li>I could see my real habits, not the ones I imagined.</li><li>I discovered what was secretly consuming most of my time.</li></ul><p>For me, the biggest surprise was <strong>transportation and YouTube</strong>. Hours lost every week without creating anything meaningful.<br>That awareness alone was powerful. Because once you truly see where your time goes, you have only two choices:</p><ul><li><strong>Optimize it</strong></li><li>Or <strong>prioritize better</strong></li></ul><p>Both move you closer to your goals. And that’s the real point of planning, not to control every minute, but to make sure your life is moving in the <strong>right direction</strong>, even if the progress is slow.</p><h3>2. Invest your money — all the time</h3><p>Since I first understood capitalism, one idea stayed with me:</p><p><strong>Money itself isn’t a real value.</strong></p><p>It’s only a representation, a reflection of the value you create through your work, your skills, and your time.<br>The real power isn’t in holding money. It’s in the <strong>process that generates it</strong>.</p><p>But in 2025, I realized something uncomfortable: <br>I had missed opportunities to <strong>grow</strong> my money simply because I wasn’t investing or diversifying enough.<br>Stagnation is expensive in the long run. Because money that sleeps… slowly disappears.</p><p>Just silent (9AS7A A M3ALEM 😑)</p><h3>3. If you don’t track your money, you will lose it</h3><p>For a long time, I tracked my expenses in a simple Excel file.</p><p>Nothing fancy. Just numbers, categories, and regular reviews.</p><p>That habit gave me a sense of control, until the months when I <strong>stopped reviewing</strong>.</p><p>And when I finally looked again, the surprise was painful:</p><p>Small, ordinary expenses were quietly destroying my budget.</p><p>In my case, the biggest hidden leak was <strong>coffee</strong>. Nothing dramatic per purchase… but repeated every single day, it became significant.</p><p>That’s the danger of untracked money: Not big mistakes. Just <strong>small bad decisions repeated too often</strong>.</p><p>Tracking your expenses does more than control spending.<br>It helps you:</p><ul><li>Understand your real financial behavior</li><li>Make intentional choices instead of automatic ones</li><li>Create space to <strong>save, invest, and grow</strong></li></ul><p>Because clarity is the first step toward freedom, financial or otherwise.</p><h3>4. Relationships are the real foundation of success — and happiness</h3><p>In 2025, I understood something that no technical book had ever taught me:</p><blockquote><strong>Relationships are the core of everything.</strong></blockquote><p>Business. Work. Life. And most importantly… <strong>happiness</strong>.</p><p>You can build products alone.<br>You can write code alone.<br>You can even make money alone.</p><p>But you <strong>cannot build a meaningful life alone</strong>.</p><h4>4.1. Understanding people is a superpower</h4><p>Learning how people think, react, and communicate solves more problems than any technical skill ever could.</p><p>Good communication doesn’t just make conversations smoother, it <strong>opens doors</strong>:</p><ul><li>Opportunities appear</li><li>Conflicts disappear faster</li><li>Trust grows naturally</li><li>Collaboration becomes easier</li></ul><p>And over time, these invisible advantages become real success. That’s why understanding:</p><ul><li><strong>yourself</strong></li><li><strong>others</strong></li><li>and a bit of <strong>human psychology</strong></li></ul><p>is one of the highest-return investments you can make.</p><h4>4.2. Everyone lives inside a cognitive distortion</h4><p>One of the strangest lessons I learned this year is that almost everyone carries some form of <strong>cognitive distortion</strong> <em>(تشوه معرفي)</em>.</p><p>We build simplified stories about people based on <strong>limited experiences</strong>.</p><p>For example:</p><ul><li>Some marketing teams meet a few engineers and conclude that <em>all engineers are cold, geeky, and unemotional</em>.</li><li>Someone from one country has a bad experience and suddenly believes <em>everyone from that culture is the same</em>.</li></ul><p>These shortcuts feel true… but they quietly create <strong>misunderstanding and conflict</strong>.</p><p>Not because people are bad, but because our minds try to simplify a complex world.</p><h4>4.3. The listener controls every conversation</h4><p>Another subtle truth surprised me:</p><p>In any conversation, the real control belongs <strong>not to the speaker</strong>, but to the <strong>listener</strong>.</p><p>Because meaning is not created when words are spoken. It is created when they are <strong>interpreted</strong>.</p><p>So if you are speaking, remember:</p><p>The person who listens is shaping what your message becomes.</p><p>And if you learn to listen deeply, you gain a rare kind of influence, one built on <strong>understanding, not force</strong>.</p><h3>5. Your future self is shaped by your present thoughts</h3><p>One quiet realization followed me throughout 2025:</p><p><strong>Your future is not something you discover. It’s something you slowly build.</strong></p><p>And it begins in the most invisible place of all, <strong>your</strong> <strong>thoughts</strong>.</p><p>Because thoughts become:</p><ul><li><strong>Values</strong> that guide what matters</li><li><strong>Goals</strong> that give direction</li><li><strong>Plans</strong> that organize action</li><li><strong>Habits</strong> that repeat daily</li><li>And finally… a <strong>life</strong> that reflects all of them</li></ul><p>Step by step, the invisible becomes visible.</p><p>Your future self is simply<br> the long-term result of what you think, believe, and repeat today.</p><h3>You will suffer and laugh anyway — choose where</h3><p>One sentence stayed in my mind this year.</p><p>I once asked my dentist:</p><p><strong>“Do you advise students to become dentists?”</strong></p><p>He answered:</p><blockquote>“In this life, you will suffer and laugh anyway.<br> At least choose where you want to suffer… and where you want to laugh.”</blockquote><p>That sentence contains a deep truth.</p><p>Every path has:</p><ul><li>Risks and rewards</li><li>Effort and relief</li><li>Difficult days and meaningful moments</li></ul><p>There is <strong>no painless road</strong>. Only <strong>different kinds of pain</strong>, and different kinds of joy.</p><p>And no one truly knows what a path feels like until someone walks it.</p><h3>Don’t fear decisions — movement creates clarity</h3><p>Because of that, 2025 taught me something freeing:</p><p><strong>Indecision doesn’t protect you from suffering. It only delays growth.</strong></p><p>Whether you choose one road or another, you will still face challenges…and still find moments of happiness.</p><p>So the real mistake is not choosing the wrong path.<br>The real mistake is <strong>not choosing at all</strong>.</p><p>Move. Decide. Learn while walking.</p><p>Clarity rarely appears before action, it usually comes <strong>after</strong>.</p><h3>Closing thoughts for this chapter</h3><p>Looking back at these lessons, I realize that 2025 wasn’t about big victories or visible success.</p><p>It was about <strong>clarity</strong>.<br>Learning to respect time.<br>Understanding money instead of just earning it.<br>Valuing relationships more than achievements.<br>And realizing that the person I become tomorrow is already being shaped by the thoughts I choose today.</p><p>None of these lessons are dramatic. They don’t look impressive from the outside. But they quietly change the direction of a life.</p><p>And maybe that’s what real progress is:</p><p>Not a sudden transformation, but a slow alignment between:<br>- <strong>who you are</strong>,<br>- <strong>what you believe</strong>,<br>- and <strong>the life you are building</strong>.</p><p>So if this year felt confusing, slow, or uncertain for you, you might still be moving forward in ways you cannot yet see.</p><p>Keep learning.<br>Keep choosing intentionally.<br>Keep building — even when the results are invisible.</p><p>Because one day, you will look back and realize that these quiet years were the ones that shaped everything.</p><p><strong>THANKS.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=343914a23b03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Burnout to Balance: Prioritizing Health as an Engineer]]></title>
            <link>https://bouazzaayyoub.medium.com/from-burnout-to-balance-prioritizing-health-as-an-engineer-a84c2ec05a9a?source=rss-6bf3825c84c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a84c2ec05a9a</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[stress]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Bouazza Ayyoub]]></dc:creator>
            <pubDate>Mon, 23 Sep 2024 10:31:28 GMT</pubDate>
            <atom:updated>2024-09-28T10:07:38.029Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fubg08WyCWVs3efNDjdHNA.png" /></figure><p>Being a software engineer is undeniably rewarding, solving complex problems can be engaging and fulfilling. Yet, the role demands more than just technical expertise. It also involves delivering high-quality work under pressure, meeting tight deadlines, and enduring long meetings.</p><p>When I first started my career as an engineer, I adopted a workaholic lifestyle, believing that this was the key to success. But over time, this relentless drive began to take a toll on my health, leading to back pain, eye strain, and a noticeable decline in my problem-solving abilities.</p><p>Nowadays, I have found a healthier balance that enables me to excel professionally and personally. This blog exists in service to share that journey and remind others within the field of the need for prioritizing health, since the better we take care of ourselves, the better we do our job.</p><ol><li><strong>Prioritize Your Health</strong></li></ol><p>Your health is always paramount. Remember, jobs and projects will come and go, but your health will be constant and cannot be replaced. You may lose one job, but you can work elsewhere; you have only one health, which, if compromised, cannot be regained easily.</p><p><strong>2. Take Short Walks</strong></p><p>Short walks do wonders for the body. Walking keeps the body fit, oxygenates the body, and ensures better concentration and productivity.</p><p><strong>3. Move Your Body Regularly</strong></p><p>Physical activity is necessary, including at least something with bodily movement once a week. It can be going to the gym, doing some sport, or any activity that involves mobility with caloric expenditure. Being active will help you maintain overall well-being.</p><p><strong>4. Find Hobbies</strong></p><p>Spare time activities are not just about relaxation. Hobbies develop your creativity and prevent stress, which finally allows you to focus deeper. My hobbies are wood carving and sometimes hiking. These activities allow me to get away from work long enough to return refreshed and with renewed creative energy.</p><p><strong>5. Take Breaks</strong></p><p>Your brain and body need breaks. Be sure to get up, walk around, or chat with colleagues throughout the day. After all, even a short break can help refresh your mind and avoid the strain associated with sitting for long periods, as our bodies were just not built to sit in chairs day in and day out.</p><p><strong>6. Praying</strong></p><p>For me, prayer helps clear my mind and refocus. Whether it’s meditation, mindfulness, or prayer, finding moments to reflect can provide mental clarity and reduce stress.</p><p><strong>7. Use a To-Do List</strong></p><p>Keeping a to-do list helps organize your day and ensures that nothing slips through the cracks. It’s a simple yet effective tool for staying on track.</p><p><strong>8. Set Goals, Not Just Tasks</strong></p><p>Before diving into tasks, take the time to set clear goals. This helps you stay focused on the bigger picture and ensures that the tasks you complete are aligned with your long-term objectives.</p><h3>Conclusion</h3><p>As engineers, we often focus on delivering results and meeting deadlines, but it’s crucial not to overlook our well-being in the process. Prioritizing health, staying active, finding balance through hobbies, and taking regular breaks can have a profound impact on our productivity and overall happiness. By making small changes to your daily routine, you can create a sustainable, healthy approach to both work and life.</p><p>After all, success is best enjoyed when you are healthy.</p><p><strong>Take care of yourself, and the rest will follow.</strong></p><p><strong>Thank you for reading</strong>! Clap for this article as much as you can.<br>📩 For similar content, feel free to follow me and subscribe to my newsletter.<br><a href="https://www.abouazza.com/">👋 You can say hello here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a84c2ec05a9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React.js Best Practices & Patterns -Part 3]]></title>
            <link>https://bouazzaayyoub.medium.com/react-js-best-practices-patterns-part-3-ed3249480f88?source=rss-6bf3825c84c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed3249480f88</guid>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[best-practices]]></category>
            <dc:creator><![CDATA[Bouazza Ayyoub]]></dc:creator>
            <pubDate>Mon, 25 Sep 2023 11:58:29 GMT</pubDate>
            <atom:updated>2024-02-07T16:16:07.137Z</atom:updated>
            <content:encoded><![CDATA[<p>Component Design Patterns for high-quality applications</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w8XEWDMiVmQYT9BvFSIxLQ.png" /></figure><h3>Component Design Patterns</h3><p>When developing React apps, it’s critical to create components that are simple to use, reusable, and don’t give you a headache when trying to change them. This is where <strong>design patterns</strong> come into play. This section will look at some design patterns that might help you create reusable and flexible components. These patterns will assist you in breaking down large components into smaller, more manageable portions that are easier to understand, test, and maintain.</p><p>📝Feel free to explore the second segment of this series of articles— go ahead and give it a read!</p><p><a href="https://medium.com/@bouazzaayyoub/react-js-best-practices-patterns-part-2-334e4e488c49">React.js Best Practices &amp; Patterns -Part 2</a></p><h4>1. Higher-Order Components (HOCs)</h4><p>Higher-order components (HOCs) are fascinating! They are functions that take one component and return another with additional features or behaviors. They essentially allow you to reuse component code and handle things like authentication and data retrieval.</p><p>For example, you may use a HOC to determine whether a user is authenticated and then wrap it around a component that requires authentication. The wrapped component will appear if the user is authenticated. If they do not, they will be directed to the login page. Here’s an example to show you what it looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*opzQSu2g0KuFfLOVtM26ZQ.png" /></figure><p>So, in this example, we have a function called <strong>requireAuth</strong> that takes a component as input and returns a new one that checks to see if the user is logged in. If not, the user is directed to the login page. Otherwise, the wrapped component is rendered with the HOC’s extra props.</p><p>We may now use HOCs to wrap a component that requires data retrieval. Essentially, the HOC will retrieve the data and provide it to the component as props.<br>like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*P8hT7WpxjijAD6h7lXZavA.png" /></figure><p>So in this example, the withDataFetching function takes a component and gets data from a URL to pass it down as props. If there’s an error, it goes into the error prop, and if the data’s still loading, the <strong>isLoading </strong>prop is set to true.</p><p>There are plenty of additional cool HOCs that may be used with React! <strong>Connect </strong>from the react-redux library, for example, connects a component to the <strong>Redux </strong>store, allowing it to access the store’s state and dispatch methods. This means you can quickly construct components that respond to <strong>Redux </strong>store changes. Another is <strong>withFirebase </strong>from the <strong>react-redux-firebase</strong> package, which gives a component a <strong>Firebase </strong>instance so it may interact with the <strong>Firebase </strong>backend.</p><p>HOCs are cool because they allow you to reuse component functionality and deal with issues that affect the entire project. It’s the equivalent of slaying two birds with one stone! HOCs keep your components neat and tidy, making them easy to care for, focused, and easy to manage.</p><h4>2. Render Props</h4><p><strong>Render props</strong> are a way in <strong>React </strong>that allows you to share code between components by giving a function as a prop to a child component, and in some circumstances, it can be more flexible than <strong>HOC</strong>s.</p><p>When called, this function returns a React element (<strong>JSX</strong>). The goal behind render props is to delegate the rendering of specific parts of the component to the parent component. As a result, the child component can concentrate on providing the required functionality, while the parent component decides how the content should look.</p><p>Let’s see an example of how <strong>Render Props</strong> work in real life:</p><p>We want to create an online store app and we need to display a list of products in various places of the app. We wish to retrieve the products and show them in various ways, such as a grid or list view. Here’s how we can do it with the <strong>Render Props</strong> pattern:</p><ol><li>Create a <strong>ProductFetcher </strong>component: that retrieves the product data and accepts a <strong>Render Props</strong> (a function):</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*1EFhcmVdcIyyk_147J4UHQ.png" /></figure><p>The <strong>ProductFetcher </strong>component is in charge of fetching the products and handling the loading state in this example. It takes a <strong>Render Props</strong>, a function, as an argument and calls it with the products.</p><p>2. Build two distinct components for presenting the products in a grid and list views:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*q_P89W2WDZNKpLnOaZiEow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*rP4yRpSkMRtWUpLEv7Qkog.png" /></figure><p>3. Finally, use the <strong>ProductFetcher </strong>component and pass the appropriate render function to display the products in different formats:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*1-E3DjbkYUYSILinQu-76Q.png" /></figure><p>In this example, the <strong>ProductFetcher</strong> component retrieves and handles product data. The <strong>ProductGrid </strong>and <strong>ProductList </strong>components are responsible for showing products in various formats. The <strong>ProductFetcher </strong>component retrieves product data using the render prop, and the parent component (in this example, App) specifies how the products should be displayed.</p><p>Benefits from using the <strong>Render Props</strong> approach:</p><ol><li><strong>Separation of concerns:</strong> The <strong>ProductFetcher </strong>component is only in charge of fetching and managing product loading states. It is not concerned with how the products are displayed.</li><li><strong>Reusability:</strong> The <strong>ProductFetcher </strong>component may be used across the app to fetch and display data in various formats easily.</li><li><strong>Flexibility:</strong> The parent component can decide how the products are displayed, allowing us to alter the UI without affecting the fetching mechanism.</li></ol><h4>3. Compound Components</h4><p>Compound components are a cool design technique that allows you to develop better and more versatile components. You can group relevant components together and manage their behavior from a parent component, making your code more organized and user-friendly.</p><p>An accordion component, which typically includes many panels that expand and fold when you click them, is a popular example of this. You may utilize compound components to create a reusable accordion component that is both easy to customize and simple to use.</p><p>Let’s check out an example of how to make an <strong>Accordion </strong>component using <strong>compound components</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*3tZEzyaRohiQcO3PDb5ZRA.png" /></figure><p>In this example, we got this <strong>Accordion </strong>component, where we render a list of children and loop through them with <strong>React.Children.map</strong> to determine when to display them. We use <strong>React.cloneElement</strong> to provide new props to the <strong>AccordionHeader </strong>and <strong>AccordionContent </strong>to customize how they operate.</p><p>Here’s how all of these components would appear in a <strong>MyAccordion</strong> component:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*YPRujExiOSfVCCY8yksncQ.png" /></figure><p>You must agree with me that this component is way more comprehensive, easy to reason about, and clean.</p><p><strong>Compound components</strong> are incredibly amazing since they allow your components to be flexible and expressive. Rather than having a bunch of distinct components, you can put them all together under a parent component to make things much more intuitive and user-friendly. In a web project, things like <strong>accordions</strong>, <strong>tabs</strong>, and <strong>dropdowns </strong>can become very confusing, but with <strong>compound components</strong>, you can simplify everything and make it simple for your customers to navigate.</p><h4>4. Optimize Rendering with React.memo</h4><p><strong>React.memo</strong> is like a hidden weapon for optimizing functional components. It ensures that the component only re-renders when the props change, which can result in huge performance gains, particularly when dealing with complex or expensive-to-compute props. <br>Essentially, it prevents wasteful renders and keeps your program functioning smoothly.</p><p>Consider the following example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*IvKDrLl2wXFo05WN0vQ8uw.png" /></figure><p>In this example, the <strong>UserProfileName </strong>component will only re-render when its name prop changes, avoiding unnecessary updates and improving performance.</p><h4>5. Use React.lazy for Code Splitting and Lazy Loading</h4><p><strong>React.lazy</strong> is a cool utility that can help you speed up and optimize your project. It’s a built-in functionality that allows you to divide your components and load them only when needed. This is useful if you have a large project with many separate components that aren’t all required at the same time. <strong>React.lazy</strong> helps you choose which components to load and when to load them. This implies that your software will start up faster, consume less memory, and be more efficient overall.<br>Furthermore, it is quite simple to use — all you need to do is wrap your component in a custom function, and <strong>React </strong>will handle the rest.</p><p>Assume you’re creating an e-commerce app with React. You have a product listing page where you can see all of the items in your inventory. Each item contains an image, a name, a price, and a description.<br>You also have a product details page where you can see additional information about a specific product, such as reviews, ratings, and similar items.<br>If you load all of the code for the product details page on the product listing page, the initial load time will be slowed and your app will feel slow. <br>to solve that use <strong>React.lazy</strong> to lazily load the <strong>ProductDetails</strong> page only when the user clicks on a product (see code below):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*uJ-xtC90ZjnMOHEO7uD_Ow.png" /></figure><p>wrap the <strong>ProductDetails </strong>component in a call to <strong>React.lazy</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*exCKKl0sYZIZrCX7SGDgNA.png" /></figure><p>This tells <strong>React </strong>to lazily load the <strong>ProductDetails </strong>component only when it’s needed.<br>Finally, you use the <strong>ProductDetails </strong>component in your product listing page, and wrap it in a Suspense component to handle the loading state:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*bY7h0KX1ZpFE2tX3tqU3XQ.png" /></figure><p>The Suspense component displays a loading state until the <strong>ProductDetails </strong>component is loaded.</p><p>That’s it! With <strong>React.lazy</strong>, you can lazily load components when you need them, making your app faster and more efficient.</p><h4>6. Use Context and React.createContext for Global State Management</h4><p>The <strong>Context API </strong>is an excellent approach to share state across several components without passing props down the component tree. This simplifies state management and makes your code more manageable.</p><p>let&#39;s see an example example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*D_U6VMfjkTwYBDHANTzyNQ.png" /></figure><p>So we’ve got a <strong>ThemeContext </strong>and a <strong>ThemeProvider </strong>component that we’ve wrapped around the app. It’s fantastic since any component can use the <strong>useTheme </strong>hook to retrieve and update the theme.</p><p>Here’s an illustration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*pwqkDnt3gYJdAeAi2ivVPQ.png" /></figure><h4>7. Reducers for Managing Complex State</h4><p><strong>Reducers </strong>in<strong> React </strong>are like an extremely useful tool for managing complex states in a predictable and testable manner. They are a functional programming paradigm that works well with the <strong>useReducer </strong>hook and frameworks such as <strong>Redux</strong>. Essentially, you provide the current state and an action to them, and they return the new state.</p><p>an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*LBPbo0Kp7-hcQzZiYtWCYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*rFM5Cuh0jcZ2M4i7al3Mgg.png" /></figure><h3>Conclusion:</h3><p>In conclusion, <strong>Component Design Patterns</strong> is a principle used in programming to separate components&#39; responsibilities.</p><p>Applying those techniques will help you build scalable and well-organized apps that could be used as a starter for other apps. <br><strong>So use those techniques and write code only once 😉 .</strong></p><p><strong>Thank you for reading</strong>! Clap for this article as much as you can.<br>📩 For similar content, feel free to follow me and subscribe to my newsletter.<br><a href="https://www.abouazza.com/">👋 You can say hello here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed3249480f88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React.js Best Practices & Patterns -Part 2]]></title>
            <link>https://bouazzaayyoub.medium.com/react-js-best-practices-patterns-part-2-334e4e488c49?source=rss-6bf3825c84c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/334e4e488c49</guid>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Bouazza Ayyoub]]></dc:creator>
            <pubDate>Mon, 28 Aug 2023 23:02:27 GMT</pubDate>
            <atom:updated>2023-08-28T23:02:27.045Z</atom:updated>
            <content:encoded><![CDATA[<p>Separation of concerns for high-quality applications</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*G4laU4JeCAoJ67XNkrgPSw.jpeg" /></figure><h3>Introduction:</h3><p>This article is part of a series of three articles that review some of the best techniques and patterns for working with React.js. In this article, we will delve into topics such as <strong>custom hooks</strong> and <strong>services</strong>, and determine the most suitable implementation approach for each. These techniques are designed to enhance the scalability and maintainability of your code. Throughout the article, you will find code snippets and valuable tips to effectively incorporate these best practices into your projects.</p><p>📝Feel free to explore the initial segment of this article — go ahead and give it a read!</p><p><a href="https://medium.com/@bouazzaayyoub/react-js-best-practices-patterns-part-1-88b24cb72e81">React.js Best Practices &amp; Patterns - Part 1</a></p><h3>Separation of Concerns</h3><p>In software development, concern separation is critical. It’s all about ensuring that each component of your program serves a single purpose. Separating the logic from the view in React.js can help make your code more maintainable, reusable, and scalable. So let’s look at some examples and approaches to help us create this separation and improve our React projects.</p><h3>1. Custom Hooks</h3><p><strong>Custom hooks</strong> allow you to extract stateful logic from your components and apply it to multiple components. <strong>Custom hooks</strong> are just JavaScript functions with a unique name convention: they must begin with “use” (for example, <strong>useForm</strong>). These hooks can be used in conjunction with other built-in or custom hooks, and they can export an object or an array containing all of the attributes and methods that you want to use in your components.</p><p>let’s see some examples to understand how <strong>custom hooks</strong> might improve your React.js code:</p><h4>🔍 Example 2: Custom Hook for Form Input Handling</h4><p>Consider a form with numerous input fields. Handling the status and input for each field can become tedious and time-consuming. But don’t worry, we can simplify things with a custom hook named <strong>useForm</strong>. This hook allows you to extract the state and logic for all of those fields while keeping things tidy.</p><p>First, we build a values object using <strong>useState </strong>to hold all of our form input values. Then, whenever an input changes, we call the <strong>handleChange </strong>method, which updates the values object. Finally, we include a <strong>resetForm </strong>method that resets everything to zero.</p><p>We can utilize these attributes and methods in all of our components by putting <strong>values</strong>, <strong>handleChange</strong>, and <strong>resetForm </strong>in an array. This makes our form component much easier to maintain and reuse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*2HSo2n8E00B4iGpa7C9luw.png" /></figure><p>Now, we can use the <strong>useForm </strong>custom hook in our form component:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*hlbcwgG2h6aRsAbz7cK3XA.png" /></figure><p>As you see, the <strong>useForm </strong>custom hook helps us handle form inputs with ease.</p><p>Let’s take a look at another example.</p><h4>🔍 Example 2: Custom Hook for Fetching Data</h4><p>You can also use <strong>custom hooks</strong> to retrieve data from an API. It’s actually quite common(you can see <a href="https://tanstack.com/query/v3/">ReactQuery</a>). All we need to do is create a custom hook called <strong>useFetch </strong>that handles the state and side effects of fetching data. <em>Sahla-Mahla</em>(Easy-peasy)!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*P1jSJVvDWa_FG-HUgkFArA.png" /></figure><p>Now, you can use the useFetch custom hook in any component that requires data from an API:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*xSfD0PlP9qEZtpRY8A5F7A.png" /></figure><p>Now, we can simply handle the state and logic for fetching data from the view in our <strong>UserList </strong>component thanks to the <strong>useFetch </strong>custom hook. This greatly simplifies the maintenance and reuse of our code. We can maintain all of the state and side effects associated with fetching data in one place with <strong>useFetch</strong>, then use the generated data in different components. Because of this separation of responsibilities, we can quickly update our <strong>data-fetching</strong> mechanism without affecting the components that rely on it.</p><p>Overall, it improves the maintainability and scalability of our code.</p><h3>2. Services</h3><p>Using <strong>services </strong>to make your React projects more modular is a smart way to go. <strong>Services </strong>are methods or classes that conduct business logic such as calling APIs, manipulating data, and other useful tasks. These <strong>services </strong>can be imported and used in your components or custom hooks. It’s a simple technique to keep things tidy by separating logic from view.</p><p>Let’s take a look at an example to gain a better understanding.</p><h4>🔍 Example 1: API Service</h4><p>Assume we need to use a RESTful API to do certain CRUD operations on user data. To make things easier, we can develop a service that handles everything. It’s a convenient way to interface with the API and complete our jobs quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*qJdmuxsZYmiYAyEqdmsrEg.png" /></figure><p>Now, we can use the API service in our components or custom hooks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*NOxbYTuuVkrtKKezyRbitw.png" /></figure><p>We can keep all of the API interaction logic separate from the view in our <strong>UserList </strong>component thanks to the <strong>API service</strong>. In this manner, we can easily maintain and reuse our code. It’s a terrific approach to keep everything organized and manageable.</p><p>One more example wouldn’t hurt.</p><h4>🔍Example 2: Utility Service</h4><p>Assume we need to accomplish something useful, such as formatting dates, calculating sums, or generating unique IDs. We can design a useful <strong>utility service</strong> that will take care of everything. It’s like having our own personal assistant that we can call on whenever we need to get some meaningful work done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*Srf2eS0JHEcaOR9bK1TkjA.png" /></figure><p>Cool! We can easily use our utility service in our components or custom hooks to make our code more efficient and reusable. It’s a great way to keep things organized and make sure everything runs smoothly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p2uoP6Mdfzt6o4x1wrTuUQ.png" /></figure><p>By using the utility service, we’ve kept the utility logic separate from the view, making our TransactionList component easier to manage and reuse.</p><h3>3. When to use a Custom Hook and when to use a Service Function</h3><p>It is critical to analyze the individual use case and needs of your application when determining whether to utilize a <strong>custom hook</strong> or a <strong>service function</strong>. <strong>Custom hooks</strong> are more suited for managing state or context or for reusing functionality across several components. <strong>Service functions</strong>, on the other hand, are better suited for reusable logic that does not depend on state or context.</p><p>In practice, you may find that some functionality fits better as a custom hook, while other functionality works better as a service function. For example, here are some more examples of when you might choose to use each approach:</p><h4><strong>Custom Hooks:</strong></h4><ul><li><strong>Managing complex state</strong>: If you find yourself needing to manage complex state across multiple components, it’s recommended to utilize <strong>Custom hooks</strong>. For instance, if you’re tasked with overseeing a user’s preferences and correlating them with your product, a custom hook such as <strong>‘useUserSettings’</strong> could prove invaluable. This hook would assist in keeping track of the user’s preferences state and offer functionality to validate their compatibility with your product.</li><li><strong>Context-dependent functionality: </strong>A custom hook can assist in accessing context from different components and offering reusable functionality. For instance, if you need to manage user authentication across multiple components, a custom hook like <strong>‘useLoggedUser’</strong> could enable you to access the user authentication state and provide the capability to manage or update it from other components.</li></ul><h4>Service Functions:</h4><ul><li><strong>Task-specific functionality: </strong>If you have a task that is unrelated to context or state management, employing a service function can be an effective strategy. For instance, when there’s a need to validate data such as email or password or perform certain formatting operations, service functions can offer these functionalities without necessitating context or state involvement.</li><li><strong>Standalone functionality: </strong>If you intend to offer functionality that can be utilized across various applications or platforms, employing a service function is a valuable approach for encapsulating and ensuring the reusability of that logic. For instance, whether you require a function for image processing, file storage, email transmission, or payment processing, service functions can deliver these capabilities in a manner conducive to their application across a diverse range of applications or platforms.</li></ul><h3>Conclusion:</h3><p>In conclusion, separation of concerns is a principle used in programming to separate an application into units, with minimal overlapping between the functions of the individual units. To achieve this in <strong>React.js</strong> applications you could use <strong>custom hooks </strong>or<strong> service functions.</strong><br>Alternatively, neglecting to apply utilize separation of concerns principle could result in code that becomes less maintainable and organized, often leading to what’s commonly referred to as “<strong>code smells.</strong>” 🤢</p><p><strong>Thank you for reading</strong>! Clap for this article as much as you can.</p><p>📩 For similar content, feel free to follow me and subscribe to my newsletter.<br>👋 <a href="https://bouazza.engineer/">You can say hello here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=334e4e488c49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React.js Best Practices & Patterns - Part 1]]></title>
            <link>https://bouazzaayyoub.medium.com/react-js-best-practices-patterns-part-1-88b24cb72e81?source=rss-6bf3825c84c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/88b24cb72e81</guid>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Bouazza Ayyoub]]></dc:creator>
            <pubDate>Thu, 24 Aug 2023 12:54:42 GMT</pubDate>
            <atom:updated>2024-02-07T16:17:03.927Z</atom:updated>
            <content:encoded><![CDATA[<p>Best practices for high-quality applications</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WpXoj86iQSNiy6e0ftbaA.png" /></figure><p>Hello there, <strong>React.js</strong> is an excellent tool for building user interfaces if you use it as much as we do. It’s easy to use, adaptable, and rapid. However, managing components, state, and logic becomes increasingly difficult as your project grows. It’s crucial to adhere to design patterns and best practices to keep things operating smoothly and make your code simple to understand.<br>This series of articles will review some of the best React.js working techniques and patterns. We’ll go through topics like organizing your folders, dividing issues, and design elements. These elements will significantly simplify your life as a developer. To make everything clean and apparent, we’ll provide you with snippets of code, and we’ll also offer you helpful tips on how to apply these best practices to your projects.</p><p>💀<strong>Please</strong> note that the tips provided in this guide are drawn from both my personal experiences and various articles. It’s important to remember that this guide may not address every potential issue, nor is it a definitive solution for all projects throughout history.</p><h4>So, let’s get started and make our React apps even better!</h4><h3>Introduction:</h3><p>If you are building a React application and want to make sure it stays organized and scalable, then you need to follow some <strong>React best practices</strong>! <strong>In this part</strong>, we will cover four essential best practices that will help you build maintainable, scalable, and efficient React applications.</p><h4>1. Folder Structure</h4><p>Having an organized folder structure is super important if you want to keep your project hierarchy clear and make it easy to navigate. Check out this example of a feature-based folder structure:</p><figure><img alt="example of a feature-based folder structure" src="https://cdn-images-1.medium.com/max/452/1*bkgxHvXICHjSN-NhwMZjcw.png" /><figcaption>Example of a feature-based folder structure</figcaption></figure><p>Instead of organizing components by file types, we group them by features. This makes it a lot simpler to find and manage related files, like a component’s JavaScript and CSS files.</p><h4>2. Keep Components Small and Focused</h4><p>When developing an application, it is critical to design components that are simple to comprehend, maintain, and test. As a result, it’s best to keep your components concentrated and tiny. Don’t worry if a component becomes too large; simply divide it down into smaller, more manageable components!</p><p>Assume you have a <strong>UserProfile</strong> component that is becoming too much to handle. You might subdivide it into smaller components such as <strong>ProfilePicture</strong>, <strong>UserName</strong>, and <strong>UserBio</strong>. Each component will be easier to handle and reuse as a result.</p><p>Check out this example:</p><figure><img alt="example of Keeping Components Small and Focused" src="https://cdn-images-1.medium.com/max/533/1*S3rj6lzRa9q6lndIqCP9Aw.png" /><figcaption>example of Keeping Components Small and Focused</figcaption></figure><h4>3. Naming Conventions</h4><p>When you give your components, props, and state variables meaningful names, it makes it easier for others (and future you!) to comprehend your code. Furthermore, it simplifies the long-term maintenance of your code. Here are some pointers to help you name things correctly:</p><ul><li>For components, use PascalCase (like UserProfile.js)</li><li>For variables and functions, use camelCase (like getUserData())</li><li>And for constants, use UPPERCASE_SNAKE_CASE (like API_URL)</li></ul><h4>4. Pages (Container components) and Presentational Components</h4><p><strong>Pages (Container components)</strong> and <strong>presentational components</strong> are the two categories of components in React. <strong>Container components</strong> use props to handle tasks such as retrieving data from external sources (such as APIs), managing state and logic, and sending data down to presentational components.<br>Meanwhile, <strong>presentational components</strong> are in charge of rendering user interface elements and displaying data given down from parent components. We can design more modular and reusable components by splitting these duties.</p><p>Example — TodoApp Page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*OSSOrKNcUrDGzMRik9jFOQ.png" /></figure><p><strong>TodoList Component:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*K619f37hGb5tlv24FB9weA.png" /></figure><p>Okay, so React components are classified into two types: <strong>container components</strong> and <strong>presentational components</strong>. <strong>Container components</strong> handle things like collecting data from APIs and managing state and logic, whereas <strong>presentational components</strong> display data from props and define how things look. This allows us to keep our code more organized, understandable, and testable.</p><h4>5. Keep it DRY with Array Mapping</h4><p>Using an array of objects and mapping over them to prevent code repetition in your React components might be a useful strategy. Consider creating a navigation bar with many links, each having its title, path, and icon. Instead of repeating the same structure and code for each link, you can create an array of objects that have all of the essential data and dynamically render them with a map function.</p><p>Check out this example code to see how to easily generate an array of links and map them over to render a navigation bar:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*WPQrbn9G75VcdBd_oogUMA.png" /></figure><p>In this example, we showed how constructing an array of items and mapping over them might assist you in avoiding code repetition in your React components. This approach is effective for presenting not only navigation bars but also forms with multiple input fields.</p><p>You can map over an array of objects that include the relevant data for each input field to dynamically render the input fields. This can simplify and improve the maintainability of your code, especially when dealing with forms with multiple input fields.</p><p>Here’s an example of this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*kylaSpxhODm--5oG4FMgnQ.png" /></figure><p>This great example illustrates how to construct dynamic input fields in React by using an array of input objects. The label, type, and name for each input field are all included in each input object. Using the map() function, you can easily cycle through the array and dynamically render each input field with data from each input item.</p><p>Using arrays and mapping over them is a terrific method to create dynamic information in your React components without having to repeat the same code. This strategy increases the scalability, reusability, and ease of maintenance of your components.</p><h3>Conclusion:</h3><p>In conclusion, it’s essential to follow <strong>React.js</strong> best practices to develop excellent applications. The advice provided in this guide establishes a solid foundation for creating efficient React applications and writing clean, readable code that is easy to maintain and scale.<br>Keep it simple and <strong>follow developers and users will appreciate your solution.</strong></p><p>📩 For similar content, feel free to follow me and subscribe to my newsletter.<br><a href="https://www.abouazza.com/">👋 You can say hello here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88b24cb72e81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Myths to Leave about SEO]]></title>
            <link>https://bouazzaayyoub.medium.com/myths-to-leave-about-seo-504a80d0bf7f?source=rss-6bf3825c84c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/504a80d0bf7f</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[website]]></category>
            <dc:creator><![CDATA[Bouazza Ayyoub]]></dc:creator>
            <pubDate>Tue, 15 Aug 2023 12:03:34 GMT</pubDate>
            <atom:updated>2023-08-15T12:03:34.469Z</atom:updated>
            <content:encoded><![CDATA[<p>you don’t waste time on tasks that won’t work</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*M4r9WQodq3VHo4TfzYIheQ.jpeg" /><figcaption>SEO illustration</figcaption></figure><h3><strong>Table of content:</strong></h3><ul><li><strong>Introduction</strong></li><li><strong>Myth 1:</strong> “I must submit my site to Google.”</li><li><strong>Myth 2</strong>: “More links are better than more content”</li><li><strong>Myth 3</strong>: “Keywords matter more than anything”</li><li><strong>Myth 4</strong>: “Having a secure (HTTPS) site isn’t important for SEO”</li><li><strong>Myth 5</strong>: “Meta descriptions have a huge impact on search rankings.”</li><li><strong>Myth 6</strong>: “Pop-ups will always hurt my ranking in search”</li><li><strong>Myth 7</strong>: “SEO is just something I should pass off to IT.”</li><li><strong>Myth 8</strong>: “You can only have one H1 per page.”</li><li><strong>Myth 9</strong>: “My homepage needs a lot of content.”</li><li><strong>Myth 10</strong>: “The more pages I have, the better.”</li></ul><p>The intention behind this article is to help you understand how Google bots work and the best practices of SEO.</p><h3>Myth 1: “I must submit my site to Google.”</h3><p>The idea that you must manually submit your website to Google for it to appear in search results is nonsensical. <br><strong>Here’s why</strong>: Google already has mechanisms to discover and index web content😎. With the help of their bots, Google continuously scours the entire internet, seeking out new and updated web pages to include in their search index. <br>This means that as soon as your website goes live, Google’s bots will automatically find and index it.</p><h3>Myth 2: “More links are better than more content”</h3><p>Building links has been and remains a significant factor in determining search rankings. A link to another website goes beyond mere connection; it serves as a testimonial, a vote of confidence, or even a recommendation. It means saying, “Here’s a trusted source worth exploring.”<br>Quality should take precedence over quantity when it comes to links. Sometimes, a smaller number of high-quality links can yield better results than a large number of links. The key lies in understanding how to construct links of exceptional quality.</p><h3>Myth 3: “Keywords matter more than anything”</h3><p>Due to the surge in mobile and voice searches, search queries have become longer and more conversational. In response, Google has been dedicated to comprehending these queries by leveraging natural language processing with the Hummingbird algorithm.<br>Unlike traditional approaches relying solely on keywords, Hummingbird analyzes phrases, leading to a significant shift in search dynamics from keyword-centric to topic-focused SEO. This algorithm marks a pivotal transition in search strategies.<br>This has prompted website owners and SEO practitioners to prioritize comprehensive content centered around specific topics.</p><h3>Myth 4: “Having a secure (HTTPS) site isn’t important for SEO”</h3><p>Have you ever noticed that some URLs start with “http://” while others start with “https://”? To simplify, the extra ‘s’ in “https” stands for ‘secured connection’. This means that your connection to that website is encrypted, preventing hackers from intercepting any of your data. The technology behind this security is called SSL, which stands for “Secure Sockets Layer”.</p><p>In August 2014, <a href="https://developers.google.com/search/blog/2014/08/https-as-ranking-signal">Google announced</a> that it had begun using ‘https’ as a signal in its ranking algorithm. This implies that if your website still relies on the standard HTTP protocol, your SEO ranking could suffer as a result.</p><p>From an SEO perspective, Google has publicly stated that if two websites are otherwise equal in search results, the one with SSL enabled may receive a slight rank boost to outweigh the other. Additionally, Google has started warning Google Chrome users that a website is “not secure” if it doesn’t have SSL enabled.</p><p>Considering these factors, I strongly recommend enabling SSL on your website.</p><h3>Myth 5: “Meta descriptions have a huge impact on search rankings.”</h3><figure><img alt="Just because I am used for SEO, doesn’t mean I have a huge impact on ranking, I mean, I have an influence, but not because I am used for SEO" src="https://cdn-images-1.medium.com/max/507/1*Re3tNjP6WAIt1whHErH0VA.jpeg" /><figcaption>meme about SEO</figcaption></figure><p>Meta descriptions (the short descriptions under the search result titles) don’t serve as official ranking factors for search engines. However, these descriptions can significantly influence users’ decisions to visit a website or not. As a result, they hold importance in on-page SEO strategies.</p><p>Furthermore, meta descriptions can be carried over to social media when your content is shared, potentially prompting higher click-through rates from those platforms as well. In essence, well-crafted meta descriptions don’t have a direct impact on search rankings, but rather, they play a pivotal role in encouraging users to choose whether or not to visit a particular page.</p><h3>Myth 6: “Pop-ups will always hurt my ranking in search”</h3><p>You might feel frustrated when you can’t access a website’s content due to pop-up forms. These pop-ups can indeed be bothersome. Even Google acknowledged this by announcing in August 2016 that they would start penalizing websites using what they termed “intrusive interstitials.”</p><p>To put it simply, Google doesn’t penalize all pop-ups, only those that hinder a user’s easy access to content when searching on mobile devices. For instance, pop-ups that block users from reaching the actual page content will impact your search ranking. This underscores the importance of using pop-ups judiciously.</p><h3>Myth 7: “SEO is just something I should pass off to IT.”</h3><figure><img alt="Just because I’m skilled in IT doesn’t mean I can fix your SEO." src="https://cdn-images-1.medium.com/max/514/1*CcCv31os5Y3vPst_XAq0YA.jpeg" /></figure><p>While SEO involves technical aspects, it’s not something you should simply delegate to your IT team and then forget about. Nowadays, having an effective SEO strategy entails hiring dedicated SEO experts who will collaborate closely with various team members including IT, sales, and more. They will take on the responsibility of not only handling technical aspects but also tasks like content development, link-building, and creating an editorial calendar.</p><p>While it might seem like overengineering to allocate specific individuals or a team to SEO efforts, it’s truly about finding the right people who are prepared to analyze and strategize. In the long run, you’ll appreciate having established this division of responsibilities between SEO and IT.</p><h3>Myth 8: “You can only have one H1 per page.”</h3><p>First, let’s begin by grasping the utility of headings for Google bots. To achieve this, let’s turn to Google for insight. “We utilize headings to enhance our comprehension of the various sections within a page,” <a href="https://www.youtube.com/watch?v=zyqJJXWk0gk&amp;ab_channel=GoogleSearchCentral">elucidates John Mueller, Google WebMaster Trends Analyst</a>.</p><p>In simpler terms, consider your users and employ headings to enhance the accessibility and organization of your content, even if you utilize multiple h1 headings.</p><h3>Myth 9: “My homepage needs a lot of content.”</h3><p>To simplify, your homepage content should strike a balance. It should be sufficiently extensive to introduce your identity, offerings, and values, and guide visitors on their next steps. However, this doesn’t imply an excessive amount of content. The goal is for visitors to grasp what you do and your services clearly. <br>These visitors should leave satisfied, not overwhelmed or underwhelmed, and certainly not confused.</p><h3>Myth 10: “The more pages I have, the better.”</h3><p>Having more pages doesn’t mean having more traffic, but having good-quality content does. In fact, when asked about the top three things that help to make a website more discoverable, Google WebMaster Trends Analyst Martin Splitt started with content good.<br>so make sure you are focusing on the <strong>quality </strong>of content rather than the <strong>quantity</strong>.</p><blockquote>“You have to have really good content. And that means you have content that serves a purpose for the user. It’s something that users need and/or want,” <a href="https://www.youtube.com/watch?v=lrIwTzUTEGs&amp;ab_channel=GoogleSearchCentral">Splitt says.</a></blockquote><p>The lesson? To avoid any drops, never let quantity overtake quality.</p><h3>Conclusion</h3><p>Now that you know what the common SEO myths are, what are you doing that isn’t moving the needle? Understanding these SEO truths will help you become more effective and more efficient with your organic search strategy.<br>If you can take one thing away from this article, it’s this: <strong>More than anything else, SEO is about the overall experience for a searcher, and that experience starts the moment they enter a search query</strong>.</p><p>📩 For similar content, feel free to follow me and subscribe to my newsletter.<br>👋 <a href="https://bouazza.engineer/">you can say hello here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=504a80d0bf7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boost Your Creativity:]]></title>
            <link>https://bouazzaayyoub.medium.com/boost-your-creativity-2f1c2236fe29?source=rss-6bf3825c84c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f1c2236fe29</guid>
            <category><![CDATA[développement-personnel]]></category>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Bouazza Ayyoub]]></dc:creator>
            <pubDate>Thu, 16 Feb 2023 15:47:27 GMT</pubDate>
            <atom:updated>2023-02-16T16:24:22.625Z</atom:updated>
            <content:encoded><![CDATA[<p>Techniques to Unlock Your Full Potential from a developer’s Point of View</p><figure><img alt="Origami birds on my desk" src="https://cdn-images-1.medium.com/max/1024/1*i4rhqJnsaoqTJRtFDBCLNg.jpeg" /><figcaption>Origami birds on my desk</figcaption></figure><p>Creativity is a crucial ingredient for innovation, problem-solving, and developing remarkable products, particularly for developers. However, it’s not uncommon to encounter creative roadblocks that can hinder productivity and inspiration.<br>So for developers seeking to unlock their full creative potential, here are some tips and techniques to consider:</p><h4>1. Experiment with new technologies and tools</h4><figure><img alt="Person Wearing Beige Sweater Holding Map Inside Vehicle" src="https://cdn-images-1.medium.com/max/1024/1*njSQW721tbKet559N5EUxQ.jpeg" /><figcaption>Person Wearing Beige Sweater Holding Map Inside Vehicle</figcaption></figure><p>If you’re always using the same tools, you’re likely to get similar results. To level up your creativity, explore new technologies, programming languages, or libraries that you haven’t used before. It can help you view things from a different perspective and inspire new ideas.</p><h4><strong>2. Make time for play and experimentation</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8dZ1LeCJir5NMtp7KnV5nA.jpeg" /><figcaption>3x3 Rubik’s Cube</figcaption></figure><p>As developers, we often get caught up in the technical details of our work, making it challenging to tap into our creativity. Make time for play and experimentation, whether it’s through side projects, coding challenges, or even building games. It can help reduce stress, boost your mood, and promote creativity.</p><h4>3. Embrace the unknown and take risks</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bXrX0dq5sqmZAr5C-xMALQ.jpeg" /><figcaption>Man Standing on Rock Against Clear Blue Sky</figcaption></figure><p>Fear of the unknown can hold us back from exploring new ideas and taking creative risks. Embracing the unknown and taking risks can be liberating and can lead to new insights and ways of thinking. Don’t be afraid to fail because it is a stepping stone to success.</p><h4>4. Keep a development journal</h4><p>Keeping a development journal can be an excellent way to capture your ideas, thoughts, and inspirations. It can help you brainstorm new ideas, work through challenges, and track your progress over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ClwQ3pEBO26_VTiF9IOGAA.jpeg" /><figcaption>Notes on Board</figcaption></figure><h4>5. Collaborate with other developers</h4><p>Collaboration with other developers can help you see things from a different perspective and spark new ideas. Join online communities, attend tech meetups, or work on open-source projects. You can learn from others and gain valuable feedback that can help you level up your creativity.</p><h4>6. Practice mindfulness and reduce distractions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TRf6gqqnwTZPft47wRXT9A.jpeg" /><figcaption>Man’s Face</figcaption></figure><p>Mindfulness is the practice of <strong>being present in the moment</strong> and <strong>fully engaged in what you’re doing.</strong> Incorporate mindfulness practices into your daily routine, such as reading, exercising, or even taking a walk outside. It can help you stay present and focused on the task at hand, which is crucial for unlocking your full creative potential.</p><h4>7. Take breaks and recharge</h4><p>Developers can become so immersed in their work that they forget to take breaks and recharge. Taking breaks, going for a walk, or even taking a power nap can help you recharge and come back to your work with a fresh perspective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ConrHSqGS3h8aLYLwXgVCg.jpeg" /><figcaption>Clear Glass Teacup With Coffee Beverage</figcaption></figure><h4>8. Step outside of your comfort zone</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WX8Oqd6byKJSRJsK7N0uUA.jpeg" /><figcaption>Man in Red Jacket Standing Beside Brown Tree</figcaption></figure><p>If you’re looking to boost your productivity, consider venturing outside of your comfort zone. Exploring new challenges and breaking away from your usual routine can help you tap into new wells of creativity and motivation. By embracing fresh experiences and opportunities, you can push yourself to accomplish more than you ever thought possible.</p><p>In conclusion, creativity is essential for developers who want to build innovative and remarkable products. By experimenting with new technologies and tools, making time for play and experimentation, embracing the unknown, keeping a development journal, collaborating with others, practicing mindfulness, and taking breaks, you can unlock your full creative potential and build incredible products. So go ahead, start creating, and don’t forget to share your creations with the world!</p><p><em>As always, if you liked my article, don’t forget to</em><strong><em> clap and share!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f1c2236fe29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Accessibility: Implementation]]></title>
            <link>https://bouazzaayyoub.medium.com/web-accessibility-implementation-212156f03076?source=rss-6bf3825c84c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/212156f03076</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[webaccessibilitystandards]]></category>
            <dc:creator><![CDATA[Bouazza Ayyoub]]></dc:creator>
            <pubDate>Wed, 08 Feb 2023 15:14:08 GMT</pubDate>
            <atom:updated>2023-02-08T15:14:08.624Z</atom:updated>
            <content:encoded><![CDATA[<h4>(part-II: Write accessibility in HTML)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJ3hecee5yuIj0Xb-BU2eg.jpeg" /></figure><p>The primary objective of this article is to educate on how to integrate web accessibility into your upcoming front-end project, specifically when you write HTML. if you want to know more about the importance of the web accessibility go check our previous article <a href="https://medium.com/@bouazzaayyoub/web-accessibility-a-feature-or-a-must-to-have-18cf80a26be2"><strong>“web accessibility: feature or a must to have”</strong></a><strong>.</strong></p><h3>Dear developers, designers, and managers</h3><p>The lack of accessibility awareness among developers and designers often leads to neglecting it in the design and development process of applications. This is a significant oversight, as accessibility is not just a desirable addition, but a crucial <strong>obligation </strong>that affects everyone, including developers, designers, organizations, and managers alike. <br>It is not just a matter of accommodating a certain percentage of individuals, but a moral and ethical <strong>responsibility </strong>to ensure that all users have equal access to the web.</p><h3>Implementation</h3><p>With that being said, allow me to provide you with some valuable insights on how to integrate web accessibility into your next project. These tips should not be viewed as a comprehensive checklist, but rather as a foundational starting point for gaining a deeper understanding and appreciation for the needs of all users.</p><h4><strong>1. Define the natural language of your document:</strong></h4><p>Telling the browser which language do you use in your website is very helpful for screen reader users, it make it easy for third-party translation tools to identify the right dictionary, particularly when your users don’t have the same primary language as your site.<br>Defining this property in your HTML file will help assistive technology to choose the correct voice profile or character set.</p><pre>&lt;html lang=&quot;en&quot;&gt;<br>    …<br>&lt;/html&gt;</pre><p>Make sure to always define the right language. All language codes are listed in the <a href="http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry">IANA Language Subtag Registry</a>.</p><h4><strong>2. </strong>Add Alternative Text to Images</h4><pre>&lt;img src=&quot;image.jpg&quot; alt=&quot;describe it&quot; /&gt;</pre><p>If an image is used as content, apply alt attribute to describe the images content.<br>This is important for users who are blind or have low vision, as they rely on screen readers to interpret the content of your website. otherwise if the image is purely decorative or doesn&#39;t add a valuable information consider add a blank alt=” ” , setting this value to a blank indicates that this image is not a key part of the content.<br>For more tips on using alt attribute check this <a href="https://www.a11yproject.com/posts/alt-text/">page</a>.</p><h4><strong>3. Use s</strong>emantic <strong>HTML elements</strong></h4><p>Semantic HTML refers to the use of HTML elements that have specific meanings, such as headings, paragraphs, lists, and links. This makes it easier for screen readers to understand the content and structure of your website, which is essential for accessibility.</p><p>For example if you need a button, use the button (&lt;button&gt;) element instead of a &lt;div&gt; .<br>But why?, because buttons are:</p><ul><li>Clickable (with mouse and keys)</li><li>Screen readers identify them as buttons.</li><li>Focusable.</li></ul><p>For more information about the benefits of a button over a &lt;div&gt;, check this video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FCZGqnp06DnI%3Flist%3DPLNYkxOF6rcICWx0C9LVWWVqvHlYJyqw7g&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DCZGqnp06DnI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FCZGqnp06DnI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/92704faa034d613bc925fe5c1282efcb/href">https://medium.com/media/92704faa034d613bc925fe5c1282efcb/href</a></iframe><ul><li><strong>Using landmarks helps people navigate your site</strong></li></ul><p>It is possible and advised to mark up thematic sections with HTML5 (&lt;article&gt;, &lt;aside&gt;, &lt;nav&gt;, &lt;section&gt;)</p><pre>&lt;body&gt;<br>  &lt;header&gt; &lt;!-- landmark --&gt; <br>    &lt;nav&gt; &lt;!-- landmark --&gt;<br>      ...<br>    &lt;/nav&gt;<br>  &lt;/header&gt;     &lt;aside&gt; &lt;!-- landmark --&gt;<br>  &lt;/aside&gt;<br>&lt;/body&gt;</pre><h4><strong>4. Use headings wisely</strong></h4><p>Use headings wisely helps your users to understand the structure of your page and relationships between sections, and screen readers to navigate and move from a piece of content to another properly. For example using the <a href="http://www.nvaccess.org/">NVDA screen reader</a> users can jump from heading to heading with shortcuts (H and Shift + H).</p><p>You should avoid use multiple nested headings elements under the same outline:</p><pre>&lt;!-- Don&#39;t rely on inexistent outline algorithms: --&gt;<br>&lt;body&gt;<br>    &lt;h1&gt;My website&lt;/h1&gt;<br>    &lt;section&gt;<br>        &lt;h1&gt;Heading&lt;/h1&gt;<br>        &lt;section&gt;<br>            &lt;h1&gt;Subheading&lt;/h1&gt;<br>        &lt;/section&gt;<br>    &lt;/section&gt;<br>    &lt;section&gt;<br>        &lt;h1&gt;Heading&lt;/h1&gt;<br>    &lt;/section&gt;<br>&lt;/body&gt;</pre><p>in addition to that please don’t skip levels:</p><pre>&lt;!-- Don&#39;t skip levels: --&gt;<br>&lt;body&gt;<br>    &lt;h1&gt;My website&lt;/h1&gt;<br>    &lt;h4&gt;Heading&lt;/h4&gt;<br>        &lt;h2&gt;Subheading&lt;/h2&gt;<br>    &lt;h3&gt;Heading&lt;/h3&gt;<br>&lt;/body&gt;</pre><p>do like that:</p><pre>&lt;!-- Do this: --&gt;<br>&lt;body&gt;<br>    &lt;h1&gt;My website&lt;/h1&gt;<br>    &lt;h2&gt;Heading&lt;/h2&gt;<br>        &lt;h3&gt;Subheading&lt;/h3&gt;<br>    &lt;h2&gt;Heading&lt;/h2&gt;<br>&lt;/body&gt;</pre><p><a href="https://wave.webaim.org/extension/">Web Accessibility Evaluation Tool</a> is chrome extension that provides a nice way of checking if your outline is persistent.</p><h4>5. Include ARIA Roles</h4><p>ARIA (Accessible Rich Internet Applications) roles are attributes that can be added to HTML elements to provide additional information to assistive technologies.</p><pre>&lt;nav role=&quot;navigation&quot;&gt;<br>   &lt;ul&gt;<br>     &lt;li&gt;&lt;a href=&quot;#home&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br>     &lt;li&gt;&lt;a href=&quot;#about&quot;&gt;About&lt;/a&gt;&lt;/li&gt;<br>     &lt;li&gt;&lt;a href=&quot;#services&quot;&gt;Services&lt;/a&gt;&lt;/li&gt;<br>   &lt;/ul&gt;<br>&lt;/nav&gt;<br>&lt;button role=&quot;button&quot;&gt;Click Me&lt;/button&gt;</pre><p>In this example, the nav element is given a role of navigation to indicate that it is a navigation menu. The button element is given a role of button to indicate that it is an interactive button. These ARIA roles help to improve the accessibility of your website for users who rely on assistive technologies, such as screen readers.</p><h4>6. <strong>Don’t </strong>Rely on Color</h4><p>It’s important to use a color scheme that provides sufficient contrast between the background and text color. This makes it easier for users with color blindness or low vision to read the text on your website.</p><figure><img alt="Comparison of Standard Vision and Color Blind Perception" src="https://cdn-images-1.medium.com/max/720/1*t3lFcQF40JH32m4Y4Jo24g.jpeg" /><figcaption>Comparison of Standard Vision and Color Blind Perception</figcaption></figure><p>The practice of highlighting input boxes in red upon the failure to fill in a required field is a prevalent method for error indication. However, for users without a visual display or those with specific forms of color blindness, this visual cue may not effectively communicate the error or the steps for correction.</p><h4>7. Test Your Website</h4><p>The importance of verifying the accessibility of your website for all user groups cannot be overstated. To support this effort, there are a range of accessible testing tools available, including <a href="https://wave.webaim.org/"><strong>WAVE </strong></a>and <a href="https://www.deque.com/axe/"><strong>aXe</strong></a>, which can be utilized to ensure that your website is designed with inclusivity in mind.</p><h3>Conclusion</h3><p>Creating accessible HTML is not just a best practice, but a responsibility. It ensures that your website is inclusive and accessible to all users, regardless of their abilities. By incorporating the tips and principles discussed in this article, you can design and develop a website that is both accessible and user-friendly. This not only benefits users with disabilities but enhances the overall user experience for everyone.</p><p><em>If you liked this article, show your support by clicking the clap icon (as many times as you want), sharing the story on social media, and by following me on Medium! <br>Thank you and happy reading </em>😃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=212156f03076" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>