<?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 Nnenna Kehinde on Medium]]></title>
        <description><![CDATA[Stories by Nnenna Kehinde on Medium]]></description>
        <link>https://medium.com/@Nnenna85?source=rss-50054395d721------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*HNHZ81GjkADc89Af.jpg</url>
            <title>Stories by Nnenna Kehinde on Medium</title>
            <link>https://medium.com/@Nnenna85?source=rss-50054395d721------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 13:02:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Nnenna85/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[Battling Backend Blues: My Journey from JavaScript Struggles to Flask Triumphs]]></title>
            <link>https://medium.com/@Nnenna85/battling-backend-blues-my-journey-from-javascript-struggles-to-flask-triumphs-76c842af91db?source=rss-50054395d721------2</link>
            <guid isPermaLink="false">https://medium.com/p/76c842af91db</guid>
            <dc:creator><![CDATA[Nnenna Kehinde]]></dc:creator>
            <pubDate>Sun, 30 Jun 2024 14:02:08 GMT</pubDate>
            <atom:updated>2024-06-30T14:02:08.510Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Friends,</p><p>As a budding backend developer with a passion for solving digital puzzles, I am constantly learning and working on new projects to build myself and unlike before, I want to document my journey better now. I wish myself the best and hope you do same for me too.</p><p>I am starting a new journey as an HNG Intern, and as part of the process I will be sharing my recent adventure in tackling a challenging backend problem. Get ready for a step-by-step breakdown of how I wrestled with rendering pharmacy data using JavaScript, only to pivot to Flask and Jinja for a sleeker solution.</p><p><strong>The Problem:</strong></p><p>I was working on a pharmacy finding app, and my goal was to display the names of pharmacies, their locations, and available drugs. Sounds straightforward, right? Well, it wasn’t. I soon realized that my JavaScript approach was getting messy, and I needed a more robust solution.</p><p><strong>The Struggle:</strong></p><p>Picture this: I am working on a pharmacy finder app, aiming to help people locate pharmacy stores selling the drugs they need. Sounds simple, right? Well, let me tell you, it was anything but!</p><p>My initial plan was to use JavaScript to dynamically render the names of pharmacies along with their drug inventory and locations.</p><p>I spent hours trying to render the data using JavaScript, but it was like trying to tame a wild beast. The code was becoming messy, and I knew I needed a change in strategy.</p><p><strong>The Epiphany:</strong></p><p>That was when something clicked, why not continue using good old Flask and Jinja, I mean, I will still get the same results and I decided to pivot and use these tools to display the data in a more elegant and efficient way. And sweet old Flask and Jinja did their thing and gave me beautiful carousel format just like I wanted.</p><p><strong>The Solution:</strong></p><p>Here’s a high-level overview of how I solved the problem:</p><p>· Set up a Flask app: I created a new Flask project and defined my routes.</p><p>· Define data structures: I created Python dictionaries to store the pharmacy data.</p><p>· Use Jinja to render data: I used Jinja templates to display the data in a carousel format.</p><p>· Style with CSS: I added some CSS magic to make the carousels look sleek.</p><p><strong>Lessons Learned:</strong></p><p>This experience taught me a valuable lesson: sometimes, the simplest solution is the best. While JavaScript is powerful, in this case, leveraging Flask’s server-side rendering capabilities proved to be the key to success.</p><p><strong>The Journey Ahead, the HNG Internship Adventure:</strong></p><p>Now, as I stand on the cusp of a new adventure with <a href="https://hng.tech/internship">the HNG Internship</a>, I can’t help but feel excited. This pharmacy finder project was just the beginning, and I know there are many more challenges waiting for me.</p><p>Why am I doing this internship, you ask? Well, I believe in continuous learning, and <a href="https://hng.tech/hire">the HNG program</a> is renowned for pushing interns to their limits — in the best way possible. I want to sharpen my skills, tackle real-world problems, and connect with like-minded developers who are as passionate about code as I am.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NWa23EB5gvquBIjIQKYKVQ.jpeg" /></figure><p>About Me:</p><p>I am a passionate developer with a thirst for knowledge and a love for solving complex problems. I am excited to share my journey with you and learn from your experiences as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76c842af91db" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>