<?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>Forem: Jit Mitra</title>
    <description>The latest articles on Forem by Jit Mitra (@jitmitra).</description>
    <link>https://forem.com/jitmitra</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%2F2021271%2Fbe95b6dd-002d-47a2-9efd-ea1dae1850cd.jpg</url>
      <title>Forem: Jit Mitra</title>
      <link>https://forem.com/jitmitra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jitmitra"/>
    <language>en</language>
    <item>
      <title>Types v/s Interfaces in TypeScript - A Dilemma</title>
      <dc:creator>Jit Mitra</dc:creator>
      <pubDate>Wed, 11 Sep 2024 17:34:41 +0000</pubDate>
      <link>https://forem.com/jitmitra/types-vs-interfaces-in-typescript-a-dilemma-1a1n</link>
      <guid>https://forem.com/jitmitra/types-vs-interfaces-in-typescript-a-dilemma-1a1n</guid>
      <description>&lt;p&gt;When venturing into TypeScript, many encounter the dilemma of whether to employ &lt;strong&gt;Types&lt;/strong&gt; or &lt;strong&gt;Interfaces&lt;/strong&gt;, as both appear to fulfill the same function: predefining data or object types for future use.&lt;/p&gt;

&lt;p&gt;The TypeScript official documentation recommends prioritizing &lt;strong&gt;Interfaces&lt;/strong&gt; over &lt;strong&gt;Types&lt;/strong&gt;. This preference stems from &lt;strong&gt;Interfaces&lt;/strong&gt; offering clearer error messages and the ability to extend them by re-declaring, a capability not shared by &lt;strong&gt;Type aliases&lt;/strong&gt;. However, it's imperative to delve deeper into their respective use cases for a comprehensive understanding. The link to the referenced article can be located in the &lt;strong&gt;Further Reading&lt;/strong&gt; section.&lt;/p&gt;

&lt;p&gt;While I endorse this recommendation, it's essential to discern specific scenarios where each option shines. Generally, opting for &lt;strong&gt;Interfaces&lt;/strong&gt; over &lt;strong&gt;Type aliases&lt;/strong&gt; remains prudent due to the advantages outlined earlier. However, one exception exists: when aiming to create a type that should remain immutable, with no possibility of external additions.&lt;/p&gt;

&lt;p&gt;For instance, suppose you wish to define a custom user type comprising only username, password, and email fields—no more, no less. In such a scenario, leveraging &lt;strong&gt;Type aliases&lt;/strong&gt; ensures the intended purpose remains intact, safeguarding against inadvertent modifications by others.&lt;/p&gt;

&lt;p&gt;Further Reading:&lt;/p&gt;

&lt;p&gt;For more insights check out the official documentation on Types vs Interfaces. &lt;a href="https://www.typescriptlang.org/play/?#example/types-vs-interfaces" rel="noopener noreferrer"&gt;Click here&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>typealiases</category>
      <category>interfaces</category>
      <category>programming</category>
    </item>
    <item>
      <title>DBMS - Introduction</title>
      <dc:creator>Jit Mitra</dc:creator>
      <pubDate>Tue, 03 Sep 2024 14:01:23 +0000</pubDate>
      <link>https://forem.com/jitmitra/dbms-introduction-2k6m</link>
      <guid>https://forem.com/jitmitra/dbms-introduction-2k6m</guid>
      <description>&lt;p&gt;&lt;strong&gt;Attention: If you’re here to learn about DBMS, feel free to skip the prologue—it's intended for a general audience :)&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;Hello everyone! This article kicks off a series on Database Management Systems (DBMS). These articles are not your typical online fare; instead, they focus on core concepts rather than just textbook definitions. My goal is not merely to help you ace an interview, but to provide a deep, comprehensive understanding of the subject based on my knowledge and expertise. While mastering the material will certainly benefit your interview performance, please note that this is not a crash course. Don’t expect frequent updates - each article will take time to ensure the highest quality. I’ve also included practical insights to enhance your learning experience.&lt;/p&gt;




&lt;p&gt;Let's begin with a common question that arises when learning about DBMS: What’s the difference between a database and a database management system? The distinction is somewhat clear from the names themselves, but let's delve into it in more detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Database?
&lt;/h2&gt;

&lt;p&gt;A database is an organized collection of interrelated data stored electronically within a computer system.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Database Management System (DBMS)?
&lt;/h2&gt;

&lt;p&gt;A Database Management System (DBMS) is software designed to manage and interact with databases. It provides a user interface for performing various operations with the database.&lt;/p&gt;

&lt;p&gt;What do we mean by &lt;strong&gt;&lt;em&gt;"interaction"&lt;/em&gt;&lt;/strong&gt;?&lt;br&gt;
Interaction refers to operations such as creating databases, storing data, updating the stored data, and deleting information, among other tasks.&lt;/p&gt;

&lt;p&gt;That’s all for this article. See you in the next one!&lt;/p&gt;

</description>
      <category>dbms</category>
      <category>database</category>
      <category>sql</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
