<?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: Shadhin Khan</title>
    <description>The latest articles on DEV Community by Shadhin Khan (@shadhin282).</description>
    <link>https://dev.to/shadhin282</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2274456%2F85cddef6-67df-444a-b6ae-30fa0ff2e163.jpg</url>
      <title>DEV Community: Shadhin Khan</title>
      <link>https://dev.to/shadhin282</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shadhin282"/>
    <language>en</language>
    <item>
      <title>Problem Solving with JavaScript</title>
      <dc:creator>Shadhin Khan</dc:creator>
      <pubDate>Tue, 09 Jun 2026 07:35:06 +0000</pubDate>
      <link>https://dev.to/shadhin282/problem-solving-with-javascript-3oae</link>
      <guid>https://dev.to/shadhin282/problem-solving-with-javascript-3oae</guid>
      <description>&lt;p&gt;Ever been asked to swap two variables in an interview without creating a temporary third variable?&lt;br&gt;
It's a classic technical screening question that separates textbook coders from engineers who understand memory, algorithmic tricks, and modern language features.&lt;br&gt;
Today, let's break down two elegant approaches to solving this: the Classic Arithmetic Method and the Modern ES6 Destructuring Assignment.&lt;br&gt;
But we aren't just writing basic scripts—we are writing production-ready, defensive code. Here is the professional breakdown:&lt;br&gt;
🔍 The Solution Breakdown&lt;br&gt;
1️⃣ Step 1 &amp;amp; 2: Define and Parameterize&lt;br&gt;
We declare two distinct, focused functions: swapValue (arithmetic approach) and swapByDestructuring (ES6 approach), accepting two arguments (a, b).&lt;br&gt;
2️⃣ Step 3: Defensive Coding (Input Validation) 🛡️&lt;br&gt;
Junior developers jump straight to the math. Senior developers secure the code first. Before performing any operations, we validate the inputs to prevent runtime exceptions and unexpected bugs:&lt;br&gt;
For arithmetic swaps, both inputs must be valid numbers.&lt;br&gt;
For destructuring, we ensure both values are defined.&lt;br&gt;
3️⃣ Step 4: The Core Logic 🧠&lt;br&gt;
The Arithmetic Trick: Uses mathematical accumulation and reduction. By summing the values first, we can back-calculate the swapped variables using subtraction:&lt;br&gt;
The ES6 Destructuring Way: Uses JavaScript's native syntax to unpack values from arrays on the fly. It is clean, highly readable, and works for any data type, not just numbers!&lt;br&gt;
Code Implementation below:&lt;br&gt;
💡 Why this distinction matters to Tech Leaders:&lt;br&gt;
The Arithmetic Method demonstrates algorithmic ingenuity and low-level logical problem-solving.&lt;br&gt;
The Destructuring Method demonstrates fluency in modern ECMAScript standards, making codebases cleaner, more declarative, and easier to maintain.&lt;br&gt;
How do you prefer to swap variables in your daily codebases? Drop your thoughts below! 👇&lt;/p&gt;

&lt;h1&gt;
  
  
  JavaScript #ProblemSolving #WebDevelopment #FrontendDevelopment #BackendDevelopment #FullStackDevelopment #CodingChallenge #100DaysOfCode #SoftwareEngineering #Programming #DeveloperJourney See less
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frjkjpn396eut9pbbo6vu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frjkjpn396eut9pbbo6vu.png" alt=" " width="760" height="782"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>🚀 Day 1 of My JavaScript Problem-Solving JourneyAssalamu Alaikum</title>
      <dc:creator>Shadhin Khan</dc:creator>
      <pubDate>Sat, 06 Jun 2026 21:36:36 +0000</pubDate>
      <link>https://dev.to/shadhin282/day-1-of-my-javascript-problem-solving-journeyassalamu-alaikum-4e16</link>
      <guid>https://dev.to/shadhin282/day-1-of-my-javascript-problem-solving-journeyassalamu-alaikum-4e16</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frm7vo6ss11ob9druublj.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frm7vo6ss11ob9druublj.jpeg" alt=" " width="717" height="692"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdeveloper</category>
    </item>
    <item>
      <title>HTML &amp; CSS Integration</title>
      <dc:creator>Shadhin Khan</dc:creator>
      <pubDate>Mon, 14 Jul 2025 21:27:55 +0000</pubDate>
      <link>https://dev.to/shadhin282/html-css-integration-2kjc</link>
      <guid>https://dev.to/shadhin282/html-css-integration-2kjc</guid>
      <description>&lt;p&gt;"As I begin my journey into AI-powered full-stack web development, today I'm excited to share a small step in that path. This project demonstrates how a basic web structure is created using only HTML, and how CSS brings it to life with visual design and styling. It's amazing to see how structure and style come together to shape the web!"&lt;br&gt;
hashtag#HTML&lt;br&gt;
hashtag#CSS&lt;br&gt;
hashtag#Web_Design&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4oizvnr96cnx3m7j3zds.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4oizvnr96cnx3m7j3zds.png" alt=" " width="391" height="855"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd07xebtmvdkwag07xjqv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd07xebtmvdkwag07xjqv.png" alt=" " width="800" height="364"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0u1mph1ilvxh4a6v4y70.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0u1mph1ilvxh4a6v4y70.png" alt=" " width="800" height="361"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1t77uo9efhfpla21l6wu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1t77uo9efhfpla21l6wu.png" alt=" " width="800" height="366"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fli94hvaswn8rze2e88is.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fli94hvaswn8rze2e88is.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzw81unwtbgb2w9d6onm4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzw81unwtbgb2w9d6onm4.png" alt=" " width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
