<?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 Samhithab on Medium]]></title>
        <description><![CDATA[Stories by Samhithab on Medium]]></description>
        <link>https://medium.com/@samhithab1462001?source=rss-4f708c8c0a24------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*sanNK2Lzq1MW2HQP</url>
            <title>Stories by Samhithab on Medium</title>
            <link>https://medium.com/@samhithab1462001?source=rss-4f708c8c0a24------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 02:39:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samhithab1462001/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[React in 2026: What Actually Matters Once You’re Past the Basics]]></title>
            <link>https://medium.com/@samhithab1462001/react-in-2026-what-actually-matters-once-youre-past-the-basics-27a520bb0285?source=rss-4f708c8c0a24------2</link>
            <guid isPermaLink="false">https://medium.com/p/27a520bb0285</guid>
            <dc:creator><![CDATA[Samhithab]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 19:46:08 GMT</pubDate>
            <atom:updated>2026-08-26T19:46:08.112Z</atom:updated>
            <content:encoded><![CDATA[<p>Every React tutorial teaches you the same thing: components, props, state, useEffect. That gets you to &quot;I can build a to-do app.&quot; It doesn&#39;t get you to &quot;I can build a UI layer that a team can maintain for three years without it collapsing under its own weight.&quot;</p><p>After years of shipping production React — dashboards, e-commerce platforms, healthcare portals — the lessons that actually move the needle aren’t about syntax. They’re about the decisions you make once the app has more than ten components and more than one developer touching it.</p><h3>State Management Isn’t One Decision — It’s Three</h3><p>The biggest mistake teams make with state isn’t picking the “wrong” library. It’s treating all state the same way. In practice, state splits into three categories, and mixing them up is where the pain starts:</p><ul><li><strong>Local UI state</strong> (a dropdown being open, a form field’s current value) — this should almost always be useState, kept as close to the component as possible.</li><li><strong>Server state</strong> (data fetched from an API) — this isn’t really “your” state at all, it’s a cached copy of someone else’s data, and treating it like local state is why so many apps have stale-data bugs. This is what libraries like React Query or SWR exist for — not Redux.</li><li><strong>Global client state</strong> (auth status, theme, a shopping cart shared across routes) — this is the only category that actually needs Redux, Zustand, or Context.</li></ul><p>jsx</p><pre>// Server state — don&#39;t reinvent caching, invalidation, and loading states by hand<br>function useOrders(customerId) {<br>  return useQuery({<br>    queryKey: [&#39;orders&#39;, customerId],<br>    queryFn: () =&gt; fetchOrders(customerId),<br>    staleTime: 60_000,<br>  });<br>}</pre><p>Teams that reach for Redux to store API responses usually end up rebuilding a worse version of what React Query already does for free — manual loading flags, manual refetch logic, manual cache invalidation.</p><h3>Context Is Not a State Management Tool</h3><p>This one deserves its own section because it’s such a common trap. useContext is a way to <em>avoid prop drilling</em> — it is not a performance-neutral global store. Every component that consumes a context re-renders when that context&#39;s value changes, even if the component only cares about one field out of ten in that context object.</p><p>jsx</p><pre>// This re-renders every consumer on every keystroke,<br>// even ones that only care about `user`<br>const AppContext = createContext({ user, theme, cart, notifications });</pre><p>Splitting contexts by concern — UserContext, ThemeContext, CartContext — instead of one giant &quot;app context,&quot; is a small change that prevents a specific, hard-to-diagnose class of performance issues later.</p><h3>Memoization: Use It Deliberately, Not Defensively</h3><p>React.memo, useMemo, and useCallback get treated by a lot of developers as something you sprinkle everywhere &quot;just in case.&quot; That instinct is usually wrong. Memoization has a real cost — comparing props, holding onto cached values — and applying it to a component that re-renders cheaply anyway just adds overhead and cognitive load for no benefit.</p><p>The cases where it actually earns its place:</p><p>jsx</p><pre>// A component rendering an expensive chart, called inside a list of 200 rows<br>const ExpensiveChart = React.memo(function ExpensiveChart({ data }) {<br>  return &lt;D3Chart data={data} /&gt;;<br>});</pre><pre>// A callback passed down to a memoized child — without useCallback,<br>// memo on the child is pointless because the function reference changes every render<br>const handleSelect = useCallback((id) =&gt; setSelectedId(id), []);</pre><p>A useful rule: reach for memoization when profiling (React DevTools Profiler) actually shows a re-render problem — not preemptively on every component you write.</p><h3>Testing: Test Behavior, Not Implementation</h3><p>React Testing Library’s core philosophy — “test your components the way a user would use them” — sounds obvious until you look at a codebase full of tests that check internal state or call component methods directly. Those tests break every time you refactor, even when the actual user-facing behavior hasn’t changed.</p><p>jsx</p><pre>test(&#39;shows an error when submitting an empty form&#39;, async () =&gt; {<br>  render(&lt;CheckoutForm /&gt;);<br>  await userEvent.click(screen.getByRole(&#39;button&#39;, { name: /submit/i }));<br>  expect(await screen.findByText(/email is required/i)).toBeInTheDocument();<br>});</pre><p>This test doesn’t know or care whether the form uses useState, useReducer, or a form library internally. That&#39;s the point — it survives implementation changes, which is exactly what a good test suite should do.</p><h3>Code-Splitting Is Underused</h3><p>React.lazy and dynamic import() are still surprisingly rare in codebases that would benefit from them. A dashboard with five tabs doesn&#39;t need to ship the JavaScript for all five tabs on initial load:</p><p>jsx</p><pre>const AnalyticsTab = React.lazy(() =&gt; import(&#39;./AnalyticsTab&#39;));</pre><pre>function Dashboard() {<br>  return (<br>    &lt;Suspense fallback={&lt;TabSkeleton /&gt;}&gt;<br>      &lt;AnalyticsTab /&gt;<br>    &lt;/Suspense&gt;<br>  );<br>}</pre><p>This is one of the highest-leverage, lowest-effort performance wins available — it costs a few lines and directly improves initial load time, which is the metric users and Core Web Vitals actually care about.</p><h3>Where Teams Get Into Trouble</h3><p><strong>Prop drilling disguised as “keeping it simple.”</strong> Passing the same five props through four layers of components that don’t use them isn’t simpler — it’s coupling every intermediate component to data it doesn’t care about. If you’re drilling past two levels, that’s the signal to introduce context or composition (passing components as children instead of data as props).</p><p><strong>useEffect as a catch-all.</strong> Not every side effect belongs in useEffect. Derived state (const fullName = firstName + &#39; &#39; + lastName) doesn&#39;t need an effect and a second state variable — it just needs to be computed directly during render. Effects should be reserved for genuinely external synchronization: subscriptions, DOM manipulation, fetching.</p><p><strong>Skipping the dependency array conversation.</strong> ESLint’s react-hooks/exhaustive-deps rule gets disabled more often than it should, usually to silence a warning rather than fix the actual stale-closure bug it&#39;s pointing at. Fighting the linter is almost always a sign the effect is structured wrong, not that the rule is wrong.</p><h3>The Takeaway</h3><p>React’s flexibility is both its greatest strength and the reason so many codebases end up inconsistent. The framework won’t stop you from mixing state management strategies, over-memoizing, or drilling props ten layers deep — it just makes all of those options equally easy to reach for.</p><p>The teams that keep a React codebase maintainable for years aren’t the ones using the most advanced patterns. They’re the ones who agreed, early, on a small set of conventions — how state is categorized, when memoization is actually justified, what a “good” test looks like — and stuck to them.</p><p><em>What’s the React pattern that took you the longest to unlearn? Curious to hear what others have run into.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27a520bb0285" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Spring Boot Still Wins in 2026: A Practical Look Beyond the Hype]]></title>
            <link>https://medium.com/@samhithab1462001/why-spring-boot-still-wins-in-2026-a-practical-look-beyond-the-hype-780ff3dae3b8?source=rss-4f708c8c0a24------2</link>
            <guid isPermaLink="false">https://medium.com/p/780ff3dae3b8</guid>
            <dc:creator><![CDATA[Samhithab]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 19:41:40 GMT</pubDate>
            <atom:updated>2026-08-26T19:41:40.845Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve built backend systems in Java over the last decade, you’ve watched Spring Boot go from “the convenient wrapper around Spring” to the default choice for building production-grade services. It’s easy to take that for granted. But after years of shipping microservices, REST APIs, and event-driven systems on top of it, it’s worth stepping back and asking: what actually makes Spring Boot worth using today, and where do teams still get it wrong?</p><p>This isn’t a getting-started tutorial. It’s a look at the parts of Spring Boot that matter once you’re past “Hello World” and into systems that real users depend on.</p><h3>The Real Value Isn’t Auto-Configuration — It’s Convention</h3><p>Everyone talks about Spring Boot’s auto-configuration as its headline feature, and it is genuinely useful — no more hand-wiring a DataSource bean or configuring Jackson by hand. But the deeper value is <em>convention</em>. Once a team agrees to build on Spring Boot, decisions that used to spark hour-long debates — how do we structure config, how do we expose health checks, how do we wire dependency injection — are already made for you, sensibly, by default.</p><p>That matters more than it sounds. In a fast-moving team, the cost of a new engineer ramping up on “our custom framework glue” is real. Spring Boot’s opinionated defaults mean a developer who’s worked on one Spring Boot service can be productive on another in days, not weeks.</p><h3>Spring Boot Starters: Dependency Management as a Feature</h3><p>Starters (spring-boot-starter-web, spring-boot-starter-data-jpa, spring-boot-starter-security, and so on) are underrated as a design decision. They collapse what used to be a fragile web of manually pinned library versions into a single, tested, coherent dependency graph.</p><p>xml</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>    &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;<br>&lt;/dependency&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>    &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;<br>&lt;/dependency&gt;</pre><p>This sounds simple, but anyone who’s dealt with a transitive dependency conflict between Jackson versions in a large enterprise codebase knows how much pain this quietly prevents.</p><h3>Building a Minimal REST Service</h3><p>The classic entry point still holds up as a good example of how little ceremony is required:</p><p>java</p><pre>@SpringBootApplication<br>public class OrderServiceApplication {<br>    public static void main(String[] args) {<br>        SpringApplication.run(OrderServiceApplication.class, args);<br>    }<br>}</pre><pre>@RestController<br>@RequestMapping(&quot;/api/orders&quot;)<br>public class OrderController {</pre><pre>    private final OrderService orderService;</pre><pre>    public OrderController(OrderService orderService) {<br>        this.orderService = orderService;<br>    }</pre><pre>    @GetMapping(&quot;/{id}&quot;)<br>    public ResponseEntity&lt;OrderResponse&gt; getOrder(@PathVariable Long id) {<br>        return ResponseEntity.ok(orderService.findById(id));<br>    }</pre><pre>    @PostMapping<br>    public ResponseEntity&lt;OrderResponse&gt; createOrder(@RequestBody @Valid OrderRequest request) {<br>        OrderResponse created = orderService.create(request);<br>        return ResponseEntity.status(HttpStatus.CREATED).body(created);<br>    }<br>}</pre><p>Notice the constructor injection instead of @Autowired on fields — that&#39;s not a style preference, it&#39;s what makes the class testable without a Spring context, and it makes the class&#39;s real dependencies explicit rather than hidden.</p><h3>Where Teams Actually Struggle</h3><p>The parts of Spring Boot that trip up teams aren’t the basics — they show up once a service is in production and under load.</p><p><strong>1. Layered architecture discipline erodes over time.</strong> Controllers start calling repositories directly “just this once,” service classes balloon into 800-line god classes, and six months later nobody can safely change anything. Spring Boot won’t stop this — it makes it <em>easy</em> to do the right thing, not mandatory. Enforcing controller → service → repository boundaries has to be a team discipline, not a framework guarantee.</p><p><strong>2. N+1 queries hiding behind JPA convenience.</strong> Spring Data JPA makes data access so frictionless that it’s easy to forget what’s happening underneath. A single findAll() on an entity with a lazy @OneToMany can quietly generate hundreds of queries in a loop. Tools like spring.jpa.properties.hibernate.generate_statistics=true in a non-prod environment, or a library like p6spy, catch this before it becomes a production incident.</p><p><strong>3. Actuator exposed with default settings.</strong> spring-boot-starter-actuator is fantastic for health checks and metrics — and a real security risk if /actuator/env or /actuator/heapdump are exposed without protection. This is a recurring finding in security reviews. Lock it down explicitly:</p><p>yaml</p><pre>management:<br>  endpoints:<br>    web:<br>      exposure:<br>        include: health, info, metrics<br>  endpoint:<br>    health:<br>      show-details: when-authorized</pre><p><strong>4. Profile sprawl.</strong> application-dev.yml, application-qa.yml, application-staging.yml, application-prod.yml — each one drifting slightly from the others until nobody&#39;s sure which properties actually apply where. Centralizing config with Spring Cloud Config, or at minimum keeping a strict base application.yml with only true overrides in profile-specific files, saves real debugging time later.</p><h3>Spring Boot in a Microservices World</h3><p>Where Spring Boot really earns its keep is as the backbone of a microservices architecture — paired with Spring Cloud for service discovery, Spring Cloud Gateway for routing, and Resilience4j for circuit breaking:</p><p>java</p><pre>@CircuitBreaker(name = &quot;inventoryService&quot;, fallbackMethod = &quot;fallbackInventory&quot;)<br>public InventoryResponse checkInventory(String sku) {<br>    return inventoryClient.getStock(sku);<br>}</pre><pre>private InventoryResponse fallbackInventory(String sku, Throwable t) {<br>    return InventoryResponse.unavailable(sku);<br>}</pre><p>Combined with Kafka for event-driven communication between services, this stack has become the de facto standard for enterprise Java backends — not because it’s the newest option, but because it’s had a decade of production hardening across companies with very different scale and reliability requirements.</p><h3>Is It Still the Right Choice?</h3><p>Newer frameworks — Quarkus and Micronaut chief among them — make legitimate claims about faster startup times and lower memory footprint, which matters for serverless and container-dense environments. If you’re optimizing purely for cold-start latency in a Lambda-style deployment, it’s worth evaluating them seriously.</p><p>But for most backend teams building long-running services, the deciding factor usually isn’t raw performance — it’s ecosystem maturity, hiring pool size, and how much institutional knowledge already exists around Spring. That’s a real, practical advantage that’s easy to underweight when comparing framework benchmarks in isolation.</p><h3>The Takeaway</h3><p>Spring Boot’s biggest strength was never any single feature — it’s that it turned a mature, powerful, but historically verbose framework into something a team can actually stay consistent on across dozens of services and multiple years. The framework won’t save you from bad architecture decisions, but it removes enough boilerplate and decision fatigue that teams have more energy left to focus on the decisions that actually matter.</p><p>If you’re starting a new Java backend service today, the question usually isn’t “should I use Spring Boot” — it’s “what’s the discipline I need around it to keep it from becoming the next legacy system I complain about.”</p><p><em>What’s been your biggest Spring Boot production lesson? I’d love to hear war stories in the comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=780ff3dae3b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>