<?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 Minhaj Uddin Hassan on Medium]]></title>
        <description><![CDATA[Stories by Minhaj Uddin Hassan on Medium]]></description>
        <link>https://medium.com/@minhajpuc40?source=rss-726394799eff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Cqf3b-lGxUf8LqrH283y3Q.jpeg</url>
            <title>Stories by Minhaj Uddin Hassan on Medium</title>
            <link>https://medium.com/@minhajpuc40?source=rss-726394799eff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:38:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@minhajpuc40/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[Exploring ESP: Harnessing the Dual-Core Power of ESP32, ESP8266, and NodeMCU]]></title>
            <link>https://minhajpuc40.medium.com/exploring-esp-harnessing-the-dual-core-power-of-esp32-esp8266-and-nodemcu-53f0de99bee2?source=rss-726394799eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/53f0de99bee2</guid>
            <category><![CDATA[nodemcu]]></category>
            <category><![CDATA[esp32]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[microcontrollers]]></category>
            <category><![CDATA[esp8266]]></category>
            <dc:creator><![CDATA[Minhaj Uddin Hassan]]></dc:creator>
            <pubDate>Fri, 03 Oct 2025 19:44:46 GMT</pubDate>
            <atom:updated>2025-10-03T19:44:46.070Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ms8RavLHEU-OButI" /></figure><p>In the world of microcontrollers and IoT development, the ESP family from Espressif has become a staple for hobbyists, makers, and professionals alike. Devices like the ESP32, ESP8266, and NodeMCU offer affordable, powerful solutions for wireless projects, from smart home devices to sensor networks. However, one often-overlooked feature in the ESP32 is its dual-core architecture, which sets it apart from its predecessors. In this article, we’ll dive into these microcontrollers, highlight their differences, explore the advantages of the ESP32’s dual cores, and show you how to leverage them in your projects with practical code examples.</p><blockquote><strong>Key Differences Between ESP32, ESP8266, and NodeMCU</strong></blockquote><p>To understand why the ESP32 stands out, here’s a quick comparison:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWa_lzlBvAw6QcloHfBWlw.jpeg" /></figure><p>The standout upgrade in the ESP32 is its dual cores, which enable running independent tasks simultaneously — something impossible on the single-core ESP8266 or NodeMCU without complex workarounds like interrupts or cooperative multitasking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*2JqXBP1vLpYhVkFV" /></figure><h4><strong>The Dual-Core Advantage in ESP32</strong></h4><p>Many developers treat the ESP32 like a beefed-up ESP8266, running all code on a single core and ignoring the second one. But the dual-core setup (often called Core 0 and Core 1) provides significant benefits, especially in resource-intensive projects. Here’s why it’s a big deal:</p><ol><li><strong>Improved Multitasking and Performance</strong></li><li><strong>Better Power Efficiency</strong></li><li><strong>Enhanced Real-Time Capabilities</strong></li><li><strong>Scalability for Complex Projects</strong></li><li><strong>Fault Tolerance</strong></li></ol><p>Compared to the ESP8266/NodeMCU, where everything runs sequentially, the ESP32’s dual cores make it feel like a mini-multicore computer. However, to tap into this, you’ll need to use FreeRTOS (the real-time operating system built into the ESP32 Arduino core) for task management.</p><h3>How to Utilize Dual Cores in ESP32 ?</h3><p>To use both cores, program with the Arduino IDE or ESP-IDF, leveraging FreeRTOS APIs like `<strong>xTaskCreatePinnedToCore()</strong>`. This function lets you pin tasks (functions that run independently) to specific cores.</p><p>Steps to Get Started:<br>1. <strong>Set Up Your Environment</strong>: Install the ESP32 board support in Arduino IDE (via Boards Manager). Ensure FreeRTOS is enabled (it’s included by default).</p><p>2. <strong>Define Tasks</strong>: Create functions for each task. These should run in infinite loops with delays to avoid starving the system.</p><p>3. <strong>Create and Pin Tasks</strong>: In `<strong>setup()</strong>`, use `<strong>xTaskCreatePinnedToCore()</strong>` to assign tasks to Core 0 or Core 1. Parameters include the task function, name, stack size, priority, and core ID.</p><p>4. <strong>Manage Shared Resources</strong>: If tasks share data (e.g., variables), use mutexes or semaphores to prevent race conditions.</p><p>5. <strong>Monitor and Debug</strong>: Use `<strong>Serial.println()</strong>` in tasks for logging, and tools like the Arduino Serial Monitor.</p><p>Keep in mind: Core 1 is the default for the Arduino `<strong>loop()</strong>`, so pin custom tasks accordingly to balance load.</p><p><strong>Example Code: Dual-Core Sensor Reading and Data Sending</strong></p><p>Here’s a practical example using FreeRTOS on ESP32. One task (on Core 0) simulates sending data over Wi-Fi, while the other (on Core 1) reads from a sensor. This demonstrates parallel operation.</p><blockquote><em>// Task handles</em><strong><em><br>TaskHandle_t Task0;<br>TaskHandle_t Task1;</em></strong></blockquote><blockquote><em>// Forward declarations</em><strong><em><br>void core0Task(void *pvParameters);<br>void core1Task(void *pvParameters);</em></strong></blockquote><blockquote><strong><em>void setup() {<br> Serial.begin(115200);<br> Serial.println(“Starting dual-core example…”);</em></strong></blockquote><blockquote><em>// Create tasks for Core 0 and Core 1</em><strong><em><br> xTaskCreatePinnedToCore(<br> core0Task, </em></strong><em>// Task function</em><strong><em><br> “SendData”, </em></strong><em>// Name of task</em><strong><em><br> 10000, </em></strong><em>// Stack size</em><strong><em><br> NULL, </em></strong><em>// Parameter</em><strong><em><br> 1, </em></strong><em>// Priority</em><strong><em><br> &amp;Task0, </em></strong><em>// Task handle</em><strong><em><br> 0); </em></strong><em>// Core 0</em></blockquote><blockquote><strong><em>xTaskCreatePinnedToCore(<br> core1Task, </em></strong><em>// Task function</em><strong><em><br> “ReadSensor”, </em></strong><em>// Name of task</em><strong><em><br> 10000,</em></strong><em> // Stack siz</em><strong><em>e<br> NULL, </em></strong><em>// Parameter</em><strong><em><br> 1, </em></strong><em>// Priority</em><strong><em><br> &amp;Task1,</em></strong><em> // Task handle</em><strong><em><br> 1);</em></strong><em> // Core 1</em><strong><em><br>}</em></strong></blockquote><blockquote><strong><em>void loop() {<br></em></strong><em> // Empty loop, tasks handle everything</em><strong><em><br> delay(5000);<br>}</em></strong></blockquote><blockquote><em>// Task for Core 0: Simulate sending data</em><strong><em><br>void core0Task(void *pvParameters) {<br> while (true) {<br> Serial.println(“Core 0: Sending data over Wi-Fi…”);<br></em></strong><em> // Add your Wi-Fi send code here</em><strong><em><br> vTaskDelay(200 / portTICK_PERIOD_MS); </em></strong><em>// Delay 200ms</em><strong><em><br> }<br>}</em></strong></blockquote><blockquote><em>// Task for Core 1: Simulate reading sensor</em><strong><em><br>void core1Task(void *pvParameters) {<br> while (true) {<br></em></strong><em> </em><strong><em>Serial.println(“Core 1: Reading sensor data…”);</em></strong><em><br> // Add your sensor read code here (e.g., analogRead())</em><strong><em><br> vTaskDelay(300 / portTICK_PERIOD_MS); </em></strong><em>// Delay 300ms</em><strong><em><br> }<br>}</em></strong></blockquote><p>Upload this to your ESP32 board and monitor the serial output — you’ll see both tasks running concurrently without blocking each other.</p><h4>Conclusion</h4><p>The ESP32, ESP8266, and NodeMCU are fantastic for IoT, but the ESP32’s dual cores elevate it for demanding applications. By understanding and using this feature, you can build more efficient, responsive projects. Start simple with the example above, then scale up to real-world scenarios like a web server on one core and data logging on the other. If you’re migrating from ESP8266/NodeMCU, the learning curve for FreeRTOS is worth it for the performance gains. Happy coding !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53f0de99bee2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In the ever-changing world of programming, where new frameworks and languages rise and fall with…]]></title>
            <link>https://minhajpuc40.medium.com/in-the-ever-changing-world-of-programming-where-new-frameworks-and-languages-rise-and-fall-with-23c153ef6195?source=rss-726394799eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/23c153ef6195</guid>
            <category><![CDATA[server-side-language]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[php-programming]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Minhaj Uddin Hassan]]></dc:creator>
            <pubDate>Tue, 30 Sep 2025 19:54:24 GMT</pubDate>
            <atom:updated>2025-09-30T19:54:24.817Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eu9DoQsgPtp5qyUH9lZpHw.png" /><figcaption>✍️ By Minhaj Uddin Hassan</figcaption></figure><p>In the ever-changing world of programming, where new frameworks and languages rise and fall with every trend cycle, one technology has stood the test of time, quietly powering the backbone of the web: PHP.</p><p>Yes, you read that right. PHP never dies.</p><p>Let’s take a deeper look into the history, purpose, advantages, and why it’s still one of the most important web technologies today.</p><h3>📜 The History of PHP</h3><p>PHP was created in 1994 by Rasmus Lerdorf, initially as a set of Common Gateway Interface (CGI) scripts in C to track visitors to his online resume. He called it “Personal Home Page Tools”, which later became PHP: Hypertext Preprocessor.</p><p>By 1997, PHP had gained enough traction that PHP 3 was officially launched. Since then, PHP has gone through massive improvements:</p><ul><li>PHP 4 introduced Zend Engine.</li><li>PHP 5 brought OOP (Object-Oriented Programming) support.</li><li>PHP 7 delivered a big performance boost.</li><li>PHP 8+ introduced JIT compiler and many modern features like union types, attributes, named arguments, and match expressions.</li></ul><p>For nearly three decades, PHP has grown from a simple scripting tool to a full-fledged, modern, server-side powerhouse.</p><h3>❓ Why PHP?</h3><p>You may wonder, with so many languages out there — Why choose PHP?</p><p>The answer is simple: ✅ It works. ✅ It’s battle-tested. ✅ It scales. ✅ It still powers the web.</p><p>Whether you are a beginner building your first dynamic site or a professional developing scalable web applications, PHP is there — simple, powerful, and dependable.</p><p>Some real-world use cases include:</p><ul><li>CMS (WordPress, Joomla, Drupal)</li><li>eCommerce platforms (Magento, OpenCart)</li><li>Forums (phpBB, MyBB)</li><li>Web apps (Laravel, Symfony)</li><li>REST APIs</li></ul><h3>🌟 Advantages of PHP</h3><p>Here’s why PHP continues to be relevant and reliable even in 2025:</p><h3>1. 🧠 Easy to Learn</h3><p>PHP is beginner-friendly, making it one of the first languages for aspiring web developers.</p><h3>2. 🌐 Massive Community</h3><p>Thousands of contributors, millions of developers — forums, Stack Overflow, and GitHub are filled with PHP solutions.</p><h3>3. ⚡ Speed and Performance</h3><p>PHP 7 and 8 are significantly faster than older versions. The JIT compiler in PHP 8 made it even more powerful.</p><h3>4. 🛠️ Rich Ecosystem</h3><p>Laravel, Symfony, CodeIgniter, CakePHP — modern PHP frameworks make development efficient and structured.</p><h3>5. 💰 Cost-Effective Hosting</h3><p>Shared hosting plans with PHP support are cheaper and widely available.</p><h3>6. 🔒 Security Best Practices</h3><p>With frameworks enforcing secure coding practices, PHP applications can be as secure as any other stack when written correctly.</p><h3>7. 🔁 Flexibility &amp; Integration</h3><p>PHP integrates easily with MySQL, PostgreSQL, MongoDB, REST APIs, OAuth, and even cloud providers like AWS and Azure.</p><h3>🔥 The Truth Behind the “PHP Is Dying” Myth</h3><p>This question pops up time and time again — mostly because of trends or the hype around newer stacks like Node.js, Python, or Go. But here’s the reality:</p><ul><li>Startups use Node.js.</li><li>Enterprises still rely on Java.</li><li>Blogs, CMSs, and scalable web apps? Still powered by PHP.</li></ul><p>Dying? Not even close.</p><h3>💡 PHP Isn’t Dead — It’s Powering the Internet</h3><p>This myth has been circulating for years, and yet PHP still:</p><ul><li>Powers WordPress, which runs 43%+ of all websites.</li><li>Runs Facebook’s legacy systems (HHVM was even created for PHP).</li><li>Drives thousands of Laravel-based startups and businesses.</li><li>Lives behind countless admin dashboards, CRMs, ERPs, and APIs.</li></ul><p>Let’s be honest: It’s not dead — it’s just quietly winning.</p><h3>🔄 The Quiet Backbone of the Internet</h3><p>PHP is like the electricity of the web — it quietly powers everything behind the scenes. You may not always see it, but you definitely experience it. From form handling and content management to powering APIs and massive user systems — PHP does it all.</p><h3>🎬 Watch this….</h3><p><a href="https://vimeo.com/1123337503">https://vimeo.com/1123337503</a></p><p>𝗧𝗵𝗲 𝗠𝗼𝘀𝘁 𝗣𝗼𝗽𝘂𝗹𝗮𝗿 𝗣𝗿𝗼𝗴𝗿𝗮𝗺𝗺𝗶𝗻𝗴 𝗟𝗮𝗻𝗴𝘂𝗮𝗴𝗲𝘀 𝟭𝟵𝟲𝟱 — 𝟮𝟬𝟮𝟮</p><h3>🧩 Final Thoughts</h3><p>PHP may not be the trendiest kid on the block, but it’s the one that always delivers. In the world of rapid tech evolution, PHP remains a reliable, flexible, and modern tool for web development.</p><blockquote><em>“Languages don’t die — they evolve or get replaced. PHP has evolved. It’s not going anywhere.”</em></blockquote><p>So next time someone says “PHP is outdated,” just show them the live traffic of the web, and gently remind them: PHP Never Die.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23c153ef6195" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>