<?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 Anmol Monga on Medium]]></title>
        <description><![CDATA[Stories by Anmol Monga on Medium]]></description>
        <link>https://medium.com/@wickedtornado?source=rss-1ada01bb09ac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Wo_ZNilbclQA3zHh</url>
            <title>Stories by Anmol Monga on Medium</title>
            <link>https://medium.com/@wickedtornado?source=rss-1ada01bb09ac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 02:06:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wickedtornado/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[How are static members stored in Memory?]]></title>
            <link>https://medium.com/@wickedtornado/how-are-static-members-stored-in-memory-4670c4acac65?source=rss-1ada01bb09ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/4670c4acac65</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[static-member]]></category>
            <dc:creator><![CDATA[Anmol Monga]]></dc:creator>
            <pubDate>Fri, 13 Dec 2024 11:36:56 GMT</pubDate>
            <atom:updated>2024-12-13T11:36:56.673Z</atom:updated>
            <content:encoded><![CDATA[<p>All static members are stored in Class memory, you don’t need to create objects for using them instead we can use class name for accessing them.</p><p>Whenever java command executes ,it splits the allocated memory into two : stack and heap. First, java command enters stack memory for execution, it checks whether main class is loaded or not in heap and if not it allocates some memory which is called Class Memory. All the static members are stored here.</p><blockquote><strong>Remember </strong>: Static Initialization blocks are not stored in Class memory, instead they are called in stack , executed and then they are gone.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4670c4acac65" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Intro To SOLID Principles]]></title>
            <link>https://medium.com/@wickedtornado/quick-intro-to-solid-principles-d8b881153aa9?source=rss-1ada01bb09ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8b881153aa9</guid>
            <category><![CDATA[solid-principles-in-java]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Anmol Monga]]></dc:creator>
            <pubDate>Thu, 28 Nov 2024 07:15:22 GMT</pubDate>
            <atom:updated>2024-11-28T07:15:22.451Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Let’s say these principles are set of design rules you need to take care while writing your code. It makes your code loosely coupled, easy to manage and readable.</blockquote><p><strong>S : Single Responsibility</strong></p><p>A module should have one single responsibility , which doesn&#39;t mean one public method or one functionality, but there should be only one reason to change. Request change by one or group of actors should fulfil one business requirement.</p><p><strong>O : Open for extension and closed for modification</strong></p><p>Don’t disturb the happy running code, if you want to make some changes extend it and then make necessary changes, might prevent you some bugs. You should know how to properly implement inheritance while writing code.</p><p><strong>L : Liskov Substitution</strong></p><p>This principle states that we should design our parent and child class in such way that if we substitute the parent object with the child class object extending it , should make no difference. Parent class functionality shouldn’t be affected by it.</p><p><strong>I : Interface Segregation</strong></p><p>This principle states client should not interact with methods it has no use for. I’m sure you must have seen something like this</p><pre>interface iB{<br>  method1();<br>  method2();<br>  method3();<br>}<br><br>class A implements iB{<br><br>  method1(){<br>    sysout(&quot;hello&quot;);<br>  }<br><br>/*we have to simply write method signature,<br>even if we dont have any use for it*/<br>  method2(){<br><br>  }<br><br>  method3(){<br><br>  }<br>}</pre><p>Better make interface more specific, more segregated so that we don&#39;t have to interact with method which implementing class doesn&#39;t use. Divide a single fat interface into smaller interfaces.</p><p><strong>D : Dependency Inversion</strong></p><p>High level modules should not depend on low level modules instead both should depend on abstraction. High level modules contains complex business logic and should not be affected by changes done in small level modules. They both should communicate via interfaces.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8b881153aa9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evolution of Http :)]]></title>
            <link>https://medium.com/@wickedtornado/evolution-of-http-0c85346ca31a?source=rss-1ada01bb09ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c85346ca31a</guid>
            <category><![CDATA[http3]]></category>
            <category><![CDATA[http2]]></category>
            <dc:creator><![CDATA[Anmol Monga]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 12:43:34 GMT</pubDate>
            <atom:updated>2024-03-10T14:26:22.633Z</atom:updated>
            <content:encoded><![CDATA[<h3>Evolution of Http :)</h3><h3><strong>http 0.9-&gt;http 1.0-&gt;http 1.1-&gt;http 2-&gt;http 3</strong></h3><p>The simplest of all http 0.9 , also known as the one-line protocol. It had no name earlier but just to differentiate this name was assigned. Now this version could only be used to send html files.</p><p>No headers , no error/status codes. Only method used was the GET method(actually it was the only one that could be used).</p><p>Http 1.0 came around 96&#39;. Every request to the same server had to get TCP connection, which was very costly.</p><p><strong>Status codes</strong> were sent in response, browser could figure out if the request was success or failure. <strong>Headers</strong> for both request and response came into the picture. <strong>Versions</strong> info was sent within each request.Thanks to content-type in header , we were able to send files other than HTML files.</p><p>Soon after 1.1 followed and allowed the transfer over the same tcp connection.The problem was one request at a time, and if for some reason it took long for response, subsequent request would be effected.</p><p><strong>(head of line blocking )</strong></p><p>1.1 did try to implement pipelining feature which would allow multiple requests but it got kind of tricky to implement.</p><p>http 2 introduced multiplexing which allowed streams of data over the same tcp connection and order of streams didn’t matter . We could send multiple requests before having to wait for response of previous ones ,which solved the issue at application layer but not in transport layer.</p><p>If any TCP stream got missed , then it would stop the subsequent streams until it gets re-transmitted. Also in http 2 , the server could give client any new updates of data , without client requiring to poll.</p><p>Dont worry http 3 came up with QUIC protocol which made these streams independent, now if there was a lost packet it would effect only a particular stream and not all. QUIC also lowered the round trips to get TLS connection between client and server.</p><p>Http 3 is starting to get the heck of it. lol</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c85346ca31a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>