<?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 Tathagat Thapliyal on Medium]]></title>
        <description><![CDATA[Stories by Tathagat Thapliyal on Medium]]></description>
        <link>https://medium.com/@tathagat2006?source=rss-1fd80f7195aa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CoPGYlEXpuJ6pnYP1RIZSA.jpeg</url>
            <title>Stories by Tathagat Thapliyal on Medium</title>
            <link>https://medium.com/@tathagat2006?source=rss-1fd80f7195aa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 22:45:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tathagat2006/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[I Broke My Own Architecture Rule and Didn’t Notice for Weeks]]></title>
            <link>https://medium.com/@tathagat2006/i-broke-my-own-architecture-rule-and-didnt-notice-for-weeks-e6ac9f15e5df?source=rss-1fd80f7195aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6ac9f15e5df</guid>
            <dc:creator><![CDATA[Tathagat Thapliyal]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 04:53:16 GMT</pubDate>
            <atom:updated>2026-06-30T04:53:16.663Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*S0eyjKTmtd0gf7UgZZRgqg@2x.jpeg" /></figure><p>What building a ~1,00,000 -line React app taught me about letting tools enforce the rules I can’t be trusted to remember.</p><p>I broke one of my own rules and didn’t notice for weeks.</p><p>The rule was simple: shared code never imports from a feature module. Shared things flow down into features; features never leak back up into shared. I’d written it down. I believed in it. Then one tired afternoon I wired a shared component straight into a module’s files, shipped it, and forgot about it.</p><p>Review didn’t catch it. I didn’t catch it. It just sat there, quietly undoing the structure I’d spent months protecting. A shared component that should depend on nothing now depended on a specific feature. The next person to touch that feature would either break the shared component or, worse, learn from it and copy the pattern.</p><p>That small mistake is the whole reason I’m writing this.</p><h3>The realization: discipline doesn’t scale</h3><p>I’ve been building a React app that’s now around 1,00,000 lines. At that size, the bug that actually hurts you usually isn’t the one you write today. It’s the one that creeps in six months from now, because a rule everyone agreed to in a doc slowly stopped being true and nobody noticed.</p><p>You cannot fix that with discipline. Discipline is the first thing to go at 6pm on a Friday, the night before a release, or three weeks into onboarding a new engineer who has never read your conventions doc.</p><p>So I stopped relying on it. I started moving every rule I could out of my head and into three places that never get tired: the compiler, the linter, and the build pipeline. If something is wrong, I want it to fail loudly and automatically, before it ever reaches a user.</p><blockquote>A convention that lives only in a doc drifts. A convention the linter enforces is an invariant.</blockquote><p>That sentence became the spine of how I think about the whole stack. Below is what it looks like in practice, layer by layer, and the reasoning behind each call.</p><h3>1. Architecture the linter enforces</h3><p>Let’s start with the rule I broke.</p><p>For a long time, “shared code never imports from a feature module” was a convention. I trusted myself and code review to uphold it. That worked right up until it didn’t.</p><p>The fix wasn’t a sterner doc or a stricter reviewer. It was about twenty lines of ESLint flat config using no-restricted-imports:</p><pre>// eslint.config.js<br>export default [<br>  {<br>    files: [&#39;src/shared/**&#39;],<br>    rules: {<br>      &#39;no-restricted-imports&#39;: [&#39;error&#39;, {<br>        patterns: [{<br>          group: [&#39;@/modules/*&#39;],<br>          message: &#39;shared/ must not import from a feature module.&#39;,<br>        }],<br>      }],<br>    },<br>  },<br>  // ...and one block per module: a module may import shared/ and itself, nothing else.<br>];</pre><p>Now if shared code reaches into a feature module, CI goes red. The boundary isn’t a hope anymore. It’s a wall.</p><p>The deeper point: review is for judgment calls, the things only a human can weigh. Mechanical invariants like import direction, naming, and exhaustiveness should be machine-enforced, so review can spend its attention on what actually needs a brain. Every time I catch myself writing a rule into a doc, I now ask whether a linter could enforce it instead. Usually it can.</p><h3>2. Types that reach all the way to the edges</h3><p>TypeScript is the foundation, in strict mode, with zero tolerance for any in review. But here&#39;s the thing people forget about types: they vanish the moment your code runs. TypeScript annotations are erased at compile time; they have no runtime presence at all.</p><p>That single fact shapes everything. Types protect you everywhere except the exact places where reality enters your program: the network response, the URL, the form field. Inside those boundaries, the compiler has your back. At the boundaries, you’re on your own unless you do something about it.</p><p>The first thing I did was stop hand-writing the types that describe the backend. Our backend is spec-first, so I generate the frontend’s wire types directly from its OpenAPI spec:</p><pre>npx openapi-typescript ./openapi.yaml -o ./src/types/api.ts</pre><p>This turns a cross-repo, cross-language contract into something the compiler checks for me. When the backend renames a field, my build breaks on the exact line that reads it, instead of failing silently in front of a user. One spec, one source of truth, spanning two repositories. The alternative, a hand-maintained set of interfaces mirroring the API, is just a second source of truth waiting to drift the moment someone is in a hurry.</p><h3>3. Validation at the doors, with Zod</h3><p>Generated types cover the shape the spec promises. But a spec is a promise, not a guarantee, and the URL and the form aren’t in the spec at all. Those are the doors where bad data walks in.</p><p>So wherever real data enters the app, a URL, a form, an API response I want to narrow further, I validate the shape at runtime with Zod. The nice part is that one schema gives me both the runtime check and the static type, so the two can’t drift apart:</p><pre>import { z } from &#39;zod&#39;;<br><br>const SearchParams = z.object({<br>  page: z.coerce.number().int().min(1).default(1),<br>  sort: z.enum([&#39;created&#39;, &#39;updated&#39;, &#39;name&#39;]).default(&#39;created&#39;),<br>  q: z.string().optional(),<br>});<br>type SearchParams = z.infer&lt;typeof SearchParams&gt;;</pre><p>If someone lands on a URL with a malformed sort value, it fails at the route boundary, not three components deep where the error makes no sense. The way I think about it: the compiler watches the inside of the app, and Zod watches the doors.</p><h3>4. Server state and client state are not the same thing</h3><p>This is the one that quietly cleaned up the most code.</p><p>I used to fetch data the obvious way: fire a request inside a useEffect, drop the result into state. It looks fine until it isn&#39;t. Type fast into a search box and you kick off several requests; there&#39;s no guarantee they come back in order. The response for &quot;hell&quot; can land after the response for &quot;hello&quot;, call setState last, and now you&#39;re showing the wrong results with no error anywhere to tell you. React&#39;s own documentation walks through this exact trap and calls it a race condition.</p><p>The naive version, and the bug hiding in it:</p><pre>// Looks fine. Has a race condition.<br>useEffect(() =&gt; {<br>  fetch(`/api/items?q=${query}`)<br>    .then(r =&gt; r.json())<br>    .then(setItems); // a stale response can win<br>}, [query]);</pre><p>You can patch it with an ignore flag or an AbortController, but then you start thinking about caching, refetching, deduping identical requests, avoiding waterfalls, and suddenly you&#39;ve hand-rolled a worse version of a library that already exists. So I use that library. TanStack Query took the whole problem off my plate:</p><pre>const { data, isPending } = useQuery({<br>  queryKey: [&#39;items&#39;, query],<br>  queryFn: () =&gt; api.getItems(query),<br>});</pre><p>Caching, collapsing duplicate requests into one, serving cached data instantly while it revalidates in the background, knowing when something has gone stale. None of that is my code anymore.</p><p>And it killed a habit I didn’t know I had. Most of what I used to call “global state” was never client state at all. It was <em>server</em> data I had copied into a store and now had to keep in sync by hand. The frontend doesn’t own that data; it’s showing a snapshot of something that lives on the server. Once I stopped copying it, the amount of genuine client state left over was tiny: the session, the theme, a couple of preferences. That lives in one small Zustand store, and nothing more.</p><p>Everything else has a natural home. Server data lives in the query cache. The active tab, the current filters, the selected row, those live in the URL, where they survive a refresh and can be shared as a link. The store is for the small residue that’s genuinely none of those.</p><h3>5. The router migration I’m proudest of</h3><p>The app started with a hand-rolled router: a big union type of routes, a useState, a popstate listener, a pile of extractSomethingFromUrl() helpers, and a matching pile of navigateTo... callbacks. By around twenty routes, that one file was 833 lines, and it had three recurring failure modes.</p><p>It produced back-button bugs, where a single navigation created two history entries and the back button dropped you on an intermediate URL that immediately bounced you forward again. It grew linearly with every feature, because it was the only file that knew the entire URL contract. And every param was untyped, parsed by hand, and renamed by grep-and-pray.</p><p>I replaced it with TanStack Router. The thing that sold me was inference-based type safety with no codegen step: typed path and search params end to end, validated at the route with a schema. It matched how I already typed the rest of the app.</p><p>That 833-line file collapsed to an eleven-line provider mount. Adding a route is now one block in one place, and the type system won’t let me navigate somewhere without the params that route requires. A whole category of “forgot a param” bugs simply stopped existing.</p><h3>6. The build: Vite 8</h3><p>The build tool is Vite. When Create React App was officially sunset in early 2025, the React team’s own advice was to move to a framework or to a build tool like Vite. I didn’t need a server runtime or server components, so the build tool was the right fit.</p><p>Vite’s dev speed isn’t a marketing benchmark; it’s architectural. It serves your source over native ES modules and transforms files on demand, instead of bundling the whole app before it can show you anything. Change a file and it swaps just that module in the browser, no full reload.</p><p>As of Vite 8 (March 2026), there’s a notable change worth knowing if you’ve read older write-ups: Vite used to use esbuild for dev and Rollup for production. Vite 8 unifies both behind Rolldown, a single Rust-based, Rollup-compatible bundler, with big production-build speedups and, just as importantly, one consistent pipeline for dev and prod instead of two that can subtly disagree.</p><p>The other half of the build story is chunking. A data-heavy app has a real payload problem: charting libraries, auth SDKs, and table stacks are all large, and none of them are needed on the login screen. So the bundle is split by route reachability, not by arbitrary size. The chart libraries load only when you visit a chart page. The login screen ships a fraction of what the authenticated app does. The principle is the same as everywhere else: make the right thing automatic, so nobody has to remember to lazy-load.</p><h3>7. Tests where the bugs actually live</h3><p>For a real application, the bugs that reach users are almost never the ones a unit test with a mocked fetch would catch. They&#39;re integration bugs: a filter that doesn&#39;t survive a round trip through the URL, a session refresh that silently drops your place, a back button that misbehaves.</p><p>So the end-to-end tests run in a real browser against a real running backend, with Playwright. A setup step logs in once and reuses the session, so every test starts authenticated, and a trace viewer captures the DOM, network, and console for any failed run. If something breaks the way a user would actually hit it, the test breaks too. That’s the only kind of test that gives me confidence before a deploy.</p><h3>8. Build once, promote many</h3><p>The last piece isn’t a library, it’s a deploy contract, and it’s the one I’d put on a slide.</p><p>The exact bytes I test locally are the exact bytes that ship. Every environment gets a bit-identical build. The only thing that changes per environment is a small config file, written at deploy time, that the app reads at runtime for things like its API host. Nothing environment-specific is ever baked into the bundle.</p><p>This sounds like a detail and it’s actually load-bearing. The moment you bake an environment variable into the build, your staging artifact and your production artifact are <em>different artifacts</em>, and “it worked in staging” stops being a guarantee. With build-once-promote-many, what you tested is, to the byte, what the user gets.</p><h3>The rest of the stack, briefly</h3><p>A few choices I won’t belabor, but that follow the same logic:</p><p><strong>Styling</strong> is Tailwind v4 with a semantic token system. Every color and spacing value is a named CSS variable that says what it’s <em>for</em> (text-heading, bg-panel), never a raw hex. Naming tokens by purpose instead of appearance is the line between a design system and a pile of utility classes.</p><p><strong>Components</strong> are built on Radix headless primitives, styled entirely with our own tokens. A correct focus trap and keyboard model is genuinely hard and easy to get subtly wrong in ways screen-reader users find first. Radix handles the accessibility; I keep full control of the look.</p><p><strong>Data visualization</strong> uses more than one library on purpose, picked by the shape of what’s being drawn rather than forcing everything through one renderer. <strong>Tables</strong> are server-driven and virtualized, so sorting, paging, and rendering tens of thousands of rows stays smooth.</p><h3>The thesis</h3><p>If there’s one idea to take from all of this, it’s not any single library. Swap any of them out and the philosophy survives.</p><p>The idea is to make the correct thing the easy thing, and push enforcement down into the compiler, the linter, and the deploy pipeline, where it can’t be forgotten under deadline pressure. Strict types so the wrong thing won’t compile. Generated wire types so a backend rename breaks the build, not production. Runtime validation so a malformed URL fails at the door. Linter-enforced boundaries so the architecture can’t quietly rot. Build-once-promote-many so “it worked in staging” is a guarantee, not a hope.</p><p>None of these are exotic. The discipline is in choosing them together, on purpose, and refusing to let any important rule live somewhere a human has to remember it.</p><p>That’s what lets a small team keep a large codebase honest.</p><p><em>If you’ve built something at this scale, I’d love to hear it: what’s a rule on your team that everyone “follows,” right up until they don’t?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6ac9f15e5df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dealing With Imposter Syndrome As A Programmer.]]></title>
            <link>https://medium.datadriveninvestor.com/dealing-with-imposter-syndrome-as-a-programmer-5d20a3d079c9?source=rss-1fd80f7195aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d20a3d079c9</guid>
            <category><![CDATA[imposter-syndrome]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Tathagat Thapliyal]]></dc:creator>
            <pubDate>Fri, 27 Dec 2019 15:01:47 GMT</pubDate>
            <atom:updated>2020-02-13T06:03:01.097Z</atom:updated>
            <content:encoded><![CDATA[<p>Almost 95% of the programmers face imposter syndrome once they are into programming. Some face it when they start to learn programming and some might face it for few initial years of their careers. It is a very generic and common thing for programmers like you and me.</p><p><a href="https://www.datadriveninvestor.com/2019/03/25/a-programmers-guide-to-creating-an-eclectic-bookshelf/">A Programmer&#39;s Guide to Creating an Eclectic Bookshelf | Data Driven Investor</a></p><p>Imposter syndrome is not only related to programmers, but it is a general behavior and set of questions that any individual may ask him/her calling it imposter syndrome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*XQWFw1uILJimvgRR.jpg" /><figcaption>What The Heck Is Imposter Syndrome?</figcaption></figure><h3>What is Imposter Syndrome?</h3><p><strong>Imposter syndrome</strong> can be defined as a collection of feelings of inadequacy that persist despite evident success. The persistent inability to believe that one’s success is deserved or has been legitimately achieved as a result of one’s own effort and skills.</p><h3>Have you asked yourself these simple questions?</h3><blockquote><strong><em>Am I smart enough to be a programmer?</em></strong></blockquote><p>A lot of growing up looks at programming as a work of geniuses. Maybe people who did excellent in their school days and primary hood deserve to be a programmer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*1ueS8dMLr-AKH65y.jpg" /></figure><p>But, the case is I did not ever thought of becoming a programmer or even start doing programming. It was only when I got into college I started to think about programming that had a very struggling start. I think it’s more of ambition and drive than natural intellect.</p><blockquote><strong><em>Do I belong here?</em></strong></blockquote><p>Trust me the stereotype is bullshit. It doesn’t matter how you look like, how you dress, none of that really matters. You might think that you might be judged by people around you and you might be by just a very small group of people which can definitely be ignored. In short, no one cares about that all these things, people only care about the work that is given to you is completed by you on time or not and you know what you are doing.</p><blockquote><strong><em>Is it just luck?</em></strong></blockquote><p>Is it really my efforts and skills that I’m at this place or is it just the people and my luck who helped me achieve this? A very naive but very common question which every second person asks himself.</p><h3>Reasons why imposter syndrome is prevalent in programming?</h3><blockquote><strong><em>Software Development is evolving daily.</em></strong></blockquote><p>There are a ton of new technologies and stuff coming into the field of Software Development daily and you need to catch pace with it in order to be updated and not lost. Might be you just learned something and it got updated in a very short span.</p><blockquote><strong><em>Nature of programmers</em></strong></blockquote><p>Give it a thought yourself about why do you feel imposter syndrome. The answer lies with you :)</p><h3>Thinking in a new way to get over imposter syndrome.</h3><p>A few things to keep in mind to help you with imposter syndrome are. Be comfortable with being uncomfortable. Trust me you’ll never be an expert in your field. Never let yourself down and never underestimate yourself. Stop comparing yourself with others.</p><blockquote><strong><em>P.S. Programming is not easy and shouldn’t be done by everyone ;)</em></strong></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d20a3d079c9" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/dealing-with-imposter-syndrome-as-a-programmer-5d20a3d079c9">Dealing With Imposter Syndrome As A Programmer.</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Aren’t You Successful Despite Being Talented And Hardworking.]]></title>
            <link>https://medium.com/coding-blocks/why-arent-you-successful-despite-being-talented-and-hardworking-5d1c7bcd49ad?source=rss-1fd80f7195aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d1c7bcd49ad</guid>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[success]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[positivity]]></category>
            <category><![CDATA[hustle]]></category>
            <dc:creator><![CDATA[Tathagat Thapliyal]]></dc:creator>
            <pubDate>Sat, 14 Dec 2019 16:07:26 GMT</pubDate>
            <atom:updated>2019-12-14T16:07:26.597Z</atom:updated>
            <content:encoded><![CDATA[<p>You are talented, hardworking and the kind of person whom everyone wants to collaborate with, yet success seems to be an old friend of yours?</p><p>It is often said that hard work is the only element required to succeed, well turns out that you need something more than that.</p><p>Well here are 10 top points I think should be taken care of with a simple 1 finger 1 point rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*QCrSupNsZbt-E9KP.jpg" /></figure><h3>1/10 You crib too much about work</h3><p>We all love a good cribbing session over a few beers with friends after work, but whining about your work life all the time impacts your performance negatively without you even realizing it. How we feel, speak and think affects our state of mind. Happy thoughts bring about positive outputs. If cribbing is all you do, you will subconsciously start hating your job, your life, your boss.</p><h3>2/10 You are not listening to your heart</h3><p>There are often times when we keep doing things not because we like doing them but because it’s probably the right thing to do, the in-trend thing to do. That’s when we enter the herd. And you know what they say about the herd? That it kills creativity and makes you mediocre.</p><h3>3/10 You are too anxious about succeeding</h3><p>Don’t be afraid to explore and do things that you want to do, just because may be thinking that you’ll be judged. The most successful people have made plenty of mistakes in their careers. But they did not give up, which is why success was theirs.</p><h3>4/10 You are not true to yourself</h3><p>In this world, one of the biggest challenges is to be yourself. Being part of the crowd brings you acceptability, which is why you give in to it easily, sacrificing your own identity.</p><p>How many times have you agreed to something only because the whole group wanted it and you did not want a confrontation by suggesting the opposite? Do not be afraid to stand apart from the crowd. You’d be lonely for a while but you’d be true to yourself.</p><h3>5/10 You don’t have a solid executable plan</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/0*SJsYpkM-2-opzgoQ.jpg" /></figure><p>While it’s okay to be spontaneous and take life as it comes, it’s absolutely necessary to plan your career. Not in a <strong><em>‘By-40-I-want-to-be-CEO’</em></strong> kind of way, but in an <strong><em>‘I-need-to-master-this-skill-in-the-next-year’</em></strong> kind of way. You love your job but you are moving ahead aimlessly. You are not tracking your personal growth.</p><h3>6/10 You constantly compare yourself to others</h3><p>Getting demotivated comes close on heels with anxiety. You look at others, smarter, sharper, fitter and happier than you and you instantly feel bogged down by all that glitter around you. If you focus too much on other runners, you are probably going to trip and fall in the race yourself. Don’t compare and berate yourself all the time. A little healthy competition is good but jealousy will take you nowhere.</p><h3>7/10 There’s a lot of negativity around you</h3><p>Does your family respect the work you do? Do any of your friends criticize your work in an unconstructive way? Steer clear. When others around you make you feel bad about the work you do or the person you are, it not only affects your confidence but your productivity too. The lack of faith and positivity can subconsciously prevent you from giving your work your best.</p><h3>8/10 You waste the first half of your day</h3><p>The early bird takes the worm. Sleeping in late, eating brunch instead of breakfast, skipping exercise (of course, because you are late) and starting your workday late is not good for your success graph. Some of you might argue you are an evening person and the morning just doesn’t agree with you.</p><p>If you can’t work or study in the morning, then don’t, but don’t waste the first half of the day doing nothing. Schedule tasks that require the least of your effort in the morning. And keep brainstorming for the evenings!</p><h3>9/10 You have low energy levels</h3><p>In the hustle of everyday life, one thing that takes the most beating is health. From skipping breakfast to binging on junk food in the office to those endless cups of tea and coffee, we leave no stone unturned in ruining our health.</p><p>Don’t think one hour of intense gyming will undo all the harm done by those 5 cups of coffee and smoke breaks you take in the day. We might not realize but most of us are low on nutrition and deficient in vitamins. That headache you get after driving back home is not because of the traffic; that’s our body telling you something’s wrong.</p><h3>10/10 You are not selling yourself well</h3><p>Despite being talented and hard-working, you somehow keep falling short. You fail to get recognition for your efforts and appreciation for your talent. Been there? You’ve been selling yourself short. It’s not enough to just be talented and hard-working; you need to believe in your worth so strongly that the world starts believing in it too.</p><blockquote><strong><em>Keep Hustling! 👨🏻‍💻</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d1c7bcd49ad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coding-blocks/why-arent-you-successful-despite-being-talented-and-hardworking-5d1c7bcd49ad">Why Aren’t You Successful Despite Being Talented And Hardworking.</a> was originally published in <a href="https://medium.com/coding-blocks">Coding Blocks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Play sounds using AVAudioPlayer iOS]]></title>
            <link>https://medium.com/coding-blocks/play-sounds-using-avaudioplayer-ios-1d4b947e899e?source=rss-1fd80f7195aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d4b947e899e</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[iphone]]></category>
            <category><![CDATA[avaudioplayer]]></category>
            <category><![CDATA[swift-programming]]></category>
            <dc:creator><![CDATA[Tathagat Thapliyal]]></dc:creator>
            <pubDate>Sun, 01 Dec 2019 20:32:37 GMT</pubDate>
            <atom:updated>2019-12-21T15:15:15.977Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wGDySfUElguAKHEUPcYy1Q.png" /></figure><p>One of the most common ways to play a sound on iOS is using <strong>AVAudioPlayer.</strong> it&#39;s easy to use, you can stop it whenever you want, and you can adjust its volume as often as you need. The only real catch is that you must store your player as property or other variables that won&#39;t get destroyed straight away – if you don&#39;t, the sound will stop immediately.</p><p><strong>AVAudioPlayer</strong> comes from <strong>AVFoundation</strong> framework, so you&#39;ll need to import that:</p><pre>import AVFoundation</pre><p>Previously said, you need to store your audio player as a property somewhere so it is retained while the sound is playing. In our example, we’re going to play a Xylophone keypress sound, so I created a property for it like demonstrated below:</p><pre>var player: AVAudioPlayer!</pre><p>Now, all you need to do is play your audio file. This is done first making a function <strong>playSound()</strong>inside which you first need to find where the sound’s source file is located in your project, which is done using <strong>Bundle &amp; path(forResource:)</strong>, and then creating a file URL out of it. That can then be passed to <strong>AVAudioPlayer</strong> to create an audio player object, at which point – finally – you can play the sound.</p><pre>func playSound() {        <br>   let url = Bundle.main.url(/service/forresource: xyz, withExtension: &quot;mp3&quot;)        <br>   player = try! AVAudioPlayer(contentsOf: url!)<br>   player.play()<br>}</pre><p>Now finally you need to call this function from within your <strong>IBAction.</strong></p><pre>@IBAction func keyPressed(_ sender: UIButton) {<br>  playsound()<br>}</pre><p>If you want to stop the sound, you should use its <strong>stop()</strong> method.</p><blockquote><strong><em>If you found this article useful, then do appreciate it by clapping no less than 50 times.</em></strong></blockquote><p>For more projects and updates lookup at <a href="http://github.com/tathagat2006">github.com/tathagat2006</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d4b947e899e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coding-blocks/play-sounds-using-avaudioplayer-ios-1d4b947e899e">Play sounds using AVAudioPlayer iOS</a> was originally published in <a href="https://medium.com/coding-blocks">Coding Blocks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart India Hackathon 2019 (Team AlphaQ)]]></title>
            <link>https://medium.com/@tathagat2006/smart-india-hackathon-2019-team-alphaq-404ac803ebc8?source=rss-1fd80f7195aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/404ac803ebc8</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Tathagat Thapliyal]]></dc:creator>
            <pubDate>Thu, 01 Aug 2019 16:56:04 GMT</pubDate>
            <atom:updated>2019-08-01T16:56:04.024Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“Hackathon is one the best way to become a better engineer”</em></p><p>Winning the Smart India Hackathon 2019 was like a dream come true for us. Working on the Track and trace supply chain problem statement under Hindustan Unilever Pvt. Ltd. At the beginning of the registration process for smart India hackathon, we submitted our abstract for this problem statement, and we&#39;re not even sure of getting selected because we had a very critical and difficult to understand the way of approaching the problem statement for others. But, luckily we made it to the Grand Finale of Smart India Hackathon 2019.</p><p>Our approach for solving that particular problem statement included <strong><em>BlockChain, IoT, Machine Learning and App Dev</em></strong>.</p><p>Our venue for Smart India was the Welingkar Institute of Management and Technology, Mumbai. Reaching the venue one night before the hackathon became adventurous for us due to multiple flight delays on that particular day. But, finally we reached the venue at around 10:30 pm and had our hackathon the next morning and were expected to reach the venue by 6:30 am. We completed all the on desk registration formalities and reached our hostels around 11:30 pm. Due to late arrival at the venue in the night, we wake up late in the morning and reached the venue at 8:00 am instead of 6:30 am.</p><p>Soon after that, we all got settled at our allotted places. We were motivated and energetic from the start of the hackathon. Every judging and mentoring session kept us motivated. However, we didn’t have a very good first and second mentoring session as compared to the other teams which were competing with us.</p><p>After taking the feedback and learning from it, we started working as a team by splitting the work. We worked throughout the night to achieve the basic requirement and extra features what we were told to work upon. We partially finished the project for the third judgment but it doesn’t go successful while showing demo. we got some errors. Judges gave some more feedbacks and wanted some more things to change and get ready for the fourth judgment and they told there should not be any bugs in the next judgment. We cleared all the errors and finished the project completed before the fourth judgment.</p><p>Now, came the final pitching round and we had the whole idea completed and the prototype ready. Some of our team members were continuously awake from the last 39 hrs (<strong>didn’t sleep for even a minute</strong>)and we knew that we have worked very hard and built the right product which the problem statement and the panel of judges required.</p><p>Soon after presentations got over, we all settled in the auditorium for the final prize distribution ceremony. Then it all started, the time for which everyone who participated was waiting. Winner of each problem statement was being declared one by one. Then when our problem statement came, the way it went was: <strong><em>“And the winner is team AlphaQ”.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*CT8rLmhN7x9eKhtZ77PAVg.jpeg" /><figcaption>The winner is Team AlphaQ</figcaption></figure><p>And we didn’t know what to do and how to act. Only happy faces all around our team, each and everyone one pumped up with energy no matter we didn’t sleep from the last 48hrs.</p><p>Guess what, It was the time for? Sleeping? <strong><em>Nah. Abhi to party shuru hui hai :)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBZL1te6mbA4S6BuvIufsQ.jpeg" /><figcaption>The one with our mentor and director sir.</figcaption></figure><p><strong><em>Key Points to win a hackathon</em></strong>: Keep your approach an achievable and valid one, don’t just build a very complicated approach which is not achievable in a real-life scenario. Listen to what judges and mentor are saying, build the right product which they want. After all, they are the people who will be choosing the winner.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=404ac803ebc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why ReactJS?]]></title>
            <link>https://medium.com/@tathagat2006/why-reactjs-fa6f642c570f?source=rss-1fd80f7195aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa6f642c570f</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Tathagat Thapliyal]]></dc:creator>
            <pubDate>Sun, 07 Jul 2019 17:12:45 GMT</pubDate>
            <atom:updated>2019-07-07T17:12:45.096Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/411/0*0JiZSd1zuDeW4aJe.png" /></figure><h3><strong>Why React:</strong></h3><p>One of the major benefits of React is Composing functions with UI.</p><h3>Benefits of Composition</h3><p>Because the concept of composition is such a large part of what makes React awesome and incredible to work with, let’s dig into it a little bit. Remember that composition is just combining simple functions together to create complex functions. There are a couple of key ingredients here that we don’t want to lose track of. These ingredients are:</p><ul><li>simple functions</li><li>combined to create another function</li></ul><p>Composition is built from <em>simple</em> functions. Let’s look at an example:</p><pre>function <strong><em>getProfileLink</em></strong> (username) {<br> return &#39;https://github.com/&#39; + username<br>}</pre><p>This function is <em>ridiculously</em> simple, isn’t it? It’s just one line! Similarly, the <strong><em>getProfilePic</em></strong> function is <em>also</em> just a single line:</p><pre>function <strong><em>getProfilePic</em></strong> (username) {<br> return &#39;https://github.com/&#39; + username + &#39;.png?size=200&#39;<br>}</pre><p>These are definitely <em>simple</em> functions, so to compose them, we’d just <em>combine</em> them together inside another function:</p><pre>function <strong><em>getProfileData</em></strong> (username) {<br> return {<br> pic: <strong><em>getProfilePic</em></strong>(username),<br> link: <strong><em>getProfileLink</em></strong>(username)<br> }<br>}</pre><p>Now we <em>could</em> have written <strong><em>getProfileData</em></strong> <em>without</em> composition by providing the data directly:</p><pre>function <strong><em>getProfileData</em></strong> (username) {<br> return {<br> pic: &#39;https://github.com/&#39; + username + &#39;.png?size=200&#39;,<br> link: &#39;https://github.com/&#39; + username<br> }<br>}</pre><p>There’s nothing technically wrong with this at all; this is entirely accurate JavaScript code. But this <em>isn’t</em> composition. There are also a couple of potential issues with this version that <em>isn’t</em> using composition. If the user’s link to GitHub is needed somewhere else, then duplicate code would be needed. A good function should follow the “DOT” rule:</p><blockquote><em>Do One Thing</em></blockquote><p>This function is doing a couple of different (however minor) things; it’s creating two different URLs, storing them as properties on an object, and then returning that object. In the composed version, each function just does one thing:</p><ul><li><strong><em>getProfileLink</em></strong> – just builds up a string of the user&#39;s GitHub profile link</li><li><strong><em>getProfilePic</em></strong> – just builds up a string the user&#39;s GitHub profile picture</li><li><strong><em>getProfileData</em></strong> – returns a new object</li></ul><h3>React &amp; Composition</h3><p>React makes use of the power of composition, heavily! React builds up pieces of a UI using <strong>components</strong>. Let’s take a look at some pseudo code for an example. Here are three different components:</p><pre>&lt;Page /&gt;<br>&lt;Article /&gt;<br>&lt;Sidebar /&gt;</pre><p>Now let’s take these <em>simple</em> components, combine them together, and create a more complex component (aka, composition in action!):</p><pre>&lt;Page&gt;<br> &lt;Article /&gt;<br> &lt;Sidebar /&gt;<br>&lt;/Page&gt;</pre><p>Now the Page component has the Article and Sidebar components <em>inside</em>. This is just like the earlier example where <strong><em>getProfileData</em></strong> had <strong><em>getProfileLink</em></strong> and <strong><em>getProfilePic</em></strong> inside it.</p><p>We’ll dig into components soon, but just know that composition plays a huge part in building React components.</p><h3>Composition Recap</h3><p>Composition occurs when <em>simple</em> functions are <em>combined</em> together to create <em>more complex</em> functions. Think of each function as a single building block that <em>does one thing</em> (DOT). When you combine these simple functions together to form a more complex function, this is <strong>composition</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa6f642c570f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Land a top-notch tech intern- while you are in college.]]></title>
            <link>https://medium.com/@tathagat2006/how-to-land-a-top-notch-tech-intern-while-you-are-in-college-a7e61fe327b2?source=rss-1fd80f7195aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7e61fe327b2</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Tathagat Thapliyal]]></dc:creator>
            <pubDate>Sat, 23 Feb 2019 15:24:26 GMT</pubDate>
            <atom:updated>2019-02-25T19:37:43.001Z</atom:updated>
            <content:encoded><![CDATA[<p>I began my undergrad journey in the year 2016 (6 semesters back) with no programming background, but a keen interest to learn tech and implement it in real life.</p><p>The path I took seemed easy but was full of ups and more downs. Initially, I explored many technologies, worked with them and then left them over without fetching the right opportunity out of each one them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*bEz6jlJtaVTE_Ab_Y2wQKQ.png" /></figure><h4>Initial note before we begin</h4><p><em>“My dad always told me, Go out there…and whatever you do, I don’t care if you’re successful or not, just have an interesting life. Just be happy to put your pants on in the morning”.</em></p><p>Now, this is very important. Don’t ever let your struggle for the desired job suppress your interest and take over your interesting life. Doing what interests you is more important than getting your desired job and not doing what and how you wanted to do things in life.</p><p>Make the best out of your life and live it the way you want it to be and not shape it according to the people around you due to peer pressure.</p><h4>Step1: Build strong fundamentals</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y60B_e58SgF15dFShdr5ZA.jpeg" /></figure><p>Start off with very basic. That’s obvious. Right? But, it is the most difficult part for most of us. It requires patience and dedication for this to happen. This phase is the most constant phase of anyone’s career as you are in a learning phase and keep on learning new things without implementing them for industrial projects.</p><p>But don’t worry, once you are done with this phase <strong><em>genuinely</em></strong>, A big pool of opportunity will be in front of you and you’ll be able to choose which fish to pick. Consequently, the best part of your career would start.</p><p>Finally, the most asked question. <em>“Is GPA important? </em><strong><em>My answer to this question is =&gt; Not Actually</em></strong><em>”. </em>Maintaining a good GPA isn’t bad, but for some obvious reasons, it is not the solution for you having a successful career ahead.</p><h4>What if you are not studying computer science?</h4><p>I have many friends who are not from the computer science background but they still chose to dive into the world of computers and trust me, they are doing exceptionally well as compared to computer engineering people.</p><p>Passion drives anyone’s desire to learn tech. It is independent of what you study. If you are passionate you’ll “<em>crack it the hard way”</em>.</p><h4>Enjoy the process, and don’t worry about the result.</h4><p>Let your learning curve get steeper and steeper each day. Stop worrying about the end result of what you are doing. I kept on doing what interested me and the end results were surprising.</p><p>I was considered by many good tech startups and tech-giants. I got offers from various blooming tech places to join them.</p><p><strong>Being good in your coding skills is not everything, you need to be aware of what are the booming tech in the industry you aspire to work.</strong></p><h4>Step2: Building Projects</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*Bhw5kbYt7TMrReFcAi-gqA.jpeg" /></figure><p><em>“Building while Learning”. </em>It is very important to know that no learning in computer science is complete unless you build something out of what you learn. From the very first day, make it a habit to start building projects from what you learn.</p><p>Build a very terrific project, to sum up, your learning of a single big computer science technology. You can’t learn any technology to 100%. It’s gradual and forever learning which never dies.</p><p>You can refer to <a href="https://www.github.com/tathagat2006">https://www.github.com/tathagat2006</a> for project ideas and how to manage your projects.</p><h4>Attend Hackathons to boost your project building Capability.</h4><p>Attending frequent hackathons makes it easy for you to learn new technologies and build cool projects to put them on your CV.</p><h4>Building Good Resume</h4><p>Building a Resume isn’t that straight forward as we think. It requires detailed analyses and study. <em>Recruiter’s spend on an average of 6 seconds </em>in reading your resume. Make it such that it is accepted in those 6 seconds.</p><h4>If you don’t have a LinkedIn profile, create one.</h4><p>LinkedIn enables recruiters to find you and helps you maintain your professional network. Plus, you need it for the cold-emailing recruiters later.</p><p>With a few projects under your belt and resume in hand, you’re ready to begin preparing for interviews.</p><h4>Step3: Self Help</h4><p>I’ll be telling you about my winning experiences in various hackathons and will share my experience as a ReactJS and NodeJS developer in my upcoming articles.</p><blockquote><strong>Thanks for reading. Do react with a clap if you liked it.</strong></blockquote><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><figure><a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_image"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2IVAl0TbsfES9cFGYr40g.png" /></a></figure><p>📝 Read this story later in <a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_read_later_text">Journal</a>.</p><p>🗞 Wake up every Sunday morning to the week’s most noteworthy Tech stories, opinions, and news waiting in your inbox: <a href="https://usejournal.com/newsletter/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_text">Get the noteworthy newsletter &gt;</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7e61fe327b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning JavaScript the easy way]]></title>
            <link>https://medium.com/@tathagat2006/learning-javascript-the-easy-way-db2570f50879?source=rss-1fd80f7195aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/db2570f50879</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Tathagat Thapliyal]]></dc:creator>
            <pubDate>Sat, 11 Aug 2018 10:52:27 GMT</pubDate>
            <atom:updated>2018-08-11T10:52:27.550Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qLyxSM72asrT-qge.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*-vbOOIs3IT6FwEJu" /></figure><h3><strong>Who Is This Meant For</strong></h3><p>You best fit into this plan if:</p><ul><li>You’re already familiar with basic programming concepts like variables , data types, functions in any language preferably JavaScript.</li><li>Already might have done back-end work with languages such as NodeJs, Python and may have used front-end libraries such as jQuery .</li><li>Want a better grip on learning front-end libraries but are over flooded with which library to learn.</li></ul><h3>Things which will be covered</h3><ul><li>What is JavaScript.</li><li>Why not only jQuery.</li><li>Why is React the best option.</li><li>Resources to learn ES6.</li><li>Moving on to Redux.</li><li>Moving to React Native.</li><li>Moving to my next blog : <strong>Learning React The Easy Way.</strong></li></ul><h3>Working of a JavaScript App</h3><p>JavaScript is what is called a Client-side Scripting Language. That means that it is a computer programming language that runs inside an Internet browser (a browser is also known as a Web client because it connects to a Web server to download pages).</p><p>The way JavaScript works is interesting. Inside a normal Web page you place some JavaScript code. When the browser loads the page, the browser has a built-in interpreter that reads the JavaScript code it finds in the page and runs it.</p><p>An Example of a simple JavaScript Program.</p><pre>&lt;html&gt;<br>&lt;head&gt;<br>&lt;script language=&quot;JavaScript&quot;&gt;<br>&lt;!-- hide this script from old browsers<br>function temp(form)<br>{<br>  var f = parseFloat(form.DegF.value, 10);<br>  var c = 0;<br>  c = (f - 32.0) * 5.0 / 9.0;<br>  form.DegC.value = c;<br>}<br>// done hiding from old browsers --&gt;<br>&lt;/script&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;FORM&gt;<br>&lt;h2&gt;Fahrenheit to Celsius Converter&lt;/h2&gt;<br>Enter a temperature in degrees F: <br>&lt;INPUT NAME=&quot;DegF&quot; VALUE=&quot;0&quot; MAXLENGTH=&quot;15&quot; SIZE=15&gt;<br>&lt;p&gt;<br>Click this button to calculate the temperature <br>in degrees C:<br>&lt;INPUT NAME=&quot;calc&quot; VALUE=&quot;Calculate&quot; TYPE=BUTTON <br>onClick=temp(this.form)&gt;<br>&lt;p&gt;<br>Temperature in degrees C is: <br>&lt;INPUT NAME=&quot;DegC&quot; READONLY SIZE=15&gt;<br>&lt;/FORM&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p><strong>The old way of doing JavaScript:</strong></p><ul><li>The database sends data to your back-end (e.g. your ExpressJS app).</li><li>The back-end reads that data and outputs HTML.</li><li>The HTML is sent to the browser, which displays it as the DOM.</li></ul><p><strong>Modern JavaScript app:</strong></p><p>Instead of sending HTML, the server now sends <em>data</em>, and the “data to HTML” conversion step happens on the client instead (which is why you’re also sending along the code that tells the client how to perform said conversion).</p><p>Advantages:</p><ul><li>For a given piece of content, sending only data is faster than sending entire HTML pages.</li><li>The client can swap in content instantly without having to ever refresh the browser window (thus the term “Single Page App”).</li></ul><p>Disadvantages:</p><ul><li>The initial load takes longer since the “data to HTML” codebase can grow quite large.</li><li>You now need a place to store and manage the data on the client too, in case you want to cache it or inspect it.</li></ul><h3>Week 0 : JavaScript Fundamentals</h3><p>Regardless of you having a Backend Background in any language, or you being new to JavaScript . Learning JavaScript Won’t actually be that tough if you have a bit of experience in any programming language.According to me JavaScript is an average difficulty language.</p><p>But if JavaScript is totally new to you , don’t get upset. There are many free and good online resources to Master JavaScript.For Example a good place to start with is <a href="http://www.learn-js.org/"><strong>Learn-JS.org</strong></a><strong> , </strong>For further in depth explanations refer to <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript"><strong>Mozilla Developer Network</strong></a><strong> .</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db2570f50879" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>