<?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 Nima Shokouhfar on Medium]]></title>
        <description><![CDATA[Stories by Nima Shokouhfar on Medium]]></description>
        <link>https://medium.com/@nima.shokofar?source=rss-983f3ac530a8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mCrHkHw8eTwOrNULZElqZg.png</url>
            <title>Stories by Nima Shokouhfar on Medium</title>
            <link>https://medium.com/@nima.shokofar?source=rss-983f3ac530a8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:50:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nima.shokofar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ The God Object Anti-Pattern: Why You Should Avoid It at All Costs ]]></title>
            <link>https://levelup.gitconnected.com/the-god-object-anti-pattern-why-you-should-avoid-it-at-all-costs-a03c4dfd7f86?source=rss-983f3ac530a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a03c4dfd7f86</guid>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Nima Shokouhfar]]></dc:creator>
            <pubDate>Wed, 01 Jan 2025 05:29:50 GMT</pubDate>
            <atom:updated>2025-01-02T17:55:08.610Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gBjByA3FBhJFbt5s3qXkVg.png" /><figcaption>God object anti-pattern</figcaption></figure><p>In the world of software development, there are few things as dreaded as the <strong>God Object</strong> anti-pattern. It’s the silent killer of scalability, the root of many maintenance nightmares, and a prime example of why dependency control is critical. Today, I want to dive into this notorious anti-pattern, share my experiences, and explain why you should steer clear of creating God Objects at all costs.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYE_2EyBr_tM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYE_2EyBr_tM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYE_2EyBr_tM%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/66843ca10662fbf6e66f675e55198b83/href">https://medium.com/media/66843ca10662fbf6e66f675e55198b83/href</a></iframe><h3>🔹 What is a God Object?</h3><p>A God Object is essentially a single object in your system that holds far too much responsibility. It’s the object that <strong>everything depends on</strong>. This can manifest in global variables, massive classes, or even monolithic functions that dictate the behavior of the entire application. If one part of the system fails, everything else comes crumbling down.</p><p>A classic example is a global variable that every single class or function relies on. I’ve seen this pattern far too often, especially in languages like C or C++ where global variables are commonplace. In one project, I encountered a God Object that had been developed for <strong>over 20 years</strong>. By the time I was brought in, even if the “God” itself descended from the sky, changing that object would have been nearly impossible.</p><h3>🔹 Real-Life Case Studies</h3><p>Let me share a couple of examples to illustrate just how dangerous God Objects can be.</p><h4>1. OpenAI as a God Object</h4><p>A client of mine recently integrated OpenAI into their application. Rather than creating a separate database to store chatbot parameters and configurations, they decided to <strong>store everything inside OpenAI’s system</strong>. In essence, OpenAI became a <strong>God Object</strong>.</p><p>This led to significant issues:</p><ul><li><strong>Performance bottlenecks</strong>: Every query retrieved massive amounts of data, which then had to be filtered on the client side.</li><li><strong>Lack of control</strong>: If OpenAI changed their API or went out of business, the client’s entire application would crumble.</li><li><strong>Extension issues</strong>: Unlike in-house code, external God Objects can’t be easily extended or modified.</li></ul><h4>2. UI-Based God Object</h4><p>In another case, I witnessed a team storing crucial data inside the <strong>UI’s menu system</strong>. This was catastrophic.</p><ul><li><strong>Fragility</strong>: UIs are ephemeral. No UI from 20 years ago is still in use today. Storing critical data in the UI essentially guaranteed its obsolescence.</li><li><strong>Normalization problems</strong>: The data was hierarchical, and every time a new item was added, the entire menu had to be re-normalized.</li><li><strong>Synchronization issues</strong>: The data had to be stored twice, increasing the risk of inconsistencies.</li></ul><h3>🔹 Why God Objects are Dangerous</h3><p><strong>1. Poor Scalability</strong>: God Objects are bottlenecks. As the system grows, the object becomes harder to manage, leading to increased complexity and performance degradation.</p><p><strong>2. Difficult Maintenance</strong>: Debugging and refactoring are nightmares. Every change risks breaking the entire application.</p><p><strong>3. Dependency Hell</strong>: The system becomes overly dependent on one component, making it fragile and prone to cascading failures.</p><p><strong>4. Extensibility Issues</strong>: Adding features becomes increasingly challenging because the God Object monopolizes functionality.</p><h3>🔹 How to Avoid Creating God Objects</h3><ul><li><strong>Follow SOLID Principles</strong>: Focus on single responsibility and separation of concerns. Break down large objects into smaller, more manageable components.</li><li><strong>Decouple External Dependencies</strong>: Avoid storing critical data in third-party services or UIs. Use APIs or external tools as helpers, not core components.</li><li><strong>Use Layered Architecture</strong>: Design systems with multiple layers to distribute responsibility across different components.</li><li><strong>Regular Refactoring</strong>: Continuously refactor your code to identify and eliminate budding God Objects before they grow out of control.</li></ul><h3>🔹 Lessons from Industry</h3><p>In industries like robotics, motion control, and semiconductors, I’ve witnessed the dangers of supplier lock-in. One company I worked with relied heavily on a single vendor for crucial components. When the vendor faced shortages, the entire production line came to a halt. The vendor had essentially become a <strong>God Object in the supply chain</strong>.</p><p>The company eventually replaced the supplier, but what should have taken years had to be done in just <strong>six months</strong> — a painful and costly process.</p><h3>🔹 Final Thoughts</h3><p>God Objects may seem convenient at first, but they create <strong>long-term technical debt</strong> that can cripple your application. By adhering to best practices, managing dependencies wisely, and continuously refactoring, you can avoid the pitfalls of this dangerous anti-pattern.</p><p>👉 If you found this article helpful, consider sharing it with fellow developers and engineers. Let’s spread the word — say no to God Objects and yes to scalable, maintainable code!</p><p><strong>Like, share, and subscribe</strong> if you’re watching the video version of this post. Your support helps create more content like this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a03c4dfd7f86" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/the-god-object-anti-pattern-why-you-should-avoid-it-at-all-costs-a03c4dfd7f86">🚨 The God Object Anti-Pattern: Why You Should Avoid It at All Costs 🚨</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[از دانشجو تا مدرس: سفر من با یودمی]]></title>
            <link>https://medium.com/@nima.shokofar/%D8%A7%D8%B2-%D8%AF%D8%A7%D9%86%D8%B4%D8%AC%D9%88-%D8%AA%D8%A7-%D9%85%D8%AF%D8%B1%D8%B3-%D8%B3%D9%81%D8%B1-%D9%85%D9%86-%D8%A8%D8%A7-%DB%8C%D9%88%D8%AF%D9%85%DB%8C-53212546f632?source=rss-983f3ac530a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/53212546f632</guid>
            <dc:creator><![CDATA[Nima Shokouhfar]]></dc:creator>
            <pubDate>Thu, 26 Dec 2024 15:38:38 GMT</pubDate>
            <atom:updated>2024-12-26T15:38:38.608Z</atom:updated>
            <content:encoded><![CDATA[<p>از دانشجو تا مدرس: سفر من با یودمی</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*at_h0fVWL__xEu0rmEA_oQ.jpeg" /><figcaption>Motion profile A-Z</figcaption></figure><p>من هنوز اولین روزی که با یودمی آشنا شدم را به یاد دارم. داشتم یک دوره آموزشی را در یوتیوب تماشا می‌کردم که مدرس اشاره کرد که دوره کامل در یودمی موجود است. به عنوان کسی که هیچ‌وقت برای دوره‌های آنلاین پول پرداخت نکرده بود، با خودم گفتم که نمی‌توانم از پس هزینه آن بربیایم. اما کنجکاوی بر من غلبه کرد. از محتوای یوتیوب خیلی لذت می‌بردم، بنابراین تصمیم گرفتم که آن را بررسی کنم.<br>به تعجب من، این دوره فقط ۱۲ دلار بود. مدرس دوره بسیار باتجربه بود و بدون هیچ تردیدی بلافاصله دوره را خریدم. در کمتر از یک روز و نیم آخر هفته، دوره را از ابتدا تا انتها تماشا کردم. هفته بعد، از آنچه یاد گرفته بودم در شغل روزانه ۹ تا ۵ خود استفاده کردم.<br>وقتی کد را به مرحله تولید (production) منتقل کردم و نتایج را دیدم، با خودم گفتم: «چه اتفاقی افتاد؟» این پلتفرم ارزشمند یادگیری آنلاین، با ۱۲ دلار به من دانش عملی بیشتری داد تا تمام تحصیلات دانشگاهی گران‌قیمتم. مجذوب شدم.<br>شش سال گذشت و تا امروز (۲۶/۱۲/۲۰۲۴)، بیش از ۱۲۰ دوره را فقط در یودمی به پایان رسانده‌ام.<br>اما امروز یک روز معمولی نیست.<br>از دانشجو به مدرس<br>امروز، من به عنوان یک مدرس دوره آموزشی خودم را در یودمی منتشر می‌کنم. باور می‌کنید؟ زمانی دانشجو بودم، و حالا مدرس شدم. هنوز هم باورش برایم سخت است. برای کسی مثل من، این زندگی رویایی است که همیشه به دنبال آن بودم و نمی‌توانم بیشتر از این سپاسگزار باشم.<br>چرا رایگان آموزش می‌دهم<br>برخلاف بسیاری از مدرسین دیگر، رویکرد من کمی متفاوت است. من معتقدم دانشی که کسب کرده‌ام نباید با من به خاک سپرده شود. می‌خواهم آن را به تعداد افراد بیشتری منتقل کنم. به همین دلیل، این دوره و تمام دوره‌های آینده من کاملاً رایگان خواهند بود.<br>البته، اگر از محتوا لذت می‌برید، می‌توانید از طریق پاترئون از من حمایت کنید یا فقط دکمه‌های لایک و اشتراک‌گذاری را فشار دهید — ارز اجتماعی اینترنت. اما تا زمانی که چیزی ارزشمند یاد می‌گیرید، خوشحال خواهم بود.<br>به این سفر بپیوندید<br>اگر علاقه‌مند به تماشای دوره جدید من هستید، می‌توانید از لینک زیر برای ثبت‌نام و شروع یادگیری رباتیک و اتوماسیون استفاده کنید. امیدوارم شما را آنجا ببینم!<br><a href="https://www.udemy.com/course/motion-profiles-a-z-robotics-automation-masterclass/">https://www.udemy.com/course/motion-profiles-a-z-robotics-automation-masterclass/</a><br>از اینکه بخشی از سفر من هستید، سپاسگزارم. به امید یادگیری مادام‌العمر و اشتراک‌گذاری دانش با جهان. 🌍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53212546f632" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Student to Instructor: My Udemy Journey]]></title>
            <link>https://medium.com/@nima.shokofar/from-student-to-instructor-my-udemy-journey-0257c589b71a?source=rss-983f3ac530a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/0257c589b71a</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[content-creation]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[online-marketing]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <dc:creator><![CDATA[Nima Shokouhfar]]></dc:creator>
            <pubDate>Thu, 26 Dec 2024 15:08:17 GMT</pubDate>
            <atom:updated>2024-12-26T15:08:17.221Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LzKL7w0tgIhggUBbS4_wqg.png" /><figcaption>Motion profile A-Z course</figcaption></figure><p>I still remember the first day I encountered Udemy. I was watching a course on YouTube, and the instructor mentioned that the full course was available on Udemy. As someone who never paid for online courses, I told myself I couldn’t afford it. But curiosity got the best of me. I was loving the content on YouTube, so I decided to check it out anyway.</p><p>To my surprise, the course was only <strong>$12</strong>. The instructor was incredibly experienced, and without hesitation, I bought the course immediately. I watched it from start to finish in less than a day and a half over the weekend. By the next week, I was already applying what I learned in my 9-to-5 job.</p><p>When I pushed the code to production and saw the results, I thought to myself, <strong>“What just happened?”</strong> This invaluable online learning platform had given me more practical knowledge for <strong>$12</strong> than my expensive university education ever did. I was hooked.</p><p>Fast forward <strong>six years</strong>, and as of today (<strong>26/12/2024</strong>), I have completed over <strong>120 courses</strong> on Udemy alone.</p><p>But today is not just another ordinary day.</p><h3>From Student to Instructor</h3><p>Today, I am publishing my very own course on Udemy as an instructor. Can you believe it? Once a student, now an instructor. I still can’t wrap my head around it. For someone like me, this is the dream life I have always been searching for, and I couldn’t be more grateful.</p><h3>Why I Teach for Free</h3><p>Unlike many other instructors, my approach is a little different. I believe that the knowledge I have gained shouldn’t go to the grave with me. I want to pass it on to as many people as possible. That’s why this course, and all my future courses, will be <strong>completely free</strong>.</p><p>Of course, if you enjoy the content, you are welcome to support me through <strong>Patreon</strong>, or by simply pressing the <strong>like and share</strong> buttons — the social currency of the internet. But as long as you learn something valuable, I’m happy.</p><h3>Join Me on This Journey</h3><p>If you’re interested in watching my new course, you can use the following <a href="https://www.udemy.com/course/motion-profiles-a-z-robotics-automation-masterclass/">link</a> to enroll and get started with <strong>robotics and automation</strong>. I hope to see you there!</p><p>Thank you for being part of my journey. Here’s to lifelong learning and sharing knowledge with the world.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNRYbSH3499c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNRYbSH3499c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNRYbSH3499c%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0482106a48ca08475959f9a753e48ec8/href">https://medium.com/media/0482106a48ca08475959f9a753e48ec8/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0257c589b71a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SEO WAR: Why Big Giants Lose and We Keep Winning]]></title>
            <link>https://medium.com/@nima.shokofar/seo-war-why-big-giants-lose-and-we-keep-winning-34cad167fddf?source=rss-983f3ac530a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/34cad167fddf</guid>
            <category><![CDATA[entrepreneur]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[seo-agency]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <dc:creator><![CDATA[Nima Shokouhfar]]></dc:creator>
            <pubDate>Wed, 25 Dec 2024 17:36:55 GMT</pubDate>
            <atom:updated>2024-12-25T21:39:53.890Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*p0d1cp4p3GooA4xPCs313w.jpeg" /><figcaption>SEO WAR</figcaption></figure><p>Recently, I was trying so hard to rank for a keyword on YouTube, and I was losing to XYZ company for no reason.<br>I was confused — why the heck was I losing ground to them?</p><p>My content was way more optimized, my video was better. I had the whole package.</p><p><strong><em>Now, I know why.</em></strong><br>They pay for YouTube ads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rQ2DDJ8UK9P5g3Xb4ORTaA.png" /><figcaption>XYZ company</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9CUOUykrtak-g_WniaH9w.png" /><figcaption>ME</figcaption></figure><p><strong>Here’s the truth:</strong><br>These giants are spending a fortune to dominate the rankings, but guess what?<br><strong>That’s not sustainable.</strong><br>Here’s why I believe <strong>they’ll lose — and why creators like us win in the long game.</strong></p><h3>1. They Pay — I Rank for Free.</h3><p>Sure, throwing money at ads will boost their views — but for how long?<br>I produce content, <strong>optimize for SEO, and rank organically</strong>.<br>For them, <strong>marketing at scale is an expensive machine.</strong><br>For me? It costs <strong>next to nothing.</strong></p><p>At scale, <strong>my marketing engine runs lean and efficient.</strong><br><strong>Theirs burns money.</strong><br><strong>I win.</strong></p><h3>2. People Love to Buy, But Hate Being Sold To.</h3><p>Picture this — you’re searching for answers, and the first video is just a glorified ad.<br>Sure, you click… but do you <strong>watch it all the way through?</strong><br>Probably not.<br><strong>You bounce.</strong></p><p>Now compare that to my video –<br>I’m not selling.<br>I’m <strong>teaching.</strong><br>I’m helping.<br><strong>Who do you think viewers stick around for?</strong></p><h3>3. I See the Whole Battlefield.</h3><p>Big companies create <strong>content about their product.</strong><br>I create content about <strong>the entire ecosystem.</strong><br>I explain the tools, the trends, the gaps, and the tricks.</p><p>Who do you think people <strong>trust more</strong> –<br>The one selling, or the one <strong>educating?</strong><br><strong>Exactly.</strong></p><h3>4. I Can Move Fast — They Can’t.</h3><p>I have:</p><ul><li><strong>No inventory.</strong></li><li><strong>No employees to pay.</strong></li><li><strong>No massive overhead.</strong></li></ul><p>When trends shift, I shift with them.<br>I can <strong>pivot to promote better products</strong> or new ideas instantly.</p><p>But big companies?<br>They’ve got millions tied up in:</p><ul><li><strong>R&amp;D</strong></li><li><strong>Production</strong></li><li><strong>Inventory</strong></li><li><strong>Marketing and Ads</strong></li></ul><p>Can they move fast?<br><strong>No chance.</strong></p><p>Their size <strong>slows them down.</strong><br>My agility lets me <strong>outrun them every time.</strong></p><h3>SEO is My Superpower — And It Can Be Yours Too.</h3><p>If I could <strong>restart my entrepreneurial journey,</strong> the first thing I’d master is <strong>SEO.</strong><br><strong>SEO is the heartbeat of the market.</strong><br>It shows you trends before anyone else sees them.<br>It’s like having <strong>X-ray vision in business.</strong></p><p><strong>If you know SEO,</strong> you’re already <strong>10 steps ahead</strong> of the competition.</p><h3>Want to Learn More?</h3><p>I’m always on the lookout for <strong>like-minded people who are passionate about SEO.</strong><br>If that’s you, <strong>drop me a message.</strong><br>Let’s <strong>connect, grow, and win together.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34cad167fddf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MQTT Sparkplug B Client: Setting Up Embedded C and Mosquitto Broker for High-Performance IoT]]></title>
            <link>https://medium.com/@nima.shokofar/mqtt-sparkplug-b-client-setting-up-embedded-c-and-mosquitto-broker-for-high-performance-iot-a99bb64d4aa8?source=rss-983f3ac530a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a99bb64d4aa8</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[mosquito]]></category>
            <category><![CDATA[c-programming]]></category>
            <category><![CDATA[embedded]]></category>
            <dc:creator><![CDATA[Nima Shokouhfar]]></dc:creator>
            <pubDate>Thu, 19 Dec 2024 05:29:51 GMT</pubDate>
            <atom:updated>2024-12-19T05:29:51.619Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*JcxbZpNu52cFArKL7kcZKw.png" /><figcaption>Architecture</figcaption></figure><h3>Introduction</h3><p>The Internet of Things (IoT) thrives on <strong>fast, lightweight, and reliable messaging protocols</strong>. MQTT Sparkplug B is one such protocol, specifically designed for <strong>industrial IoT (IIoT)</strong>. If you’re building IoT applications with Embedded C and looking to integrate a Mosquitto MQTT broker, this guide will help you set up everything you need for a high-performance solution.</p><p>In this step-by-step tutorial, we will cover:</p><ol><li>Setting up Eclipse Tahu (Sparkplug B)</li><li>Installing and configuring the Mosquitto MQTT broker</li><li>Creating an Embedded C project for MQTT Sparkplug B communication</li><li>Running the publisher and subscriber clients</li></ol><p><strong>Let’s get started!</strong></p><h3>Prerequisites</h3><p>Before diving in, ensure you have the following:</p><ul><li><strong>Linux environment</strong> (e.g., Ubuntu 22.04)</li><li>Basic understanding of <strong>C programming</strong> and <strong>MQTT</strong></li><li><strong>GCC Compiler</strong> installed</li><li><strong>Mosquitto MQTT broker</strong> installed</li><li>Eclipse Tahu libraries for Sparkplug B</li></ul><p>Install the necessary tools:</p><pre>sudo apt update<br>sudo apt install build-essential mosquitto mosquitto-clients</pre><h3>2. Setting Up Eclipse Tahu (Sparkplug B)</h3><p>Eclipse Tahu provides the reference implementation of <strong>Sparkplug B</strong>, a protocol that uses MQTT for industrial messaging. For Embedded C, you will need to download and build the library.</p><h4>Clone the Eclipse Tahu Repository</h4><pre>git clone https://github.com/eclipse/tahu.git<br>cd tahu/c/core</pre><h4>Build the Library</h4><p>Navigate to the c directory and build the library:</p><pre>make</pre><p>This will create the static library <strong>libtahu.a</strong>.</p><p>Copy the library and header files into your project:</p><pre>mkdir ~/projects/iot-edge-sparkplug-c/<br>mkdir ~/projects/iot-edge-sparkplug-c/lib/<br>mkdir ~/projects/iot-edge-sparkplug-c/include/<br>cp ./lib/libtahu.a ~/projects/iot-edge-sparkplug-c/lib/<br>cp -r include/* ~/projects/iot-edge-sparkplug-c/include/<br>cd ~/projects/iot-edge-sparkplug-c/<br></pre><h3>3. Installing and Configuring the Mosquitto MQTT Broker</h3><p>Mosquitto is an open-source MQTT broker that acts as the messaging hub for your IoT system.</p><h4>Install Mosquitto</h4><p>If not already installed:</p><pre>sudo apt install mosquitto mosquitto-clients</pre><h4>Verify Installation</h4><p>Run the broker in verbose mode:</p><pre>mosquitto -v</pre><p>You should see output indicating the broker is running and listening on <strong>port 1883</strong>.</p><h4>Test the Broker</h4><p>Use Mosquitto clients to test the broker:</p><ul><li>Start a subscriber:</li></ul><pre>mosquitto_sub -h localhost -t &quot;test/topic&quot;</pre><ul><li>Publish a message:</li></ul><pre>mosquitto_pub -h localhost -t &quot;test/topic&quot; -m &quot;Hello MQTT!&quot;</pre><p>If successful, the message will appear on the subscriber terminal.</p><h3>4. Setting Up the Project Structure</h3><p>Here’s the minimal structure of your Embedded C project:</p><pre>iot-edge-sparkplug-c/<br>|-- include/<br>|   |-- pb_common.h<br>|   |-- pb_encode.h<br>|   |-- pb_decode.h<br>|   |-- tahu.h<br>|   |-- tahu.pb.h<br>|<br>|-- lib/<br>|   |-- libtahu.a<br>|<br>|-- src/<br>|   |-- publisher.c<br>|   |-- subscriber.c<br>|<br>|-- Makefile</pre><pre>mkdir src<br>touch ./src/publisher.c<br>touch ./src/subscriber.c<br>touch Makefile<br>code .</pre><h3>5. Writing the Publisher Client</h3><p>Here is an example of a <strong>publisher</strong> client that sends Sparkplug B messages.</p><h4>src/publisher.c</h4><pre>#include &lt;stdio.h&gt;<br>#include &lt;stdlib.h&gt;<br>#include &lt;string.h&gt;<br>#include &lt;time.h&gt;<br>#include &lt;mosquitto.h&gt;<br>#include &quot;tahu.pb.h&quot;   // Sparkplug Protobuf<br>#include &quot;pb_encode.h&quot;<br>#include &quot;tahu.h&quot;      // Custom helpers like get_next_payload, add_simple_metric<br><br>#define MQTT_HOST &quot;localhost&quot;<br>#define MQTT_PORT 1883<br>#define TOPIC &quot;spBv1.0/MyGroup/DBIRTH/MyNode/MyDevice&quot;<br><br>void publish_payload(struct mosquitto *mosq) {<br>    uint8_t buffer[256] = {0};<br>    size_t message_length;<br><br>    // Create payload<br>    org_eclipse_tahu_protobuf_Payload payload;<br>    get_next_payload(&amp;payload);<br><br>    // Add a single metric to the payload<br>    uint32_t value = 42;  // Example value<br>    add_simple_metric(&amp;payload, &quot;temperature&quot;, false, 0, METRIC_DATA_TYPE_INT32, false, false, &amp;value, sizeof(value));<br><br>    // Encode the payload into the buffer<br>    message_length = encode_payload(buffer, sizeof(buffer), &amp;payload);<br><br>    // Publish payload<br>    int rc = mosquitto_publish(mosq, NULL, TOPIC, message_length, buffer, 0, false);<br>    if (rc == MOSQ_ERR_SUCCESS) {<br>        printf(&quot;Published payload to topic: %s\n&quot;, TOPIC);<br>    } else {<br>        fprintf(stderr, &quot;Publish failed: %s\n&quot;, mosquitto_strerror(rc));<br>    }<br><br>    // Free payload memory<br>    free_payload(&amp;payload);<br>}<br><br>int main() {<br>    struct mosquitto *mosq = NULL;<br><br>    mosquitto_lib_init();<br>    mosq = mosquitto_new(NULL, true, NULL);<br><br>    if (mosquitto_connect(mosq, MQTT_HOST, MQTT_PORT, 60)) {<br>        fprintf(stderr, &quot;Failed to connect to broker\n&quot;);<br>        return EXIT_FAILURE;<br>    }<br><br>    publish_payload(mosq);<br><br>    mosquitto_disconnect(mosq);<br>    mosquitto_destroy(mosq);<br>    mosquitto_lib_cleanup();<br><br>    return EXIT_SUCCESS;<br>}</pre><h3>6. Writing the Subscriber Client</h3><p>Here is a <strong>subscriber</strong> client that listens for Sparkplug B messages.</p><h4>src/subscriber.c</h4><pre>#include &lt;stdio.h&gt;<br>#include &lt;stdlib.h&gt;<br>#include &lt;mosquitto.h&gt;<br>#include &quot;tahu.pb.h&quot;       // Sparkplug Protobuf<br>#include &quot;pb_decode.h&quot;     // Protobuf decoder<br>#include &quot;pb_encode.h&quot;<br>#include &lt;inttypes.h&gt;      // For PRIu64<br><br>#define MQTT_HOST &quot;localhost&quot;<br>#define MQTT_PORT 1883<br>#define TOPIC &quot;spBv1.0/MyGroup/DBIRTH/MyNode/MyDevice&quot;<br>#define METRIC_DATA_TYPE_FLOAT 9<br>#define METRIC_DATA_TYPE_INT32 2<br>void on_message(struct mosquitto *mosq, void *userdata, const struct mosquitto_message *message) {<br>    printf(&quot;Message received on topic: %s\n&quot;, message-&gt;topic);<br><br>    // Decode payload<br>    org_eclipse_tahu_protobuf_Payload payload = org_eclipse_tahu_protobuf_Payload_init_default;<br>    pb_istream_t stream = pb_istream_from_buffer((uint8_t *)message-&gt;payload, message-&gt;payloadlen);<br><br>    if (!pb_decode(&amp;stream, org_eclipse_tahu_protobuf_Payload_fields, &amp;payload)) {<br>        fprintf(stderr, &quot;Failed to decode payload\n&quot;);<br>        return;<br>    }<br><br>    // Print decoded payload data<br>    printf(&quot;Timestamp: %&quot; PRIu64 &quot;\n&quot;, payload.timestamp);<br>    for (int i = 0; i &lt; payload.metrics_count; i++) {<br>        printf(&quot;Metric: %s, Datatype: %d\n&quot;, payload.metrics[i].name, payload.metrics[i].datatype);<br>        // if (payload.metrics[i].datatype == METRIC_DATA_TYPE_INT32) {<br>            printf(&quot;Value (Int32): %d\n&quot;, payload.metrics[i].value.int_value);<br>        // }<br><br>    }<br>}<br><br>int main() {<br>    struct mosquitto *mosq = NULL;<br><br>    // Initialize the Mosquitto library<br>    mosquitto_lib_init();<br><br>    // Create a new Mosquitto client<br>    mosq = mosquitto_new(NULL, true, NULL);<br>    if (!mosq) {<br>        fprintf(stderr, &quot;Error: Out of memory.\n&quot;);<br>        return EXIT_FAILURE;<br>    }<br><br>    // Set the message callback<br>    mosquitto_message_callback_set(mosq, on_message);<br><br>    // Connect to the MQTT broker<br>    if (mosquitto_connect(mosq, MQTT_HOST, MQTT_PORT, 60)) {<br>        fprintf(stderr, &quot;Failed to connect to broker\n&quot;);<br>        return EXIT_FAILURE;<br>    }<br><br>    // Subscribe to the topic<br>    mosquitto_subscribe(mosq, NULL, TOPIC, 0);<br>    printf(&quot;Subscribed to topic: %s\n&quot;, TOPIC);<br><br>    // Loop forever to receive messages<br>    mosquitto_loop_forever(mosq, -1, 1);<br><br>    // Cleanup<br>    mosquitto_destroy(mosq);<br>    mosquitto_lib_cleanup();<br><br>    return EXIT_SUCCESS;<br>}</pre><h3>7. Build and Run the Project</h3><p>Create a Makefile to compile the project:</p><pre>CC = gcc<br><br># Directories<br>SRC_DIR = ./src<br>INCLUDE_DIR = ./include<br>LIB_DIR = ./lib<br><br># Output<br>TARGET_PUB = publisher<br>TARGET_SUB = subscriber<br><br># Files<br>PUB_SRC = $(SRC_DIR)/publisher.c<br>SUB_SRC = $(SRC_DIR)/subscriber.c<br><br>OBJS_PUB = $(PUB_SRC:.c=.o)<br>OBJS_SUB = $(SUB_SRC:.c=.o)<br><br># Flags<br>CFLAGS = -I$(INCLUDE_DIR) -Wall -Wextra -g<br>LDFLAGS = -L$(LIB_DIR) -ltahu -lmosquitto<br><br># Build<br>all: $(TARGET_PUB) $(TARGET_SUB)<br><br>$(TARGET_PUB): $(OBJS_PUB)<br> $(CC) -o $@ $^ $(LDFLAGS)<br><br>$(TARGET_SUB): $(OBJS_SUB)<br> $(CC) -o $@ $^ $(LDFLAGS)<br><br>%.o: %.c<br> $(CC) -c $&lt; -o $@ $(CFLAGS)<br><br># Clean<br>clean:<br> rm -f $(SRC_DIR)/*.o $(TARGET_PUB) $(TARGET_SUB)<br><br></pre><h4>Compile and Run</h4><pre>make<br>./publisher<br>./subscriber</pre><h3>Conclusion</h3><p>In this blog, we explored setting up an <strong>MQTT Sparkplug B client</strong> using Embedded C and the Mosquitto MQTT broker. This setup is ideal for <strong>high-performance IoT edge devices</strong>, enabling reliable and efficient communication for industrial applications.</p><p>Feel free to extend this project with additional features like SSL/TLS, persistent connections, or custom metrics!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a99bb64d4aa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a Publisher on Medium Can Transform Your Reach and Credibility]]></title>
            <link>https://medium.com/@nima.shokofar/how-a-publisher-on-medium-can-transform-your-reach-and-credibility-660285660eb2?source=rss-983f3ac530a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/660285660eb2</guid>
            <category><![CDATA[personal-branding]]></category>
            <category><![CDATA[content-marketing]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[content-creation]]></category>
            <category><![CDATA[medium]]></category>
            <dc:creator><![CDATA[Nima Shokouhfar]]></dc:creator>
            <pubDate>Mon, 28 Oct 2024 02:05:33 GMT</pubDate>
            <atom:updated>2024-10-28T02:05:33.113Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OvzpDtC-6RuFF0kDAx_tFA.png" /></figure><p>Recently, I secured a new publisher, <strong>Level Up Coding</strong>, on Medium. For anyone in <strong>domain-driven design</strong> or tech, they’re one of the biggest names on the platform, with 150K subscribers and a strong social media presence. Having access to a publisher of this scale is a game-changer for reach and influence.</p><p>If you’re not on Medium, you’re missing out. For technical content, it’s one of the most SEO-friendly platforms out there — easily among the tops. With a reputable publisher, your content reaches a highly engaged audience and boosts <strong>SEO visibility</strong> significantly.</p><p>Beyond reach, a publisher adds <strong>credibility</strong>. Picture this: Would you trust an article with no publisher, or one from a source boasting 150K subscribers? The answer is clear — the backed article instantly feels more authoritative.</p><p>So, research your publisher well. A strong one has an established network with a built-in audience interested in your expertise, allowing you to reach the right people more effectively. <strong>If you’re a writer, it’s worth a try!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=660285660eb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fast Keycloak Theme Customization: Keycloakify-Tailwind-ShadCN Guide in 100 Seconds]]></title>
            <link>https://javascript.plainenglish.io/fast-keycloak-theme-customization-keycloakify-tailwind-shadcn-guide-in-100-seconds-2cee5848b0d1?source=rss-983f3ac530a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cee5848b0d1</guid>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[keycloak]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[shadcn]]></category>
            <dc:creator><![CDATA[Nima Shokouhfar]]></dc:creator>
            <pubDate>Sun, 27 Oct 2024 02:06:18 GMT</pubDate>
            <atom:updated>2025-01-03T12:50:11.107Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TwI7deYhg4xszgBk5RQazA.png" /></figure><p>Customizing Keycloak themes doesn’t have to be complicated! In this quick guide, you’ll learn how to test and build a Keycloak theme using <strong>Keycloakify</strong>, <strong>Tailwind CSS</strong>, and <strong>ShadCN UI</strong> components. Let’s dive into the steps to get your Keycloak theme up and running.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5pBc1C1wgiQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5pBc1C1wgiQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5pBc1C1wgiQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b61ddfb0609c451a5cf02825d61b3fbc/href">https://medium.com/media/b61ddfb0609c451a5cf02825d61b3fbc/href</a></iframe><h3>🚀 Quick Start</h3><ol><li><strong>Clone the Repository:</strong> Get started by cloning the repository:</li></ol><pre>git clone https://github.com/nima70/keycloakify-tailwind-shadcn.git<br>code ./keycloakify-tailwind-shadcn</pre><ol><li><strong>Install Dependencies:</strong> Make sure all dependencies are set up:</li></ol><pre>npm install --legacy-peer-deps</pre><ol><li><strong>Run the Project Locally:</strong> Initialize the project and launch Storybook to start working with your theme:</li></ol><pre>npm run prestart<br>npm run storybook</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*qEI60jszTunS0Tarbq-ZGw.gif" /></figure><h3>🌈 Changing the Default Theme</h3><p>The ShadCN themes provide a fantastic way to enhance the appearance of your Keycloak theme. Here’s how to apply a new theme:</p><p><strong>Visit the ShadCN Themes Website:</strong><br>Go to <a href="https://ui.shadcn.com/themes">ShadCN themes</a> to choose a theme.</p><p><strong>Customize and Copy:</strong></p><ol><li>Click <strong>Customize</strong>.</li></ol><p>2. Choose your theme.</p><p>3. Click <strong>Copy Code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*m7QHNdvNaevckvQk7swsUg.gif" /></figure><p>5. Update the base layer by pasting the copied code into src/styles/global.css.</p><p>6. Check the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odJlN5wzvFm_2Ha3a9hYRA.png" /></figure><h3>🔧 Changing a Component</h3><p>To modify an individual component, let’s adjust the button’s shape, changing rounded-md to rounded-full in src/components/button.tsx.</p><pre>const buttonVariants = cva(<br>    &quot;inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:scale-105&quot;,<br>    {<br>        variants: {<br>            variant: {<br>                default:<br>                    &quot;bg-primary text-primary-foreground hover:bg-primary/50 hover:dark:bg-primary/30 hover:dark:text-secondary-foreground &quot;,<br>                destructive:<br>                    &quot;bg-destructive text-destructive-foreground hover:bg-destructive/90&quot;,<br>                outline:<br>                    &quot;border border-input border-foreground bg-background text-foreground hover:bg-accent hover:text-accent-foreground&quot;,<br>                secondary: &quot;bg-secondary text-secondary-foreground hover:bg-secondary/80&quot;,<br>                ghost: &quot;hover:bg-accent hover:text-accent-foreground&quot;,<br>                link: &quot;text-primary bg-background underline-offset-4 hover:underline&quot;<br>            },<br>            size: {<br>                default: &quot;h-10 px-4 py-2&quot;,<br>                sm: &quot;h-9 rounded-md px-3&quot;,<br>                lg: &quot;h-11 rounded-md px-8&quot;,<br>                icon: &quot;h-10 w-10&quot;<br>            }<br>        },<br>        defaultVariants: {<br>            variant: &quot;default&quot;,<br>            size: &quot;default&quot;<br>        }<br>    }<br>);</pre><h4>Check Your Changes:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rlHneV0E8_KyfP25oNibTg.png" /></figure><h3>🔄 Login Page Transformation</h3><p><strong>Before:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jMKwsBJYEY8VlKpJX_FCIQ.png" /></figure><p><strong>After:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHBV5h3fTJ9nM4P-ccRliA.png" /></figure><h3>🛠 Installing Maven</h3><p>To build and test the Keycloak theme, you’ll need <strong>Maven</strong> installed:</p><ul><li><strong>macOS:</strong></li></ul><pre>brew install maven</pre><ul><li><strong>Debian/Ubuntu:</strong></li></ul><pre>sudo apt-get install maven</pre><ul><li><strong>Windows:</strong></li></ul><pre>choco install openjdk &amp;&amp; choco install maven</pre><h3>🐳 Testing the Component with Docker</h3><p>For Docker testing, use the following command:</p><pre>npx keycloakify start-keycloak</pre><blockquote><strong><em>Note:</em></strong><em> Keycloak version 26 is not supported yet.</em></blockquote><h3>📦 Building the Keycloak Theme</h3><p>Once you’re ready to build, use the following command to generate .jar files for various Keycloak versions:</p><pre>npm run build-keycloak-theme</pre><p>Keycloakify allows custom builds for different deployment needs. Check out the Keycloakify documentation for more details on tailoring your theme to perfection!</p><p>With this guide, customizing Keycloak themes is a breeze! Get creative, make it yours, and enjoy the ease of using <strong>Keycloakify</strong>, <strong>Tailwind CSS</strong>, and <strong>ShadCN UI</strong> for beautiful, modern Keycloak themes.</p><h3>What’s Next?</h3><p>If you’re eager to dive deeper into <strong>Keycloakify-Tailwind-ShadCN</strong>, check out our detailed YouTube video:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLG5Wv7dsh4I%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLG5Wv7dsh4I&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLG5Wv7dsh4I%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/41d93f0cf5ffd7583d93087e61e4a2f7/href">https://medium.com/media/41d93f0cf5ffd7583d93087e61e4a2f7/href</a></iframe><p>Want to know why we’re such big fans of Keycloakify? Head over to our <a href="https://medium.com/@nima.shokofar/why-customize-keycloak-themes-with-keycloakify-20b61190f8f1">other article</a> and YouTube video to see why Keycloakify stands out as a top choice for Keycloak theme customization and how it simplifies the development process.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxmQ5ULhF1Dk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxmQ5ULhF1Dk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxmQ5ULhF1Dk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c648c684214ae34fcbd963ce67dc22df/href">https://medium.com/media/c648c684214ae34fcbd963ce67dc22df/href</a></iframe><p>Happy theming!</p><h3><strong><em>Thank you for being a part of the community 🫶</em></strong></h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a></li><li><a href="https://cofeed.app/"><strong>Check out CoFeed, the smart way to stay up-to-date with the latest in tech</strong></a> <strong>🧪</strong></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cee5848b0d1" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/fast-keycloak-theme-customization-keycloakify-tailwind-shadcn-guide-in-100-seconds-2cee5848b0d1">Fast Keycloak Theme Customization: Keycloakify-Tailwind-ShadCN Guide in 100 Seconds</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitHub Sponsorship: ChatGPT Helped Me Earn Money Contributing to Keycloakify, an Open Source…]]></title>
            <link>https://medium.com/@nima.shokofar/github-sponsorship-chatgpt-helped-me-earn-money-contributing-to-keycloakify-an-open-source-00587430f078?source=rss-983f3ac530a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/00587430f078</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[github-sponsors]]></category>
            <category><![CDATA[earn-money-online]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[earn-money-from-home]]></category>
            <dc:creator><![CDATA[Nima Shokouhfar]]></dc:creator>
            <pubDate>Sun, 20 Oct 2024 06:29:51 GMT</pubDate>
            <atom:updated>2024-10-20T07:04:39.424Z</atom:updated>
            <content:encoded><![CDATA[<h3>GitHub Sponsorship: ChatGPT Helped Me Earn Money Contributing to Keycloakify, an Open Source Project</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bIFjIv11xNV51VnU_5q_Nw.png" /><figcaption>ChatGPT &amp; GitHub Sponsorship</figcaption></figure><p>💡 <strong>Did you know you could earn money for contributing to open-source projects?</strong> Because I didn’t! 😲</p><p>When I first stumbled upon <strong>Keycloakify</strong>, an open-source project that I loved, my only goal was to contribute and help improve something I was passionate about. It was an exciting journey in itself — working alongside a community of talented developers, solving challenges, and learning something new with every contribution. Never in my wildest dreams did I think it would lead to <strong>earning money</strong>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FF84xazbVw7Y%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DF84xazbVw7Y&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FF84xazbVw7Y%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/33afe16df4498f86c17aeb4d2f6fb1b2/href">https://medium.com/media/33afe16df4498f86c17aeb4d2f6fb1b2/href</a></iframe><p>But here I am, writing this today, surprised and humbled to have received my first-ever <strong>GitHub Sponsorship</strong>! 🎉 And there’s more to the story: a huge shout-out to <strong>Joseph (@garronej)</strong> for encouraging me to apply for <strong>GitHub Sponsors</strong> in the first place and then becoming my very first sponsor today with a generous <strong>$45 sponsorship</strong>. 🙏 This has been such an eye-opening experience, and I feel incredibly fortunate to have such supportive people in the open-source community.</p><h4>Why I Started Contributing to Open Source</h4><p>Let’s rewind a bit.</p><p>When I began contributing to open source, it wasn’t about earning recognition, and it definitely wasn’t about making money — mostly because I didn’t even know that was an option. I was simply eager to help improve <strong>Keycloakify</strong>, a project I used and loved. It was fulfilling to see my contributions come to life, help others, and grow the project I admired.</p><p>For those unfamiliar with it, <strong>Keycloakify</strong> is a library designed to make building custom <strong>Keycloak</strong> UIs easier. I found it incredibly useful in my own projects and naturally wanted to contribute, making it even better for the community.</p><h4>How It All Came Together</h4><p>A few weeks ago, Joseph told me about <strong>GitHub Sponsors</strong> and encouraged me to apply. Honestly, it hadn’t even crossed my mind that my open-source contributions could be financially supported. I followed his advice and applied, not really expecting much.</p><p>And then today, I received an email from GitHub. Joseph, who had inspired me to apply, had just become my <strong>first sponsor</strong> with a generous <strong>$45 sponsorship</strong>. I was blown away! What started as an act of passion had unexpectedly turned into something more.</p><h4>What I Learned from this Experience</h4><p>This experience taught me a couple of things that I think every developer contributing to open-source should know:</p><ol><li><strong>There are opportunities you might not even be aware of</strong> — When I started contributing to Keycloakify, I didn’t know GitHub Sponsors existed. Now, I’ve come to realize that contributing to open-source projects can open doors to financial opportunities and beyond.</li><li><strong>People value your work more than you think</strong> — It’s easy to assume that the work you do, especially in open source, is “just part of the community.” But this sponsorship reminded me that people truly value the time and effort that goes into open-source projects.</li><li><strong>Open-source is about more than code</strong> — Yes, it’s about collaboration, learning, and problem-solving. But it’s also about community and mutual support. This experience has made me feel more connected to the open-source community than ever before.</li></ol><h4>Moving Forward</h4><p>This sponsorship is more than just a monetary reward — it’s a motivational boost. It shows that when you follow your passion, you can achieve unexpected and fulfilling outcomes. I’m more excited than ever to keep contributing, not for the money, but for the joy of helping projects I care about.</p><p>To anyone out there contributing to open source, whether you’re coding, creating documentation, or managing projects — <strong>keep going</strong>. You never know what surprises might come your way. And to those who haven’t started yet, it’s never too late to jump in.</p><p>If you’re passionate about a project, get involved. Who knows? Maybe your work will resonate with someone out there, and one day, you’ll open an email to find your first sponsorship too.</p><p><strong>Thanks for reading!</strong> 😊<br>Feel free to check out my work on GitHub and connect with me on LinkedIn.<br>Let’s keep growing the open-source community together! 🙌</p><p>#GitHubSponsors #OpenSource #Keycloakify #UnexpectedJourney #FirstSponsorship #CommunitySupport #LearnAndGrow</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00587430f078" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microservices, Event-Driven Design, Domain-Driven Design, Plugin System (EP1)]]></title>
            <link>https://medium.com/@nima.shokofar/microservices-event-driven-design-domain-driven-design-plugin-system-ep1-5ae1f08ef7a7?source=rss-983f3ac530a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ae1f08ef7a7</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[plugin-architecture]]></category>
            <category><![CDATA[domain-driven-design]]></category>
            <dc:creator><![CDATA[Nima Shokouhfar]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 13:12:19 GMT</pubDate>
            <atom:updated>2024-10-18T13:12:19.220Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zDMFAXf01-QIWSj_kdgo2w.png" /><figcaption>Microservices, Event-Driven Design, Domain-Driven Design, Plugin System</figcaption></figure><p>In this blog series, I’ll walk you through a project where I’m using <strong>microservices</strong>, <strong>domain-driven design (DDD)</strong>, and <strong>event-driven design (EDD)</strong> to create open-source tools for <strong>content creators</strong>. This project is designed as a flexible, scalable system. It’s not just a portfolio project but also has the potential to evolve into a business.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1ji7S394CKA&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1ji7S394CKA&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2F1ji7S394CKA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c3e01ce5df2de0cae24c4333f5e10f39/href">https://medium.com/media/c3e01ce5df2de0cae24c4333f5e10f39/href</a></iframe><h3>Why Microservices &amp; Event-Driven Design?</h3><p>Microservices are currently one of the hottest technologies in the market due to their scalability and modularity. I took this concept a step further by applying <strong>Nano Services</strong>, where each plugin acts as its own small service within the larger ecosystem. With <strong>Event-Driven Design</strong>, we’re able to handle asynchronous communication effectively, making the system highly scalable and responsive.</p><h3>The Architecture</h3><p>At the core of this project is a <strong>plugin system</strong> that allows small, independent backend and frontend plugins to work seamlessly for content creators. These plugins — such as automatic chapter detection for YouTube videos — can save a significant amount of time for content creators.</p><p>The architecture is designed around <strong>request-response</strong> patterns with an <strong>event-driven</strong> approach using <strong>RabbitMQ</strong> for messaging. On the <strong>frontend</strong>, I’m using <strong>TypeScript</strong>, while the <strong>backend</strong> employs <strong>Python</strong> with some <strong>dependency injection</strong>.</p><h3>Open-Source Collaboration</h3><p>One of the most exciting aspects of this project is that it’s <strong>open-source</strong>. I welcome developers to contribute, fork, or even build upon this system. The entire project is hosted on GitHub, and I’ve implemented full <strong>CI/CD pipelines</strong>, ensuring that all code is tested and production-ready.</p><h3>The Future</h3><p>As the project evolves, I plan to integrate more tools, expand the plugin system, and even extend language support to frameworks like <strong>.NET Core</strong> and <strong>C++</strong>. If the project gains traction, it could become a fully-fledged business; if not, it remains a valuable <strong>portfolio project</strong> showcasing my skills in <strong>microservices</strong>, <strong>DDD</strong>, and <strong>EDD</strong>.</p><p>You can follow my journey on YouTube, where I will be regularly posting updates and coding tutorials. Let’s see if this can take off as a business or become a solid addition to my professional portfolio.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ae1f08ef7a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Mindmeister’s Gamification Strategy Hooked Me and How It Can Work for You]]></title>
            <link>https://medium.com/@nima.shokofar/how-mindmeisters-gamification-strategy-hooked-me-and-how-it-can-work-for-you-4209cd0464ca?source=rss-983f3ac530a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4209cd0464ca</guid>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[community-engagement]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[marketing-strategies]]></category>
            <category><![CDATA[gamification]]></category>
            <dc:creator><![CDATA[Nima Shokouhfar]]></dc:creator>
            <pubDate>Fri, 11 Oct 2024 03:03:38 GMT</pubDate>
            <atom:updated>2024-10-11T03:03:38.410Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LwBEoydKpVC0nynAhN8Nig.png" /><figcaption>Gamification case study</figcaption></figure><p>If you are interested in <strong>gamification</strong> and <strong>community building</strong>, you should definitely check out the Mindmeister community. Their strategy has worked on me 100%, and I want to share how it might work for you, too.</p><h3>Why I Got Hooked on Mindmeister’s Strategy</h3><p>As some of you know, I’ve been struggling financially and searching for new ways to earn money. During my search, I discovered <strong>affiliate marketing</strong> as a potential opportunity. Since I’ve been using Mindmeister every day for more than three years and have been a member since 2016, I thought, why not leverage something I’m already familiar with?</p><p>I joined their affiliate program and dove deeper into their product. Recently, however, a new update introduced a bug that impacted my experience. I decided to report the issue, and that’s when I stumbled upon their <strong>community</strong>. In this community, you can post, comment, like others’ ideas or feature requests, and even answer existing questions. But it didn’t stop there. They’ve gamified the experience, motivating users to contribute more. You can earn <strong>badges</strong> and gain influence, even shaping their product roadmap.</p><p>Their approach to blending community building and <strong>gamification</strong> is absolutely mind-blowing from a marketing perspective. And if you’re looking for a tool to visualize your ideas and projects effectively, <strong>MindMeister</strong> is worth exploring. It’s not just a great product for mind mapping, but their engaging community has made my experience even better. You can try MindMeister yourself and organize your projects visually by starting with my affiliate link <a href="https://www.mindmeister.com/?r=1263879">here</a>.</p><h3>A Deeper Dive: Gamification Through Cialdini’s Influence</h3><p>To better understand how Mindmeister’s approach works, let’s analyze it through the lens of <strong>Robert Cialdini’s Influence</strong>, a foundational book in marketing, along with <strong>gamification theories</strong>.</p><h4>Authority Through Badges: Building Trust in Affiliate Marketing</h4><p>Imagine you’re an <strong>affiliate marketer</strong> trying to convince someone to make a purchase. Here’s where <strong>badges</strong> establish <strong>authority</strong>:</p><ul><li>Badges and influence rankings create a hierarchy within the community. Those with more badges are viewed as <strong>subject matter experts</strong>, making it easier for others to trust and buy from them. It’s a psychological win-win.</li></ul><h4>Commitment and Consistency: Keeping Users Engaged</h4><p>Once you’ve got users engaged, <strong>Commitment and Consistency</strong> come into play:</p><ul><li>People don’t want to be seen as constantly changing course, so they stay committed to their roles. As they engage more in the community, their involvement deepens. This leads to <strong>loyalty</strong>, keeping users actively contributing for the long haul. It’s a powerful way to ensure <strong>consistent participation</strong> over time.</li></ul><h4>Badges and Rewards: The Power of Intrinsic Motivation</h4><p><strong>Badges and Rewards</strong> play a key role in keeping users motivated. While not everyone is motivated in the same way, some users, unlike myself, simply love the <strong>sense of achievement</strong>. Earning badges taps into this <strong>intrinsic motivation</strong>, encouraging continued contributions and fostering healthy competition within the community.</p><h4>Progression and Feedback Loops: The Secret to Repeat Engagement</h4><p>The <strong>progression system</strong> that Mindmeister has in place is a masterstroke. It ensures that users remain engaged:</p><ul><li>As users earn higher badges and gain influence, they’re encouraged to come back repeatedly. Each action creates a <strong>feedback loop</strong> — through likes, comments, or points — that reinforces their involvement and makes the experience nearly addictive.</li></ul><h3>Conclusion: Why Gamification Works</h3><p>Mindmeister’s use of <strong>gamification</strong> and community building is more than just a marketing tactic — it’s a well-crafted strategy designed to keep users engaged, motivated, and loyal. By leveraging Cialdini’s principles of <strong>authority</strong>, <strong>commitment</strong>, and <strong>consistency</strong>, and combining these with <strong>badges</strong>, <strong>rewards</strong>, and a clear progression system, they’ve created a self-sustaining community.</p><p>If you’re an <strong>affiliate marketer</strong> or just someone interested in <strong>community-driven platforms</strong>, understanding how <strong>gamification</strong> taps into core human psychology can be a game changer. Mindmeister is a perfect example of how to use this strategy to your advantage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4209cd0464ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>