<?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: Partha Maity</title>
    <description>The latest articles on DEV Community by Partha Maity (@parthmty).</description>
    <link>https://dev.to/parthmty</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%2F977729%2Fbe161723-18f2-46bf-9a25-1b92bef859f0.jpeg</url>
      <title>DEV Community: Partha Maity</title>
      <link>https://dev.to/parthmty</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/parthmty"/>
    <language>en</language>
    <item>
      <title>Library vs Framework Explained</title>
      <dc:creator>Partha Maity</dc:creator>
      <pubDate>Wed, 23 Nov 2022 14:27:33 +0000</pubDate>
      <link>https://dev.to/parthmty/library-vs-framework-explained-mcb</link>
      <guid>https://dev.to/parthmty/library-vs-framework-explained-mcb</guid>
      <description>&lt;h2&gt;
  
  
  Library
&lt;/h2&gt;

&lt;p&gt;You started a project and finished it and then started an other one and noticed 🤨 that you have repeated some pieces of code from previous project and then you finished it.&lt;/p&gt;

&lt;p&gt;Next day, you started a new project and damn! you noticed it again, you once again repeated some pieces of code from previous two projects.&lt;/p&gt;

&lt;p&gt;Hmmm!! 🤔 ...&lt;/p&gt;

&lt;p&gt;So you thought - "Why not I copy those repeating pieces of code and keep it in a separate file, so that the next time I need it, I can just copy it from there."&lt;/p&gt;

&lt;p&gt;That's how the concept of library came into existence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A library is a collection of reusable pieces of code that can be used in multiple projects.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Framework
&lt;/h2&gt;

&lt;p&gt;Once fine day, you started a project and you noticed that you have to repeat some pieces of code from previous projects. You grabbed your library and copied those pieces of code and probably felt happy 😄 that you have saved some time.&lt;/p&gt;

&lt;p&gt;But soon that happiness turned into frustration 😤 when you received handful of bugs 🐛 from the application. You started debugging and realized that you have to fix the same bug in multiple places 😫. You fixed it and moved on.&lt;/p&gt;

&lt;p&gt;For the next few days, you kept on receiving bugs 🐛 and fixing them.&lt;/p&gt;

&lt;p&gt;....and then one day, you realized that if you had followed a particular structure or pattern, you would have saved yourself from all these bugs 🐛. You made few rules from your experience and started following them.&lt;/p&gt;

&lt;p&gt;You noticed that you were able to fix bugs 🐛 faster and also were able to add new features faster. It just boosted tour productivity of building applications.&lt;/p&gt;

&lt;p&gt;You just created your own framework.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A framework is a collection of rules and guidelines or a structure for building an application.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;&lt;strong&gt;Note:&lt;/strong&gt; The above explanation is just for understanding purpose. It is not a complete explanation of library and framework. If you find any mistake in the above explanation, please let me know. I will be happy to correct it.&lt;/em&gt;&lt;/p&gt;

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