<?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 Osuohia emmanuel on Medium]]></title>
        <description><![CDATA[Stories by Osuohia emmanuel on Medium]]></description>
        <link>https://medium.com/@osuohiaemmanuelc?source=rss-72e8abc9d081------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*a3kMRiIresUvyvkKkjMVHA.jpeg</url>
            <title>Stories by Osuohia emmanuel on Medium</title>
            <link>https://medium.com/@osuohiaemmanuelc?source=rss-72e8abc9d081------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:06:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@osuohiaemmanuelc/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[So Much Pressure, I Quit Tech]]></title>
            <link>https://medium.com/@osuohiaemmanuelc/so-much-pressure-i-quit-tech-0b7052b7e909?source=rss-72e8abc9d081------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b7052b7e909</guid>
            <dc:creator><![CDATA[Osuohia emmanuel]]></dc:creator>
            <pubDate>Wed, 07 May 2025 09:36:59 GMT</pubDate>
            <atom:updated>2025-05-07T09:36:59.230Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Hey reader, this is me writing again after the last time I once wrote, and today is more personal.</em></p><p>This isn’t one of those dramatic exits. It’s more like a slow burn that finally caught flame. I didn’t just wake up and decide to leave tech. it’s been building up over time. The pressure, the frustration, the harsh realities of navigating tech as a Nigerian. it all became too much.</p><p>Let’s start with the economy. Being in Nigeria and trying to thrive in tech feels like running a marathon with weights tied to your legs. The Naira keeps dropping, inflation rises, and even basics like electricity and stable internet are inconsistent. Yet, we’re expected to compete globally same pace, same output, same innovation.</p><p>Then there’s the VPN life. You’d think that in 2025, access to the internet would be borderless, especially in a global industry like tech. But from Nigeria, you can’t access simple tools, platforms, or developer resources without hitting a wall. Sometimes, you can access platforms like SendGrid, Mailgun, and others but the real issue starts when you try to actually use them. You can’t verify your account because you’re in Nigeria, or your card just won’t go through. Even when you use a VPN, it doesn’t always help you, still get blocked or flagged. It’s frustrating, like being allowed to walk through the front door but constantly told you don’t belong. A VPN isn’t just optional anymore it’s part of the starter pack for Nigerian devs.</p><p>Try signing up for an Apple developer account. Or a Google Cloud account. Or any premium service. From Nigeria, it feels like the internet was built for everyone <em>except</em> you. Either your card doesn’t work, or your region is unsupported, or your IP triggers suspicion. So you’re left jumping through hoops just to do the bare minimum.</p><p>And then there’s the pressure.</p><p>The tech space, especially on social media, has become a pressure cooker. Everyone’s shipping something. Everyone’s got a side project, a new client, a “just landed a remote role” tweet. And if you’re not doing all of that or worse, if you’re just <em>trying to survive </em>you feel invisible. Like you’re falling behind, even if you’re burning out in silence.</p><p>Now, let’s talk AI the new sheriff in town. For frontend engineers like me, the game shifted fast. Tools that used to take hours to build are now generated in seconds by GPT-4 or some custom internal tool. Companies want “AI-aware” devs, and job descriptions now list AI prompt engineering like it’s a basic HTML skill. It’s exciting, yes. But also overwhelming. It feels like you’re constantly one trend behind, one framework late, one release away from being obsolete.</p><p>Let’s not forget the costs. To truly compete globally take courses, subscribe to essential tools, buy decent gear, test on multiple devices you need money. And unfortunately, a lot of Nigerian salaries just don’t cut it. You put in 10 hours a day writing clean code, testing, fixing bugs, attending meetings, shipping features… and your monthly pay doesn’t even cover your internet, rent, and one or two tool subscriptions. That’s not sustainable. That’s barely survival.</p><p><strong>So I quit.</strong></p><p>Or at least… that’s what I thought.</p><p>The truth is I didn’t quit. I just got better at adjusting.<br>Better at taking things one step at a time, one day at a time.<br> I’ve learned to pause, breathe, study deeper, and code smarter even when it’s hard. Especially when it’s hard.</p><p>Because despite everything, I still believe in what I’m building. I still believe in me. And maybe, just maybe, if I stay consistent I’ll become the kind of asset no one can ignore. Maybe one day, I’ll hit that jackpot. Or cross paths with world-class teams.<br>And when that moment comes, the world will see exactly who I am and everything I’ve always been capable of.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b7052b7e909" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Christmas Bug That Haunted Us for Months]]></title>
            <link>https://medium.com/@osuohiaemmanuelc/the-christmas-bug-that-haunted-us-for-months-20bac4060a1d?source=rss-72e8abc9d081------2</link>
            <guid isPermaLink="false">https://medium.com/p/20bac4060a1d</guid>
            <dc:creator><![CDATA[Osuohia emmanuel]]></dc:creator>
            <pubDate>Sat, 08 Mar 2025 07:22:25 GMT</pubDate>
            <atom:updated>2025-03-09T11:11:49.895Z</atom:updated>
            <content:encoded><![CDATA[<h3>How a Simple Mistake Became a Nightmare</h3><p>It was the last days of December, right before Christmas, and everyone was rushing to wrap things up before the holiday break. In the midst of the chaos, a frontend developer was assigned a simple task: remove an unnecessary section of code and clean up the file. What seemed like a harmless refactor turned into a months-long nightmare that had us pulling our hair out.</p><p>At the time, the team was stretched thin. Many senior engineers were already on holiday, and code reviews were rushed or in some cases, skipped entirely. The frontend developer pushed the changes, and everyone moved on. But little did we know, hidden in that commit was a silent bug waiting to strike.</p><h3>The Bug That Made No Sense</h3><p>Weeks passed. The frontend developer left the company in January. Everything seemed fine until our QA tester reported something bizarre:</p><p><em>“Every time I navigate to certain pages, a blank tab with </em><em>about:blank opens on its own.&quot;</em></p><p>At first, we brushed it off as a browser quirk. Maybe an extension issue? A rogue target=&quot;_blank&quot; somewhere? But as we dug deeper, the problem persisted. It wasn’t tied to any specific user, device, or browser.</p><p>The weirdest part? It only happened on pages that contained a particular <strong>table component</strong>.</p><p>We scoured the codebase. We googled endlessly. We even asked ChatGPT and used DeepSeek. Nothing. We couldn’t find anything suspicious in the table component or the pages that used it. The issue made no sense.</p><h3>The Investigation: Tracing the Bug</h3><p>Desperate for answers, my CTO and I decided to take a systematic approach:</p><ol><li><strong>Pinpoint when the bug first appeared: </strong>We went through GitHub and identified the earliest report of the issue from QA.</li><li><strong>Roll back commits one by one: </strong>We started pulling each commit from our Git history, testing the app after every change to see when the bug disappeared.</li><li><strong>Identify the culprit commit: </strong>After hours of checking commits, we finally found the one that introduced the bug.</li></ol><h3>The “open()” That Ruined Everything</h3><p>The commit itself looked innocent. Nothing major had changed just some cleanup. But then we saw it:</p><pre>try {<br>  open(); <br>} catch (error) {<br>  console.error(error);<br>}</pre><p>At first glance, we assumed open() was a function related to Mantine (our UI library), possibly for opening modals. But something felt off.</p><p>Then it hit us:</p><p><strong>The frontend developer had unknowingly used </strong><strong>open()which is actually </strong><strong>window.open() in JavaScript.</strong></p><p>And because this function lived inside a reusable <strong>table component</strong>, every time a page rendered the table, window.open() was called <strong>automatically</strong>, opening a new tab with about:blank.</p><p>It was a <strong>global browser function</strong>, not a local function. That was the bug.</p><h3>Lessons Learned</h3><p>This bug was a painful experience, but it taught us valuable lessons:</p><h4>1. Always Supervise Developers, Especially During Rushed Periods</h4><p>The mistake wasn’t just the frontend developer’s fault it was a failure in process. The holiday rush meant proper code reviews weren’t done. A second pair of eyes would have caught this immediately.</p><h4>2. Code Reviews Are Not Optional</h4><p>Skipping code reviews for “small” changes is a recipe for disaster. Even seemingly harmless refactors can introduce subtle but devastating bugs.</p><h4>3. Be Careful with Global JavaScript Functions</h4><p>Always be cautious when using common function names like open(), close(), or fetch(). If a function isn&#39;t explicitly defined in your code, assume it&#39;s a global function and verify its behavior.</p><h4>4. Debugging Requires a Systematic Approach</h4><p>Instead of blindly guessing, tracing commits one by one helped us find exactly when the bug was introduced. This method can save time when debugging hard to trace issues.</p><h4>5. Never Push Unsupervised Code Before a Holiday</h4><p>If possible, avoid merging non-critical code changes right before major breaks. If something goes wrong, the team might not be around to fix it quickly.</p><h3>Final Thoughts</h3><p>This bug was one of the most frustrating we’ve ever encountered not because it was complicated, but because it was so <strong>simple</strong> yet <strong>hard to spot</strong>.</p><p>Had we done a proper code review, had we been more careful with function names, had we slowed down despite the holiday rush, we could have avoided months of headaches.</p><p>But in the end, we learned a valuable lesson:</p><p><strong>No matter how busy things get, never compromise on code quality.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20bac4060a1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Balancing Codes and Mental Wellbeing: A Guide for Software Engineers]]></title>
            <link>https://medium.com/@osuohiaemmanuelc/balancing-codes-and-mental-wellbeing-a-guide-for-software-engineers-4e86c2dff920?source=rss-72e8abc9d081------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e86c2dff920</guid>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[balance]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[wellbeing]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Osuohia emmanuel]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 10:15:08 GMT</pubDate>
            <atom:updated>2023-12-11T10:15:08.466Z</atom:updated>
            <content:encoded><![CDATA[<p>In the fast-paced world of software development, where deadlines loom and challenges abound, it’s easy to neglect one’s mental well-being. While technical expertise is crucial, prioritising mental health is essential for a fulfilling and sustainable career. This article explores the unique challenges software engineers face and offers practical strategies to achieve a balanced and healthy life.</p><p><strong>Understanding Mental Wellbeing</strong></p><p>Mental wellbeing encompasses more than just the absence of mental health issues. It’s a state of positive mental health, characterized by self-awareness, emotional regulation, and the ability to navigate daily life’s challenges. For software engineers, a healthy mind translates to:</p><ul><li>Boosted Productivity: Mental clarity and focus lead to smarter, not harder work.</li><li>Enhanced Creativity: A well-rested mind is fertile ground for innovative solutions.</li><li>Improved Relationships: Strong mental health fosters better communication and collaboration.</li><li>Adaptability: The ability to roll with the punches is crucial in the ever-evolving tech landscape.</li><li>Longevity in Career: Avoiding burnout fuels a longer and happier professional journey.</li><li>Positive Role Model: You inspire others to prioritize personal well-being.</li></ul><p><strong>Balancing the Scales: Codes vs. Mental Wellbeing</strong></p><p>Balancing codes and mental wellbeing means creating a sustainable work-life balance within the demanding context of software engineering. Just as your body needs a balanced diet, your mind needs both work and relaxation. This includes:</p><ul><li>Recognising Overwork: Learn to identify when stress levels climb and take proactive steps to de-stress.</li><li>Setting Boundaries: Establish clear limits between work and personal time to avoid work-life bleed.</li><li>Prioritising Self-Care: Regular exercise, healthy eating, and adequate sleep are non-negotiable.</li><li>Open Communication: Discuss workload expectations and challenges with managers and colleagues.</li><li>Rewarding Yourself: Celebrate accomplishments and milestones to maintain motivation.</li><li>Embracing Flexibility: Adapt to changing demands and be open to new approaches.</li><li>Seeking Support: Don’t hesitate to seek help from colleagues, friends, family, or a therapist.</li></ul><p><strong>Challenges to Mental Wellbeing</strong></p><p>Software engineers face unique challenges that can negatively impact their mental health. These can be broadly categorised into:</p><ul><li>Work-related: Complex problems, tight deadlines, unrealistic expectations, and lack of control.</li><li>Personal: Imposter syndrome, perfectionism, social isolation, and work-life imbalance.</li><li>Industry-specific: Competitive environment, lack of recognition, and rapid technological change.</li></ul><p><strong>Statistics on Mental Health</strong></p><ul><li>62% of software engineers experience anxiety or depression.</li><li>69% face stress or burnout at work.</li><li>The suicide rate among software engineers is significantly higher than the national average.</li></ul><p><strong>Signs You Need a Wellness Check</strong></p><ul><li>Frequent anxiety or panic attacks.</li><li>Social withdrawal and isolation.</li><li>Difficulty concentrating and making decisions.</li><li>Physical symptoms of stress.</li><li>Suicidal thoughts or attempts.</li></ul><p><strong>Strategies for a Balanced Life</strong></p><p>By adopting healthy habits and prioritising well-being, software engineers can build a sustainable and fulfilling career. Here are some tips:</p><ul><li>Set boundaries and stick to them.</li><li>Practice effective time management.</li><li>Prioritise self-care, including exercise, healthy eating, and sleep.</li><li>Communicate openly with your team and manager.</li><li>Reward yourself for achievements.</li><li>Embrace flexibility and adaptability.</li><li>Seek support from your network or a professional therapist.</li></ul><p><strong>Conclusion</strong></p><p>Balancing codes and mental well-being is an ongoing journey. By prioritising self-awareness, implementing healthy practices, and seeking support when needed, software engineers can achieve a fulfilling career and a happy life. Remember, you are not alone in this struggle. Many resources are available to help you along the way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e86c2dff920" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React’s Unexpected Offspring: How the Web Gave Birth to React Native]]></title>
            <link>https://medium.com/@osuohiaemmanuelc/reacts-unexpected-offspring-how-the-web-gave-birth-to-react-native-959fc51c58da?source=rss-72e8abc9d081------2</link>
            <guid isPermaLink="false">https://medium.com/p/959fc51c58da</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[storytelling]]></category>
            <dc:creator><![CDATA[Osuohia emmanuel]]></dc:creator>
            <pubDate>Sat, 09 Dec 2023 16:37:36 GMT</pubDate>
            <atom:updated>2023-12-09T16:37:36.990Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A Tale of Innovation and Unintended Consequences</strong></p><p>In the ever-evolving world of technology, unexpected twists and turns can lead to groundbreaking advancements. Such is the story of React Native, a revolutionary framework that emerged from the fertile ground of the web. Unlike its parent, React, which reigns supreme in the realm of web development, React Native unexpectedly ventured into the seemingly distant territory of mobile apps, defying expectations and rewriting the rules of the game.</p><p>This captivating journey began with the phenomenal rise of React. Its declarative nature and component-based approach brought order and elegance to the chaotic world of web development. Engineers were captivated by its simplicity and efficiency, leading to its widespread adoption by companies like Facebook and Netflix.</p><p>However, amidst this web-centric triumph, a hidden yearning for a mobile experience began to stir. Developers craved the power and flexibility of React on their smartphones and tablets. This yearning, initially dismissed as a mere pipe dream, planted the seeds for a daring experiment — to bridge the gap between web and mobile, to bring React’s magic to the world of apps.</p><p>Enter React Native, the unforeseen offspring of this ambition. It was a bold move, a daring attempt to transplant the DNA of web development onto the fertile soil of mobile platforms. And it worked. React Native seamlessly integrated with native components, allowing developers to write JavaScript code that could be rendered across iOS and Android platforms.</p><p>This unexpected birth was met with both excitement and skepticism. Some saw it as a game-changer, a revolution in mobile app development. Others questioned its viability, highlighting the potential challenges of adapting a web framework to the demands of native platforms.</p><p>But React Native defied the naysayers. Its intuitive API, combined with the familiar React syntax, made it a breeze for web developers to build mobile apps. The rapid iteration cycle, a hallmark of React, found its way onto mobile, allowing developers to experiment and innovate with newfound speed and efficiency.</p><p>Today, React Native stands tall as a testament to the unpredictable nature of innovation. It has empowered developers to create a new generation of mobile apps, apps that are not only beautiful and engaging but also built on a foundation of speed and efficiency.</p><p>As we look towards the future, the story of React Native serves as an inspiration. It reminds us that sometimes the most unexpected ideas can lead to the most groundbreaking advancements. It encourages us to embrace the unknown, to experiment and explore, for in the fertile ground of uncertainty, the seeds of revolutionary innovation may lie hidden, waiting to be discovered.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=959fc51c58da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tech is not for me, I am a fraud: A Journey of Growth and Overcoming Imposter Syndrome]]></title>
            <link>https://medium.com/@osuohiaemmanuelc/tech-is-not-for-me-i-am-a-fraud-a-journey-of-growth-and-overcoming-imposter-syndrome-8898dd34f0d9?source=rss-72e8abc9d081------2</link>
            <guid isPermaLink="false">https://medium.com/p/8898dd34f0d9</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[imposter-syndrome]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Osuohia emmanuel]]></dc:creator>
            <pubDate>Tue, 05 Dec 2023 19:14:10 GMT</pubDate>
            <atom:updated>2023-12-05T19:14:10.060Z</atom:updated>
            <content:encoded><![CDATA[<p>In 2019, I embarked on a journey into the world of tech, fueled by excitement and ambition. I devoured tutorials, mimicking code and building basic projects. Looking back, it was a charade, a performance of competence built on shaky foundations. I convinced myself I was good, even landing a job as a Frontend developer using Angular. But the truth soon came crashing down. I was lost, overwhelmed, and ultimately, a failure.</p><p>The weight of my imposter syndrome crushed me. “Tech is not for me,” I whispered, the words echoing in the hollow chamber of my self-doubt. Shame and fear became my companions, leading me to a period of stagnation and disillusionment.</p><p>But amidst the darkness, a spark of hope flickered. In 2021, I decided to rebuild, not just my skills, but myself. I started from scratch, embracing the fundamentals with humility. I built small projects, honing my craft and rediscovering the joy of creation. I found solace in online communities and learning platforms, connecting with others who shared my struggles and triumphs.</p><p>The path wasn’t easy. There were countless setbacks, moments of frustration, and nights spent battling self-doubt. But with each challenge, I grew stronger, my resilience forged in the fires of adversity. I began taking on small freelance projects, applying my knowledge to real-world problems.</p><p>In 2022, I enrolled in a software engineering school, surrounding myself with fellow aspiring developers and mentors who believed in me. This environment fostered my growth, pushing me beyond my comfort zone and helping me unlock my potential. My hard work and dedication paid off, leading to opportunities I never dreamed possible.</p><p>Today, I stand as a Software Engineer at C80 Limited, a testament to the power of perseverance and self-belief. My journey has been a rollercoaster of emotions, a dance between hope and despair, success and failure. But through it all, I have learned that the most important battles are fought within, against the demons of self-doubt and fear.</p><p>The tech industry is not for the faint of heart. It demands constant learning, adaptation, and a relentless pursuit of excellence. But for those who dare to dream and have the courage to face their fears, the rewards are immeasurable.</p><p>My journey is far from over. I continue to explore new horizons, venturing into the realm of mobile development and embracing the challenge of learning a new backend language, GoLang. The future beckons, and I face it with open arms, ready to learn, grow, and contribute to the ever-evolving world of technology.</p><p>To those struggling with similar doubts, I say this: you are not alone. Imposter syndrome is a common enemy, but it can be overcome. Embrace the challenges, learn from your mistakes, and never stop believing in yourself. Your journey may be different, but the destination — a fulfilling career and a life filled with purpose — is within your reach. So, take that first step, keep learning, keep growing, and never give up on your dream.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8898dd34f0d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Journey from JavaScript to Go: Exploring Data Types]]></title>
            <link>https://medium.com/@osuohiaemmanuelc/a-journey-from-javascript-to-go-exploring-data-types-b5164b66f017?source=rss-72e8abc9d081------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5164b66f017</guid>
            <dc:creator><![CDATA[Osuohia emmanuel]]></dc:creator>
            <pubDate>Tue, 05 Dec 2023 12:12:56 GMT</pubDate>
            <atom:updated>2023-12-05T12:12:56.979Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong><br>JavaScript developers stepping into the world of Go (Golang) often find themselves in a realm that values simplicity, efficiency, and strong static typing. While JavaScript is dynamically typed, Go’s static typing offers a different approach to handling data. In this article, we’ll explore how a JavaScript developer can seamlessly transition to Go by comparing and contrasting the data types in both languages.</p><p><strong>1. Numeric Types:</strong><br>JavaScript’s numeric types include the generic `number` type, whereas Go provides a more granular approach.</p><blockquote>In JavaScript:</blockquote><pre>let jsInteger = 42;<br>let jsFloat = 3.14;</pre><blockquote>In Go:</blockquote><pre>var goInteger int = 42<br>var goFloat float64 = 3.14</pre><p>In Go, specifying the exact size of numeric types ensures predictability and memory efficiency.</p><p><strong>2. String Type:</strong><br>Strings are fundamental in both languages, but Go’s approach is more explicit.</p><blockquote>In JavaScript:</blockquote><pre>let jsString = &quot;Hello, World!&quot;;</pre><p>In Go:</p><pre>var goString string = &quot;Hello, World!&quot;</pre><p>Go’s strict typing requires explicitly stating the variable type, promoting clarity in code.</p><p><strong>3. Boolean Type:</strong><br>Booleans represent truth values, and here, the languages align closely.</p><blockquote>In JavaScript:</blockquote><pre>let jsBoolean = true;</pre><blockquote>In Go:</blockquote><pre>var goBoolean bool = true</pre><p>The simplicity of boolean handling remains consistent, emphasizing readability.</p><p><strong>4. Derived Types:</strong><br>Both languages support arrays and slices, but Go’s static arrays bring a fixed-size advantage.</p><blockquote>In JavaScript:</blockquote><pre>let jsArray = [1, 2, 3];<br>let jsSlice = [4, 5, 6];</pre><blockquote>In Go:</blockquote><pre>var goArray [3]int = [3]int{1, 2, 3}<br>var goSlice []int = []int{4, 5, 6}</pre><p>Go’s arrays have a fixed size, which aids in performance optimization, while slices offer dynamic sizing.</p><p><strong>5. Structs and Objects:</strong><br>JavaScript objects and Go structs both group variables, but Go’s structs are explicitly defined.</p><blockquote>In JavaScript:</blockquote><pre>let jsObject = { name: &quot;John&quot;, age: 30 };</pre><blockquote>In Go:</blockquote><pre>type GoStruct struct {<br> Name string<br> Age int<br>}<br>var goInstance GoStruct<br>goInstance.Name = &quot;John&quot;<br>goInstance.Age = 30</pre><p>Go’s structs enforce a clear structure, promoting maintainability.</p><p><strong>6. Interfaces:</strong><br>JavaScript is prototype-based, while Go embraces interfaces for defining method sets.</p><blockquote>In JavaScript:</blockquote><pre>// JavaScript uses prototype-based inheritance<br>function JSObject() {<br> this.method = function() {<br> console.log(&quot;Method&quot;);<br> };<br>}</pre><blockquote>In Go:</blockquote><pre>// Go uses interfaces to define method sets<br>type GoInterface interface {<br> Method()<br>}<br>type GoType struct{}<br>func (g GoType) Method() {<br> fmt.Println(&quot;Method&quot;)<br>}</pre><p>Go’s interface approach ensures explicit method declaration and implementation.</p><p><strong>Conclusion:</strong><br>Transitioning from JavaScript to Go involves embracing a statically typed, explicitly defined world of data types. While the syntax may differ, the fundamental concepts align, making the journey smooth for developers. By understanding and applying these data type comparisons, JavaScript developers can harness the power and efficiency that Go offers, creating robust and scalable applications. The key lies in appreciating the strengths of each language and leveraging them effectively in code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5164b66f017" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>