<?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 Nora Mensah on Medium]]></title>
        <description><![CDATA[Stories by Nora Mensah on Medium]]></description>
        <link>https://medium.com/@noramens_?source=rss-a409908dc7d4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BzwedjMOF0hpCqAVXVN5VQ.jpeg</url>
            <title>Stories by Nora Mensah on Medium</title>
            <link>https://medium.com/@noramens_?source=rss-a409908dc7d4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:43:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@noramens_/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[When to Use Agentic RAG (and When Not To)]]></title>
            <link>https://medium.com/@noramens_/when-to-use-agentic-rag-and-when-not-to-0a71f42313e6?source=rss-a409908dc7d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a71f42313e6</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-rag]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <dc:creator><![CDATA[Nora Mensah]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 14:47:46 GMT</pubDate>
            <atom:updated>2026-10-26T14:47:46.574Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding AI in simple terms</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LZS17VLMMCZ5AVOiNmp9zg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jadonjohnson?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jadon Johnson</a> on <a href="https://unsplash.com/photos/young-woman-looking-through-bookshelves-in-library-bookshelves-IMrDnlE34EY?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Today’s lesson is about understanding when to and when not to use Agentic RAG. Firstly, let’s start with understanding the concepts. What is RAG? RAG, or Retrieval-Augmented Generation, is simply a retrieval method used when giving context that your AI would use in processing a request.</p><p>So, before your agent gives you a response after a query from you, you could give it some context so you can ensure the response you receive is based on the data you have provided. In some situations, we can’t afford for the response from our agent to mislead or misinform. In those cases, we ensure that before any processing is done, the context, whether it’s a document or a vector store (a database that finds text by meaning and not by exact words), is given to the agent, and we make sure that the agent uses only this context we have given to process and return a response. In this case, a normal RAG is essential. Otherwise, we can give it an Agentic RAG.</p><p>An Agentic RAG is basically a RAG that is fed as a tool to the agent. In this case, the agent can decide to use the RAG during the process or not.</p><p>That’s basically it.</p><p>Here’s how an implementation of both looks in Mastra:</p><pre>// normal RAG: your code always searches before the model answers<br>import { Agent } from &#39;@mastra/core/agent&#39;;<br>import { PgVector } from &#39;@mastra/pg&#39;;<br>import { embed } from &#39;ai&#39;;<br>import { openai } from &#39;@ai-sdk/openai&#39;;<br><br>const pgVector = new PgVector({ connectionString: process.env.POSTGRES_URL! });<br><br>const supportAgent = new Agent({<br>  id: &#39;support-agent&#39;,<br>  name: &#39;Support Agent&#39;,<br>  model: &#39;openai/gpt-4o-mini&#39;,<br>  instructions: &#39;Answer only using the context provided. If it is not there, say you do not know.&#39;,<br>});<br><br>export async function answer(question: string) {<br>  // 1. Turn the question into numbers<br>  const { embedding } = await embed({<br>    model: openai.embedding(&#39;text-embedding-3-small&#39;),<br>    value: question,<br>  });<br><br>  // 2. Always search the vector store<br>  const results = await pgVector.query({<br>    indexName: &#39;embeddings&#39;,<br>    queryVector: embedding,<br>    topK: 3,<br>  });<br><br>  // 3. Paste the chunks into the prompt<br>  const context = results.map(r =&gt; r.metadata?.text).join(&#39;\n\n&#39;);<br><br>  // 4. Only now does the model get involved<br>  return supportAgent.generate(`Context:\n${context}\n\nQuestion: ${question}`);<br>}</pre><pre>// agentic RAG: search is a tool, and the agent decides when to use it<br>import { Agent } from &#39;@mastra/core/agent&#39;;<br>import { createVectorQueryTool } from &#39;@mastra/rag&#39;;<br>import { ModelRouterEmbeddingModel } from &#39;@mastra/core/llm&#39;;<br><br>const vectorQueryTool = createVectorQueryTool({<br>  vectorStoreName: &#39;pgVector&#39;,<br>  indexName: &#39;embeddings&#39;,<br>  model: new ModelRouterEmbeddingModel(&#39;openai/text-embedding-3-small&#39;),<br>});<br><br>export const assistant = new Agent({<br>  id: &#39;assistant&#39;,<br>  name: &#39;Assistant&#39;,<br>  model: &#39;openai/gpt-4o-mini&#39;,<br>  instructions: &#39;Use vectorQueryTool only when the question needs company documents.&#39;,<br>  tools: { vectorQueryTool },<br>});<br><br>// Just pass the question in, and the agent chooses whether to search<br>await assistant.generate(question);</pre><p>Why would I ever need a normal RAG? Normal RAG looks like more code, but agentic RAG does the same steps, just tucked inside a tool. There are certain instances where a normal RAG is needed, and they are very much used in production. This includes, but is not limited to:</p><ol><li><strong>Legal or compliance assistants.</strong> Every answer needs to point back to a specific rule or clause, so you’d want it to always search first.</li><li><strong>Internal company bots.</strong> Your agent has never seen your company’s leave policy, so it has to look it up every single time anyway.</li><li><strong>Medical reference tools.</strong> Guessing could be dangerous here, so we have to enforce that the answers are tied to our data.</li><li><strong>High-volume apps.</strong> If you’re handling thousands of requests, one search and one answer is cheaper and faster than letting the agent think it through.</li><li><strong>Search features in a product.</strong> Something like “what do our reviews say about battery life?” is basically always a search question.</li></ol><p>So whenever you need responses from your agent to be based on a particular ‘brain’ and wouldn’t want your agent to decide whether or not to use your ‘brain’, stick to normal RAG. Otherwise, agentic RAG works. Instances where an agentic RAG works best include:</p><ol><li><strong>Coding agents.</strong> To fix a bug, the agent finds the error, then the file, then where that code is used. It’s following a trail, and one search can’t know where it leads.</li><li><strong>On-call assistants.</strong> When a server goes down, the agent checks the metrics, then the logs, then the right fix. Each step depends on the one before it.</li><li><strong>Research tools.</strong> A big question needs lots of searching, reading and searching again before it can give you a proper answer.</li><li><strong>Data assistants.</strong> For “why did sign-ups drop last month?”, the agent pulls the numbers first, then checks the notes to see what changed.</li><li><strong>Personal work assistants.</strong> Something like “prepare me for my 3 pm meeting” means checking your calendar, emails and docs. The agent works out which ones as it goes.</li><li><strong>Sales prep agents.</strong> Before a call, it pulls the client’s history, past proposals and any recent news about the company.</li></ol><p>For these, you can tell that just one search/look-up won’t provide the results expected. More than one service may be called and required.</p><p>So the next time you need to decide which to use, ask yourself: does every question need my documents? If yes, use normal RAG. If not, or if one search isn’t enough, go agentic. I hope this was helpful :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a71f42313e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PX, REM and EM — how it affects accessibility]]></title>
            <link>https://medium.com/@noramens_/px-rem-and-em-how-it-affects-accessibility-ccb61dc40e1b?source=rss-a409908dc7d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccb61dc40e1b</guid>
            <dc:creator><![CDATA[Nora Mensah]]></dc:creator>
            <pubDate>Sun, 06 Feb 2022 23:34:18 GMT</pubDate>
            <atom:updated>2022-02-06T23:34:18.875Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="a lady drawing on an iPad" src="https://cdn-images-1.medium.com/max/1024/1*wOmo1Y37u0SsLvQnArT8zQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@kellysikkema?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Kelly Sikkema</a> on <a href="https://unsplash.com/s/photos/draw?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>As software engineers, we are to make sure that the applications that we put out are accessible to all. The issue of accessibility in the software engineering space is such a huge topic that understanding how the units we use affects web accessibility may seem small but goes a long way in ensuring that our pages are giving the best experiences they should give to all types of users.</p><p>A key thing to note is that every browser comes with its default settings and per the needs of every user, these default settings are altered to the desires and needs of the user. Therefore it is imperative in keeping this in mind when building applications.</p><h3>Pixels (PX)</h3><p>By definition, a pixel is a minute area of illumination on a display screen, one of many from which an image is composed. In other words, it is one of the small dots or squares that make up an image on a computer screen.</p><p>The pixel unit is one of the most commonly used units but the con that comes with this unit must be watched. Whenever you use this unit, you are not putting the needs of the user at the forefront. This is because using pixels disregards the default settings in the browser and uses your specified value. Instead of using px, you may want to consider either using rem or em.</p><p>To properly understand how using pixels affects the accessibility and even responsiveness, let’s look at how it differs from rem and em.</p><h3>REM</h3><p>According to <a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units">MDN</a>, REM stands for root EM. Say I have my base font in my browser set to 16px (which is the default setting in the browser) and I set my font-size to 2rem, it means, I am setting the font-size 2x of whatever the browser default setting is, which in this case is 16, making the final font-setting to 32px.</p><p>This helps our users who wish to use a bigger font size for any reason or the order, whiles maintaining the hierarchy of fonts in our application.</p><h3>EM</h3><p>Historically, EM is related to the letter M. It was used to describe how wide the letter M is in a given typeface. So EM is derived from the phonetic of the pronunciation of the letter M.</p><p>EM comes with a little calculation. A similarity between REM and EM is that they both make room to accommodate the needs of different users. But what distinguishes EM from REM is that EM uses the parent element as a base size. So that,</p><p>if we have a parent element of say,</p><p>&lt;main&gt; ,</p><p>that has a font size of say 0.5 rem</p><p>given the default base size, that will be 16 x 0.5 = 8px,</p><p>this means 1em in a child element of say</p><p>&lt;p&gt; element will be equal to 8px.</p><p>So unlike REM which uses the base size that has been set in the browser, EM uses the size of its immediate parent.</p><h3>Conclusion</h3><p>Understand px rem and em, and contribute your quota to ensuring the web is accessible to all.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccb61dc40e1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React-router-dom— The essentials]]></title>
            <link>https://medium.com/front-end-weekly/react-router-dom-the-essentials-f63dca64dc3e?source=rss-a409908dc7d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f63dca64dc3e</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[react-router]]></category>
            <category><![CDATA[frontend-development]]></category>
            <dc:creator><![CDATA[Nora Mensah]]></dc:creator>
            <pubDate>Sun, 06 Feb 2022 21:46:18 GMT</pubDate>
            <atom:updated>2023-02-24T10:23:15.162Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="An image of a map" src="https://cdn-images-1.medium.com/max/1024/1*GkjrABVlp8c7CKpXt33Y6A.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@martinirc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">José Martín Ramírez Carrasco</a> on <a href="https://unsplash.com/s/photos/route?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In real life, routing informs us where we currently are and shows us the path to where we want to go. In the same way, when it comes it react, react-router helps us to know which component is currently rendered, and which would render when we change pages. React itself doesn’t come with an inbuilt router, therefore a need for a separate library. No wonder it is one of the most popular react libraries.</p><p>As we learn by doing, you don&#39;t have to understand all the terms explained in the documentation to jump-start your way into react-router. This article is to give you a clear understanding of the essentials you need to get started with react-router-dom in your react application, by highlighting the key components and the key hooks. However, for an in-depth explanation, you may want to consider reading <a href="https://v5.reactrouter.com/web/guides/quick-start">the documentation</a>.</p><p>Note that this article is keeping in mind the v6 of react-router-dom so there may be some features highlighted here that won’t be available in an older version.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Ff%2F788447%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2F788447%2F&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/18214d8333adbb5668f31791a3202b60/href">https://medium.com/media/18214d8333adbb5668f31791a3202b60/href</a></iframe><h3>React-router vs React-router-dom vs React-router-native</h3><p>When starting with react-router, you would come across these different packages and it can be a bit confusing to grasp. Here is a simple overview of what these are and what each package solves.</p><p><strong>react-router</strong> contains all the standard components between <strong>react-router-dom</strong> and <strong>react-router-native</strong>. When should you use one over the other? If you’re on the web then <strong>react-router-dom</strong> should have everything you need as it also exports the common components you’ll need. If you’re using React Native, <strong>react-router-native</strong> should have everything you need for the same reason.</p><h4>Installation</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f3f9afee27ad9a38579a3f215c26a3b4/href">https://medium.com/media/f3f9afee27ad9a38579a3f215c26a3b4/href</a></iframe><h3>Key Components</h3><h4>BrowserRouter</h4><p>This is the component that informs react-router to be aware and in control of your application. All you have to do is wrap your whole application around it and you are good to go. So inside our root component, usually index.js, import BrowserRouter (which some people like to rename as Router but we would keep it as is)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/688b3a8a23b270dc23f2460fde9c3f1f/href">https://medium.com/media/688b3a8a23b270dc23f2460fde9c3f1f/href</a></iframe><h4>Route</h4><p>Put simply, <strong>Route</strong> allows you to map your app’s location to different React components. For example, say we wanted to render a <strong>About</strong> component whenever a user navigated to the <strong>/dashboard</strong> path. To do so, we’d render a <strong>Route</strong> that looked like what we have below. Go ahead and import Route from react-router-dom.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f997e613ab1e252b48e88b27c5e2f985/href">https://medium.com/media/f997e613ab1e252b48e88b27c5e2f985/href</a></iframe><p>The Rout component accepts an <strong>element </strong>prop which is the component that should be rendered when the route change and a path prop which is the URL to the component we have made available in the element.</p><h4>Routes</h4><p>Routes is the parent component that you wrap around two or more <strong>Route </strong>components</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec491a29067b5ad8f63715d0c708f142/href">https://medium.com/media/ec491a29067b5ad8f63715d0c708f142/href</a></iframe><h4>Link</h4><p>When you want a text to link have a link to any route component, use the Link component available in react-router-dom. This accepts a <strong>to </strong>prop which is the URL to the component you are linking to. Say we want to link our nav items to their corresponding pages, our code will look like the below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4cc5485c4522abddc0f4088fd3938ee9/href">https://medium.com/media/4cc5485c4522abddc0f4088fd3938ee9/href</a></iframe><p>You can also pass data through a <strong>Link</strong> component to a new route using <strong>Link’s </strong><strong>state </strong>prop. Example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/24a1828cda38fe8c181bd09059c764c0/href">https://medium.com/media/24a1828cda38fe8c181bd09059c764c0/href</a></iframe><p>Anytime you pass data along via the <strong>state</strong> prop, that data will be available on the <strong>location</strong>’s <strong>state</strong> property, which you can get access to by using the custom <strong>useLocation</strong> Hook that comes with React Router which we will explore later.</p><h4>Url Parameters</h4><p>Just like you pass parameters to functions to dynamically set the value when called, URL parameters allow you to declare placeholders for portions of a URL. These parameters can be set to be used as states in the components.</p><p>The way you tell React Router that a certain portion of the URL is a URL parameter is by using a <strong>:</strong> in the <a href="https://gist.github.com/noramens/a41b37ee78b6d5859200d1cd9370b9cc"><strong>Route</strong></a>’s <strong>path</strong> prop.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8030ebf861c40edca93fb0f341c89d23/href">https://medium.com/media/8030ebf861c40edca93fb0f341c89d23/href</a></iframe><h4>404 pages</h4><p>To catch pages that are not defined in our routes, we can simply do that by providing our Route with a path of * and the element we pass in this route will be rendered when none of the routes that have been passed match.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/12c2e34a4f3fd1376949e1703ee9035c/href">https://medium.com/media/12c2e34a4f3fd1376949e1703ee9035c/href</a></iframe><h3>Key Hooks</h3><h4>useNavigate vs useHistory</h4><p>In the previous version of react-router, we had the useHistory hook which came in handy by returning to us some properties like <strong>goBack</strong> which when called lets the user go to their previous page, <strong>location</strong>which is an object itself and had properties like pathname which helped us know the current path of the user, search and so on. Another property from the useHistory hook worth highlighting is, <strong>push</strong> which lets us navigate the user to any path we specified in the <strong>push</strong> function and that was great.</p><p>In v6, react-router-dom comes with the useNavigate instead which is whatever useHistory does and more.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0565174d954ffc693ca7fceac2aace7/href">https://medium.com/media/d0565174d954ffc693ca7fceac2aace7/href</a></iframe><p>Just like any other hook, our hook is declared at the top and inside our handleClick, we are passing a URL that will navigate to the home page.</p><p>A unique feature that useNavigate comes with is that, when you pass -1 into the navigate() function, it takes the user back to the previous page and passing 1 in the navigate takes the user to the next page.</p><h4>useLocation</h4><p>As explained earlier, useHistory had a location object that contained key items that described the user’s location. In the v6, accessing location data is a hook on its own and it looks pretty similar to the one in useHistory. The location property includes:</p><ul><li><strong>hash</strong>: the anchor part (#)</li><li><strong>pathname</strong>: the pathname</li><li><strong>search</strong>: the query string part</li><li><strong>state: </strong>data passed from the Link</li><li><strong>key</strong></li></ul><h3>Conclusion</h3><p>To get up and running with react-router, these points that have been briefly highlighted is great. React router is such a huge topic and seeing how almost all react applications are dependent on it, taking a deep look into it will speed up your dev time. I hope you found this helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f63dca64dc3e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/front-end-weekly/react-router-dom-the-essentials-f63dca64dc3e">React-router-dom— The essentials</a> was originally published in <a href="https://medium.com/front-end-weekly">Frontend Weekly</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Staying Afloat With Your Internship]]></title>
            <link>https://medium.com/mpharma-tech-blog/staying-afloat-with-your-internship-6ce7299313aa?source=rss-a409908dc7d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ce7299313aa</guid>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[first-tech-job]]></category>
            <category><![CDATA[mentorship]]></category>
            <dc:creator><![CDATA[Nora Mensah]]></dc:creator>
            <pubDate>Fri, 10 Dec 2021 12:10:15 GMT</pubDate>
            <atom:updated>2022-01-10T23:20:12.183Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Oft3oX1GgrOg1rQw" /><figcaption>Photo by <a href="https://unsplash.com/@wocintechchat?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Christina @ wocintechchat.com</a> on <a href="https://unsplash.com/s/photos/laptop-book?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I remember walking into mPharma for the first time as a graduate intern. I had heard so much about the company and how only senior engineers are hired into the engineering team. As a fresh graduate with no solid background, I felt like a small fish in a big pond. I was extremely scared but excited at the same time to work with great minds and learn from them.</p><p>Today, I am even more grateful that I made this choice and that they also made the choice of hiring me as their first national service personnel in the engineering team. I have decided to share some pointers that helped me a great deal at that period of my life.</p><h3>Stay humble and teachable</h3><p>Being an intern is a gift! No one expects you to know it all so don’t show off. Rather be honest with your level of understanding and show that you are genuinely improving over the period. Being honest with your level of understanding helps you further ascertain which areas you need to work on.</p><h3>Get a mentor</h3><p>One of the things that really saved and continue to save me in this tech journey is the fact that I have a mentor. You can’t know and grow all by yourself. Good for you, you find yourself in a space filled with people who have gone ahead of you and are where you would want to be in some months or years to come, so, submit yourself to mentorship. Some companies may provide you with a mentor and that is great. But if they don’t, do well to wisely choose a mentor preferably from the company, since they are closer, and will look out for you and be genuinely concerned about your growth.</p><h3>Be hungry to learn</h3><p>Now that you have a mentor, make use of this opportunity. Be hungry and show your hunger for growth and learning. There is no point in having a mentor when there is no structured learning; when you are not putting your mentor to effective use. She/He may have a lot to do and may even genuinely forget you exist so behoves you to try to stay in touch. Ask questions, create a meeting schedule, ask them to teach you some topics you are finding difficult to grasp. One other thing I learnt getting to the end of my internship period — ask for a performance review!</p><p>Unlike me, don’t wait till you are getting to the end of your internship before you ask for a review. Ask for it regularly. This is not only restricted to mentors but your managers and even team members. This act will help you have a clear understanding of where you need to put in more work to improve. You never stop learning in this field so you better embrace the habit of <em>always staying hungry.</em></p><h3>Challenge yourself — Build projects</h3><p>In engineering, you can only really feel confident through practice - learn by building new things. Don’t get stuck in the tutorial hell. Build something no matter the level of understanding you may think you have. You can bring your mentor along on this journey because you would definitely feel stuck one way or the other.</p><p>I see coding as an art (coding is actually an art). Writing code that only works and cannot be understood by others is not good enough. You need to learn to improve your coding craft in either way:</p><ol><li>Pair coding with more experienced engineers</li><li>Reading code. I read code written by other engineers to try to understand certain choices they made. This helps me because I get to pick up some tricks as I also try to find alternatives to solve problems.</li></ol><h3>Ask for help</h3><p>Google is and will continue to be your great friend but sometimes, you will require someone to explain something to you. Perhaps, help you complete a task you have been assigned. Don’t be proud to ask for help.</p><p>Before then, make sure:</p><ol><li>You understand the problem you are trying to solve. If not, speak to the manager or whoever assigned you the task to help you understand.</li><li>Attempt to solve the problem. Sometimes, things are not as difficult as they seem. Try to break down the problems and attempt to solve them.</li></ol><p>Then you can ask someone else on your team, however, be patient when they don’t respond immediately. They may also have other things to work on. Present your problem and your approach to solving it. <em>Don’t be afraid or proud to ask for help</em>. Fun fact, everyone asks for help sometimes.</p><h3>Conclusion</h3><p>Every senior engineer has been where you find yourself right now. Everyone started from somewhere. Some days can be overwhelming because even though you may not know much, a lot will be required from you. See this as an opportunity to grow and make use of all the resources you have available to you. Remember, what stands between where you are now and becoming a better engineer, is resilience and consistency. When this period is over, I hope you pride yourself on your achievements.</p><p><em>Originally published at </em><a href="https://www.linkedin.com/pulse/staying-afloat-your-internship-nora-mensah/"><em>https://www.linkedin.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ce7299313aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mpharma-tech-blog/staying-afloat-with-your-internship-6ce7299313aa">Staying Afloat With Your Internship</a> was originally published in <a href="https://medium.com/mpharma-tech-blog">mPharma Product &amp; Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Big O Asymptotic Analysis]]></title>
            <link>https://blog.devgenius.io/understanding-big-o-asymptotic-analysis-4708ac0dc2f2?source=rss-a409908dc7d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4708ac0dc2f2</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[algorithm-performance]]></category>
            <category><![CDATA[space-complexity]]></category>
            <category><![CDATA[time-complexity]]></category>
            <dc:creator><![CDATA[Nora Mensah]]></dc:creator>
            <pubDate>Wed, 08 Dec 2021 21:07:05 GMT</pubDate>
            <atom:updated>2021-12-10T10:35:37.955Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kwf-NbjjLNwvmypOEOHKyw.png" /></figure><p>As Software Engineers, our call is to solve some of the most difficult problems. With deadlines fast approaching, we tend to make delivering products before deadlines our priority and usually trade that for writing good code. Understanding the concept of Big O goes a long way to help you as an Engineer to understand how well the code you ship performs as the number of your users increase.</p><h3>What makes a good code?</h3><p>Good code is code that is readable, reusable, maintainable and scalable. Today, we would shine more light on the scalability aspect of writing good code. What does it mean for code to be scalable?</p><p>There are two things that define the word scalability:</p><ul><li>Speed and</li><li>Memory</li></ul><h3>Time Complexity</h3><p>In measuring code scalability, time is one of the things we look out for. How long does it take your code to execute — the runtime? How about when your input size keeps growing? Is your code going to execute much slower?</p><h3>Space Complexity</h3><p>Another thing that we look out for is how much additional memory your code uses in order to execute. As the input size increases, how much memory will your code take to execute?</p><p>Usually, we have to make a trade-off of either choosing speed over memory or memory over speed when analysing code. To measure the scalability of our code, we use a concept called <strong>Big O Notation</strong> also known as Big O asymptotic analysis.</p><h3>Calculating Big O</h3><p>There are two main things to look out for when calculating the Big O of an algorithm:</p><ol><li>Number of operations</li><li>Number of elements or input size</li></ol><h3>Linear Time — O(n)</h3><p>Linear Time is one of the most common complexities you are going to come across. As the name suggests, we say an algorithm has linear time complexity or O(n) (pronounced Big O of n) when the time is <strong>directly proportional</strong> to the input size. That is, the time to execute the code grows as the input size grows. To explain further, take a look at the code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6f3ea1fd1803e4a0a3cf7ffb1de2ce1b/href">https://medium.com/media/6f3ea1fd1803e4a0a3cf7ffb1de2ce1b/href</a></iframe><p>From the code above, we have an array that contains only one item — a string, findNemo function that takes an array as input, a for loop that loops through all the items in the array and checks if the item in the array is strictly equal to the string “nemo”, and logs ‘found nemo!!’ to the console.</p><p>This means that no matter the size of the array, we go through each item and that will cost us time. Therefore, the time to execute this is completely dependent on the size of the input. To further explain this concept, consider copying and executing the code snippet below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/257f815113768dd6e3d1d40824439517/href">https://medium.com/media/257f815113768dd6e3d1d40824439517/href</a></iframe><p>We are using JS’ inbuilt performance object to track the time it takes to execute this code. The expected output is somewhere around 0.09999996423721313 milliseconds. The kind of computer you use and how fast your CPU is may affect this answer but generally, you should expect somewhere around 0.x milliseconds. Now let&#39;s try to increase the size of the input passed to the findNemo function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c3735ec5228fea4598efd0a8987cf47/href">https://medium.com/media/3c3735ec5228fea4598efd0a8987cf47/href</a></iframe><p>Now increasing the size of the input from 1 to 100, we get between 4.700000047683716 and 9.200000047683716; a significant change in execution time. This is because the number of operations, in this case, the for loop runs on each item thereby increasing the execution time as the input size increases.</p><h3>Constant Time — O(1)</h3><p>We say an algorithm runs in constant time when the number of operations has no correlation to the input size. In other words, no matter the input size, the number of operations does not change.</p><p>For example, given the code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99890781d9b0a56cf6da53106608f707/href">https://medium.com/media/99890781d9b0a56cf6da53106608f707/href</a></iframe><p>We have an array of numbers and a function called findFirstItem which logs the first item in the array to the console.</p><p>We realise that no matter the size of the array, there’s no increase in the number of operations. All we do is get the first item and log it to the console.</p><p>Therefore, operations that do not depend on the input size are said to run in constant time or O(1).</p><h3>Quadratic Time — O(n²)</h3><p>We say that an algorithm run in quadratic time when the number of operations increase by two times of itself depending on the input. For each increase in input size, the computation time increases by the squared size of the input.</p><p>This usually occurs when you have nested loops. For instance, if we want to print a pair of numbers as shown in the code snippet below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3badb277502a7c6c82165a8c81565947/href">https://medium.com/media/3badb277502a7c6c82165a8c81565947/href</a></iframe><p>To print out the pair, we loop through each item and for every first item, we loop through the item itself in addition to the other items.</p><p>If you still don’t understand how this works, try running the code in your console to see its output.</p><p>We have already dealt with O(n) and now we have two O(n)’s, nested within itself therefore we multiply O(n) by O(n) :</p><pre>O(n) * O(n)  = O(n^2)</pre><h3>Rules for computing Big O</h3><p>Having gone through the main Big O complexities, when calculating, there are certain rules you have to take note of in order to give the right answers when asked questions concerning Big O during technical interviews.</p><h3>Rule 1</h3><p><strong>Look at the worst-case scenario.</strong></p><p>When calculating, we consider the worst thing that could happen to your code such as your user size growing to about a billion. Will your code still scale?</p><h3>Rule 2</h3><p><strong>Remove constants</strong></p><p>After considering the worst-case scenario, looking at the grand scheme of things, constants are neglected.</p><p>Consider this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d032645f45de7d1f010d43f9922aae08/href">https://medium.com/media/d032645f45de7d1f010d43f9922aae08/href</a></iframe><p>When our function gets called, we log to the console, ‘this function has been called’. Then we have our function print its pairs.</p><p>The conclusion will be:</p><pre>O(1) + O(n) * O(n) = O(1 + n^2)</pre><p>When asked to compute the big O value of this printPair function, we neglect the constant which in this case is O(1) therefore the final answer will be O(n²). Because in the grand scheme of things, the O(1) will not have any significant impact on the speed of our code.</p><h3>Rule 3</h3><p><strong>Treat inputs differently</strong></p><p>One thing that many overlook when calculating Big O is when they have different inputs, they treat them as the same.</p><p>For example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8676e4ffd1e27db3ca6a8abc8429a71a/href">https://medium.com/media/8676e4ffd1e27db3ca6a8abc8429a71a/href</a></iframe><p>Instead of the final answer being:</p><pre>O(n) + O(n) = O(2n)</pre><p>It should rather be:</p><pre>O(a) + O(b) = O(a + b)</pre><p>Two separate inputs should have two separate variables. Don’t worry too much about not having n in this answer. It is a concept that needs to be understood.</p><h3>Rule 4</h3><p><strong>Drop non-dominants</strong></p><p>Just like we dropped constants in our second rule because we look at the bigger picture, we drop non-dominants here too for the same reason.</p><p>So if we have a calculation summing up to O(n + n²), We drop the O(n). Thus, our final answer is O(n²). Therefore, make sure that your final answer always points to the complexities.</p><h3>Conclusion</h3><p>In conclusion, Big O is not just a theory but a tool we can leverage to build not just applications that work but applications that are efficient as they are useful. So, the next time you write that code, ask yourself, “how well will this code scale when I have about 7.6 billion people using my app”?</p><p><em>More content at </em><a href="http://blog.devgenius.io/"><em>blog.devgenius.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4708ac0dc2f2" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/understanding-big-o-asymptotic-analysis-4708ac0dc2f2">Understanding Big O Asymptotic Analysis</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Big O Asymptotic Analysis]]></title>
            <link>https://medium.com/mpharma-tech-blog/understanding-big-o-asymptotic-analysis-b45ed511c697?source=rss-a409908dc7d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b45ed511c697</guid>
            <category><![CDATA[big-o-notation]]></category>
            <category><![CDATA[coding-interviews]]></category>
            <category><![CDATA[data-structure-algorithm]]></category>
            <category><![CDATA[increase-performance]]></category>
            <category><![CDATA[big-o-in-javascript]]></category>
            <dc:creator><![CDATA[Nora Mensah]]></dc:creator>
            <pubDate>Fri, 08 Oct 2021 14:34:46 GMT</pubDate>
            <atom:updated>2021-11-19T06:54:47.901Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kwf-NbjjLNwvmypOEOHKyw.png" /></figure><p>As Software Engineers, our call is to solve some of the most difficult problems. With deadlines fast approaching, we tend to make delivering products before deadlines our priority and usually trade that for writing good code. Understanding the concept of Big O goes a long way to help you as an Engineer to understand how well the code you ship performs as the number of your users increase.</p><h3>What makes a good code?</h3><p>Good code is code that is readable, reusable, maintainable and scalable. Today, we would shine more light on the scalability aspect of writing good code. What does it mean for code to be scalable?</p><p>There are two things that define the word scalability:</p><ul><li>Speed and</li><li>Memory</li></ul><h3>Time Complexity</h3><p>In measuring code scalability, time is one of the things we look out for. How long does it take your code to execute — the runtime? How about when your input size keeps growing? Is your code going to execute much slower?</p><h3>Space Complexity</h3><p>Another thing that we look out for is how much additional memory your code uses in order to execute. As the input size increases, how much memory will your code take to execute?</p><p>Usually, we have to make a trade-off of either choosing speed over memory or memory over speed when analysing code. To measure the scalability of our code, we use a concept called <strong>Big O Notation</strong> also known as Big O asymptotic analysis.</p><h3>Calculating Big O</h3><p>There are two main things to look out for when calculating the Big O of an algorithm:</p><ol><li>Number of operations</li><li>Number of elements or input size</li></ol><h3>Linear Time — O(n)</h3><p>Linear Time is one of the most common complexities you are going to come across. As the name suggests, we say an algorithm has linear time complexity or O(n) (pronounced Big O of n) when the time is <strong>directly proportional</strong> to the input size. That is, the time to execute the code grows as the input size grows. To explain further, take a look at the code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6f3ea1fd1803e4a0a3cf7ffb1de2ce1b/href">https://medium.com/media/6f3ea1fd1803e4a0a3cf7ffb1de2ce1b/href</a></iframe><p>From the code above, we have an array that contains only one item — a string, findNemo function that takes an array as input, a for loop that loops through all the items in the array and checks if the item in the array is strictly equal to the string “nemo”, and logs ‘found nemo!!’ to the console.</p><p>This means that no matter the size of the array, we go through each item and that will cost us time. Therefore, the time to execute this is completely dependent on the size of the input. To further explain this concept, consider copying and executing the code snippet below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/257f815113768dd6e3d1d40824439517/href">https://medium.com/media/257f815113768dd6e3d1d40824439517/href</a></iframe><p>We are using JS’ inbuilt performance object to track the time it takes to execute this code. The expected output is somewhere around 0.09999996423721313 milliseconds. The kind of computer you use and how fast your CPU is may affect this answer but generally, you should expect somewhere around 0.x milliseconds. Now let&#39;s try to increase the size of the input passed to the findNemo function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c3735ec5228fea4598efd0a8987cf47/href">https://medium.com/media/3c3735ec5228fea4598efd0a8987cf47/href</a></iframe><p>Now increasing the size of the input from 1 to 100, we get between 4.700000047683716 and 9.200000047683716; a significant change in execution time. This is because the number of operations, in this case, the for loop runs on each item thereby increasing the execution time as the input size increases.</p><h3>Constant Time — O(1)</h3><p>We say an algorithm runs in constant time when the number of operations has no correlation to the input size. In other words, no matter the input size, the number of operations does not change.</p><p>For example, given the code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99890781d9b0a56cf6da53106608f707/href">https://medium.com/media/99890781d9b0a56cf6da53106608f707/href</a></iframe><p>We have an array of numbers and a function called findFirstItem which logs the first item in the array to the console.</p><p>We realise that no matter the size of the array, there’s no increase in the number of operations. All we do is get the first item and log it to the console.</p><p>Therefore, operations that do not depend on the input size are said to run in constant time or O(1).</p><h3>Quadratic Time — O(n²)</h3><p>We say that an algorithm run in quadratic time when the number of operations increase by two times of itself depending on the input. For each increase in input size, the computation time increases by the squared size of the input.</p><p>This usually occurs when you have nested loops. For instance, if we want to print a pair of numbers as shown in the code snippet below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3badb277502a7c6c82165a8c81565947/href">https://medium.com/media/3badb277502a7c6c82165a8c81565947/href</a></iframe><p>To print out the pair, we loop through each item and for every first item, we loop through the item itself in addition to the other items.</p><p>If you still don’t understand how this works, try running the code in your console to see its output.</p><p>We have already dealt with O(n) and now we have two O(n)’s, nested within itself therefore we multiply O(n) by O(n) :</p><pre>O(n) * O(n)  = O(n^2)</pre><h3>Rules for computing Big O</h3><p>Having gone through the main Big O complexities, when calculating, there are certain rules you have to take note of in order to give the right answers when asked questions concerning Big O during technical interviews.</p><h3>Rule 1</h3><p><strong>Look at the worst-case scenario.</strong></p><p>When calculating, we consider the worst thing that could happen to your code such as your user size growing to about a billion. Will your code still scale?</p><h3>Rule 2</h3><p><strong>Remove constants</strong></p><p>After considering the worst-case scenario, looking at the grand scheme of things, constants are neglected.</p><p>Consider this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d032645f45de7d1f010d43f9922aae08/href">https://medium.com/media/d032645f45de7d1f010d43f9922aae08/href</a></iframe><p>When our function gets called, we log to the console, ‘this function has been called’. Then we have our function print its pairs.</p><p>The conclusion will be:</p><pre>O(1) + O(n) * O(n) = O(1 + n^2)</pre><p>When asked to compute the big O value of this printPair function, we neglect the constant which in this case is O(1) therefore the final answer will be O(n²). Because in the grand scheme of things, the O(1) will not have any significant impact on the speed of our code.</p><h3>Rule 3</h3><p><strong>Treat inputs differently</strong></p><p>One thing that many overlook when calculating Big O is when they have different inputs, they treat them as the same.</p><p>For example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8676e4ffd1e27db3ca6a8abc8429a71a/href">https://medium.com/media/8676e4ffd1e27db3ca6a8abc8429a71a/href</a></iframe><p>Instead of the final answer being:</p><pre>O(n) + O(n) = O(2n)</pre><p>It should rather be:</p><pre>O(a) + O(b) = O(a + b)</pre><p>Two separate inputs should have two separate variables. Don’t worry too much about not having n in this answer. It is a concept that needs to be understood.</p><h3>Rule 4</h3><p><strong>Drop non-dominants</strong></p><p>Just like we dropped constants in our second rule because we look at the bigger picture, we drop non-dominants here too for the same reason.</p><p>So if we have a calculation summing up to O(n + n²), We drop the O(n). Thus, our final answer is O(n²). Therefore, make sure that your final answer always points to the complexities.</p><h3>Conclusion</h3><p>In conclusion, Big O is not just a theory but a tool we can leverage to build not just applications that work but applications that are efficient as they are useful. So, the next time you write that code, ask yourself, “how well will this code scale when I have about 7.6 billion people using my app”?</p><h3>mPharma: Good health across Africa</h3><p>At <a href="https://mpharma.com/">mPharma</a>, we believe in the principle that access to safe and affordable healthcare is a universal human right. We won’t cease until our vision is a reality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ColH6WLS4sQRchFDC3hAuA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b45ed511c697" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mpharma-tech-blog/understanding-big-o-asymptotic-analysis-b45ed511c697">Understanding Big O Asymptotic Analysis</a> was originally published in <a href="https://medium.com/mpharma-tech-blog">mPharma Product &amp; Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My experience working on mPharma’s legacy codebase — Pestle]]></title>
            <link>https://medium.com/mpharma-tech-blog/my-experience-working-on-mpharmas-legacy-codebase-pestle-e27b39760edd?source=rss-a409908dc7d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e27b39760edd</guid>
            <category><![CDATA[legacy-code]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[m-pharma]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Nora Mensah]]></dc:creator>
            <pubDate>Thu, 22 Jul 2021 13:17:17 GMT</pubDate>
            <atom:updated>2021-08-02T16:40:32.082Z</atom:updated>
            <content:encoded><![CDATA[<h3>My experience working on mPharma’s legacy codebase — Pestle</h3><figure><img alt="laptop in front of an old mud wall with opened airpods and old sneaker besides the laptop" src="https://cdn-images-1.medium.com/max/1024/1*8xNeNhzJ6jrwPDc9qPHagw.jpeg" /><figcaption><em>Photo by: </em><a href="http://Joshua Aragon (@goshua13) | Unsplash Photo Community"><em>Joshua Aragon</em></a><em> from </em><a href="https://unsplash.com/photos/EaB4Ml7C7fE"><em>Unsplash</em></a></figcaption></figure><p>When I received the call from our VP of Engineering stating that the BLD squad needed a Frontend Engineer to work on Pestle and that I am a good fit for it, like most developers, I wasn’t that excited because this meant that I would need to go through the phase of taking over an old codebase and work on a project that is totally new to me. Little did I know that it was going to give such benefits that I hardly saw coming.</p><p>Before I proceed, let me give a brief background on the application and what solution it is providing.</p><h3><strong>What is Pestle?</strong></h3><p>Pestle is one of the first applications built by mPharma with the sole purpose of helping the Supply Chain team handle the supply chain processes. Pestle keeps track of everything — from when the supplier warehouse (the facilities that supply mPharma with drugs) receives a purchase order, to when it gets to the mPharma warehouse, then to the facilities that make purchases from mPharma.</p><h3>What I learnt from working on Pestle</h3><p>Not long after, I realised that most of my team members from the new squad also had little or no idea of what we were getting ourselves into because none of us on the team had joined mPharma when the application was developed and it hasn’t been maintained for a while. I felt relieved as I wasn’t alone — we would all go through this learning phase together.</p><p>After a series of meetings my PM had with other PMs, my team members and I got some background on what the application was about, and also the improvements we needed to make within the application to help our warehouse team. I took the great leap of faith afterwards by looking at the codebase. All the components were written as class components in this era when functional components are widely used and I just wasn’t comfortable with a bunch of things.</p><p>We successfully worked on the new improvements and features and got them ready to be shipped. Before we got to this point, I thought that maintaining the Pestle application was going to be a herculean task, but I have come to realise that it actually contributed positively to my journey. I can share this with anyone who is currently maintaining an old codebase or encourage you that it isn’t bad after all.</p><p>These are some things I learnt from this experience:</p><ol><li><strong>I refactored a lot of things:</strong> Having worked on other mPharma applications like Bloom, I didn’t get the opportunity to improve or optimise the build or CI processes, but Pestle gave me the opportunity as I had to make a lot of changes and with some help, I have a higher grasp of how things work with that regard. Apart from the CI processes, I also abstracted duplicated code and rewrote some code to make it more readable.</li><li><strong>I debugged a lot:</strong> I actually spent more time debugging than adding new features. This is because I didn’t want to continue using class components, and also because I wanted to upgrade the packages. Hence, I made a lot of changes that in one way or the other also contributed to things breaking. Debugging helped my analysis skills, taught me how some things work and helped me reduce unused or distracting code. If you need more reasons why you should debug more, read <a href="https://carlalexander.ca/how-debugging-make-better-developer/">how debugging can make you a better developer</a>.</li><li><strong>I understood the business side of the application:</strong> With the help of my PM and chapter lead answering my questions and bringing to light why we have certain features or why and how certain features are the way they are, I understood the purpose of the application and how the business is affected by the improvements we make on the application. What got me more intrigued was when our PM organised a meeting with the QA, some select members of the Global and Zambian Supply chain team members and I to do a demo of the features and improvements they would see once we ship the changes made. They were apt to ask, commend, raise concerns and even requested further improvements. This gave me an experiential understanding that I am actually making a change with my code which was a really great experience.</li><li><strong>I got the experience of working on an old codebase:</strong> The last benefit was the experience itself. In the web development industry, things move too fast, which also means that it’s hard to find an old front-end application that is still being used and maintained. This experience isn’t easily attainable, and hence I am grateful to get the chance to experience it.</li></ol><h3>Conclusion</h3><p>Working on an old codebase isn’t that bad and could be a great opportunity to learn and improve your skills. It’s even better when you are surrounded by great engineers who are readily available to help you when you need it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e27b39760edd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mpharma-tech-blog/my-experience-working-on-mpharmas-legacy-codebase-pestle-e27b39760edd">My experience working on mPharma’s legacy codebase — Pestle</a> was originally published in <a href="https://medium.com/mpharma-tech-blog">mPharma Product &amp; Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>