<?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 Nishant Tiwari on Medium]]></title>
        <description><![CDATA[Stories by Nishant Tiwari on Medium]]></description>
        <link>https://medium.com/@nishant99tiwari?source=rss-5d44dea274fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*2f8UG_HehI778soF0xtZiw.png</url>
            <title>Stories by Nishant Tiwari on Medium</title>
            <link>https://medium.com/@nishant99tiwari?source=rss-5d44dea274fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:18:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nishant99tiwari/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[JUST FUCKING KNOW JAVASCRIPT]]></title>
            <link>https://nishant99tiwari.medium.com/just-fucking-know-javascript-85aa948955ad?source=rss-5d44dea274fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/85aa948955ad</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Nishant Tiwari]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 04:10:14 GMT</pubDate>
            <atom:updated>2025-06-29T04:10:14.789Z</atom:updated>
            <content:encoded><![CDATA[<p><em>(STOP CARGO-CULTING AND LEARN THE GODDAMN LANGUAGE, YOU FRAMEWORK-ADDICTED MONKEY)</em></p><h3>What the fuck is this about?</h3><p>This is about you, sitting there, proudly copy-pasting Chat GPT snippets and NPM packages like some kind of digital Frankenstein, wondering why your “modern” JavaScript application runs like a three-legged horse with asthma. You think knowing React hooks makes you a JavaScript developer? <strong>You’re not a JavaScript developer, you’re a fucking tourist with a guidebook written by someone else.</strong></p><p>You’re the kind of developer who googles “how to reverse array JavaScript” for the 47th time this month because you never bothered to learn that Array.prototype.reverse() exists. You probably have &quot;JavaScript&quot; on your LinkedIn but couldn&#39;t explain what this refers to in an arrow function if your job depended on it. Spoiler alert: it fucking might.</p><h3>Why should I give a shit about “vanilla” JavaScript when I have frameworks?</h3><p>Because frameworks are tools, you absolute monkey, and tools are only as good as the craftsman wielding them. You wouldn’t trust a surgeon who doesn’t understand anatomy just because they have fancy scalpels, would you? Yet here you are, building applications without understanding the language they’re built on.</p><p>You’re like someone who only knows how to cook using ready-made masala packets, then wonders why every dish tastes like cardboard soaked in mediocrity. <em>“But I know how to use the pressure cooker!”</em> you cry, while actual cooks are laughing, rolling chapatis with one hand and your ego with the other. Learn the damn basics, you culinary disaster — not everything is going to be saved by store-bought pav bhaji masala.</p><p>Every time you write useEffect(() =&gt; {}, []) without knowing why, somewhere a senior dev in Bangalore mutters <em>&quot;Bas kar bhai&quot;</em> and silently dies inside. You’re not coding, you’re doing <em>mantras</em> you barely understand, like that uncle forwarding health tips on WhatsApp thinking he&#39;s a doctor. Learn the damn fundamentals — this isn’t <em>Andaz Apna Apna</em>, your bugs won’t solve themselves you blind fool.</p><h3>CLOSURES, MOTHERF****R! DO YOU UNDERSTAND THEM?</h3><p>You think closures are just some academic bullshit? They’re the backbone of every callback, every event handler, every module pattern you’ve ever used. When you write:</p><pre>function createCounter() {<br>    let count = 0;<br>    return function() {<br>        return ++count;<br>    };<br>}</pre><pre>const counter = createCounter();<br>console.log(counter()); // 1<br>console.log(counter()); // 2</pre><p>That inner function has access to count even after createCounter has finished executing. That&#39;s not magic, you dense walnut, that&#39;s a closure. And if you don&#39;t understand why this works, you&#39;re just copy-pasting patterns without understanding the fundamental mechanics that make JavaScript tick.</p><p>I bet you’ve used closures a hundred times in your event handlers and callbacks, acting like you’ve cracked computer science, when really you’re just a monkey pressing buttons until something works. “It works, so it must be right!” you tell yourself — no, genius, your code is hanging by a thread of luck, caffeine, and GPT answers you didn’t even read. Keep going — one day even your console.log will file an HR complaint.</p><h3>THE EVENT LOOP ISN’T SOME MYSTICAL FUCKING DRAGON</h3><p>You wonder why your code sometimes executes in weird orders? Why setTimeout(fn, 0) doesn&#39;t execute immediately? Because you don&#39;t understand the event loop, you impatient bastard.</p><pre>console.log(&#39;1&#39;);<br>setTimeout(() =&gt; console.log(&#39;2&#39;), 0);<br>Promise.resolve().then(() =&gt; console.log(&#39;3&#39;));<br>console.log(&#39;4&#39;);</pre><pre>// Output: 1, 4, 3, 2</pre><p>JavaScript is single-threaded, but it has a call stack, a task queue, and a microtask queue. Promises go to the microtask queue, which has higher priority than the regular task queue where setTimeout callbacks go. <strong>If you don’t know this, you’re debugging async code like a blind person trying to solve a Rubik’s cube.</strong></p><p>You probably think “asynchronous” just means “takes a while to run,” don’t you? Like it’s just JavaScript being lazy. Meanwhile, you’re writing async/await functions like some kind of magical incantation, wondering why sometimes your code runs in weird orders and occasionally everything breaks for no apparent reason. Hint: there&#39;s always a reason, you just don&#39;t know enough to see it.<br>You call yourself a <em>10x engineer</em>, but struggle to explain how async/await actually works. Copy-pasting code from Chat GPT at 10x speed doesn’t make you special, it makes you dangerous. You’re flexing on Twitter, building apps held together by console.logs and caffeine, while production crashes like your ego in a real code review you monkey. Real <em>10x</em> is understanding the fundamentals — not shipping bugs ten times faster.</p><h3>HOISTING: NOT A GOTCHA, BUT A FUNDAMENTAL BEHAVIOR YOU SHOULD FUCKING KNOW</h3><p>Variables and function declarations are “hoisted” to the top of their scope. But var, let, and const behave differently:</p><pre>console.log(a); // undefined (not an error!)<br>console.log(b); // ReferenceError: Cannot access &#39;b&#39; before initialization<br>console.log(c); // ReferenceError: Cannot access &#39;c&#39; before initialization</pre><pre>var a = 1;<br>let b = 2;<br>const c = 3;</pre><p>var declarations are hoisted and initialized with undefined. let and const are hoisted but not initialized, creating a &quot;temporal dead zone.&quot; Understanding this isn&#39;t pedantic bullshit—it&#39;s knowing how the language actually works, you framework-dependent child.</p><p>But no, you probably just memorized “use const and let, never var” like some kind of programming parrot, without understanding why. You’re the developer equivalent of someone who follows GPS directions without learning to read a map, then getting completely lost the moment your phone dies. Congratulations, you’ve successfully cargo-culted your way into mediocrity.</p><h3>Prototypes and the prototype chain: The OOP you never fucking learned</h3><p>You use classes now because ES6 gave you syntactic sugar, but underneath, JavaScript is still prototypal. Every object has a hidden [[Prototype]] property that links to another object:</p><p>Oh, you thought JavaScript classes were “real” classes like in Java or C#? How fucking adorable. They’re just syntactic sugar over the prototype system that’s been there since day one. You’re like someone who thinks a tuxedo t-shirt makes them formally dressed. It looks like the real thing from a distance, but underneath it’s still the same old shit, just dressed up to fool people who don’t know better.</p><pre>function Person(name) {<br>    this.name = name;<br>}<br><br>Person.prototype.greet = function() {<br>    return `Hello, I&#39;m ${this.name}`;<br>};<br><br>const john = new Person(&#39;John&#39;);<br>console.log(john.greet()); // &quot;Hello, I&#39;m John&quot;<br><br>// john doesn&#39;t have greet method, but john.__proto__ does<br>console.log(john.hasOwnProperty(&#39;greet&#39;)); // false<br>console.log(john.__proto__.hasOwnProperty(&#39;greet&#39;)); // true</pre><p>When you call john.greet(), JavaScript looks for greet on john, doesn&#39;t find it, then looks on john.__proto__ (which is Person.prototype), finds it there, and calls it. <strong>This is how inheritance works in JavaScript, and if you don&#39;t understand it, you&#39;re just playing with toys you don&#39;t comprehend, you ungrateful fool.</strong></p><h3>This binding: The source of a million fucking bugs</h3><p>The value of this depends on how a function is called, not where it&#39;s defined. This trips up more developers than a banana peel in a nursing home:</p><pre>const obj = {<br>    name: &#39;Object&#39;,<br>    greet: function() {<br>        console.log(`Hello from ${this.name}`);<br>    }<br>};<br><br>obj.greet(); // &quot;Hello from Object&quot;<br><br>const greetFunc = obj.greet;<br>greetFunc(); // &quot;Hello from undefined&quot; (or error in strict mode)<br><br>// Arrow functions don&#39;t have their own &#39;this&#39;<br>const obj2 = {<br>    name: &#39;Object2&#39;,<br>    greet: () =&gt; {<br>        console.log(`Hello from ${this.name}`); // &#39;this&#39; is not obj2!<br>    }<br>};<br><br>obj2.greet(); // &quot;Hello from undefined&quot;</pre><p>Regular functions get their this from how they&#39;re called. Arrow functions inherit this from their lexical scope. <strong>If you don&#39;t know the difference, you&#39;re going to spend your career debugging &quot;this is undefined&quot; errors like some kind of masochistic treasure hunter.</strong></p><p>You&#39;ve probably Googled &quot;javascript this undefined&quot; so many times that Google thinks you have a personal problem against the this keyword. And you probably do, because you treat it like some mystical force that randomly decides to work or not work, instead of learning the actual rules. It&#39;s not magic, it&#39;s not random, it&#39;s just following rules you never bothered to learn, you lazy bastard.</p><h3>Scope and lexical scoping: Where variables actually fucking live</h3><p>JavaScript uses lexical scoping, which means the scope of a variable is determined by where it’s declared in the code, not where it’s called from:</p><pre>function outer() {<br>    const x = 10;<br>    <br>    function inner() {<br>        console.log(x); // 10 - can access x from outer scope<br>    }<br>    <br>    return inner;<br>}</pre><pre>const innerFunc = outer();<br>innerFunc(); // Still logs 10, even though outer has finished</pre><p>The inner function “closes over” the variable x, keeping it alive even after outer finishes executing. This is the foundation of modules, callbacks, and half the patterns you use daily without understanding.</p><h3>Coercion: JavaScript’s attempt to help you, you ungrateful shit</h3><p>JavaScript tries to be helpful by converting types automatically. Sometimes this is convenient, sometimes it bites you in the ass:</p><pre>console.log(&#39;5&#39; + 3);    // &quot;53&quot; (string concatenation)<br>console.log(&#39;5&#39; - 3);    // 2 (numeric subtraction)<br>console.log([] + []);    // &quot;&quot; (empty string)<br>console.log([] + {});    // &quot;[object Object]&quot;<br>console.log({} + []);    // 0 (in some contexts)</pre><pre>// The famous equality comparisons<br>console.log(0 == &#39;0&#39;);   // true<br>console.log(0 == []);    // true<br>console.log(&#39;0&#39; == []);  // false (wat?)</pre><p>This isn’t broken — it follows specific rules. The problem is you never learned the rules, so you’re surprised when JavaScript does exactly what it’s supposed to do. <strong>Use </strong><strong>=== for strict equality, understand when coercion happens, and stop acting like the language is personally attacking you.</strong></p><p>You probably saw one of those “JavaScript WTF” memes and decided the language was broken, didn’t you? Then you spent the next five years complaining about it at conferences and on Twitter instead of spending thirty minutes learning how type coercion actually works. You’re like someone who gets angry at math because they can’t figure out why 2 + 2 * 3 equals 8 instead of 12, while someone is laughing at your ignorance of operator precedence.</p><h3>Memory management and garbage collection: Why your app eats RAM like a starving hippo</h3><p>JavaScript has automatic garbage collection, but that doesn’t mean you can be a careless slob:</p><pre>// Memory leak example<br>function createMemoryLeak() {<br>    const largeArray = new Array(1000000).fill(&#39;leak&#39;);<br>    <br>    return function() {<br>        // This closure keeps largeArray alive<br>        console.log(&#39;I am leaking memory!&#39;);<br>    };<br>}</pre><pre>const leakingFunction = createMemoryLeak();<br>// largeArray can&#39;t be garbage collected because leakingFunction references it</pre><p>Closures, event listeners, and circular references can prevent garbage collection. <strong>If you don’t understand how references work, you’ll build memory-leaking applications that slow down over time like a Windows 95 machine with too many browser toolbars.</strong></p><h3>When should you actually fucking learn JavaScript properly?</h3><ul><li><strong>When debugging becomes a daily nightmare</strong> — If you’re constantly confused by your own code’s behavior, you need to understand the language.</li><li><strong>When performance matters</strong> — You can’t optimize what you don’t understand.</li><li><strong>When you want to read others’ code</strong> — Good libraries use advanced JavaScript features. If you don’t know the language, their code looks like hieroglyphics.</li><li><strong>When you want to write maintainable code</strong> — Understanding why patterns work helps you apply them correctly.</li><li><strong>When you’re tired of being a fucking impostor</strong> — You know you are one. Deep down, you know you’re just shuffling around abstractions without understanding the foundation.</li></ul><p><strong><em>NO YOU FUCKING DIMWITS YOU SHOULD ALWAYS KNOW YOUR WEAPONS, JUST FUCKING LEARN JAVASCRIPT NOW.</em></strong></p><h3>The real fucking problem isn’t JavaScript complexity</h3><p>The real problem is developers who think learning a framework is the same as learning programming. You’re like someone who learned to drive an automatic transmission and thinks they understand engines. <strong>JavaScript is weird, yes, but it’s consistently weird.</strong> Once you understand its quirks, they become predictable features, not mysterious gotchas.</p><p>You’re probably one of those developers who says “JavaScript is a terrible language” while building your entire career on top of it. That’s like being a professional race car driver who constantly complains that cars are stupid. Maybe the problem isn’t the car, maybe the problem is that you never learned to drive properly, you fucking backseat driver.</p><p>You sit in code reviews nodding sagely when someone mentions “best practices” while secretly having no idea why those practices exist. You’re like a medieval peasant who knows that certain rituals keep the crops growing, but would be completely fucked if someone asked you to explain photosynthesis.</p><p>You don’t need to memorize every edge case or become a language lawyer. But you need to understand closures, scope, prototypes, asynchronous execution, and type coercion. These aren’t advanced topics — they’re fundamental to how the language works.</p><p>So stop relying on your framework’s abstractions to paper over your ignorance. Stop copy-pasting solutions you don’t understand. Stop pretending that knowing the latest React hooks makes you a JavaScript developer. <strong>You’re not a full-stack developer, you’re not a senior developer, you’re barely a developer at all — you’re a professional copy-paster with impostor syndrome, and deep down, you fucking know it.</strong></p><p><strong>JUST FUCKING KNOW JAVASCRIPT.</strong></p><p>Your future self (and everyone who has to work with your code) will thank you for not being another framework tourist who crumbles the moment they encounter actual JavaScript. Stop being the developer equivalent of someone who can only cook microwave dinners, then acts confused when asked to make toast from scratch.</p><p>And for the love of all that is holy, stop putting “JavaScript Expert” on your resume when you can’t explain what bind() does without googling it, you fraudulent fuck.</p><p>Now get back to work and learn the goddamn language that runs the web.</p><p><em>Stop making excuses. Start understanding your tools.</em></p><p>This post is inspired by <a href="https://justfuckingusereact.com/">JUST FUCKING USE REACT</a></p><p>Author: <a href="https://www.linkedin.com/in/nishant-kumar-tiwari-253a46196/">Me who else</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85aa948955ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Flex Boxing Guide]]></title>
            <link>https://nishant99tiwari.medium.com/css-flex-boxing-guide-46f0a093e778?source=rss-5d44dea274fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/46f0a093e778</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[css-flex]]></category>
            <dc:creator><![CDATA[Nishant Tiwari]]></dc:creator>
            <pubDate>Tue, 10 May 2022 16:46:03 GMT</pubDate>
            <atom:updated>2022-05-10T16:46:03.925Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1yoqQO2PaKtmCskpz28Tkg.png" /></figure><p><strong>Are you confused about CSS flexbox? are you still afraid of layouts?<br>then here I Nishant a cool developer like you all, present you a new blog to help you in your confusion.</strong></p><p>so <em>What is CSS Flexbox?</em></p><p>CSS flexbox is a one-dimensional layout pattern that makes it easy to design flexible and effective layouts. The use of flexbox ensures that elements are properly placed and are predictable. Flex items are positioned inside a flex container along a flex line. By default, there is only one flex line per flex container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*NukK032zINapegAyyYOMHQ.png" /><figcaption>CSS FlexBox</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*VDRCT7-Gm9HDD6zVhX8tkw.png" /></figure><p>A question must be coming to your mind, Why FlexBox?</p><ul><li>Automatically scale elements (alter height or width) so that they fill the available space.</li><li>Automatically shrink or grow elements to make them fit into the container and prevent overflow.</li><li>Change the order of the items.</li><li>Solve the problem of horizontal and vertical centering.</li><li>Create columns of the same height.</li><li>Create a footer sticking to the bottom of the page.</li><li>Design navigation panels.</li></ul><h3>Ordering &amp; Orientation-</h3><p>The contents of a flex container can be laid out in any direction and any order</p><p><strong><em>flex-direction :<br></em></strong><em>Row-</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*OGVzKvOyKSD5YT1U3D5TpQ.png" /></figure><p><em>row-reverse-</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*XNpFPWaddHL1HAnGpIvkeA.png" /></figure><p><em>Column-</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*QGM7kD7SMTp4LyldZr_1wQ.png" /></figure><p><em>column-reverse </em>-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*adH3BbQxJrVvELgx-SvMSQ.png" /></figure><p>The <a href="https://yoksel.github.io/flex-cheatsheet/#section-flex-direction">flex-direction</a> property specifies how <a href="https://www.w3.org/TR/css-flexbox-1/#flex-item">flex items</a> are placed in the flex container, by setting the direction of the flex container’s <a href="https://www.w3.org/TR/css-flexbox-1/#main-axis">main axis</a>. This determines the direction in which flex items are laid out.</p><p><strong>Flex-wrap -</strong></p><p><em>nowrap -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*bfuWx4f1_s49cDY2yPPKBg.png" /></figure><p><em>wrap -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*tnU5VbyvPelR-TXqDcVQiQ.png" /></figure><p><em>wrap-reverse -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*z__xIvBJ8ghW-vhK0MijYw.png" /></figure><h3><a href="https://yoksel.github.io/flex-cheatsheet/#section-alignment">Alignment</a> -</h3><p>After a flex container’s contents have finished their flexing and the dimensions of all flex items are finalized, they can then be aligned within the flex container.</p><p><strong>justify-content -</strong></p><p><em>flex-start </em>-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*ETf9LVfn_GyEzT4N6hULeg.png" /></figure><p><em>flex-end </em>-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*yjYoI5emWhiXo6yXkFRqTA.png" /></figure><p><em>center -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*qU56ZOMkMIuVrHT_qCim-w.png" /></figure><p><em>space-between -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*S0_r_WoUYzvIbhDqE-sdEw.png" /></figure><p><em>space-around -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*JwaXAjQgjh5mLuhQwHJUSA.png" /></figure><p><em>space-evenly -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*VZPVRg8IX_-SRKrhpmu-Jg.png" /></figure><p><strong>align-content -</strong></p><p><em>flex-start -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*eME3VRTuKB6Vkzxu7eHEmw.png" /></figure><p><em>flex-end -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*bcGgfR1uhYbxTEDQzdZ_yw.png" /></figure><p><em>center -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*LP6kZjYld83C-d_Iy65ebw.png" /></figure><p><em>space-between -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*O9o8mZoi9agb9fDwE9Pf7g.png" /></figure><p><em>space-around -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*Qj1kkvLk4lLELmN_3soRzw.png" /></figure><p><em>stretch -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*rEC_i10I-5OFSh0qGumdXA.png" /></figure><h4>align-items -</h4><p><em>Stretch -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*2jch4MdkyO9AggQ6jZpsCQ.png" /></figure><p><em>flex-start</em> -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*cpTmReDzG-swL43be4XhCw.png" /></figure><p><em>flex-end </em>-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*Z2q9c4fdYEioOo7j64mQUg.png" /></figure><p><em>center -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*yEszQEwfdj-ALGhn7gHL6Q.png" /></figure><p><em>baseline -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*1h99bIwCmg-_WUwLIv3wNw.png" /></figure><p><em>auto -</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*jhqcaEwnf8tFmx6T0QpHXg.png" /></figure><p><em>so, This is all about CSS flexbox, Hope this helps.<br>and</em> <em>If it did then support me and do follow me on my social accounts </em>😄😄</p><p><a href="https://www.linkedin.com/in/nishant-kumar-tiwari-253a46196/">LinkedIn</a><br><a href="https://github.com/Asuraking1n/">GitHub</a><br><a href="http://nishant88tiwari@gmail.com/">Mail</a></p><p>👋👋 Happy Hacking and keep learning.👋👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46f0a093e778" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[useEffect: A whole new mental model]]></title>
            <link>https://nishant99tiwari.medium.com/useeffect-a-whole-new-mental-model-8f1d01d41d04?source=rss-5d44dea274fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f1d01d41d04</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[dev]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Nishant Tiwari]]></dc:creator>
            <pubDate>Tue, 10 May 2022 13:38:29 GMT</pubDate>
            <atom:updated>2022-05-10T13:38:29.667Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*WbPcXbngidrNUP3zz98XvA.gif" /><figcaption>react.js</figcaption></figure><h3><strong>Are you still afraid of side Effects and useEffect ?</strong></h3><p>You are good in react and using react components you are mostly satisfied, But still sometimes when you useEffect, the pieces don’t quite fit together. You have a nagging feeling that you’re missing something. It seems similar to class lifecycles… but is it really? You find yourself asking questions like:</p><ul><li>🤔 How do I replicate componentDidMount with useEffect?</li><li>🤔 How do I correctly fetch data inside useEffect? What is []?</li><li>🤔 Do I need to specify functions as effect dependencies or not?</li><li>🤔 Why do I sometimes get an infinite refetching loop?</li></ul><p><strong>If you also have questions like these then this blog is specially for you.</strong></p><p>Hello, I am Nishant. I am a student and developer, and you should know that I was also not a big fan of side effects and useEffect. If you can relate to this, don’t worry; after working on many projects (small and large), I discovered few cools ways to learn side effects that every developer should know.</p><p><em>So, How do we learn useEffect ?</em></p><p>Yoda will help you to learn useEffect……….😄</p><p><em>“Unlearn what you have learned.” — Yoda</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*4v7ogLAkpGPnrmSi0vwEOw.jpeg" /><figcaption>yoda, starwars</figcaption></figure><p>😄😄😄😄Lets see what that means-</p><p>First of all, <strong><em>What are side Effects ?</em></strong></p><p>If your React component affects anything outside of itself, it’s called a side effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*QmyZVFxmsbcLSnIYGxfkiQ.png" /></figure><p>Side effects shouldn’t happen during component render. Therefore they do not belong to the body of a functional component. React has a special place for them.</p><p>Then, <strong><em>How do we Deal with side effects ?</em></strong></p><p>The special place for side effects in react is inside the useEffect hook. Hence the name.</p><p><em>By using this Hook, you tell React that your component needs to do something after render. React will remember the function you passed (we’ll refer to it as our “effect”), and call it later after performing the DOM updates.</em></p><p>Let’s try it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*WKcxn7b_wGVn2Trf4gx_3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*YCq-olSz9VMaF0jooSt22A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*xBbi1nG-4_dUatjMiPMy3A.png" /></figure><p>The useEffect does not run during the render. It runs after the render, which is what we want. But we still have the same problem. That’s because, by default, useEffect will run after every component render.</p><h3>Running effects conditionally:</h3><p>There is a way to run effects conditionally, not after every render. The useEffect hook accepts the dependency list as a second argument. React will only re-run the effect if any dependency in the list changes. Let’s try it out:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*TiFTEVodXb9AwpOAtpK5ew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*iRhlgRvzAPairdhR3JMGvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*YSppzyobUCmbbJ4DQPCReA.png" /></figure><p>When you pass an empty array as a dependency list, the effect will run only once, after the first render. It prevents the infinite loop from happening in our case. However, you might notice that our fetch function relies on the props.id .</p><h3><strong><em>Reacting to changes</em></strong></h3><p>Let’s pick up where we left off and see what happens when we change the component’s props.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*VxDo1FIUmPoPu97bEyjIag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*1WvutyrWfFgQ855BzhUbnA.png" /></figure><h3>ahhhh…………Nothing Happens 🤔</h3><p>We would expect the component to react to prop change and fetch another product, but nothing happens. That’s because we have an empty dependency list.</p><p>If the side effect relies on any props or state variables, we should put them in the dependency list. After every render, React will check whether any dependency has changed, and if it did, will re-run the effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*7N9QxbsHXLVU2Zi6mW_Fvw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*vX40xpxVR6BMPMUMuJ16mQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*ONBZ3QicHHjRiP4A8OJb1Q.png" /></figure><p><strong><em>This is all about useEffect……………<br>wait what about questions I asked did you forget to answer ?</em></strong></p><p>Nahhhhhhhhhhhhhh………………..I didn’t 😄😄. Lets answer those questions….</p><p>Question -1 : <strong>How do I correctly fetch data inside </strong><strong>useEffect? What is </strong><strong>[]?</strong></p><p>Read <a href="https://www.robinwieruch.de/react-hooks-fetch-data/">this</a> to learn how to fetch data using useEffect. Dependency arrays ( [] ) are a concept that is tightly coupled to hooks in React (thus also to function components). Some hooks, like useEffect and useCallback have 2 arguments. The first one is a callback (a function), and the second one is the dependency array. <strong>It takes the form of an array of variables.</strong></p><p>Question -2 : <strong>Do I need to specify functions as effect dependencies or not?</strong></p><p>The recommendation is to hoist functions that don’t need props or state <em>outside</em> of your component, and pull the ones that are used only by an effect <em>inside</em> of that effect. If after that your effect still ends up using functions in the render scope (including function from props), wrap them into useCallback where they’re defined, and repeat the process. Why does it matter? Functions can “see” values from props and state — so they participate in the data flow.</p><p>Question -3 : <strong>Why do I sometimes get an infinite refetching loop?</strong></p><p>This can happen if you’re doing data fetching in an effect without the second dependencies argument. Without it, effects run after every render — and setting the state will trigger the effects again. An infinite loop may also happen if you specify a value that <em>always</em> changes in the dependency array. You can tell which one by removing them one by one. However, removing a dependency you use (or blindly specifying []) is usually the wrong fix. Instead, fix the problem at its source.</p><p><em>Hope now you understand the concept of side Effect and useEffect………<br>If you do then support me and do follow me on my social accounts </em>😄😄</p><p><a href="https://www.linkedin.com/in/nishant-kumar-tiwari-253a46196/">LinkedIn</a><br><a href="https://github.com/Asuraking1n/">GitHub</a><br><a href="http://nishant88tiwari@gmail.com/">Mail</a></p><p>👋👋 Happy Hacking and good learning.👋👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f1d01d41d04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transpiler VS Compiler]]></title>
            <link>https://nishant99tiwari.medium.com/transpiler-vs-compiler-2c138de85d01?source=rss-5d44dea274fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c138de85d01</guid>
            <category><![CDATA[tanay-pratap]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[neog-camp]]></category>
            <dc:creator><![CDATA[Nishant Tiwari]]></dc:creator>
            <pubDate>Sun, 09 Jan 2022 06:20:09 GMT</pubDate>
            <atom:updated>2022-01-09T06:20:09.495Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q0rYUqIBDL2ScJUZalcVYw.png" /></figure><p>Hey, guys this is Nishant, a young coder like you all, I am writing this blog to explain what is actually a transpiler or compiler, They have a very similar definition, but aren’t they same, What is the actual difference between them ?</p><h3>So <strong>What is Compiling ?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*-IO_XWwnMxp5yCWeJLz7mw.png" /></figure><p>Compiling is actually a process, Where a program takes source code written in one language and produce a (or many) output file in some other language. In practice we mostly use this term to describe a compiler such as gcc which takes in C codes as input and produces a binary executable (machine code) as output.</p><p>So Since, Compiling is a process, There must be a program behind that whole process, That piece of program is actually the compiler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*2vC_VeFW42HqKe9YT5uiIg.png" /></figure><p>So, This is all about compiling. Now</p><h3><strong>What is transpiling ?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*sr-EKOvSTVkC6YVnPDYAxQ.png" /></figure><p>In Transpiling, We actually converting one higher level language to another higher level language. For example, Typescript is a high level language but after it’s transpiled it’s turned into JavaScript (another high level language). Or Babel for example can transpile ES6 JavaScript code into ES5 JavaScript.</p><p>That&#39;s why Transpilers are sometimes referred to as “source to source compilers”.</p><p><em>Why Transpiling ?</em></p><p><em>The benefits of transpiling is you can write one language and still end up with another high level language.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*mYYJNOeDVH-0xTZwOberWw.png" /></figure><p>So, This is all about Transpiler. Hope this helps you to understand Compiler and transpiler.</p><p>Thank You, Happy Coding</p><p>connect me on -<br> <a href="https://www.linkedin.com/in/nishant-kumar-tiwari-253a46196">LinkedIn</a><br> <a href="https://github.com/Asuraking1n/">Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c138de85d01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What and Why if __name__ == “__main__” in Python]]></title>
            <link>https://nishant99tiwari.medium.com/what-and-why-if-name-main-in-python-23bed7cac274?source=rss-5d44dea274fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/23bed7cac274</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[oops-concepts]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Nishant Tiwari]]></dc:creator>
            <pubDate>Thu, 10 Jun 2021 05:55:47 GMT</pubDate>
            <atom:updated>2021-06-10T05:55:47.999Z</atom:updated>
            <content:encoded><![CDATA[<p>Using the <em>if __name__ == “__main__”</em> statement is quite regular in Python files. However, it may seem confusing at times. This aim of this article is to uncover the behavior of the statement and further discusses on where to use it. So let’s get started!</p><p>A Python module is a file that has a .py extension. All we need to do is create a file that contains legitimate Python code and give the file a name with .py extension. A module can be imported to other modules or run directly via command line.</p><p>The <em>__name__</em> is a special built-in variable which evaluates to the name of the current module. However, if a module is being run directly (from command line), then <em>__name__</em> instead is set to the string “<em>__main__”.</em></p><p>Let’s put together this little code example for understanding. Suppose we create two modules, <em>foo </em>and<em> bar</em> with the following code:</p><pre># foo.py<strong>import</strong> bar<br><strong>print</strong>(&quot;foo.__name__ set to &quot;, __name__)</pre><p>And the <em>bar</em> module:</p><pre># bar.py<strong>print</strong>(&quot;bar.__name__ set to &quot;, __name__)</pre><p>On invoking the <em>bar</em> module from command line, its <em>__name__</em> attribute will be set to “<em>__main__</em>”:</p><pre>python bar.py<br><strong>&gt;&gt;&gt;</strong><br>bar.__name__ set to __main__</pre><p>However, on invoking the <em>foo</em> module in a similar fashion, the bar’s <em>__name__</em> attribute will be set equivalent to it’s module name i.e <em>bar</em>:</p><pre>python foo.py<br><strong>&gt;&gt;&gt;</strong><br>bar.__name__ set to bar<br>foo.__name__ set to __main__</pre><p>Therefore, we can test whether our module is being run directly or being imported using the following check:</p><pre><strong>if</strong> __name__ == &quot;__main__&quot;<strong>:</strong><br>    <strong>...</strong></pre><p>In this way, modules can look at their own <em>__name__</em> value to determine for themselves how they are being used, whether as support for another program or as the main application executed from the command line.</p><p>When a module is being imported into another module, its various function and class definitions will be imported and its top-level code will be executed. To illustrate this, let’s consider the following two modules:</p><pre># module person.py<strong>def</strong> creds():<br>    name = &quot;Sarah&quot;<br>    age = 26<br>    <strong>print</strong>(&quot;person details {}, {}&quot;.format(name, age))<strong>print</strong>(&quot;top-level in person module&quot;)<strong>if</strong> __name__ == &quot;__main__&quot;:<br>    <strong>print</strong>(&quot;person mod is run directly&quot;)<br><strong>else</strong>:<br>    <strong>print</strong>(&quot;person mod is imported into another module&quot;)# module utility.py<br><strong>import</strong> personperson.creds()<strong>if</strong> __name__ == &quot;__main__&quot;:<br>    <strong>print</strong>(&quot;utility mod is run directly&quot;)<br><strong>else</strong>:<br>    <strong>print</strong>(&quot;utility mod is imported into another module&quot;)</pre><p>On invoking the <em>person</em> module directly, <em>__name__</em> attribute will be set to <em>__main__</em>, hence we’ll see the following output:</p><pre>python person.py<br>&gt;&gt;&gt;<br>top-level in person module<br>person mod is run directly</pre><p>Whereas, when <em>utility.py</em> module is executed directly, <em>__name__</em> attribute for <em>person</em> module will be set to “<em>person</em>” itself, while <em>__name__</em> of the <em>utility</em> module will be set to <em>__main__</em>. Therefore, we’ll get the following output:</p><pre>python utility.py<br>&gt;&gt;&gt;<br>top-level in person module<br>person mod is imported into another module<br>person details Sarah, 26<br>utility mod is run directly</pre><h3>Why it’s designed like this?</h3><p>We might naturally wonder why it’s designed the way it is. Well, sometimes we want to write a .py file that can be both used by other programs and/or modules as a module, and can also be run as the main program itself.</p><p>This behavior comes in handy for quick developing and testing our code. It also helps in debugging since it allows us to have a script mode where we can run unit tests directly.</p><p>Besides this, it’s elegant that running a module in Python directly is just setting up a single variable.</p><h3>Conclusions:</h3><ul><li>Every module in Python has a special attribute called <em>__name__</em>. The value of <em>__name__</em> attribute is set to <em>“__main__”</em> when module is run as main program. Otherwise, the value of <em>__name__</em> is set to contain the name of the module.</li><li>We use <em>if </em><strong><em>__name__ ==</em></strong><em> “__</em><strong><em>main__</em></strong><em>”</em> block to prevent (certain) code from being run when the module is imported.</li></ul><p>Do follow me on <a href="https://github.com/Asuraking1n">GitHub</a> and <a href="https://www.linkedin.com/in/nishant-kumar-tiwari-253a46196/">LinkedIn</a>. 🧙‍♂️🧙‍♂️🧙‍♂️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23bed7cac274" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Incredible List of npm Packages for React Developers]]></title>
            <link>https://nishant99tiwari.medium.com/a-incredible-list-of-npm-packages-for-react-developers-c90482e2bb0f?source=rss-5d44dea274fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c90482e2bb0f</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Nishant Tiwari]]></dc:creator>
            <pubDate>Thu, 10 Jun 2021 05:32:33 GMT</pubDate>
            <atom:updated>2021-06-10T05:32:33.195Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi readers, this is a list of some useful npm packages for React users. I will update this in future, Your suggestions are welcome 😊. Happy coding!!</p><h3>UI component libraries</h3><ol><li><a href="https://www.npmjs.com/package/antd">antd</a> — Ant Design is an enterprise grade UI design system.</li><li><a href="https://www.npmjs.com/package/@material-ui/core">@material-ui/core</a> — React Material UI components</li><li><a href="https://www.npmjs.com/package/react-bootstrap">react-bootstrap</a> — Bootstrap 4 components built with React</li><li><a href="https://www.npmjs.com/package/react-bulma-components">react-bulma-components</a> — React component for Bulma framework</li><li><a href="https://www.npmjs.com/package/semantic-ui-react">semantic-ui-react</a> — A React component library</li><li><a href="https://www.npmjs.com/package/office-ui-fabric-react">office-ui-fabric-react</a> — The React-based front-end framework for building experiences for Office and Office 365</li><li><a href="https://www.npmjs.com/package/reactstrap">reactstrap</a> — Stateless React Components for Bootstrap 4</li><li><a href="https://www.npmjs.com/package/rebass">rebass</a> — React primitive UI components built with styled-system</li><li><a href="https://www.npmjs.com/package/@appbaseio/reactivesearch">@appbaseio/reactivesearch</a> — React UI components for Elasticsearch</li></ol><h3>Individual UI components</h3><ol><li><a href="https://www.npmjs.com/package/@tippy.js/react">@tippy.js/react</a> — The complete tooltip and popover solution for React apps</li><li><a href="https://www.npmjs.com/package/react-spinners">react-spinners</a> — A collection of loading spinners with React.js based on Halogen</li><li><a href="https://www.npmjs.com/package/react-loader-spinner">react-loader-spinner</a> — react-spinner-loader provides simple React.js spinner component which can be implemented for async wait operation before data load to the view</li><li><a href="https://www.npmjs.com/package/react-spinners-kit">react-spinners-kit</a> — A collection of loading spinners built with styled-components</li><li><a href="https://www.npmjs.com/package/draft-js">draft-js</a> — Draft.js is a JavaScript rich text editor framework, built for React and backed by an immutable model</li><li><a href="https://www.npmjs.com/package/react-custom-scrollbars">react-custom-scrollbars</a> — Custom scrollbars for React</li><li><a href="https://www.npmjs.com/package/react-select">react-select</a> — The Select control for React</li><li><a href="https://www.npmjs.com/package/react-dropdown">react-dropdown</a> — Simple Dropdown component for React, inspired by react-select</li><li><a href="https://www.npmjs.com/package/react-horizontal-scrolling-menu">react-horizontal-scrolling-menu</a> — A horizontal scrolling menu component for React</li><li><a href="https://www.npmjs.com/package/react-collapsible">react-collapsible</a> — React responsive collapsible section component</li><li><a href="https://www.npmjs.com/package/react-calendar">react-calendar</a> — Calendar component for React</li><li><a href="https://www.npmjs.com/package/react-datepicker">react-datepicker</a> — A simple and reusable Datepicker component for React</li><li><a href="https://www.npmjs.com/package/react-table">react-table</a> — react-table is a lightweight, fast and extendable datagrid built for React</li><li><a href="https://www.npmjs.com/package/react-awesome-button">react-awesome-button</a> — A button component for React</li><li><a href="https://www.npmjs.com/package/react-compound-slider">react-compound-slider</a> — React Compound Slider is a tiny (4.3kb) slider component with no opinion about markup or styles</li><li><a href="https://www.npmjs.com/package/rheostat">rheostat</a> — A mobile, tablet, desktop, and accessible slider for the web by Airbnb</li><li><a href="https://www.npmjs.com/package/react-checkbox-tree">react-checkbox-tree</a> — A simple and elegant checkbox tree for React</li><li><a href="https://www.npmjs.com/package/recharts">recharts</a> — Recharts is a Redefined chart library built with React and D3</li><li><a href="https://www.npmjs.com/package/react-chartjs-2">react-chartjs-2</a> — React wrapper for Chart.js 2</li><li><a href="https://www.npmjs.com/package/react-vis">react-vis</a> — A collection of react components to render common data visualization charts</li><li><a href="https://www.npmjs.com/package/victory">victory</a> — React.js components for modular charting and data visualization</li><li><a href="https://www.npmjs.com/package/react-modal">react-modal</a> — Accessible modal dialog component for React.JS</li><li><a href="https://www.npmjs.com/package/react-responsive-modal">react-responsive-modal</a> — A simple responsive and accessible react modal compatible with React 16 and ready for React 17</li><li><a href="https://www.npmjs.com/package/react-slick">react-slick</a> — Carousel component built with React. It is a react port of slick carousel</li><li><a href="https://www.npmjs.com/package/react-responsive-carousel">react-responsive-carousel</a> — A responsive carousel component for React</li><li><a href="https://www.npmjs.com/package/pure-react-carousel">pure-react-carousel</a> — A highly impartial suite of React components that can be assembled by the consumer to create a responsive and aria compliant carousel with almost no limits on DOM structure or CSS styles</li><li><a href="https://www.npmjs.com/package/react-grid-gallery">react-grid-gallery</a> — Justified image gallery component for React inspired by Google Photos and based upon React Images</li><li><a href="https://www.npmjs.com/package/react-images">react-images</a> — A mobile-friendly, highly customizable, carousel component for displaying media in ReactJS</li><li><a href="https://www.npmjs.com/package/react-image-lightbox">react-image-lightbox</a> — A flexible lightbox component for displaying images in a React project</li><li><a href="https://www.npmjs.com/package/react-tabs">react-tabs</a> — An accessible and easy tab component for ReactJS</li></ol><h3>CSS in JS</h3><ol><li><a href="https://www.npmjs.com/package/styled-components">styled-components</a> — Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress</li><li><a href="https://www.npmjs.com/package/emotion">emotion</a> — A CSS in JS library</li><li><a href="https://www.npmjs.com/package/radium">radium</a> — Radium is a set of tools to manage inline styles on React elements. It gives you powerful styling capabilities without CSS</li></ol><h3>Http clients</h3><ol><li><a href="https://www.npmjs.com/package/axios">axios</a> — Promise based HTTP client for the browser and node.js</li><li><a href="https://www.npmjs.com/package/apisauce">apisauce</a> — An http client built on top of axios</li><li><a href="https://www.npmjs.com/package/request">request</a> — Request is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default</li><li><a href="https://www.npmjs.com/package/superagent">superagent</a> — Small progressive client-side HTTP request library, and Node.js module with the same API, sporting many high-level HTTP client features</li></ol><h3>Routing</h3><ol><li><a href="https://www.npmjs.com/package/react-router-dom">react-router-dom</a> — DOM bindings for React Router</li><li><a href="https://www.npmjs.com/package/universal-router">universal-router</a> — A simple middleware-style router that can be used in both client-side and server-side applications</li><li><a href="https://www.npmjs.com/package/connected-react-router">connected-react-router</a> — A Redux binding for React Router v4 and v5</li></ol><h3>State management</h3><ol><li><a href="https://www.npmjs.com/package/redux">redux</a> — Redux is a predictable state container for JavaScript apps</li><li><a href="https://www.npmjs.com/package/react-redux">react-redux</a> — Official React bindings for Redux</li><li><a href="https://www.npmjs.com/package/mobx">mobx</a> — MobX is a battle tested, simple and scalable state management library transparently applying functional reactive programming (TFRP)</li><li><a href="https://www.npmjs.com/package/redux-saga">redux-saga</a> — redux-saga is a library that aims to make application side effects (i.e. asynchronous things like data fetching and impure things like accessing the browser cache) easier to manage</li><li><a href="https://www.npmjs.com/package/redux-thunk">redux-thunk</a> — Thunk middleware for Redux</li><li><a href="https://www.npmjs.com/package/redux-persist">redux-persist</a> — Persist and rehydrate a redux store</li></ol><p>Do follow me on <a href="https://github.com/Asuraking1n">GitHub</a> and <a href="https://www.linkedin.com/in/nishant-kumar-tiwari-253a46196/">LinkedIn</a> 😁 😁 😁</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c90482e2bb0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Methodolgy: General approach to hunt bugs]]></title>
            <link>https://nishant99tiwari.medium.com/methodolgy-general-approach-to-hunt-bugs-8a75643f74a?source=rss-5d44dea274fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a75643f74a</guid>
            <category><![CDATA[bug-hunter]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[ｍedium]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Nishant Tiwari]]></dc:creator>
            <pubDate>Fri, 02 Apr 2021 04:24:30 GMT</pubDate>
            <atom:updated>2021-04-02T04:24:30.233Z</atom:updated>
            <content:encoded><![CDATA[<h3>Methodology: General approach to hunt bugs</h3><p>\****** Method of Hunting by <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a> *******/<br> \***follow me on Instagram-&gt; <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a> ***/<br> \**************Recon is Key of Success *************/<br>1- Find sub-domains using asset finder or knock.py (you can use some websites also).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*zlk4siAa1LnG0TtM-vjnfw.png" /><figcaption>Asset finder</figcaption></figure><p>2- Check the live sub-domains ( <a href="https://httpstatus.io/">httpstatus.io</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rZKPC6v_RNc7aW67flWS2A.png" /><figcaption>status of any domain</figcaption></figure><p>3- Try to find sub-domains of sub-domains and their HTTP status (<strong><em>more targets more opportunity</em></strong><em>, you can use </em><a href="https://github.com/haccer/altdns"><strong><em>altdns</em></strong></a><strong><em> </em></strong>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*Z2gjazxanSwlgwP-dVrXfQ.png" /><figcaption>altdns: to find sub domains of subdomain</figcaption></figure><p>4- Now try to search some GitHub repositories for any leakage of information about the target (<strong><em>use queries like {“example.com” password</em></strong>}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnCxkWSmqrfjA46tfC4yeA.png" /><figcaption>See search field (“dell.com” password)</figcaption></figure><p>5- Take the main domain and start hunting try all vulnerabilities listed below after main domain try to hunt on less popular domain. (<strong><em>less popular means more chance to find bug</em></strong>).</p><p>6- Always try with low level vulnerabilities. (<em>it increases your confidence,</em><strong><em>generally people try with high severity vulnerability and they loose patience and quit</em></strong>)</p><p><strong>7- vulnerabilities list —-</strong></p><h4>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br> LOW LEVEL — -<br> — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</h4><p>1- <strong>Missing SPF record</strong> (use “ <a href="https://www.kitterman.com/spf/validate.html">https://www.kitterman.com/spf/validate.html</a> “ this site to check SPF record).</p><p>2- <strong>Missing HSTS header</strong> ( use “ <a href="https://www.ssllabs.com/ssltest/">https://www.ssllabs.com/ssltest/</a> “ this site to check HSTS header ).</p><p>3- <strong>No rate limit</strong> (use burp suite sequencer or intruder to perform this attack try on OTP or E mails verification parts of any sites.</p><p>4- <strong>URL redirection</strong> (find any parameter which have any kind of tendency to redirect).</p><p>5- <strong>Host header injection</strong> (try to change host parameter with any other site after intercepting target request).</p><p>6- <strong>Account lockout</strong> (if after brute forcing wrong credentials your account get locked and even after putting write credentials it doesn’t open than this is account lockout).</p><p>7- <strong>Buffer overflow</strong> (when any site stores user control data in memory buffer then it may be buffer overflow ex- search field try to put 1000 ‘z’(any character) their).</p><p>8- <strong>Long password DOS attack</strong> (when any site don’t have fix length on their username and password field it may crash if we put 1000s of character their).</p><h4>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br> MEDIUM LEVEL</h4><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>1- <strong>Cross site scripting</strong> (check all reflected,store,DOM based and blind). <br> <br>2-<strong> HTML injection</strong> (try to inject simple HTML codes on parameter).</p><p>3- <strong>Inscure CORS configration</strong> (you can use curl command <strong><em>“</em></strong><em> curl http://any.com -H “Orgin:http://fb.com&quot; -I</em>).</p><p>4-<strong> Server side request forgery</strong> (<em>Try to find parameters like — dest,url,uri,path,continue,window,next,data,file,site,html etc basically those params which redirects you somewhere</em>).</p><p>5- <strong>Source code Disclosure</strong> (there are several internal files which a developer forgets to hide you can simply use a list of file to brute force and check source code disclosure {contact me on Instagram for the list IG ID = <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a>}).</p><p>6- <strong>CSRF</strong> (always try csrf to account takeover, just think big to get big).</p><p>7- <strong>session fixation</strong> (it is game of cookies try to get the cookies of logged in IDs and paste it on another browser with another ID).</p><p>8- <strong>password reset poisoning</strong> (try to find host header injection first).</p><p>9- <strong>SQL injection </strong>(try each and every place like cookies,header,main link etc).</p><p>10-<strong>Authentication testing</strong></p><p>11-<strong>Server side includes injection</strong></p><p>12-<strong>Multi factor Authentication</strong></p><p>13-<strong>MySQL Authentication bypass</strong></p><p>14<strong>-CSRF same site bypass</strong></p><p>15-<strong>IDOR</strong> (try to check every place where ID includes).</p><p>16-<strong>Heart bleed</strong> (security bug in OpenSSL crypto library).</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br> HIGH LEVEL<br> <br> — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -</p><p>1- <strong>Parameter tempering </strong>(try to intercept the request and the values of params like if the price of hot dog is 12$ to to change the price parameter from 12$ to 1$).</p><p>2- <strong>Hostile Sub domain take over</strong> (try to find non active sub domains, your can use a tool called sub-brute).</p><p>3- <strong>Critical file disclosure </strong>(here are several internal files which a developer forgets to hide you can simply use a list of file to brute force and check sensitive data disclosure {contact me on Instagram for the list Ig ID = <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a>})).</p><p>4- <strong>command injection</strong> (when an application incorporates user-controllable data into a command that is processed by a shell command interpreter).</p><p>5- <strong>File uploading vulnerability</strong> (try to find insufficient checks of file upload).<br> <br> <br> *** (these are RCE, same way on different place you just need to think contact me on Instagram for any help <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a>)***<br>6- <strong>Docker RCE</strong><br>7- <strong>Postgres RCE</strong><br>8- <strong>Apache spark Spark RCE</strong><br>9-<strong> PHP MyAdmin RCE</strong></p><p>10-<strong>File inclusion</strong> (Try to find parameters like — <em>dest,url,uri,path,continue,window,next,data,file,site,html </em>etc basically those params which redirects you somewhere).</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><h3>Try to combine two or more vulnerabilities this will increase the severity and chance of bounty also.<br>more the vulnerabilities more will be bounty…</h3><p>like- SSRF to XSS , CSRF to Account takeover etc.</p><p><strong><em>Happy Hacking……</em></strong></p><p>follow me on Instagram</p><p>- <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a75643f74a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Methodology: General approach to hunt bugs]]></title>
            <link>https://nishant99tiwari.medium.com/methodology-general-approach-to-hunt-bugs-73c74c44818?source=rss-5d44dea274fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/73c74c44818</guid>
            <dc:creator><![CDATA[Nishant Tiwari]]></dc:creator>
            <pubDate>Sun, 19 Apr 2020 04:49:38 GMT</pubDate>
            <atom:updated>2020-04-19T04:49:38.333Z</atom:updated>
            <content:encoded><![CDATA[<h3>Methodology: General approach to hunt bugs</h3><p>\****** Method of Hunting by <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a> *******/<br> \***follow me on Instagram-&gt; <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a> ****/<br> \**************Recon is Key of Success *************/<br>1- Find sub-domains using asset finder or knock.py (you can use some websites also).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*zlk4siAa1LnG0TtM-vjnfw.png" /><figcaption>Asset finder</figcaption></figure><p>2- Check the live sub-domains ( <a href="https://httpstatus.io/">httpstatus.io</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rZKPC6v_RNc7aW67flWS2A.png" /><figcaption>status of any domain</figcaption></figure><p>3- Try to find sub-domains of sub-domains and their HTTP status (<strong><em>more targets more opportunity</em></strong><em>, you can use </em><a href="https://github.com/haccer/altdns"><strong><em>altdns</em></strong></a><strong><em> </em></strong>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*Z2gjazxanSwlgwP-dVrXfQ.png" /><figcaption>altdns: to find sub domains of subdomain</figcaption></figure><p>4- Now try to search some GitHub repositories for any leakage of information about the target (<strong><em>use queries like {“example.com” password</em></strong>}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnCxkWSmqrfjA46tfC4yeA.png" /><figcaption>See search field (“dell.com” password)</figcaption></figure><p>5- Take the main domain and start hunting try all vulnerabilities listed below after main domain try to hunt on less popular domain. (<strong><em>less popular means more chance to find bug</em></strong>).</p><p>6- Always try with low level vulnerabilities. (<em>it increases your confidence,</em><strong><em>generally people try with high severity vulnerability and they loose patience and quit</em></strong>)</p><p><strong>7- vulnerabilities list — -</strong></p><h4>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br> LOW LEVEL — -<br> — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</h4><p>1- <strong>Missing SPF record</strong> (use “ <a href="https://www.kitterman.com/spf/validate.html">https://www.kitterman.com/spf/validate.html</a> “ this site to check SPF record).</p><p>2- <strong>Missing HSTS header</strong> ( use “ <a href="https://www.ssllabs.com/ssltest/">https://www.ssllabs.com/ssltest/</a> “ this site to check HSTS header ).</p><p>3- <strong>No rate limit</strong> (use burp suite sequencer or intruder to perform this attack try on OTP or E mails verification parts of any sites.</p><p>4- <strong>URL redirection</strong> (find any parameter which have any kind of tendency to redirect).</p><p>5- <strong>Host header injection</strong> (try to change host parameter with any other site after intercepting target request).</p><p>6- <strong>Account lockout</strong> (if after brute forcing wrong credentials your account get locked and even after putting write credentials it doesn’t open than this is account lockout).</p><p>7- <strong>Buffer overflow</strong> (when any site stores user control data in memory buffer then it may be buffer overflow ex- search field try to put 1000 ‘z’(any character) their).</p><p>8- <strong>Long password DOS attack</strong> (when any site don’t have fix length on their username and password field it may crash if we put 1000s of character their).</p><h4>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br> MEDIUM LEVEL</h4><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>1- <strong>Cross site scripting</strong> (check all reflected,store,DOM based and blind). <br> <br>2-<strong> HTML injection</strong> (try to inject simple HTML codes on parameter).</p><p>3- <strong>Inscure CORS configration</strong> (you can use curl command <strong><em>“</em></strong><em> curl </em><a href="http://any.com/"><em>http://any.com</em></a><em> -H “Orgin:http://fb.com&quot; -I</em>).</p><p>4-<strong> Server side request forgery</strong> (<em>Try to find parameters like — dest,url,uri,path,continue,window,next,data,file,site,html etc basically those params which redirects you somewhere</em>).</p><p>5- <strong>Source code Disclosure</strong> (there are several internal files which a developer forgets to hide you can simply use a list of file to brute force and check source code disclosure {contact me on Instagram for the list IG ID = <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a>}).</p><p>6- <strong>CSRF</strong> (always try csrf to account takeover, just think big to get big).</p><p>7- <strong>session fixation</strong> (it is game of cookies try to get the cookies of logged in IDs and paste it on another browser with another ID).</p><p>8- <strong>password reset poisoning</strong> (try to find host header injection first).</p><p>9- <strong>SQL injection </strong>(try each and every place like cookies,header,main link etc).</p><p>10-<strong>Authentication testing</strong></p><p>11-<strong>Server side includes injection</strong></p><p>12-<strong>Multi factor Authentication</strong></p><p>13-<strong>MySQL Authentication bypass</strong></p><p>14<strong>-CSRF same site bypass</strong></p><p>15-<strong>IDOR</strong> (try to check every place where ID includes).</p><p>16-<strong>Heart bleed</strong> (security bug in OpenSSL crypto library).</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br> HIGH LEVEL<br> <br> — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -</p><p>1- <strong>Parameter tempering </strong>(try to intercept the request and the values of params like if the price of hot dog is 12$ to to change the price parameter from 12$ to 1$).</p><p>2- <strong>Hostile Sub domain take over</strong> (try to find non active sub domains, your can use a tool called sub-brute).</p><p>3- <strong>Critical file disclosure </strong>(here are several internal files which a developer forgets to hide you can simply use a list of file to brute force and check sensitive data disclosure {contact me on Instagram for the list Ig ID = <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a>})).</p><p>4- <strong>command injection</strong> (when an application incorporates user-controllable data into a command that is processed by a shell command interpreter).</p><p>5- <strong>File uploading vulnerability</strong> (try to find insufficient checks of file upload).<br> <br> <br> *** (these are RCE, same way on different place you just need to think contact me on Instagram for any help <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a>)***<br>6- <strong>Docker RCE</strong><br>7- <strong>Postgres RCE</strong><br>8- <strong>Apache spark Spark RCE</strong><br>9-<strong> PHP MyAdmin RCE</strong></p><p>10-<strong>File inclusion</strong> (Try to find parameters like — <em>dest,url,uri,path,continue,window,next,data,file,site,html </em>etc basically those params which redirects you somewhere).</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><h3>Try to combine two or more vulnerabilities this will increase the severity and chance of bounty also.<br>more the vulnerabilities more will be bounty…</h3><p>like- SSRF to XSS , CSRF to Account takeover etc.</p><p><strong><em>Happy Hacking……</em></strong></p><p>follow me on Instagram</p><p>- <a href="https://www.instagram.com/error_404_unavilable/">error_404_unavilable</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73c74c44818" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>