<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: hiba trifi</title>
    <description>The latest articles on DEV Community by hiba trifi (@hibadev).</description>
    <link>https://dev.to/hibadev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3013992%2Ff27a2b6e-6dca-45bf-8d82-3695ec37ec06.png</url>
      <title>DEV Community: hiba trifi</title>
      <link>https://dev.to/hibadev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hibadev"/>
    <language>en</language>
    <item>
      <title>🤔 What's the Most Overrated Coding Advice You've Ever Heard?</title>
      <dc:creator>hiba trifi</dc:creator>
      <pubDate>Thu, 03 Apr 2025 23:52:03 +0000</pubDate>
      <link>https://dev.to/hibadev/whats-the-most-overrated-coding-advice-youve-ever-heard-26cm</link>
      <guid>https://dev.to/hibadev/whats-the-most-overrated-coding-advice-youve-ever-heard-26cm</guid>
      <description>&lt;p&gt;We've all heard those coding mantras that get repeated like gospel:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;"Always DRY your code!"&lt;br&gt;
"Never reinvent the wheel!"&lt;br&gt;
"Full-stack devs should know everything!"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;But let’s be real: not all advice is one-size-fits-all. Sometimes, the "best practice" turns into a rigid rule that slows you down more than it helps.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;🚨 Example:&lt;br&gt;
Ever tried following "Always DRY (Don't Repeat Yourself)" to the letter, only to realize it made your code an unreadable mess of abstractions?&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Overcomplicated DRY attempt:
const createMessage = (type) =&amp;gt; `The ${type} process has ${type === "save" ? "been saved" : "failed"}.`;

console.log(createMessage("save"));
console.log(createMessage("delete"));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Wouldn't a simpler, more readable approach be better in some cases? 🤷‍♂️&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log("The save process has been saved.");
console.log("The delete process has failed.");

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;🔥 Your Turn:&lt;br&gt;
Did it actually help, or did you find a better way?&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>webdev</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
