<?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 Marudhu Pandiyan G on Medium]]></title>
        <description><![CDATA[Stories by Marudhu Pandiyan G on Medium]]></description>
        <link>https://medium.com/@marudhupandiyang?source=rss-ab0822e36a17------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*1-V37z47OxM7ARITrUCOFQ.jpeg</url>
            <title>Stories by Marudhu Pandiyan G on Medium</title>
            <link>https://medium.com/@marudhupandiyang?source=rss-ab0822e36a17------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:56:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marudhupandiyang/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[Pragmatism Beats Perfection]]></title>
            <link>https://medium.com/@marudhupandiyang/pragmatism-beats-perfection-2d6996561b01?source=rss-ab0822e36a17------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d6996561b01</guid>
            <category><![CDATA[perfectionism]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[pragmatic-programming]]></category>
            <dc:creator><![CDATA[Marudhu Pandiyan G]]></dc:creator>
            <pubDate>Mon, 17 Aug 2026 05:15:05 GMT</pubDate>
            <atom:updated>2026-08-17T05:15:05.321Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*DRMcWUZdFL7aaa0OsNaJYQ.jpeg" /><figcaption>Photo from unsplash by <a href="https://unsplash.com/@mikael_k">mikael_k</a></figcaption></figure><h3>Code That Survives: Why Pragmatism Beats Perfection in Software Engineering</h3><p>There is a common misconception among developers that mastery of a language — memorizing every syntactic quirk, adopting the newest framework, or mastering complex abstractions — is what separates great engineers from average ones.</p><p>It isn’t.</p><p>Great engineers aren’t defined by their reliance on clean code principles, immaculate folder structures, paradigm debates, or whether they pick a cutting-edge language over a boring one. <strong>Great engineers are defined by code that survives.</strong></p><h3>The Trap of Architectural Elegance</h3><p>In software development, it is easy to confuse mechanical sophistication with real-world impact. We spend days fine-tuning folder hierarchies, arguing over monoliths versus microservices, and building intricate chains of inheritance and interfaces.</p><p>Yet, your end users will never inspect your abstraction layers.</p><blockquote>“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.”</blockquote><blockquote><em>— </em><strong><em>Antoine de Saint-Exupéry</em></strong><em>, </em>Wind, Sand and Stars</blockquote><p>When abstractions are added prematurely to demonstrate “good design,” they often introduce unnecessary rigidity. Code that is over-engineered to handle theoretical future scenarios frequently becomes unmaintainable when real-world requirements shift.</p><h3>Business Value Over Technical Craftsmanship</h3><p>A business does not survive because its codebase adheres to every textbook design pattern. It survives because it fulfills a genuine human need, solves a critical problem, and stays adaptable.</p><p>The primary mandate of an engineer is to deliver working solutions within the constraints of the present moment:</p><ul><li><strong>Fulfill the purpose:</strong> Solve the concrete problem in front of you today.</li><li><strong>Serve the business:</strong> Deliver reliable functionality before optimizing for hypothetical scale.</li><li><strong>Choose pragmatism:</strong> A boring, battle-tested stack that delivers value quickly beats a cutting-edge language that adds operational friction.</li></ul><blockquote>“The most important property of any feature is that it works. If it doesn’t work, it doesn’t matter how fast it doesn’t work.”</blockquote><blockquote><em>— </em><strong><em>Rich Hickey</em></strong><em>, Creator of Clojure (</em>Simple Made Easy<em>)</em></blockquote><h3>Building for Today, Making Way for Tomorrow</h3><p>Pragmatism means solving today’s problem, but engineering maturity means ensuring today’s solution doesn’t block tomorrow’s progress.</p><p>Code that survives strikes a deliberate balance: it solves the immediate business need while leaving clear pathways for future evolution.</p><ul><li><strong>Co-exist before expanding:</strong> Ensure new features integrate smoothly with existing systems without introducing disjointed patterns.</li><li><strong>Make room for evolution:</strong> If future features are anticipated, structure code boundaries so tomorrow’s additions don’t force a ground-up rewrite.</li><li><strong>Avoid premature generalization:</strong> Solve the concrete problem first. Abstract only when real patterns emerge.</li></ul><blockquote>“Premature optimization is the root of all evil (or at least most of it) in programming.”</blockquote><blockquote><em>— </em><strong><em>Donald Knuth</em></strong><em>, </em>The Art of Computer Programming</blockquote><h3>Make Survival a Habit</h3><p>Building software that lasts requires a mindset shift from <em>writing code</em> to <em>delivering outcomes</em>.</p><p>Focus on understanding the domain, prioritize clear and maintainable code over clever tricks, and design systems that accommodate change. When you build with the intent to solve real needs today while keeping the door open for tomorrow, your code — and your product — will survive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d6996561b01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ghostty Configurator]]></title>
            <link>https://medium.com/@marudhupandiyang/ghostty-configurator-dfda0fdd4b8e?source=rss-ab0822e36a17------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfda0fdd4b8e</guid>
            <category><![CDATA[ghostty]]></category>
            <category><![CDATA[productivity-tools]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Marudhu Pandiyan G]]></dc:creator>
            <pubDate>Sun, 16 Aug 2026 06:53:48 GMT</pubDate>
            <atom:updated>2026-08-16T09:18:38.917Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7YvDDG9z60ucpzc1vKL9A.png" /><figcaption>Ghostty Configuration (Gemini Generated)</figcaption></figure><p>If you’ve been hanging out in developer circles lately, you’ve probably heard everyone raving about <strong>Ghostty</strong>. Built by Mitchell Hashimoto and a community of rockstar contributors, it’s a GPU-accelerated terminal emulator that’s crazy fast, renders crisp text, and is super easy on the eyes.</p><p>However, if you’ve actually sat down to configure it, you know the drill. Right now, Ghostty relies completely on a plain text configuration file. While power users love CLI configs, hunting down syntax rules, memorizing exact key names, and fixing formatting errors can quickly feel like a headache.</p><p>That’s exactly why <strong>Ghostty Configurator </strong>is here.</p><h3>Why this Tool</h3><blockquote><em>“As developers, we love minimalist tools, but we shouldn’t have to spend half our morning debugging a configuration syntax just to change a theme or tweak padding”</em></blockquote><p>While Ghostty’s official roadmap includes a native settings GUI in future releases, this clean, browser-based solution <em>today </em>helps people to configure without much hassle. The idea was simple: build a visual, VSCode-style settings dashboard where developers can tweak keybindings, themes, fonts, and window options visually, and get a perfectly formatted config file ready to drop into their system.</p><h3>Mastering Ghostty CLI: Commands You Need to Know</h3><p>Before jumping into the visual configurator, few essential terminal commands and shortcuts every Ghostty user should have in their back pocket:</p><h3>1. How to List Available Settings, Themes &amp; Fonts</h3><p>Instead of guessing what themes or font family names are supported on your system, Ghostty comes with built-in commands (+list-* syntax) to inspect your environment directly from your shell:</p><p>Bash</p><pre># List all built-in color themes available in Ghostty<br>ghostty +list-themes</pre><pre># List all fixed-width fonts detected on your machine<br>ghostty +list-fonts</pre><pre># List all current keybindings active in your terminal<br>ghostty +list-keybinds</pre><pre># View your full active/effective configuration<br>ghostty +show-config</pre><h3>2. How to Configure &amp; Paste Your Settings</h3><p>Ghostty reads its settings from a central configuration file depending on your operating system:</p><ul><li><strong>Linux / XDG Standard:</strong> ~/.config/ghostty/config (or config.ghostty)</li><li><strong>macOS Standard:</strong> ~/Library/Application Support/com.mitchellh.ghostty/config</li></ul><h4>Quick Step-by-Step Setup:</h4><ol><li>Open your terminal and create the directory if it doesn’t exist yet:</li></ol><pre>mkdir -p ~/.config/ghostty</pre><p>Open or create the config file using your preferred editor:</p><pre>nano ~/.config/ghostty/config</pre><p>Copy your generated settings from the <strong>Ghostty Configurator</strong> dashboard and paste them into this file.</p><p>Save and exit (Ctrl + O, Enter, Ctrl + X in nano).</p><h3>3. How to Reload the Configuration</h3><p>The best part about Ghostty is that you don’t always need to restart your terminal process to see changes in action! You can reload your configuration on the fly using default keybindings:</p><ul><li><strong>macOS:</strong> Press Cmd + Shift + ,</li><li><strong>Linux:</strong> Press Ctrl + Shift + ,</li></ul><p><em>Alternatively, on macOS, you can simply click </em><strong><em>Ghostty</em></strong><em> in the menu bar and select </em><strong><em>Reload Configuration</em></strong><em>.</em></p><h3>Enter the Ghostty Configurator (GUI Mode)</h3><p>If you’d rather skip the text editor altogether, This web tool gives you a visual UI for the entire workflow:</p><ul><li><strong>Grouped Controls:</strong> Options are neatly categorized by typography, graphics, window styling, cursor, and keybindings.</li><li><strong>Import Existing Setup:</strong> Have a config file already? Just upload your file into the tool, edit your settings visually via toggles and drop-downs, and preview changes.</li><li><strong>One-Click Export:</strong> Hit export, copy the generated output, paste it into your config file, hit Cmd+Shift+, / Ctrl+Shift+,, and you’re done!</li></ul><h3>Give It a Spin!</h3><p>This tool to save developers time and make switching to Ghostty completely hassle-free. Whether you’re fine-tuning your Neovim workflow or setting up a fresh machine, give the tool a shot!</p><ul><li><strong>Try the Ghostty Configurator:</strong> <a href="https://www.marudhupandiyang.in/ghostty">marudhupandiyang.in/ghostty</a></li><li><strong>Explore Marudhu’s Other Tools &amp; Blogs:</strong> <a href="https://www.marudhupandiyang.in/">marudhupandiyang.in</a></li></ul><p><em>What does your terminal workflow look like? Have you migrated over to Ghostty yet? Drop your thoughts, questions, or favorite setups in the comments below!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfda0fdd4b8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Node.js Modules: An Introduction to the “fs” Module]]></title>
            <link>https://medium.com/@marudhupandiyang/node-js-modules-an-introduction-to-the-fs-module-bdb7b7b1dca3?source=rss-ab0822e36a17------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdb7b7b1dca3</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Marudhu Pandiyan G]]></dc:creator>
            <pubDate>Thu, 09 Feb 2023 16:17:49 GMT</pubDate>
            <atom:updated>2023-02-09T16:17:49.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1To8X0xHdMibfg-M" /><figcaption>Photo by <a href="https://unsplash.com/@benjaminlehman?utm_source=medium&amp;utm_medium=referral">benjamin lehman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Node.js is a powerful platform for building server-side applications, and its modular architecture is a significant part of its appeal. With over 100,000 modules available through its package manager, npm, developers have a vast array of tools at their disposal to solve any problem they might encounter. In this article, we will explore one of the built-in modules in Node.js, the “fs” module, and see how it can be used to perform file system operations in Node.js.</p><p>The “fs” module, which stands for “file system,” provides a set of APIs for reading, writing, and manipulating files and directories. It allows developers to perform basic file system operations, such as reading and writing to files, renaming files, and creating and deleting directories.</p><p>One of the most commonly used functions in the “fs” module is “fs.readFile.” This function reads the contents of a file and returns it as a Buffer object, which can then be converted to a string or other data type as needed. Here is an example of how to use “fs.readFile”:</p><pre>const fs = require(&#39;fs&#39;);<br>fs.readFile(&#39;file.txt&#39;, &#39;utf8&#39;, (err, data) =&gt; {<br>  if (err) {<br>    console.error(err);<br>    return;<br>  }<br>  console.log(data);<br>});</pre><p>Another useful function in the “fs” module is “fs.writeFile.” This function writes data to a file and replaces the file’s existing content, or creates a new file if it does not exist. Here is an example of how to use “fs.writeFile”:</p><pre>const fs = require(&#39;fs&#39;);<br>const data = &#39;Hello, World!&#39;;<br><br>fs.writeFile(&#39;file.txt&#39;, data, (err) =&gt; {<br>  if (err) {<br>    console.error(err);<br>    return;<br>  }<br>  console.log(&#39;Data written to file&#39;);<br>});</pre><p>In addition to reading and writing files, the “fs” module also provides APIs for working with file statistics, such as checking if a file exists, determining the size of a file, and more. The “fs” module is an essential tool for any Node.js developer, and its versatility makes it a go-to solution for a wide range of file system tasks.</p><p>In conclusion, the “fs” module is a built-in module in Node.js that provides a simple and powerful set of APIs for working with the file system. Whether you need to read and write files, manipulate directories, or perform other file system operations, the “fs” module is a great place to start.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdb7b7b1dca3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript `Console` — Demystified]]></title>
            <link>https://medium.com/@marudhupandiyang/javascript-console-demystified-cef601632cce?source=rss-ab0822e36a17------2</link>
            <guid isPermaLink="false">https://medium.com/p/cef601632cce</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Marudhu Pandiyan G]]></dc:creator>
            <pubDate>Fri, 03 Feb 2023 13:02:43 GMT</pubDate>
            <atom:updated>2023-02-03T13:02:43.638Z</atom:updated>
            <content:encoded><![CDATA[<h3>Javascript `Console` — Demystified</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ep0LfAnLa41wnoY-" /><figcaption>Photo by <a href="https://unsplash.com/pt-br/@ilyapavlov?utm_source=medium&amp;utm_medium=referral">Ilya Pavlov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The console object in Node.js is a built-in global object that provides various methods for logging information and debugging purposes. It is commonly used to print out messages and data to the console during the development process and can be a useful tool for debugging code.</p><p>Here are some of the most commonly used methods of the console object in Node.js:</p><ol><li>console.log - This method is used to log messages to the console. You can pass any type of data to it, including strings, numbers, arrays, and objects.</li><li>console.error - This method is used to log error messages to the console. It works similarly to console.log but with a different color and formatting to indicate that it&#39;s an error.</li><li>console.warn - This method is used to log warning messages to the console. It works similarly to console.error but with a different color and formatting to indicate that it&#39;s a warning.</li><li>console.info - This method is used to log informational messages to the console. It works similarly to console.log but with a different color and formatting to indicate that it&#39;s information.</li><li>console.dir - This method is used to log an inspectable representation of an object to the console. It can be useful for logging objects, arrays, or other complex data structures.</li><li>console.time and console.timeEnd - These methods are used to measure the amount of time it takes for a specific operation to complete. You can use console.time to start the timer and console.timeEnd to stop the timer and log the elapsed time to the console.</li></ol><p>In addition to these methods, the console object also provides several other methods for more advanced logging and debugging, such as console.trace, console.assert, and console.count.</p><p>To use the console object, simply call one of its methods in your code and pass any data that you want to log to the console. For example:</p><pre>console.log(&quot;Hello, World!&quot;);<br>console.error(&quot;An error occurred&quot;);<br>console.warn(&quot;This is a warning&quot;);<br>console.info(&quot;This is some information&quot;);</pre><p>In conclusion, the console object in Node.js is a powerful tool for logging information and debugging code. It provides a variety of methods for logging different types of messages to the console, making it an essential tool for any Node.js developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cef601632cce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing Cleaner Code: A Guide to Better, More Efficient Code]]></title>
            <link>https://medium.com/@marudhupandiyang/writing-cleaner-code-a-guide-to-better-more-efficient-code-5fdbd2a6b1d0?source=rss-ab0822e36a17------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fdbd2a6b1d0</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Marudhu Pandiyan G]]></dc:creator>
            <pubDate>Fri, 03 Feb 2023 06:31:08 GMT</pubDate>
            <atom:updated>2023-02-03T06:31:08.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vtl-3k38ozi7U_WM" /><figcaption>Photo by <a href="https://unsplash.com/@joshuaryanphoto?utm_source=medium&amp;utm_medium=referral">Joshua Reddekopp</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Writing clean, efficient code is a critical skill for any software developer. It not only makes your code easier to read and understand, but it also makes it more reliable and easier to maintain over time. Here are some tips to help you write cleaner, more readable code.</p><ol><li><strong>Adhere to a consistent coding style</strong>. Having a consistent coding style helps make your code easier to read and understand. Choose a style guide and stick to it, whether it’s the one recommended by your company or a widely-used style guide like PEP 8 for Python or Google’s Java Style Guide.</li><li><strong>Use meaningful variable and function names. </strong>Variable and function names should clearly describe what they represent. Avoid using abbreviations and single letters, as these can be difficult to understand and make your code less readable.</li><li><strong>Write comments.</strong> Comments are an important tool for explaining the purpose and intent of your code. Use comments to explain complex logic, clarify assumptions, and provide context for other developers.</li><li><strong>Keep functions small and focused. </strong>Functions should have a single, well-defined purpose and be small enough to fit on a single screen. This makes it easier to understand and maintain the code. If a function becomes too large, consider breaking it down into smaller, more focused functions.</li><li><strong>Use descriptive error messages.</strong> Error messages should clearly describe what went wrong and provide context for how to resolve the issue. Avoid using generic error messages like “an error occurred.” Instead, use specific error messages that provide actionable information for fixing the problem.</li><li><strong>Avoid repeating code.</strong> Duplicate code can make it difficult to maintain your codebase and introduce bugs. Instead, use functions and classes to encapsulate common logic, and use inheritance to reuse code where appropriate.</li><li><strong>Write tests. </strong>Tests are an important tool for ensuring that your code works as intended and for catching bugs early in the development process. Write tests for your code, and make sure to test edge cases and common use cases.</li><li><strong>Refactor code when necessary.</strong> As your code evolves and new requirements emerge, it’s important to periodically refactor your code to keep it clean, efficient, and maintainable. Refactoring can involve restructuring code, extracting functions, or updating function signatures.</li></ol><p>In conclusion, writing clean, efficient code is a critical skill for software developers. By following these best practices, you can make your code easier to read, understand, and maintain over time. Remember to use meaningful names, write comments, keep functions small, use descriptive error messages, avoid repeating code, write tests, and refactor code when necessary. Happy coding! 🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fdbd2a6b1d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Power of Habit: How Three Common Habits Can Sabotage Your Life]]></title>
            <link>https://medium.com/@marudhupandiyang/the-power-of-habit-how-three-common-habits-can-sabotage-your-life-59cbdf27fc6?source=rss-ab0822e36a17------2</link>
            <guid isPermaLink="false">https://medium.com/p/59cbdf27fc6</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[self]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Marudhu Pandiyan G]]></dc:creator>
            <pubDate>Fri, 03 Feb 2023 06:22:30 GMT</pubDate>
            <atom:updated>2023-02-03T06:22:30.379Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KNd3earyjWX17Woy" /><figcaption>Photo by <a href="https://unsplash.com/@contentpixie?utm_source=medium&amp;utm_medium=referral">Content Pixie</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Habits are a powerful force in our lives. They shape our daily routines and ultimately determine the quality of our lives. However, not all habits are positive and some can actually hold us back from achieving our goals and living our best life. Here are three common habits that can sabotage your life:</p><h3>Procrastination</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-qyiP5mvDCCL9Y3Z" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Procrastination is a habit that plagues many of us. It is the tendency to delay important tasks and put them off for later. This habit can lead to increased stress, reduced productivity, and missed opportunities. The longer we wait to start a task, the harder it becomes to get motivated to start, leading to a vicious cycle of procrastination. To break this habit, set achievable goals, prioritize your tasks, and create a schedule that holds you accountable.</p><h3>Negative Self-Talk</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dTyLtQcKl28mhQEp" /><figcaption>Photo by <a href="https://unsplash.com/@srz?utm_source=medium&amp;utm_medium=referral">sydney Rae</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Negative self-talk is a habit of constantly criticizing yourself and having negative thoughts about your abilities and self-worth. This habit can lead to low self-esteem and depression. To break this habit, focus on self-compassion and practice positive self-talk. Surround yourself with positive influences, and seek support from friends and family.</p><h3>Comparison to Others</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qu-Nmp--ale5HDYz" /><figcaption>Photo by <a href="https://unsplash.com/@charlesdeluvio?utm_source=medium&amp;utm_medium=referral">charlesdeluvio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Comparison to others is a habit of constantly comparing your life and achievements to others. This habit can lead to feelings of inadequacy and dissatisfaction with your own life. It can also foster unhealthy competition and resentment. To break this habit, focus on your own journey and celebrate your own accomplishments. Practice gratitude and be thankful for what you have.</p><p>In conclusion, these three common habits can have a major impact on our lives and hold us back from reaching our full potential. By breaking these habits and replacing them with positive ones, we can improve our lives and achieve our goals. Remember, habits are powerful, but they are also malleable. With practice and determination, we can create new habits that serve us and lead to a better life.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59cbdf27fc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get Started with Sequelize]]></title>
            <link>https://medium.com/@marudhupandiyang/get-started-with-sequelize-2b44ae1ca1cb?source=rss-ab0822e36a17------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b44ae1ca1cb</guid>
            <dc:creator><![CDATA[Marudhu Pandiyan G]]></dc:creator>
            <pubDate>Mon, 30 Jan 2023 09:32:22 GMT</pubDate>
            <atom:updated>2023-01-30T09:32:22.926Z</atom:updated>
            <content:encoded><![CDATA[<p>Get Started with Sequelize</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fXZqbYbkBBhd_81-" /><figcaption>Photo by <a href="https://unsplash.com/@benjaminlehman?utm_source=medium&amp;utm_medium=referral">benjamin lehman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Sequelize is a promise-based Node.js ORM for PostgreSQL, MySQL, MariaDB, SQLite and Microsoft SQL Server. It supports the dialects PostgreSQL, MySQL, SQLite, and MSSQL and features solid transaction support, relations, eager and lazy loading, read replication, and more. It also offers a powerful query API to handle complex filtering and sorting scenarios.</p><p>Here is a comprehensive Sequelize cheat-sheet:</p><ol><li>Connecting to a database:</li></ol><pre>const sequelize = new Sequelize(&lt;database&gt;, &lt;username&gt;, &lt;password&gt;, {<br>  host: &lt;host&gt;,<br>  dialect: &lt;dialect&gt;,<br>  pool: {<br>    max: 5,<br>    min: 0,<br>    acquire: 30000,<br>    idle: 10000<br>  }<br>});</pre><p>2. Defining a model:</p><pre>const User = sequelize.define(&#39;User&#39;, {<br>  username: {<br>    type: Sequelize.STRING,<br>    unique: true,<br>    allowNull: false<br>  },<br>  password: {<br>    type: Sequelize.STRING,<br>    allowNull: false<br>  }<br>});</pre><p>3. Syncing the model with the database:</p><pre>User.sync({ force: true }).then(() =&gt; {<br>  console.log(&#39;User table created&#39;);<br>});</pre><p>4. Creating a record:</p><pre>User.create({<br>  username: &#39;john&#39;,<br>  password: &#39;doe&#39;<br>});</pre><p>5. Finding records:</p><pre>User.findAll().then(users =&gt; {<br>  console.log(users);<br>});</pre><p>6. Updating a record:</p><pre>User.update({ password: &#39;newPassword&#39; }, { where: { username: &#39;john&#39; } });</pre><p>7. Deleting a record:</p><pre>User.destroy({ where: { username: &#39;john&#39; } });</pre><p>8. Adding associations between models:</p><pre>const Task = sequelize.define(&#39;Task&#39;, {<br>  title: Sequelize.STRING<br>});<br><br>User.hasMany(Task);<br>Task.belongsTo(User);</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b44ae1ca1cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Techniques to debug Node.js application]]></title>
            <link>https://medium.com/@marudhupandiyang/techniques-to-debug-node-js-application-dbac39a029a0?source=rss-ab0822e36a17------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbac39a029a0</guid>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[debugging-javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Marudhu Pandiyan G]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 06:37:39 GMT</pubDate>
            <atom:updated>2023-01-25T06:37:39.198Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zk8Ewape0ELHcoNB" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Debugging a Node.js application can be challenging, especially when the application becomes complex. However, there are several techniques that can help you identify and fix issues in your code.</p><ol><li>Console.log: One of the simplest and most common techniques for debugging is to use the console.log() function to print out the values of variables or the results of expressions. This can be useful for quickly identifying the source of an issue and for tracing the flow of execution through your code.</li><li>Node.js Inspector: Node.js Inspector is a built-in debugging tool that can be used to debug both local and remote Node.js applications. It allows you to set breakpoints, step through code, and inspect variables, among other things. To use it, you need to start your application with the — inspect flag.</li><li>npm Debug: npm debug is another built-in debugging tool that can be used to debug Node.js applications. It allows you to run your application with the DEBUG environment variable set, which will output debugging information to the console. To use it, you need to start your application with the command “npm run debug”.</li><li>Visual Studio Code: Visual Studio Code is a popular code editor that includes built-in debugging support for Node.js. It allows you to set breakpoints, step through code, and inspect variables, among other things. It also supports the Node.js Inspector, which can be used to debug Node.js applications running on a remote server.</li><li>Third-party modules: There are also several third-party modules available that can be used to debug Node.js applications. Some popular ones include:</li></ol><ul><li>Node-inspector: which allows you to debug your Node.js application in a web browser.</li><li>Winston: which allows you to log messages and debug information to the console or to a file.</li><li>Debug: which is a small debugging utility for Node.js.</li></ul><p>6. Error Handling: In Node.js, errors are typically handled using the try-catch construct. In order to detect errors early, it is important to wrap the potential error-prone code in a try-catch block. This will help you to identify the error and fix it before it causes more problems.</p><p>In conclusion, debugging a Node.js application can be challenging, but there are several techniques that can help you identify and fix issues in your code. The most common technique is to use console.log() function, but there are also many built-in and third-party tools that can help you with debugging Node.js application like Node.js Inspector, npm Debug, Visual Studio Code, Node-inspector, Winston, Debug, and Error Handling.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbac39a029a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How different is Deno from Node.js]]></title>
            <link>https://medium.com/@marudhupandiyang/how-different-is-deno-from-node-js-36eb62e02908?source=rss-ab0822e36a17------2</link>
            <guid isPermaLink="false">https://medium.com/p/36eb62e02908</guid>
            <category><![CDATA[denojs]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[node]]></category>
            <dc:creator><![CDATA[Marudhu Pandiyan G]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 04:06:21 GMT</pubDate>
            <atom:updated>2023-01-25T04:06:21.865Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HmvutZg4FemyliiD" /><figcaption>Photo by <a href="https://unsplash.com/@worldsbetweenlines?utm_source=medium&amp;utm_medium=referral">Patrick Hendry</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Deno and Node.js are both JavaScript runtimes that allow developers to run JavaScript code on the server-side. However, there are several key differences between the two:</p><ul><li>Deno was created by Ryan Dahl, the original creator of Node.js, and it aims to address some of the design decisions he regrets in Node.js.</li><li>Deno does not use a package manager like npm. Instead, it uses a built-in module system that allows developers to import modules directly from URLs.</li><li>Deno has built-in support for TypeScript, which is an optional feature in Node.js.</li><li>Deno does not have a dedicated file system module, instead, it uses the JavaScript built-in functions to access the file system.</li><li>Deno runs on a single thread, and handle concurrency with async/await and the concept of “operators” to handle low-level tasks like reading and writing files.</li><li>Deno has a built-in testing framework and a built-in formatter.</li><li>Deno is focused on security, it runs scripts with a set of permissions that can be set by the developer, and it doesn’t have any built-in modules that can be used to execute system commands.</li></ul><p>In terms of performance, Deno and Node.js are similar in many ways, but there are some differences in how they handle certain tasks. For example, Deno’s built-in HTTP server is faster than Node.js’s built-in HTTP server in some benchmarks, but Node.js’s built-in file system operations are generally faster than Deno’s.</p><p>In summary, Deno and Node.js are similar in that they both allow developers to run JavaScript code on the server-side, but they have several key differences in terms of their design, module system, and built-in features. Deno is relatively new and is still gaining traction, but it has some unique features and design decisions that set it apart from Node.js.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36eb62e02908" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bullmq — Message Queue in Node.js]]></title>
            <link>https://medium.com/@marudhupandiyang/bullmq-message-queue-in-node-js-bca24bac7f8a?source=rss-ab0822e36a17------2</link>
            <guid isPermaLink="false">https://medium.com/p/bca24bac7f8a</guid>
            <category><![CDATA[message-queue]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[bullmq]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Marudhu Pandiyan G]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 02:30:33 GMT</pubDate>
            <atom:updated>2023-01-25T02:30:33.857Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bullmq — Message Queue in Node.js</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h3J4g8NJwRwD6q3v" /><figcaption>Photo by <a href="https://unsplash.com/@2_bull_photography?utm_source=medium&amp;utm_medium=referral">2 Bull Photography</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The BullMQ package is a powerful tool for managing message queues in Node.js. It is built on top of the popular Bull library and provides additional features and functionality for managing large-scale message queues. Here, we will explore the basics of using the BullMQ package and discuss some best practices for working with message queues in a Node.js environment.</p><p>The first step in using the BullMQ package is to install it in your Node.js project. This can be done using the npm package manager by running the following command:</p><pre>npm install bullmq</pre><p>Once the package is installed, you can import it into your Node.js code using the following line of code:</p><pre>const BullMQ = require(&#39;bullmq&#39;);</pre><p>To create a new message queue, you can use the BullMQ.Queue constructor. For example:</p><pre>const queue = new BullMQ.Queue(&#39;myQueue&#39;);</pre><p>This will create a new message queue with the name “myQueue”. You can add messages to the queue using the add method. For example:</p><pre>queue.add({data: &#39;Hello, World!&#39;});</pre><p>You can also process messages in the queue using a consumer. A consumer is a function that is invoked for each message in the queue. For example:</p><pre>queue.process(async (job) =&gt; {<br>    console.log(job.data);<br>});</pre><p>This consumer function will log the data of each message in the queue to the console.</p><p>It’s important to note that when creating a queue, you have to options to set the concurrency, which means how many jobs can be processed at once, and the delay, which means how much time should pass before retrying the job if it fails.</p><pre>const queue = new BullMQ.Queue(&#39;myQueue&#39;, {<br>  concurrency: 10,<br>  delay: 5000<br>});</pre><p>By default, BullMQ uses Redis as a message queue backend. This allows you to scale your message queue across multiple machines, and it also provides persistence so that your messages are not lost if your Node.js process crashes.</p><p>In summary, the BullMQ package is a powerful tool for managing message queues in Node.js. It provides a simple and easy-to-use API for creating and managing message queues, and it also supports advanced features such as concurrency and delay. To use BullMQ, you need to install the package, import it into your Node.js code, and then create a new message queue using the BullMQ.Queue constructor. You can add messages to the queue using the add method, and you can process messages in the queue using a consumer function. With BullMQ, you can create efficient message queues with high scalability and reliability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bca24bac7f8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>