<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lalith Madhav</title>
    <description>The latest articles on DEV Community by Lalith Madhav (@lalithmadhav).</description>
    <link>https://dev.to/lalithmadhav</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3287127%2F280de98d-b49a-4031-a6c5-9fae4eb382fe.png</url>
      <title>DEV Community: Lalith Madhav</title>
      <link>https://dev.to/lalithmadhav</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lalithmadhav"/>
    <language>en</language>
    <item>
      <title>Do you know that List&lt;int&gt; is an error?</title>
      <dc:creator>Lalith Madhav</dc:creator>
      <pubDate>Wed, 01 Oct 2025 06:56:09 +0000</pubDate>
      <link>https://dev.to/lalithmadhav/do-you-know-that-list-is-an-error-3a6o</link>
      <guid>https://dev.to/lalithmadhav/do-you-know-that-list-is-an-error-3a6o</guid>
      <description>&lt;p&gt;Recently found out that List, Set, Map doesn't accept primitive data types. Ok, since those are Interfaces(I think like this because they are different things) we get compiler errors. but what about arraylist, hashset, hashmap? aren't those classes. why don't they? let's get to know everything. &lt;br&gt;
it is because in the older versions of java we could do&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;List a = new ArrayList&amp;lt;&amp;gt;();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and add&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.add("Java");
list.add(1.4);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and made a lot of code. but on introducing generics the old code would be broken cuz the same arraylist which used to work then but doesn't work due to these generics. then the devs decided to make the complier such a way that on compiling the old code with old compiler gives same bytecode as  compiling new code on new compiler which gives us int-&amp;gt; Integer, char-&amp;gt;Character etc. this is the result of doing that. Because of this we have to declare the type of list like Integer, Boolean. It's also type safe ig.&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

List&amp;lt;Integer&amp;gt; integerList = new ArrayList&amp;lt;&amp;gt;();
List&amp;lt;Boolean&amp;gt; integerList = new ArrayList&amp;lt;&amp;gt;();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>java</category>
      <category>generic</category>
      <category>typeerasure</category>
    </item>
    <item>
      <title>Understanding Git: Why Folders Aren't Tracked</title>
      <dc:creator>Lalith Madhav</dc:creator>
      <pubDate>Mon, 23 Jun 2025 10:16:15 +0000</pubDate>
      <link>https://dev.to/lalithmadhav/understanding-git-why-folders-arent-tracked-3325</link>
      <guid>https://dev.to/lalithmadhav/understanding-git-why-folders-arent-tracked-3325</guid>
      <description>&lt;p&gt;Found that Git doesn't track a folder. It tracks the contents in the folder. A folder acts as a container, while the files are the contents. To track an empty folder one must add a file even if it's empty. 1) The standard naming would be ".gitkeep". -jck&lt;/p&gt;

</description>
      <category>git</category>
    </item>
  </channel>
</rss>
