<?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: Sahan Akalanka</title>
    <description>The latest articles on DEV Community by Sahan Akalanka (@sahanux).</description>
    <link>https://dev.to/sahanux</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%2F632232%2F804b4dce-eb4e-43c4-acd9-603627fef2fe.jpg</url>
      <title>DEV Community: Sahan Akalanka</title>
      <link>https://dev.to/sahanux</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sahanux"/>
    <language>en</language>
    <item>
      <title>Things you must know about MVC architecture</title>
      <dc:creator>Sahan Akalanka</dc:creator>
      <pubDate>Thu, 08 Jul 2021 23:03:25 +0000</pubDate>
      <link>https://dev.to/sahanux/things-you-must-know-about-mvc-architecture-3klg</link>
      <guid>https://dev.to/sahanux/things-you-must-know-about-mvc-architecture-3klg</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KVCynesf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v20jk0xxju13s73jyzf9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KVCynesf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v20jk0xxju13s73jyzf9.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;MVC is an architectural pattern which has three parts Model, View and Controller.it was used for desktop graphical user interfaces but nowadays is used in designing mobile and web apps.&lt;/p&gt;

&lt;p&gt;This architectural pattern was invented by Trgve Reenskaug and in that time it was called "Thing Model View Editor" but rapidly change it to "Model View Controller".The goal was Trygve Reenskaug was to solve the problem of users controlling a large and complex data set.Currently MVC is used for designing web applications.some web frameworks that use MVC concept: Ruby on Rails, Laravel, Zend framework, CherryPy, Symphony, etc.&lt;/p&gt;

&lt;p&gt;In this architectural pattern there are three main components and each of them has specific responsibilities,&lt;/p&gt;

&lt;p&gt;-Model&lt;br&gt;
Model is responsible for maintaining data.The model is connected to the database so anything you do with data , adding or retrieving data is done in the model component.It responds to the controller requests because the controller never talks to the database by itself.The model talks to the database back and forth an then it gives the needed data to the controller.&lt;br&gt;
Note:The model never communicated with the view directly.&lt;/p&gt;

&lt;p&gt;-View&lt;br&gt;
It actually user interface.Data representation is by the View.&lt;/p&gt;

&lt;p&gt;-Controller&lt;br&gt;
Controller is the main part of these three components because controller is the component that enables the interconnection between the View and Model it act as an intermediary.The controller doesn't have to worry about worry about handling data logic,it just tells the model to what to do.&lt;br&gt;
Note:View and Model can't talk directly.&lt;/p&gt;

</description>
      <category>mobile</category>
      <category>webdev</category>
      <category>mvc</category>
      <category>design</category>
    </item>
    <item>
      <title>What is the DOM?</title>
      <dc:creator>Sahan Akalanka</dc:creator>
      <pubDate>Wed, 30 Jun 2021 19:40:38 +0000</pubDate>
      <link>https://dev.to/sahanux/what-is-the-dom-14jj</link>
      <guid>https://dev.to/sahanux/what-is-the-dom-14jj</guid>
      <description>&lt;p&gt;The Document Object Model (DOM) is a programming interface for HTML and XML documents.&lt;/p&gt;

&lt;p&gt;It represents the page in a tree structure so that program can read, access, and change the document structure, style, and content.&lt;/p&gt;

&lt;p&gt;The DOM is an object oriented representation of the web page, which can be modified with a scripting language such as javascript.&lt;/p&gt;

&lt;p&gt;Every web browser uses some document object model to make web pages accessible via javascript.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--43BrIra4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ntchedspb3hrwyw14h54.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--43BrIra4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ntchedspb3hrwyw14h54.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;image references : w3schools&lt;/p&gt;

</description>
      <category>html</category>
      <category>htmldom</category>
      <category>dom</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
