<?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 Samarth Bhosale on Medium]]></title>
        <description><![CDATA[Stories by Samarth Bhosale on Medium]]></description>
        <link>https://medium.com/@samarthbhosale?source=rss-f4a1a019a2e8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*N7Ln6nESVeOKqRnSZrn82Q.png</url>
            <title>Stories by Samarth Bhosale on Medium</title>
            <link>https://medium.com/@samarthbhosale?source=rss-f4a1a019a2e8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:51:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samarthbhosale/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[JavaScript Event Loop Explained: Call Stack, Microtasks & Macrotasks]]></title>
            <link>https://medium.com/@samarthbhosale/javascript-event-loop-explained-call-stack-microtasks-macrotasks-f6ecd88d8dc1?source=rss-f4a1a019a2e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6ecd88d8dc1</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Samarth Bhosale]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 05:27:02 GMT</pubDate>
            <atom:updated>2026-12-03T05:27:02.931Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Understanding how JavaScript executes synchronous code, handles asynchronous operations, and decides what runs next.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lvBlVvnC_IfthLFW5mG8g.png" /></figure><p>Have you ever wondered why a setTimeout callback sometimes runs after a Promise, even when the timer was written first?</p><p>Or why JavaScript can handle asynchronous operations without blocking the entire application while waiting for them to finish?</p><p>To understand these behaviours, it’s useful to learn about the JavaScript Event Loop.</p><p>The Event Loop helps coordinate synchronous JavaScript execution with queued callbacks and other asynchronous work.</p><p>Let’s understand the main pieces with practical examples.</p><h3>1. JavaScript executes synchronous code first</h3><p>Consider this example:</p><pre>console.log(&quot;First&quot;);</pre><pre>console.log(&quot;Second&quot;);</pre><pre>console.log(&quot;Third&quot;);</pre><p>The output is:</p><pre>First<br>Second<br>Third</pre><p>JavaScript executes these statements in order.</p><p>When a function is called, its execution is handled through the <strong>call stack</strong>.</p><p>The call stack keeps track of the functions currently being executed.</p><p>For example:</p><pre>function greet() {<br>  console.log(&quot;Hello&quot;);<br>}</pre><pre>function start() {<br>  greet();<br>}</pre><pre>start();</pre><p>When start() is called, it enters the call stack. Then greet() is called and added to the stack.</p><p>After greet() finishes, it is removed from the stack, and execution continues in start().</p><p>Once start() finishes, it is removed as well.</p><p>This is how JavaScript keeps track of synchronous function execution.</p><h3>2. What happens with asynchronous operations?</h3><p>Now let’s introduce a timer.</p><pre>console.log(&quot;Start&quot;);</pre><pre>setTimeout(() =&gt; {<br>  console.log(&quot;Timer finished&quot;);<br>}, 1000);</pre><pre>console.log(&quot;End&quot;);</pre><p>The output is:</p><pre>Start<br>End<br>Timer finished</pre><p>Why doesn’t JavaScript wait for the timer before printing &quot;End&quot;?</p><p>Because setTimeout schedules a callback to run later. It doesn&#39;t pause the current synchronous execution.</p><p>In a browser, the timer is handled by the environment outside the JavaScript call stack. When the timer becomes eligible to run, its callback is queued for execution.</p><p>JavaScript continues executing the remaining synchronous code in the meantime.</p><p>This is one of the reasons asynchronous operations are useful in frontend applications.</p><h3>3. Understanding the Event Loop</h3><p>The Event Loop coordinates when queued callbacks can run.</p><p>A simplified way to think about it is:</p><ol><li>JavaScript executes the current synchronous code.</li><li>The call stack becomes empty.</li><li>The runtime processes queued microtasks.</li><li>The Event Loop can select another task to execute.</li><li>After that task completes, microtasks are processed again.</li></ol><p>This is a simplified model. Browsers also have rendering steps and other scheduling details, but it helps explain many common JavaScript examples.</p><h3>4. Microtasks and macrotasks</h3><p>Two important types of queued work are often discussed when learning the Event Loop: microtasks and tasks, commonly called macrotasks.</p><p><strong>Microtasks</strong> include Promise callbacks registered with .then(), .catch(), and .finally(), as well as the continuation after an await.</p><p><strong>Tasks</strong> include callbacks from setTimeout, setInterval, and many browser events.</p><p>Microtasks are generally processed after the current JavaScript execution finishes and before the Event Loop moves on to another task.</p><p>Let’s see this in action.</p><pre>console.log(&quot;Start&quot;);</pre><pre>setTimeout(() =&gt; {<br>  console.log(&quot;Timer&quot;);<br>}, 0);</pre><pre>Promise.resolve().then(() =&gt; {<br>  console.log(&quot;Promise&quot;);<br>});</pre><pre>console.log(&quot;End&quot;);</pre><p>The output is:</p><pre>Start<br>End<br>Promise<br>Timer</pre><p>Let’s walk through it.</p><p>First, &quot;Start&quot; is printed.</p><p>The timer callback is scheduled as a task.</p><p>The Promise callback is scheduled as a microtask.</p><p>Then &quot;End&quot; is printed because synchronous code continues executing.</p><p>Once the current synchronous execution finishes, the microtask queue is processed, so &quot;Promise&quot; appears next.</p><p>After that, the Event Loop can run the timer callback, which prints &quot;Timer&quot;.</p><p>Even though the timer was written before the Promise, the Promise callback runs first because microtasks are processed before the next task.</p><h3>5. What does setTimeout(..., 0) actually mean?</h3><p>You might see code like this:</p><pre>setTimeout(() =&gt; {<br>  console.log(&quot;Later&quot;);<br>}, 0);</pre><p>The 0 doesn&#39;t mean the callback executes immediately.</p><p>It means the timer has no intentional delay beyond its minimum scheduling requirements.</p><p>The callback still needs to wait until the current synchronous code finishes and the runtime gets an opportunity to execute the task.</p><p>For example:</p><pre>setTimeout(() =&gt; {<br>  console.log(&quot;Timer callback&quot;);<br>}, 0);</pre><pre>console.log(&quot;Synchronous code&quot;);</pre><p>The output is:</p><pre>Synchronous code<br>Timer callback</pre><p>The timer callback cannot interrupt the currently executing JavaScript code.</p><h3>6. How async and await fit into the Event Loop</h3><p>The async and await syntax makes working with Promises easier to read.</p><p>Consider this example:</p><pre>async function example() {<br>  console.log(&quot;Inside function&quot;);</pre><pre>  await Promise.resolve();</pre><pre>  console.log(&quot;After await&quot;);<br>}</pre><pre>console.log(&quot;Start&quot;);</pre><pre>example();</pre><pre>console.log(&quot;End&quot;);</pre><p>The output is:</p><pre>Start<br>Inside function<br>End<br>After await</pre><p>Why?</p><p>An async function begins executing synchronously when it is called.</p><p>When it reaches await, the function pauses its remaining execution and schedules its continuation through Promise-based microtask behaviour.</p><p>The surrounding synchronous code continues running.</p><p>After the current synchronous execution completes, the continuation after await runs.</p><p>This is why &quot;End&quot; appears before &quot;After await&quot;.</p><h3>7. Why this matters in frontend development</h3><p>Understanding the Event Loop can help when debugging common frontend situations.</p><p><strong>Promise callbacks</strong></p><p>Knowing when microtasks run helps explain why Promise callbacks execute after synchronous code.</p><p><strong>Timers</strong></p><p>Understanding task scheduling helps explain why a timer doesn’t execute immediately, even with a delay of zero.</p><p><strong>API requests</strong></p><p>When working with fetchthe response is handled asynchronously. The Event Loop helps coordinate the JavaScript callbacks and Promise continuations involved.</p><p><strong>UI responsiveness</strong></p><p>Long-running synchronous JavaScript can block the main thread and delay user interactions, timers, and rendering opportunities.</p><p>This is why expensive computations should be handled carefully in frontend applications.</p><h3>Final thoughts</h3><p>The JavaScript Event Loop is an important part of understanding how asynchronous JavaScript works.</p><p>The call stack handles synchronous function execution, microtasks handle Promise-related callbacks and continuations, and tasks provide a way for scheduled callbacks such as timers and events to run.</p><p>Understanding the order in which these pieces execute makes it easier to reason about JavaScript code and debug unexpected output.</p><p>Instead of memorising execution-order questions, try tracing the call stack and queues step by step.</p><p>Once the underlying model becomes clear, many asynchronous JavaScript behaviours start making much more sense.</p><p><em>I’m continuing to share JavaScript and frontend concepts, practical examples, and lessons I’m learning as I grow as a frontend-focused full-stack developer.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6ecd88d8dc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Closures Explained With Practical Examples]]></title>
            <link>https://medium.com/@samarthbhosale/javascript-closures-explained-with-practical-examples-3f631d5f0d88?source=rss-f4a1a019a2e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f631d5f0d88</guid>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Samarth Bhosale]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 04:36:18 GMT</pubDate>
            <atom:updated>2026-12-02T04:36:18.880Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5pGpRsACAY4LAW80dF-e2Q.png" /></figure><p><em>Understanding closures, lexical scope, and why JavaScript functions can remember variables even after their outer function has finished executing.</em></p><p>Closures are one of those JavaScript concepts that might seem confusing when you first encounter them.</p><p>You might see a function accessing a variable that was defined somewhere else, even after the function that originally created that variable has already finished executing.</p><p>How does that work?</p><p>The answer is closures.</p><p>Closures are an important part of JavaScript and understanding them helps explain how functions, scope, callbacks, and many common programming patterns work.</p><p>Let’s break it down.</p><h3>1. Understanding lexical scope first</h3><p>Before understanding closures, it’s helpful to understand lexical scope.</p><p>Lexical scope means that the accessibility of variables is determined by where functions and blocks are written in the source code.</p><p>Consider this example:</p><pre>const message = &quot;Hello from the outer scope&quot;;</pre><pre>function greet() {<br>  console.log(message);<br>}</pre><pre>greet();</pre><p>The greet() function can access message because the variable is available in its surrounding scope.</p><p>Now let’s introduce another function:</p><pre>function outer() {<br>  const message = &quot;Hello from outer&quot;;</pre><pre>  function inner() {<br>    console.log(message);<br>  }</pre><pre>  inner();<br>}</pre><pre>outer();</pre><p>The inner() function can access the variable message declared inside outer().</p><p>This happens because JavaScript functions can access variables from their surrounding lexical environments.</p><p>But what happens when we return that inner function instead of executing it immediately?</p><p>That’s where closures become interesting.</p><h3>2. What is a closure?</h3><p>A closure is created when a function retains access to variables from its lexical environment, even when that function is executed outside the scope in which it was originally defined.</p><p>Consider this example:</p><pre>function outer() {<br>  const message = &quot;Hello from outer&quot;;</pre><pre>  function inner() {<br>    console.log(message);<br>  }</pre><pre>  return inner;<br>}</pre><pre>const greet = outer();</pre><pre>greet();</pre><p>When outer() executes, it returns the inner function.</p><p>Normally, you might expect the variable message to become inaccessible after outer() finishes executing.</p><p>However, when greet() is called, it still prints:</p><pre>Hello from outer</pre><p>Why?</p><p>Because inner retains access to the lexical environment in which it was created.</p><p>Even though outer() has finished executing, the returned function still has access to the message variable.</p><p>This behaviour is what we call a closure.</p><h3>3. A practical example: creating a counter</h3><p>Closures become easier to understand when you see how they can be used.</p><p>Imagine building a counter where the count should be updated, but the variable itself shouldn’t be directly accessible from outside.</p><pre>function createCounter() {<br>  let count = 0;</pre><pre>  return function () {<br>    count++;<br>    return count;<br>  };<br>}</pre><pre>const counter = createCounter();</pre><pre>console.log(counter()); // 1<br>console.log(counter()); // 2<br>console.log(counter()); // 3</pre><p>Here is what happens:</p><ul><li>createCounter() initializes count to 0.</li><li>It returns an inner function.</li><li>The returned function retains access to count.</li><li>Each time the function is called, count is incremented.</li><li>The updated value is returned.</li></ul><p>The variable count cannot be directly accessed from outside the function.</p><pre>console.log(counter.count); // undefined</pre><p>The inner function can still access and modify it because of the closure.</p><p>This is a useful example of how closures can help maintain private state within a function.</p><h3>4. Closures can maintain independent state</h3><p>Now imagine creating two separate counters.</p><pre>function createCounter() {<br>  let count = 0;</pre><pre>  return function () {<br>    count++;<br>    return count;<br>  };<br>}</pre><pre>const counterA = createCounter();<br>const counterB = createCounter();</pre><pre>console.log(counterA()); // 1<br>console.log(counterA()); // 2</pre><pre>console.log(counterB()); // 1<br>console.log(counterB()); // 2</pre><p>Both counters use the same function definition, but each invocation of createCounter() creates its own lexical environment.</p><p>As a result:</p><ul><li>counterA maintains its own count.</li><li>counterB maintains a separate count.</li></ul><p>They don’t interfere with one another.</p><p>This is one of the interesting things about closures: they allow functions to maintain independent data without exposing that data directly.</p><h3>5. Closures in asynchronous JavaScript</h3><p>Closures are also useful when working with callbacks and asynchronous operations.</p><p>Consider this example:</p><pre>function delayedMessage() {<br>  const message = &quot;This message appears later&quot;;</pre><pre>  setTimeout(() =&gt; {<br>    console.log(message);<br>  }, 1000);<br>}</pre><pre>delayedMessage();</pre><p>The callback passed to setTimeout accesses the message variable.</p><p>Although the callback executes later, it retains access to the variable from its surrounding lexical environment.</p><p>This is another example of closure behaviour.</p><p>Closures are commonly encountered in event handlers, callbacks, asynchronous operations, and other situations where functions are passed around and executed later.</p><h3>6. Where you’ll encounter closures in frontend development</h3><p>Closures aren’t something you’ll only use in isolated JavaScript examples.</p><p>They appear throughout everyday frontend development.</p><p><strong>Event handlers</strong></p><p>Functions handling events can access variables from the scope where they were created.</p><p><strong>Callbacks</strong></p><p>Functions passed to other functions can retain access to their surrounding variables.</p><p><strong>Timers</strong></p><p>Functions passed to setTimeout or setInterval can access variables from their enclosing scope.</p><p><strong>Factory functions</strong></p><p>Functions can create and return other functions that maintain their own data.</p><p><strong>React</strong></p><p>Closures are involved in how functions capture values from the render in which they were created. This becomes particularly important when working with event handlers, effects, and asynchronous callbacks.</p><p>Understanding closures can help explain situations where a callback uses a value from an earlier render rather than a more recent one.</p><h3>Final thoughts</h3><p>Closures are not just a JavaScript interview topic.</p><p>They are a fundamental part of how JavaScript functions work.</p><p>Understanding them helps explain why inner functions can access outer variables, how functions can maintain private state, and why callbacks can continue using variables after the surrounding function has finished executing.</p><p>Once lexical scope and closures start making sense, many JavaScript patterns that initially seem confusing become easier to understand.</p><p>It’s a concept worth revisiting, experimenting with, and practising until it becomes intuitive.</p><p><em>I’m continuing to explore JavaScript and frontend concepts, sharing practical examples and lessons I’m learning as I grow as a frontend-focused full-stack developer.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f631d5f0d88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Props vs State: Understanding How Components Manage Data]]></title>
            <link>https://medium.com/@samarthbhosale/react-props-vs-state-understanding-how-components-manage-data-be6989cba834?source=rss-f4a1a019a2e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/be6989cba834</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Samarth Bhosale]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 04:01:56 GMT</pubDate>
            <atom:updated>2026-11-30T04:01:56.143Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Understanding the difference between props and state, when to use each, and how they shape React applications.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A6_-IANLpLA6LnqaBDYGPg.png" /></figure><p>When working with React, two concepts you’ll encounter almost everywhere are props and state.</p><p>Both are used to work with data inside components, but they serve different purposes.</p><p>Understanding the difference between them is important because it influences how you build components, manage UI updates, and structure your React applications.</p><p>Let’s break them down using practical examples.</p><h3>1. What are props in React?</h3><p>Props, short for properties, allow a component to receive data from another component, typically its parent.</p><p>They make components reusable by allowing the same component to render different content depending on the data it receives.</p><p>For example, imagine building a project card for a portfolio.</p><p>Instead of creating separate markup for every project, you can create one component and pass different information to it.</p><pre>type ProjectCardProps = {<br>  title: string;<br>  description: string;<br>};</pre><pre>function ProjectCard({ title, description }: ProjectCardProps) {<br>  return (<br>    &lt;article&gt;<br>      &lt;h2&gt;{title}&lt;/h2&gt;<br>      &lt;p&gt;{description}&lt;/p&gt;<br>    &lt;/article&gt;<br>  );<br>}</pre><p>You can then use the component with different values:</p><pre>&lt;ProjectCard<br>  title=&quot;Portfolio Website&quot;<br>  description=&quot;A personal portfolio built with Next.js.&quot;<br>/&gt;</pre><pre>&lt;ProjectCard<br>  title=&quot;Dashboard Application&quot;<br>  description=&quot;A dashboard for managing application data.&quot;<br>/&gt;</pre><p>The component remains the same, but the information displayed changes.</p><p>This is one of the advantages of using props: they help create reusable components without duplicating the same implementation.</p><h3>2. Props are read-only</h3><p>A component should not directly modify the props it receives.</p><p>Props represent data supplied by another component. If that data needs to change, the change should generally be handled by the component that owns the data, or by an appropriate state-management mechanism.</p><p>This helps maintain a predictable flow of data through the application.</p><p>When a component receives props, it can use them to render its UI, calculate values, or pass them to other components.</p><p>But it shouldn’t mutate the props themselves.</p><h3>3. What is state in React?</h3><p>State is data that a component manages and that can change over time.</p><p>For example:</p><ul><li>Whether a mobile navigation menu is open</li><li>The current value of an input</li><li>Whether a modal is visible</li><li>The selected tab</li><li>A counter value</li></ul><p>React provides the useState hook to manage state in function components.</p><p>Consider a simple counter:</p><pre>&quot;use client&quot;;</pre><pre>import { useState } from &quot;react&quot;;</pre><pre>function Counter() {<br>  const [count, setCount] = useState(0);</pre><pre>  return (<br>    &lt;div&gt;<br>      &lt;p&gt;Count: {count}&lt;/p&gt;</pre><pre>      &lt;button onClick={() =&gt; setCount(count + 1)}&gt;<br>        Increment<br>      &lt;/button&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>Here, count represents the current state value.</p><p>When the button is clicked, setCount updates the state. React then renders the component again so the UI reflects the updated value.</p><p>State allows a component to respond to user interactions and changes in data.</p><h3>4. The difference between props and state</h3><p>Although both are related to data, they have different responsibilities.</p><p><strong>Props</strong></p><ul><li>Received from a parent component.</li><li>Used to pass data into components.</li><li>Should not be directly mutated.</li><li>Help make components reusable.</li><li>May change when the parent supplies new values.</li></ul><p><strong>State</strong></p><ul><li>Managed by a component or a state owner.</li><li>Used to represent changing data.</li><li>Updated through the appropriate state setter.</li><li>Helps make interfaces interactive.</li><li>Changes when state is updated.</li></ul><p>A simple way to think about it:</p><p><strong>Props tell a component what data it receives. State represents data that React manages and that can change over time.</strong></p><h3>5. Props and state can work together</h3><p>These concepts are not alternatives to one another. They often work together.</p><p>Imagine a parent component managing the visibility of a modal.</p><p>The parent owns the state, while a child component receives the visibility value as a prop.</p><pre>&quot;use client&quot;;</pre><pre>import { useState } from &quot;react&quot;;</pre><pre>function Modal({ isOpen }: { isOpen: boolean }) {<br>  if (!isOpen) return null;</pre><pre>  return (<br>    &lt;div&gt;<br>      &lt;p&gt;Modal is open!&lt;/p&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><pre>function Page() {<br>  const [isOpen, setIsOpen] = useState(false);</pre><pre>  return (<br>    &lt;div&gt;<br>      &lt;button onClick={() =&gt; setIsOpen(true)}&gt;<br>        Open Modal<br>      &lt;/button&gt;</pre><pre>      &lt;Modal isOpen={isOpen} /&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>In this example:</p><ul><li>Page owns the state.</li><li>isOpen is the state variable inside Page.</li><li>Modal receives isOpen through props.</li><li>When the state changes, React updates the UI.</li></ul><p>This pattern is commonly used when multiple components need to work with the same data.</p><p>The parent owns the data, and child components receive the values they need.</p><h3>6. When should you use props or state?</h3><p>Before creating state, it’s worth asking whether the value actually needs to be stored as state.</p><p>If a value can be calculated from existing props or state, it often doesn’t need its own separate state variable.</p><p>For example, if a component receives a list of products and needs to display the number of products, that number can be calculated directly.</p><pre>function ProductList({ products }: { products: string[] }) {<br>  const productCount = products.length;</pre><pre>  return &lt;p&gt;Total products: {productCount}&lt;/p&gt;;<br>}</pre><p>There is no need to create additional state just to store the product count when it can be derived from the list.</p><p>This helps avoid unnecessary state and potential inconsistencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqObKaWuXIE2d4J7Ujtv-w.png" /></figure><h3>Final thoughts</h3><p>Props and state are among the fundamental concepts in React, and understanding their responsibilities makes it easier to build predictable and reusable components.</p><p>Props allow components to receive information and remain reusable, while state allows components to manage changing data and respond to interactions.</p><p>As React applications grow, understanding where data belongs and how it flows between components becomes increasingly important.</p><p>These concepts may seem simple at first, but they form the foundation of how many React applications are built.</p><p><em>I’m continuing to share technical concepts, development experiences, and lessons I’m learning while growing as a frontend-focused full-stack developer.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be6989cba834" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Building My Portfolio Taught Me About Frontend Development]]></title>
            <link>https://medium.com/@samarthbhosale/what-building-my-portfolio-taught-me-about-frontend-development-9ee9fff71e1c?source=rss-f4a1a019a2e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ee9fff71e1c</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[learning-in-public]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[developer-journey]]></category>
            <dc:creator><![CDATA[Samarth Bhosale]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 05:37:01 GMT</pubDate>
            <atom:updated>2026-11-26T05:37:01.142Z</atom:updated>
            <content:encoded><![CDATA[<p><em>More than just building a website, this project helped me rethink how I approach design, development, and the user experience.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xDJlCoyic8fRNudA1D2CMQ.png" /></figure><p>Building a developer portfolio was something I wanted to do for a while.</p><p>I wanted a place where I could showcase my projects, demonstrate my skills, and give recruiters and other developers a better understanding of the work I do.</p><p>But once I started working on it, the project became more than just creating a website and putting my projects on it.</p><p>It became an opportunity to think more carefully about how I approach frontend development.</p><p>Over the past few days, I’ve been sharing different parts of this journey, from exploring designs and building React components to responsive layouts and small UI details.</p><p>Looking back at the process, there are a few things that stood out to me.</p><h3>1. Development doesn’t always have to start with code</h3><p>One of the biggest changes in my approach was spending time exploring the design before jumping directly into implementation.</p><p>Instead of immediately writing JSX and CSS, I wanted to establish a visual direction first.</p><p>Working with design mockups helped me think about layout, hierarchy, spacing, sections, and how different parts of the website should work together.</p><p>It also gave me a clearer starting point during development.</p><p>I learned that spending time understanding what I’m building can make the implementation process more focused.</p><h3>2. Translating a design into code requires more than matching visuals</h3><p>Having a design ready doesn’t automatically make implementation straightforward.</p><p>Each section needs to be translated into components, layouts, styling, and interactions.</p><p>While working with React, I had to think about how the different sections could be structured, which elements could be reused, and how the content should be organised.</p><p>This made me think beyond simply recreating a screenshot.</p><p>A frontend implementation should reflect the design while also being structured in a way that makes the code easier to maintain.</p><h3>3. Reusable components make development easier</h3><p>Component-based development is something I continue to appreciate while working with React.</p><p>Instead of repeatedly writing similar markup and styling, reusable components allow common patterns to be implemented consistently.</p><p>They also make it easier to update the interface later.</p><p>However, I also learned that reusability should have a purpose.</p><p>Creating too many abstractions can make a project unnecessarily complicated. Components should have clear responsibilities and make the code easier to understand.</p><p>For me, the goal is not to create the largest component architecture. It’s to build something that’s practical and maintainable.</p><h3>4. Responsive design needs to be considered throughout development</h3><p>Making a website responsive isn’t simply a matter of adding media queries at the end.</p><p>Layouts, typography, spacing, navigation, and interactions all need to adapt to different screen sizes.</p><p>While working on a portfolio, it’s easy to focus on how everything looks on a desktop screen. But the experience needs to remain usable on smaller screens too.</p><p>Thinking about responsive behaviour during implementation makes it easier to identify potential layout problems and make better design decisions.</p><p>It also reminded me that responsive design is about usability, not just fitting content into a smaller viewport.</p><h3>5. The smaller details matter</h3><p>Once the main sections are implemented, there are still many things worth improving.</p><p>Spacing, typography, hover states, transitions, contrast, alignment, and interaction feedback all contribute to how an interface feels.</p><p>These details might not seem as important as building the main functionality, but they influence the overall experience.</p><p>I found that reviewing the website after the main implementation and paying attention to these smaller details helped me think more critically about the quality of the interface.</p><p>It’s not always about adding more effects. Sometimes, removing inconsistencies and simplifying things makes a bigger difference.</p><h3>6. AI tools can be useful, but the development process still matters</h3><p>AI tools have become part of how I explore ideas and work through development tasks.</p><p>During this portfolio project, I used AI-assisted design exploration to help establish a visual direction.</p><p>I find these tools useful for exploring ideas, getting inspiration, and speeding up certain parts of the process.</p><p>However, using a tool doesn’t remove the need to understand what you’re building.</p><p>The implementation still requires decisions about component structure, styling, responsiveness, functionality, and maintainability.</p><p>I believe the value of AI tools comes from how effectively they support the development process, rather than replacing the understanding needed to build and improve applications.</p><h3>7. A portfolio is more than a collection of projects</h3><p>Building this portfolio also made me think differently about what a developer portfolio should represent.</p><p>It isn’t just a place to list technologies or display screenshots.</p><p>It should help visitors understand how you approach development, what you’ve worked on, and the kind of problems you’re capable of solving.</p><p>For me, building the portfolio itself became another project worth learning from.</p><p>The decisions made during its development are just as valuable as the final website.</p><h3>What I want to continue improving</h3><p>Finishing my portfolio doesn’t mean I’ve finished learning.</p><p>There are always areas I want to improve, whether it’s writing better component architectures, refining responsive layouts, improving accessibility, optimising performance, or exploring new ways of building frontend applications.</p><p>I want to continue applying these lessons to future projects rather than treating them as things I learned once and moved on from.</p><h3>Final thoughts</h3><p>Building my portfolio gave me an opportunity to bring together different aspects of frontend development.</p><p>From design exploration and component development to responsive layouts and UI refinement, the project reminded me that building a website involves many decisions beyond writing code.</p><p>I enjoyed working through those decisions, experimenting with different approaches, and improving the website along the way.</p><p>This is one project, but the lessons from it are something I want to carry forward into future development work.</p><p>I’m continuing to build, learn, and explore new opportunities as a frontend-focused full-stack developer.</p><p><em>This concludes my 7-day portfolio-building series. I’ll continue sharing projects, technical learnings, development experiences, and things I’m working on along the way.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ee9fff71e1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Small UI Details That Make a Portfolio Feel Professional]]></title>
            <link>https://medium.com/@samarthbhosale/the-small-ui-details-that-make-a-portfolio-feel-professional-4f884b927f5b?source=rss-f4a1a019a2e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f884b927f5b</guid>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Samarth Bhosale]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 06:11:37 GMT</pubDate>
            <atom:updated>2026-11-24T06:11:37.294Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TThIK6012WiT_8oCXTGoxQ.png" /></figure><p><em>Why spacing, typography, hover effects, consistency, and thoughtful interactions matter in frontend development.</em></p><p>When building a website, it’s natural to spend most of your time thinking about the major sections.</p><p>The hero section, navigation, project cards, colours, and overall layout usually receive the most attention.</p><p>But sometimes, what makes a website feel truly polished isn’t one big design decision. It’s a collection of smaller details that work together.</p><p>While building my developer portfolio, I started paying more attention to these details. I realised that even when the overall layout is good, small inconsistencies can affect how the entire website feels.</p><p>Here are some of the details I believe deserve more attention during frontend development.</p><h3>1. Consistent spacing</h3><p>Spacing might seem like a small visual decision, but inconsistent spacing can make an interface feel unorganised.</p><p>For example, imagine having three sections on the same page:</p><ul><li>One section has a large gap above its heading.</li><li>Another has almost no separation from the previous section.</li><li>A third uses completely different padding.</li></ul><p>Individually, these sections might look fine. Together, they can make the page feel inconsistent.</p><p>Using a consistent spacing system helps create visual rhythm.</p><p>Instead of choosing random margins and padding throughout the application, define a small set of spacing values and reuse them where appropriate.</p><p>This makes the interface feel more intentional and easier to maintain.</p><h3>2. Typography and readability</h3><p>Typography is more than choosing a font.</p><p>The relationship between font size, weight, line height, and spacing affects how users read and understand content.</p><p>Some details worth considering include:</p><ul><li>Clear heading hierarchy</li><li>Comfortable paragraph line height</li><li>Consistent font weights</li><li>Appropriate text widths</li><li>Readable text contrast</li></ul><p>A heading should stand out without overwhelming the page. Paragraphs should be comfortable to read, and supporting text should remain legible.</p><p>Good typography doesn’t always attract attention. Often, people simply notice that the website is easy to read.</p><h3>3. Hover and interaction states</h3><p>Interactive elements should communicate that they are interactive.</p><p>A button that changes slightly on hover, a project card that responds to pointer movement, or a navigation link that indicates the active section can make the experience feel more complete.</p><p>For example:</p><pre>.button {<br>  transition:<br>    background-color 200ms ease,<br>    transform 200ms ease;<br>}</pre><pre>.button:hover {<br>  transform: translateY(-2px);<br>}</pre><pre>.button:focus-visible {<br>  outline: 2px solid currentColor;<br>  outline-offset: 4px;<br>}</pre><p>Small transitions can make interactions feel smoother.</p><p>However, effects should be subtle and purposeful. Too many animations can distract users from the actual content.</p><p>It’s also important to consider keyboard users and provide visible focus states rather than designing only for mouse interactions.</p><h3>4. Consistency across components</h3><p>Imagine having several buttons across a website.</p><p>If each button has a different height, border radius, font size, and hover effect without a clear design reason, the interface can feel disconnected.</p><p>The same applies to:</p><ul><li>Project cards</li><li>Section headings</li><li>Badges and technology labels</li><li>Navigation links</li><li>Form fields</li><li>Icons</li></ul><p>Reusable components help maintain consistency because common styling and behaviour can be managed in one place.</p><p>This is another reason why component-based development is valuable beyond code reuse.</p><p>It also supports a consistent visual language throughout the application.</p><h3>5. Empty space is part of the design</h3><p>Not every available area needs to be filled with content.</p><p>Whitespace gives elements room to breathe and helps users understand the relationship between different sections.</p><p>A crowded layout can make even good content difficult to explore.</p><p>On the other hand, thoughtful spacing can make a page feel cleaner and help important elements stand out.</p><p>The goal isn’t to maximise empty space. It’s to create a balance between content and breathing room.</p><h3>6. Loading, focus, and feedback states</h3><p>A professional interface should consider what happens beyond the default appearance.</p><p>For example:</p><ul><li>Does a button communicate when an action is being processed?</li><li>Does a form show useful validation feedback?</li><li>Are keyboard-focused elements visible?</li><li>Do interactive controls clearly indicate their current state?</li><li>Does the user receive feedback after completing an action?</li></ul><p>These details are easy to overlook when focusing only on screenshots of a finished page.</p><p>But they matter because users interact with a working application, not just its static design.</p><h3>7. Accessibility should be part of the polish</h3><p>A visually attractive interface isn’t necessarily an accessible one.</p><p>Small implementation decisions can make a meaningful difference:</p><ul><li>Use semantic HTML elements.</li><li>Provide alternative text for meaningful images.</li><li>Maintain sufficient colour contrast.</li><li>Make interactive elements keyboard accessible.</li><li>Avoid relying only on colour to communicate information.</li><li>Respect reduced-motion preferences when using animations.</li></ul><p>Accessibility shouldn’t be treated as a final checklist item. It should influence implementation decisions from the beginning.</p><h3>Final thoughts</h3><p>A professional-looking website isn’t created by adding more animations, gradients, shadows, or visual effects.</p><p>It’s often the result of making many small decisions consistently.</p><p>Spacing, typography, component consistency, interaction feedback, accessibility, and subtle transitions all contribute to the overall experience.</p><p>While building my portfolio, I learned that finishing the main layout doesn’t necessarily mean the interface is finished.</p><p>Sometimes, the final improvements come from revisiting the smallest details.</p><p>As a frontend developer, I want to keep improving not only how interfaces look, but also how they feel to use.</p><p><em>I’m continuing to document my development journey, the things I’m learning, and the practical decisions involved in building frontend applications.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f884b927f5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Structured My Next.js Portfolio for Maintainability]]></title>
            <link>https://medium.com/@samarthbhosale/how-i-structured-my-next-js-portfolio-for-maintainability-0ce13fb89d99?source=rss-f4a1a019a2e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ce13fb89d99</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Samarth Bhosale]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 06:12:49 GMT</pubDate>
            <atom:updated>2026-11-22T06:12:49.865Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*lwtpSWLycUbpp8sjakG0tA.png" /></figure><p><em>Why project organisation matters when building a frontend application with Next.js, TypeScript, and Tailwind CSS.</em></p><p>When starting a new frontend project, it’s easy to focus entirely on what users will see.</p><p>The design, animations, responsiveness, colours, and interactions usually get most of the attention.</p><p>But there’s another important part of development that users might never notice directly: how the project is organised internally.</p><p>While building my developer portfolio with Next.js, TypeScript, and Tailwind CSS, I wanted to do more than create a website that looked good. I also wanted a codebase that would be easy to understand, update, and maintain.</p><p>That made project structure an important part of the development process.</p><h3>1. Why project structure matters</h3><p>In the beginning, a project might contain only a few pages and components.</p><p>As development continues, more things get added:</p><ul><li>Shared UI components</li><li>Page-specific sections</li><li>Images and other assets</li><li>Styling and configuration</li><li>Reusable utilities</li><li>Data for projects and skills</li></ul><p>If everything is placed in one location without a clear structure, finding and updating code becomes increasingly difficult.</p><p>A good project structure helps answer a simple question:</p><p><strong>Where should this piece of code belong?</strong></p><p>That clarity becomes valuable as the project grows.</p><h3>2. Separating application logic from shared components</h3><p>One decision I focused on was keeping shared components separate from page-specific content.</p><p>For example, a navigation bar, footer, and reusable button can be used across different parts of an application.</p><p>On the other hand, a project showcase or a particular portfolio section might belong to a specific page or feature.</p><p>Keeping these responsibilities separate makes components easier to locate and reuse.</p><p>It also reduces the temptation to place unrelated functionality into one large component.</p><h3>3. A possible Next.js project structure</h3><p>There isn’t one folder structure that works for every Next.js application. The right approach depends on the size and requirements of the project.</p><p>For a portfolio, a structure like this can provide a useful starting point:</p><pre>portfolio/<br>│<br>├── public/<br>│   ├── images/<br>│   ├── icons/<br>│   └── resume/<br>│<br>├── src/<br>│   └── app/<br>│       ├── layout.tsx<br>│       ├── page.tsx<br>│       └── globals.css<br>│<br>├── components/<br>│   ├── global/<br>│   │   ├── Navbar.tsx<br>│   │   └── Footer.tsx<br>│   │<br>│   └── ui/<br>│       └── Button.tsx<br>│<br>├── config/<br>├── hooks/<br>├── lib/<br>├── types/<br>│<br>├── package.json<br>└── tsconfig.json</pre><p>This is an illustrative structure rather than a universal Next.js convention.</p><p>The idea is to give different responsibilities a clear home:</p><ul><li>src/app: Application routes, layouts, and page entry points.</li><li>components/global: Shared components used throughout the website.</li><li>components/ui: Reusable interface elements.</li><li>public: Static assets such as images, icons, and downloadable files.</li><li>config: Application configuration and shared constants.</li><li>hooks: Custom React hooks.</li><li>lib: Shared utilities and helper functions.</li><li>types: Reusable TypeScript definitions.</li></ul><p>Not every project needs all these folders. They should be introduced when they serve a real purpose.</p><h3>4. Keeping components focused</h3><p>A component should ideally have a clear responsibility.</p><p>For example, a project card should focus on displaying project information rather than handling unrelated page-level functionality.</p><p>Similarly, a navigation component should manage navigation-related UI instead of containing the implementation of every section on the website.</p><p>This makes individual components easier to understand and update.</p><p>It also makes future improvements less risky because changes can be made in a more focused area of the codebase.</p><h3>5. Using TypeScript for consistency</h3><p>TypeScript is another important part of maintaining a frontend project.</p><p>When components share data, defining types makes the expected structure clearer.</p><p>For example:</p><pre>type Project = {<br>  title: string;<br>  description: string;<br>  technologies: string[];<br>  image: string;<br>  liveUrl?: string;<br>};</pre><p>This type can be reused wherever project information is handled.</p><p>It helps maintain consistency and makes it easier to identify missing or incorrectly structured data during development.</p><p>Instead of repeatedly defining the same object structure, a shared type provides a single reference.</p><h3>6. Avoiding unnecessary complexity</h3><p>A well-organised project doesn’t necessarily mean having a large number of folders.</p><p>It’s possible to over-engineer a relatively small application by creating abstractions that don’t provide much value.</p><p>For a portfolio, the goal is to keep the structure simple enough to understand while allowing room for future changes.</p><p>I prefer thinking about project organisation in terms of responsibility rather than following a folder structure simply because it’s popular.</p><p>If a component is shared, organise it accordingly. If something belongs to a particular feature, keep that relationship clear.</p><p>The structure should support development, not make it more complicated.</p><h3>Final thoughts</h3><p>Building a website involves more than implementing its visual design.</p><p>The way components, assets, utilities, and application files are organised has a direct impact on how comfortable the project is to maintain.</p><p>While developing my portfolio, I wanted the codebase to remain understandable beyond the initial implementation.</p><p>A clean project structure doesn’t guarantee perfect code, but it gives you a better foundation for improving it.</p><p>As I continue working with Next.js and React, maintainability is something I want to consider from the beginning of every project, rather than waiting until the codebase becomes difficult to manage.</p><p><em>I’m continuing to share what I learn while building projects and growing as a frontend-focused full-stack developer.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ce13fb89d99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Responsive Design Needs More Than Media Queries]]></title>
            <link>https://medium.com/@samarthbhosale/why-responsive-design-needs-more-than-media-queries-88d3c2e8c2a2?source=rss-f4a1a019a2e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/88d3c2e8c2a2</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Samarth Bhosale]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 07:29:27 GMT</pubDate>
            <atom:updated>2026-11-21T07:29:27.436Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Building interfaces that adapt to different screen sizes instead of simply shrinking to fit.</em></p><p>A website can look perfect on a desktop screen and still feel frustrating on a mobile device.</p><p>Text might become difficult to read, navigation might take up too much space, cards might become cramped, and sections that looked balanced on desktop might feel completely different on a smaller screen.</p><p>This is one of the things I kept in mind while building my developer portfolio.</p><p>Responsive design is often associated with CSS media queries, but I have come to understand that there’s more to it than writing a few breakpoints.</p><p>It’s about making layout decisions that allow a website to adapt naturally.</p><h3>1. Responsive design starts with the layout</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*QGdeLTHwlePvlO5EX1BwLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*XJfmRG-Ln7ZWo2oDPanWeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8EZBG9DN-gXAVjAJFtc-bg.png" /></figure><p>One common mistake is designing a desktop layout first and then trying to force everything into a mobile screen.</p><p>A better approach is to think about how the layout should behave at different sizes.</p><p>For example:</p><ul><li>A two-column section might become a single column.</li><li>A horizontal navigation might become a mobile menu.</li><li>A multi-column project grid might display one card per row.</li><li>Large spacing might need to be reduced.</li><li>Images might need different dimensions or positioning.</li></ul><p>These aren’t just visual adjustments. They influence how people navigate and interact with the website.</p><h3>2. Flexible layouts are important</h3><p>A responsive layout shouldn’t depend on fixed widths everywhere.</p><p>CSS provides flexible layout tools that help elements adapt to the available space.</p><p>For example, CSS Grid can automatically adjust the number of columns based on the available width:</p><pre>.project-grid {<br>  display: grid;<br>  grid-template-columns: repeat(<br>    auto-fit,<br>    minmax(min(100%, 280px), 1fr)<br>  );<br>  gap: 24px;<br>}</pre><p>Instead of manually defining every possible column arrangement, the browser can fit as many columns as the available space allows.</p><p>Flexbox is also useful when elements need to wrap or distribute space dynamically.</p><p>The key is to let the layout respond to its container rather than relying on unnecessary fixed dimensions.</p><h3>3. Media queries still matter</h3><p>Media queries are an important part of responsive design. The problem isn’t using them; it’s depending on them for every adjustment.</p><p>They are useful when the design genuinely needs to change at a particular width.</p><p>For example:</p><pre>.hero {<br>  display: grid;<br>  grid-template-columns: 1fr 1fr;<br>  gap: 40px;<br>}</pre><pre>@media (max-width: 768px) {<br>  .hero {<br>    grid-template-columns: 1fr;<br>    gap: 24px;<br>  }<br>}</pre><p>Here, the hero section changes from two columns to one when the screen becomes smaller.</p><p>That is a meaningful layout change.</p><p>However, flexible widths, appropriate maximum widths, and responsive spacing can often handle many situations without additional breakpoints.</p><h3>4. Typography needs to adapt too</h3><p>Responsive design isn’t limited to containers and columns.</p><p>Text is one of the most noticeable parts of a website.</p><p>A heading that looks balanced on a large monitor might take up almost the entire mobile screen.</p><p>CSS clamp() can help create fluid typography:</p><pre>.hero-title {<br>  font-size: clamp(2rem, 5vw, 4.5rem);<br>}</pre><p>This allows the font size to scale with the viewport while keeping it within defined minimum and maximum values.</p><p>Line height, text width, paragraph spacing, and readability also deserve attention.</p><p>A responsive website should be comfortable to read, not just technically fit on the screen.</p><h3>5. Navigation and interactions need different consideration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/1*Ws1eSyYpLskE3gncXrhcwg.png" /></figure><p>A navigation bar is a good example of why responsive design requires more than changing widths.</p><p>On desktop, navigation links may fit comfortably in a horizontal row.</p><p>On mobile, the same navigation could become crowded and difficult to use.</p><p>This may require a different interaction pattern, such as a menu button that opens a mobile navigation panel.</p><p>Other details matter too:</p><ul><li>Buttons should be comfortable to tap.</li><li>Links should have enough spacing.</li><li>Interactive elements should remain accessible.</li><li>Menus should work with keyboard navigation.</li><li>Important content shouldn’t become hidden or difficult to reach.</li></ul><p>Responsive design should consider how users interact with the interface, not only how it looks.</p><h3>6. Test at different widths, not just different devices</h3><p>Another important lesson is that testing only on one desktop and one mobile device isn’t enough.</p><p>A layout might work at 390px but break at 430px. A tablet layout might look awkward even when the desktop and mobile versions look fine.</p><p>I find it useful to test at different viewport widths and pay attention to:</p><ul><li>Horizontal scrolling</li><li>Text wrapping</li><li>Overflowing images</li><li>Navigation behavior</li><li>Card alignment</li><li>Spacing consistency</li><li>Readability and touch interactions</li></ul><p>Browser developer tools make it easier to test different viewport sizes without needing multiple physical devices.</p><p>The goal is to identify where the layout starts feeling uncomfortable and make adjustments based on the content and design.</p><h3>Final thoughts</h3><p>Responsive design isn’t about creating a desktop website and then making a smaller version of it.</p><p>It’s about building an interface that remains usable, readable, and visually consistent across different screen sizes.</p><p>Media queries are one tool in that process, but flexible layouts, fluid typography, sensible spacing, accessible interactions, and proper testing are equally important.</p><p>While working on my portfolio, I realised that a good responsive experience comes from thinking about adaptability during implementation, rather than treating mobile responsiveness as the final step.</p><p>That’s a mindset I want to carry into every frontend project I build.</p><p><em>I’m continuing to document my learning and development journey as a frontend-focused full-stack developer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*19LmyjH3_UjQCLx-FjUG6A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88d3c2e8c2a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Design Mockups to Reusable React Components]]></title>
            <link>https://medium.com/@samarthbhosale/from-design-mockups-to-reusable-react-components-111b8c696ae7?source=rss-f4a1a019a2e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/111b8c696ae7</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Samarth Bhosale]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 13:50:15 GMT</pubDate>
            <atom:updated>2026-11-20T13:50:15.498Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I approached translating a portfolio design into a structured frontend application.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhf1Kg4naxdFJToglHQomQ.png" /></figure><p>A design mockup can make a website look complete, but turning that design into a working application requires a different kind of thinking.</p><p>Once the visual direction for my portfolio was ready, the next challenge was figuring out how to translate those designs into React components.</p><p>I didn’t want to simply recreate each section with a large amount of JSX. I wanted the code to be organised, reusable, and easier to maintain as the project grew.</p><p>That meant thinking about components before getting too deep into implementation.</p><h3>1. Looking at the design as individual sections</h3><p>The first step was to stop looking at the page as one large design.</p><p>Instead, I started looking at its individual sections and identifying their responsibilities.</p><p>For a developer portfolio, these could include:</p><ul><li>Navigation bar</li><li>Hero section</li><li>About section</li><li>Skills section</li><li>Project showcase</li><li>Experience section</li><li>Contact section</li><li>Footer</li></ul><p>Breaking the design into smaller sections makes it easier to understand what needs to be developed and how the different parts fit together.</p><p>It also gives a clearer picture of which elements might be reusable.</p><h3>2. Understanding what should become a component</h3><p>One important thing I considered was that not every section needs to be reusable.</p><p>Some components serve a common purpose across the application, while others are specific to a particular section.</p><p>For example:</p><p><strong>Shared components</strong></p><ul><li>Navigation bar</li><li>Theme toggle</li><li>Footer</li><li>Buttons</li><li>Reusable UI elements</li></ul><p><strong>Section-specific components</strong></p><ul><li>Hero section</li><li>Skills section</li><li>Project showcase</li><li>Experience section</li></ul><p>A project card is another useful example. It can be reused for multiple projects while displaying different information.</p><p>The goal is not to create as many components as possible. It is to create components that have a clear purpose and make the application easier to work with.</p><h3>3. Thinking about reusability</h3><p>Imagine displaying three projects on a portfolio website.</p><p>One approach would be to write the same card markup three times and manually change the content.</p><p>A better approach is to create one reusable component and pass different data to it.</p><p>For example:</p><pre>type Project = {<br>  title: string;<br>  description: string;<br>  technologies: string[];<br>};</pre><pre>function ProjectCard({ project }: { project: Project }) {<br>  return (<br>    &lt;article&gt;<br>      &lt;h3&gt;{project.title}&lt;/h3&gt;<br>      &lt;p&gt;{project.description}&lt;/p&gt;</pre><pre>      &lt;div&gt;<br>        {project.technologies.map((technology) =&gt; (<br>          &lt;span key={technology}&gt;<br>            {technology}<br>          &lt;/span&gt;<br>        ))}<br>      &lt;/div&gt;<br>    &lt;/article&gt;<br>  );<br>}</pre><p>Now the same component can display different projects using different data.</p><p>This approach helps avoid repeated markup and makes future changes easier. If the card design needs an update, the shared component can be modified instead of updating every individual card.</p><h3>4. Keeping components organised</h3><p>As an application grows, putting every component into one folder can make the codebase difficult to navigate.</p><p>A useful approach is to separate shared components from components that belong to specific features.</p><p>For example:</p><pre>src/<br>├── app/<br>├── components/<br>│   ├── global/<br>│   │   ├── Navbar.tsx<br>│   │   ├── ThemeToggle.tsx<br>│   │   └── Footer.tsx<br>│   │<br>│   └── ui/<br>│       └── Button.tsx<br>│<br>└── features/<br>    ├── projects/<br>    │   └── components/<br>    │       └── ProjectCard.tsx<br>    │<br>    └── skills/<br>        └── components/</pre><p>This is one possible structure, not a rule that every React project must follow.</p><p>The important part is having a clear separation of responsibilities. Shared elements should be easy to find, while feature-specific components should stay close to the functionality they support.</p><h3>5. Why TypeScript helps</h3><p>When components receive data through props, TypeScript helps define what information they expect.</p><p>For example, a project card might need a title, description, technology list, and project image.</p><p>Defining those properties with a type makes the component’s expectations clearer.</p><p>It also helps catch mistakes during development instead of leaving every issue to be discovered in the browser.</p><p>For a project with multiple sections and reusable components, this becomes particularly useful.</p><h3>6. Reusable code should still be easy to understand</h3><p>There is one thing worth remembering: reusable components are useful only when they make the code easier to maintain.</p><p>Creating a separate component for every small element can sometimes make a project unnecessarily complicated.</p><p>I think a good component should have a clear responsibility, a sensible interface, and a reason to exist.</p><p>The objective is not to make the architecture complicated. It is to make future development simpler.</p><h3>Final thoughts</h3><p>Moving from design mockups to React components is more than converting visual elements into JSX.</p><p>It involves understanding the structure of the page, identifying reusable patterns, organising responsibilities, and deciding how data should flow through the application.</p><p>Working through this process helped me think beyond how a website should look and focus more on how it should be built.</p><p>A good frontend implementation should not only match the design. It should also be structured in a way that makes the application easier to extend, debug, and maintain.</p><p>That is something I want to keep improving with every project I build.</p><p><em>This article is part of my ongoing journey of building, learning, and improving as a frontend-focused full-stack developer.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=111b8c696ae7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Started Designing Before Writing Code]]></title>
            <link>https://medium.com/@samarthbhosale/why-i-started-designing-before-writing-code-88f2282390cf?source=rss-f4a1a019a2e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/88f2282390cf</guid>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Samarth Bhosale]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 05:58:58 GMT</pubDate>
            <atom:updated>2026-11-19T05:58:58.864Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ar3c81HxQMG0e2KYzAwLng.png" /></figure><p><em>How I approached the design process before building my personal developer portfolio with Next.js and React.</em></p><p>When developers decide to build a personal portfolio, one of the first things that often comes to mind is opening the code editor and starting with the homepage.</p><p>I had the same thought.</p><p>But while working on my personal developer portfolio, I decided to take a slightly different approach.</p><p>Instead of immediately writing React components, I started by exploring the design.</p><p>I wanted to understand what I was building before deciding how I would build it.</p><h3>Why I Didn’t Start with Code</h3><p>A developer portfolio is more than a collection of sections displaying your skills and projects.</p><p>It represents your professional identity.</p><p>It should help visitors understand:</p><ul><li>Who you are.</li><li>What kind of applications you build.</li><li>Which technologies you work with.</li><li>What projects you have worked on.</li><li>How they can get in touch with you.</li></ul><p>I wanted my portfolio to communicate these things clearly while maintaining a consistent visual experience.</p><p>Starting with code without having a clear design direction could mean spending additional time changing layouts, restructuring components, and adjusting the overall interface later.</p><p>I wanted to spend some time thinking about the experience first.</p><h3>Exploring the Design with Claude Design</h3><p>For the initial design exploration, I used Claude Design.</p><p>My objective wasn’t simply to generate a good-looking homepage.</p><p>I wanted to explore different layouts, visual directions, section arrangements, and ways of presenting my professional information.</p><p>This helped me think about the website as a complete experience rather than designing individual sections independently.</p><p>I focused on a few important areas:</p><p><strong>1. Overall visual direction</strong></p><p>I wanted a clean, modern interface that felt professional without becoming unnecessarily complicated.</p><p><strong>2. Content hierarchy</strong></p><p>The introduction, skills, projects, experience, and contact information needed to be presented in an order that made sense to visitors.</p><p><strong>3. Project presentation</strong></p><p>Projects deserved more than just a name and a technology list. I wanted visitors to understand what I had built and explore the work.</p><p><strong>4. Consistency</strong></p><p>Typography, spacing, navigation, colours, and component styles needed to feel connected throughout the website.</p><h3>Desktop and Mobile Were Separate Design Considerations</h3><p>One decision I particularly wanted to get right was responsive design.</p><p>I didn’t want to simply take a desktop layout and shrink everything to fit a mobile screen.</p><p>People interact with websites differently depending on their device.</p><p>A desktop screen provides more room for navigation, multiple columns, larger content sections, and side-by-side layouts.</p><p>Mobile screens require more careful consideration of content order, spacing, navigation, and readability.</p><p>I therefore explored separate desktop and mobile designs, including a dedicated mobile layout.</p><p>This gave me a clearer direction when implementing responsive behaviour in the actual application.</p><h3>From Design to Development</h3><p>Once I was comfortable with the visual direction, I moved towards implementation.</p><p>My technology stack included:</p><ul><li><strong>Next.js</strong> — Application framework.</li><li><strong>React.js</strong> — Component-based UI development.</li><li><strong>TypeScript</strong> — Type safety and more predictable code.</li><li><strong>Tailwind CSS</strong> — Styling and responsive layouts.</li><li><strong>Lucide React</strong> — Consistent interface icons.</li></ul><p>The designs became a reference for implementation.</p><p>I worked on translating the visual layouts into reusable components rather than building everything inside one large page component.</p><p>This also made it easier to maintain consistency across different sections.</p><p>Of course, a design mockup and a working application are not the same thing.</p><p>Some adjustments are necessary during implementation. Spacing, responsive behaviour, interactions, and component structure need to be considered in the context of actual browser behaviour.</p><p>That is where the development process really begins.</p><h3>What I Learned from This Approach</h3><p>Looking back, the most useful part of starting with design was having a clearer direction before implementation.</p><p>A few things stood out to me:</p><p><strong>Planning saves unnecessary experimentation.</strong></p><p>Having a visual reference makes it easier to understand what needs to be built.</p><p><strong>Design and development should work together.</strong></p><p>A beautiful design is not enough. It must translate into a usable, maintainable, and responsive application.</p><p><strong>Mobile experience deserves attention from the beginning.</strong></p><p>Responsive behaviour shouldn’t be treated as the final step after desktop development.</p><p><strong>Reusable components still need thoughtful planning.</strong></p><p>The way a design is structured can influence how components are organised and maintained.</p><h3>Final Thoughts</h3><p>I’m not suggesting that every development project needs a complete design phase before a single line of code is written.</p><p>The right approach depends on the project, its requirements, and the available resources.</p><p>But for a personal portfolio, spending time exploring the design before implementation was valuable for me.</p><p>It helped me think about the final experience, organise the content, and approach frontend development with a clearer direction.</p><p>My portfolio is now live, and this was one of the decisions that shaped the way I built it.</p><p>You can explore it here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/1*wW0cCWeU6UfKHce_Mg5xGw.png" /><figcaption>https://samarthbhosale.vercel.app/</figcaption></figure><p>I’m continuing to improve my frontend and full-stack development skills, work on practical projects, and explore new opportunities.</p><p>I’d also like to hear from other developers:</p><p><strong>When starting a new frontend project, do you prefer to begin with the design, or do you explore the interface directly through code?</strong></p><p>Thanks for reading!</p><p><em>Build. Learn. Improve. Repeat.</em> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88f2282390cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building My Developer Portfolio with React.js, Next.js, TypeScript & Tailwind CSS]]></title>
            <link>https://medium.com/@samarthbhosale/building-my-developer-portfolio-with-react-js-next-js-typescript-tailwind-css-6402637c25d8?source=rss-f4a1a019a2e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6402637c25d8</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Samarth Bhosale]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 08:49:27 GMT</pubDate>
            <atom:updated>2026-11-18T09:09:32.340Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XQ0D3y-_NiTcfGsx_Xftyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TMFrt-n9nQCDYf3YFGib2Q.png" /></figure><p><em>A journey from design mockups to a live developer portfolio, including the technologies, decisions, challenges, and lessons along the way.</em></p><p>A developer’s portfolio is more than just a website. It’s a place to showcase projects, demonstrate technical skills, communicate experience, and give people a better understanding of how you approach development.</p><p>Recently, I completed my personal developer portfolio using Next.js, React, TypeScript, and Tailwind CSS.</p><p>In this article, I want to share how I approached the project, the technologies I used, some of the decisions I made, and what I learned throughout the process.</p><h3>Why I Decided to Build My Portfolio</h3><p>I wanted something beyond a traditional resume.</p><p>I needed a central place where people could explore my projects, understand my technical background, and see the kind of applications I enjoy building.</p><p>My goals were simple:</p><ul><li>Create a professional online presence.</li><li>Showcase my frontend and full-stack development skills.</li><li>Present projects in a clean and understandable way.</li><li>Make the experience responsive across desktop and mobile devices.</li><li>Provide easy access to my resume, GitHub, and professional profiles.</li></ul><p>I wanted the portfolio to reflect not just what technologies I know, but also how I approach design and development.</p><h3>Starting with Design</h3><p>Before jumping into development, I worked on the visual direction of the portfolio.</p><p>I used Claude Design to explore layouts, visual styles, and different section structures.</p><p>One important decision was to approach desktop and mobile layouts separately rather than simply shrinking the desktop design.</p><p>I wanted the interface to feel intentional across different screen sizes.</p><p>Once I had the designs ready, I moved into implementation.</p><h3>Technology Stack</h3><p>Here are the primary technologies I used:</p><p><strong>Next.js and React.js</strong></p><p>I used Next.js as the application framework and React for building reusable UI components.</p><p><strong>TypeScript</strong></p><p>TypeScript helped me maintain better code structure and catch potential errors during development.</p><p><strong>Tailwind CSS</strong></p><p>Tailwind CSS made it easier to build consistent layouts, manage responsive styles, and iterate on the design.</p><p><strong>Lucide React</strong></p><p>I used Lucide icons to maintain a consistent visual language throughout the interface.</p><p><strong>Vercel</strong></p><p>I deployed the portfolio using Vercel, making it publicly accessible.</p><h3>Building the Interface</h3><p>One of my priorities was keeping the application organised.</p><p>Instead of putting everything into a single page or component, I focused on reusable components and a structured project layout.</p><p>I worked on different sections to present my introduction, technical skills, projects, experience, and contact information.</p><p>I also paid attention to small details such as:</p><ul><li>Navigation and user experience.</li><li>Consistent spacing and typography.</li><li>Responsive layouts.</li><li>Dark and light mode switching.</li><li>Reusable UI components.</li><li>Clear project presentations.</li></ul><p>These details may seem minor individually, but together they have a significant impact on the overall user experience.</p><h3>Challenges and Learnings</h3><p>The most interesting part wasn’t simply writing components. It was translating a visual design into a working application.</p><p>Some of the areas that required attention included:</p><p><strong>1. Translating designs into code</strong></p><p>Turning visual mockups into functional components required careful attention to spacing, alignment, typography, and layout consistency.</p><p><strong>2. Responsive development</strong></p><p>I wanted the portfolio to work naturally on both desktop and mobile devices without compromising the experience on either.</p><p><strong>3. Component organisation</strong></p><p>Building reusable components helped keep the implementation structured and easier to maintain.</p><p><strong>4. UI interactions</strong></p><p>Small details such as navigation behaviour, theme switching, and interactive elements required additional attention.</p><p>This project reminded me that frontend development is not just about making something look good. It’s also about maintainability, accessibility, responsiveness, and usability.</p><h3>The Final Result</h3><p>After completing the implementation and deployment, my portfolio became a central place to showcase my work, technical skills, and development journey.</p><p>I’m happy to have taken the project from initial design concepts to a deployed application.</p><p>The portfolio includes my introduction, technical skills, projects, experience, and ways to connect with me.</p><p>I’ve also made my work accessible through my GitHub profile, where I continue to share my development projects.</p><h3>What’s Next?</h3><p>Completing this portfolio is another step in my development journey, not the end of it.</p><p>I’m continuing to improve my frontend and full-stack development skills, experiment with new technologies, and build applications that solve practical problems.</p><p>I’m also actively exploring opportunities where I can contribute as a Frontend Developer or Full Stack Developer, collaborate with a team, and continue growing as an engineer.</p><p>If you’re a developer, recruiter, or someone who enjoys building products, I’d love to connect.</p><p>You can find me on:</p><ul><li><strong>Portfolio:</strong> Samarth Bhosale — Personal Developer Portfolio</li><li><strong>GitHub:</strong> Samarth Bhosale</li><li><strong>LinkedIn:</strong> Samarth Bhosale</li></ul><p>Thanks for reading!</p><p><em>Build. Learn. Improve. Repeat.</em> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6402637c25d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>