<?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 HerWorld 🦋 on Medium]]></title>
        <description><![CDATA[Stories by HerWorld 🦋 on Medium]]></description>
        <link>https://medium.com/@HerWorld8?source=rss-1180a3794fb2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pwI51HNWk5kQ6N-UGFumNQ.png</url>
            <title>Stories by HerWorld 🦋 on Medium</title>
            <link>https://medium.com/@HerWorld8?source=rss-1180a3794fb2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 04:47:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@HerWorld8/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[SQL for newbies ]]></title>
            <link>https://medium.com/follower-booster-hub/sql-for-newbies-985ba3794a1e?source=rss-1180a3794fb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/985ba3794a1e</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[learning-and-development]]></category>
            <dc:creator><![CDATA[HerWorld ]]></dc:creator>
            <pubDate>Thu, 29 May 2025 05:13:57 GMT</pubDate>
            <atom:updated>2025-05-29T15:10:23.681Z</atom:updated>
            <content:encoded><![CDATA[<h4>SQL stands for Structured Query Language</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*Yn1dVGJrrAE-ClefZoWe_A.png" /></figure><p>SQL is a standard language used to organize and manipulate data in relational databases. User can easily deal with data using SQL.</p><blockquote>Database is an organized collection of a large data that is stored and managed for future use.<br>e.g. All records of a Hotel Management System, customers name, their details, reservations, etc.</blockquote><p>Here are some reasons why we use it:</p><ol><li><strong>Data Retrieval:</strong> extract or filter data that is required.</li><li><strong>Data Manipulation:</strong> add, update or delete records in a database.</li><li><strong>Data Definition:</strong> create, alter or drop tables in a database.</li><li><strong>Data Integrity:</strong> define some SQL constraints to ensure data integrity, e.g. not null, unique, primary keys, and foreign keys etc.</li><li><strong>Data Security:</strong> control access to specific sensitive data.</li><li><strong>Complex Queries:</strong> define queries to join multiple tables.</li><li><strong>Scalability:</strong> allows large amount of data to store and perform complex queries efficiently</li><li><strong>Standardized Language:</strong> once you learn SQL you can apply it to various systems with little adjustments</li><li><strong>Transactions and Concurrency:</strong> maintain consistency and reliability</li><li><strong>Reporting and Analytics:</strong> help in generating reports for decision-making.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=985ba3794a1e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/follower-booster-hub/sql-for-newbies-985ba3794a1e">SQL for newbies 👧🏻</a> was originally published in <a href="https://medium.com/follower-booster-hub">Follower Booster Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Frontend Development — Building a Webpage with HTML and CSS (Part-I)]]></title>
            <link>https://medium.com/mr-plan-publication/mastering-frontend-development-building-a-webpage-with-html-and-css-part-i-90a56049a8bf?source=rss-1180a3794fb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/90a56049a8bf</guid>
            <dc:creator><![CDATA[HerWorld ]]></dc:creator>
            <pubDate>Wed, 04 Dec 2024 20:11:01 GMT</pubDate>
            <atom:updated>2024-12-05T17:36:03.831Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Frontend Development — Building a Webpage with HTML and CSS (Part-I)</h3><p><strong>Web Development</strong> has two words “Web” and “Development”. <strong>Web</strong> indicates the Internet (World Wide Web), while <strong>Development </strong>indicates designing or building something. So, “Web Development” refers to building something for the Internet.</p><p>There are two types of Web Development, Frontend and Backend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*3IqZl3_wQo81cOTBIKM6gg.png" /><figcaption>Types of Web Development</figcaption></figure><blockquote><strong>Frontend development </strong>focuses on layout, animations, content organization, navigation and graphics. <br><strong>Programming Languages: </strong>HTML, CSS and JavaScript etc.</blockquote><blockquote><strong>Backend development </strong>focuses on building code, debugging, and database management.</blockquote><blockquote><strong>Programming Languages:</strong> Node.js, C#, Java etc.</blockquote><p>Let’s get started by diving into the world of Web Development. I will provide you with a step-by-step guide to building beautiful and responsive web pages using HTML and CSS.</p><blockquote>The learning journey is divided into three modules:</blockquote><blockquote>1. Basics of HTML</blockquote><blockquote>2. Basics of CSS</blockquote><blockquote>3. Basics of Bootstrap</blockquote><ol><li><strong>Basics of HTML:</strong></li></ol><p>In the first module, you will learn the basics of HTML including the syntax and structures, as how to use HTML tags and create headline, paragraph, images, links and lists etc.</p><p><strong>What is HTML?</strong></p><ul><li>HTML stands for HyperText Markup Language.</li><li>Founded in 1993 by Tim Berners-Lee.</li><li>It is the standard markup language for documents designed to be displayed in a web browser.</li><li>Latest version is HTML 5.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*X6sVmGvHuJD7rUPyJRoaHA.png" /></figure><p>First thing for web development is to install Visual Studio Code (You can use any editor of your own choice) and the second necessary thing is a web browser, I am using chrome (You can use any of your own choice).</p><p>I would suggest you to download a particular plugin or extension that is called “Live Server”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5oJ-YgPfacNYYcQVPR4tA.png" /><figcaption>Live Server Installation</figcaption></figure><p>Open the visual studio code and press Ctrl+N, a new page will open and then save it with extension <strong>.html</strong>.<br>I saved it with name index.html;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sgg6BpjVMyrvxysFsCHqPA.png" /><figcaption>index.html (File Name)</figcaption></figure><p>Now only write “<strong>!” and press Enter </strong>on the page it will provide a template by its own;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*5CvrMrQeL-b3tvv5zGbJXw.png" /><figcaption>Shortcut Key “!” to get a Template</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PKNngaz0tX6Q9IodnWj6zw.png" /><figcaption>Template provided by Shortcut Keys</figcaption></figure><p>The above code will not show any data on web page these tags majorly used for structuring the page its setting across browser. <br>Only data in the body portion will be displayed on the web page.</p><p><strong>I. Basics of HTML tags:</strong></p><p><strong>&lt;!DOCTYPE html&gt; </strong>is introduced in HTML5 and is used as an identifier for this document type.</p><p><strong>&lt;html </strong>lang=”en”<strong>&gt;&lt;/html&gt; </strong>is used to identify the beginning and ending of an HTML document.</p><p><strong>&lt;head&gt;&lt;/head&gt;</strong> tag is used to give us the information about the document such as title of the document and some metadata about the document, like its description and keywords.</p><p><strong>&lt;title&gt;&lt;/title&gt;</strong> tag is used to define the title of the document appearing at the top of the document.</p><p><strong>&lt;body&gt;&lt;/body&gt;</strong> defines the visible content of the document.</p><p><strong>&lt;h1&gt;&lt;/h1&gt;</strong> is a heading tag used for defining the heading of a web page. There are six level of heading tags starting from <strong>h1 to h6 </strong>with h1 being the largest and h6 being the smallest, these are used for headings and subheadings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0jAG8Jl2dC_Qg9Pe0-khTA.png" /><figcaption>Multiple heading tags from h1 to h6</figcaption></figure><p><strong>&lt;p&gt;&lt;/p&gt;</strong> paragraph tag is used to define the paragraph of text in our HTML document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b1E2VuLN9ot-jINa0YChhg.png" /><figcaption>Usage of Paragraph tag</figcaption></figure><p><strong>II. Basic HTML Formatting Tags</strong></p><p>i. Bold Tag (make text bold)</p><pre>&lt;!--Example 1--&gt;<br>&lt;b&gt;This text is bold&lt;/b&gt;<br><br>&lt;!--Example 2 (Nested Bold Tag)--&gt;<br>&lt;p&gt;This is my &lt;b&gt;Second Paragraph&lt;/b&gt;&lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*mPiIXs5nrAtZx9ZykkcNRg.png" /><figcaption>Output of Above Code: Bold Tag</figcaption></figure><p>ii. Italic Tag (make text italicized)</p><pre>&lt;!--Example 1--&gt;<br>&lt;i&gt;This text is italic&lt;/i&gt;<br><br>&lt;!--Example 2 (Nested italic tag)--&gt;<br>&lt;p&gt;This is italic tag: &lt;i&gt;italic&lt;/i&gt;&lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*NZhKwOqq3kYO5UpByxMwUw.png" /><figcaption>Output of Above Code: Italic Code</figcaption></figure><p>iii. Underline Tag (used to underline the text)</p><pre>&lt;!--Example--&gt;<br>&lt;u&gt;This is our first module&lt;/u&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*ri28v8LBpLpEh0FJjXlkxg.png" /><figcaption>Output of Above Code: Underline Tag</figcaption></figure><p>iv. Strikethrough Tag (used to cross our text)</p><pre>&lt;!--Example--&gt;<br>&lt;s&gt;This is our first module&lt;/s&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*7kERC3UT0Fs4ew07zGkTpg.png" /><figcaption>Output of Above Code: Strikethrough Tag</figcaption></figure><p>v. Inserted Tag (used to indicate inserted text)</p><pre>&lt;!--Example: used for correction or addition--&gt;<br>&lt;ins&gt;This is our first module&lt;/ins&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*YAPvVr01QQd9lGlW2mVV_Q.png" /><figcaption>Output of Above Code: Inserted Tag</figcaption></figure><p>vi. Superscript Tag (used to make text appear above the baseline)</p><pre>&lt;!--Example: used for mathematical formulas and exonentials--&gt;<br>&lt;p&gt;2&lt;sup&gt;2&lt;/sup&gt;&lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*1pBVy0JidcZwfH544AN2KQ.png" /><figcaption>Output of Above Code: Superscript Tag</figcaption></figure><p>vii. Subscript Tag (used to make text appear below the baseline)</p><pre>&lt;!--Example: used for mathematical formulas and chemical formulas--&gt;<br>&lt;p&gt;H&lt;sub&gt;2&lt;/sub&gt;O&lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*S74ftqv8IdfQLL-b6KFqIA.png" /><figcaption>Output of Above Code: Subscript Tag</figcaption></figure><p>viii. Small Tag (used to make text appear smaller than the surrounding tag)</p><pre>&lt;!--Example: commonly used for footnotes and disclaimers --&gt;<br>&lt;p&gt;This is our &lt;small&gt;first module.&lt;/small&gt;&lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*4PGghdC-ovrkFry-WR7TvA.png" /><figcaption>Output of Above Code: Small Tag</figcaption></figure><p>ix. Mark Tag (Used to highlight the text)</p><pre>&lt;!--Example--&gt;<br>&lt;p&gt;This is our &lt;mark&gt;first module.&lt;/mark&gt;&lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*eAYsKeN9HOyMafFxQsW78g.png" /><figcaption>Output of Above Code: Mark Tag</figcaption></figure><p>x. Strong Tag (similar to Bold Tag, makes text bold but also tells browser this text has some importance in the document)</p><pre>&lt;!--Example--&gt;<br>&lt;strong&gt;This is our first module. &lt;/strong&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*_QbmWwo160dH0FbjzlZGAQ.png" /><figcaption>Output of Above Code: Strong Tag</figcaption></figure><p>xi. Emphasized Tag (Similar to Italic Tag but the text will be read by browser with an emphasis using verbal stress)</p><pre>&lt;!--Example--&gt;<br>&lt;em&gt;This is our first module. &lt;/em&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*Z8MM-CtYbUNrbP6MZO_RfA.png" /><figcaption>Output of Above Code: Emphasized Tag</figcaption></figure><p><strong>2. Basics of CSS:</strong></p><p>In the second module, you will dive into CSS, which is used to style and format web pages. You will learn how to add colors, typography and layout to your web page using CSS properties and selectors.</p><p><strong>3. Basics of Bootstrap:</strong></p><p>Finally, in the third module, you will learn how to use Bootstrap, a popular CSS framework to make your web pages responsive and mobile-friendly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90a56049a8bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mr-plan-publication/mastering-frontend-development-building-a-webpage-with-html-and-css-part-i-90a56049a8bf">Mastering Frontend Development — Building a Webpage with HTML and CSS (Part-I)</a> was originally published in <a href="https://medium.com/mr-plan-publication">Mr. Plan ₿ Publication</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Razor View Engine and Razor Syntax]]></title>
            <link>https://medium.com/follower-booster-hub/razor-view-engine-and-razor-syntax-8147ae14a75e?source=rss-1180a3794fb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8147ae14a75e</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[ideas]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <dc:creator><![CDATA[HerWorld ]]></dc:creator>
            <pubDate>Mon, 02 Dec 2024 16:57:10 GMT</pubDate>
            <atom:updated>2024-12-02T16:57:10.537Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you want to learn ASP.NET Development 🙌🏻</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M5Gy9ZrfO_rXuypAWHuYiQ.png" /></figure><p><strong>Razor View Engine</strong></p><p>Razor View Engine is a default view engine for ASP.NET Core applications.</p><ul><li>It is responsible for producing HTML response when invoked by Controller Action Method.</li><li>Controller Action Methods return some types of responses, which are called as Action Result.</li><li>The ViewResult is the ActionResult which produces the HTML Response.</li><li>The ViewResults are produced by the View Engine.</li><li>When the Controller Action method invokes the View() or PartialView(), it invokes the View Engine, which produces the HTML Response.</li><li>The Razor View Engine is the default View Engine for the ASP.NET Core Applications.</li><li>It looks for Razor markup in the View File and parses it and produces the HTML response.</li><li>It is used to generate views that are returned to the client’s browser in response to a request.</li><li>It is a powerful and flexible templating engine.</li><li>With this, it is easier to create dynamic web pages in ASP.NET Core.</li><li>It enables developers to write clean and maintainable code that can be easily understood.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*74KZgiQgMPKy6DTeGr4RLw.png" /><figcaption>How to write these Razor View Engine</figcaption></figure><p><strong>Syntax of Razor View Engine — Razor Syntax</strong></p><ul><li>Razor is a markup syntax for embedding .NET Based Code into web pages.</li><li>The Razor syntax consists of Razor markup, C#, and HTML.</li><li>Files containing Razor generally have a <strong>.cshtml</strong> file extension.</li><li>Razor syntax is similar to the templating engines of various JavaScript single-page application (SPA) frameworks, such as Angular, React etc.</li><li>Razor supports C# and uses the ＠ symbol to transition from HTML to C#.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8147ae14a75e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/follower-booster-hub/razor-view-engine-and-razor-syntax-8147ae14a75e">Razor View Engine and Razor Syntax</a> was originally published in <a href="https://medium.com/follower-booster-hub">Follower Booster Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All About DOM Manipulation using JavaScript]]></title>
            <link>https://medium.com/follower-booster-hub/all-about-dom-manipulation-using-javascript-7f7c1dd02f2c?source=rss-1180a3794fb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f7c1dd02f2c</guid>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[dom-manipulation]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[dom]]></category>
            <dc:creator><![CDATA[HerWorld ]]></dc:creator>
            <pubDate>Wed, 27 Nov 2024 15:17:40 GMT</pubDate>
            <atom:updated>2024-12-01T06:38:10.909Z</atom:updated>
            <content:encoded><![CDATA[<p>Become a Pro by learning DOM Manipulation — Practice makes a man perfect 💫</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jm7TAT7i7RPM2ZsolX1bzQ.png" /></figure><p>The Document Object Model (DOM) is actually a programming interface for web documents. It shows HTML or XML document as a tree-like structure as each node in tree corresponds to a different part of the document. JavaScript can manipulate the DOM by selecting nodes and changing their properties or adding and removing nodes altogether.</p><p>You can access DOM elements with JavaScript in various ways;</p><ol><li><strong>document.getElementById(id)</strong><br>It will access all the elements from HTML Web Page that has id name same as that of in “document.getElementById(‘id’)” method.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C-1cR9vYmYCBKsk1hdGESQ.png" /><figcaption>Example: Code for Document Selector ‘getElementByID’</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2yL-XPhuWysKVIjCcN6cNg.png" /><figcaption>Output of Above Code in Chrome — Acheived by Inspecting on Web Page</figcaption></figure><p><strong>2. document.getElementsByClassName(className)</strong><br>It will get all the Elements that have class name similar to that used in method’s parameters;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xsVhX9JX5PWeWd1_6GTBaA.png" /><figcaption>getElementsByClassName is used for getting all the elements with the used class name in method’s parameters</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MOo0aaNfirNs1lsf4S7fVg.png" /><figcaption>Output of Above Code: Giving a Array Like Structure with the elements having class name ‘Fruits’</figcaption></figure><p><strong>3. document.getElementsByTagName(tagName)</strong></p><p>It will return the collection of all the elements with the specified tag name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FBW9VcfKxZ5nQOIxs7YX7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B88wP3X6-as_EnCJTrTCAA.png" /><figcaption>Output of Above Code: It is returning all the elements with tag name ‘li’</figcaption></figure><p><strong>4. document.querySelector(selector)</strong></p><p>It will return the first element that matches the specified CSS selector.<br>And in this example, I am selecting “.Fruits” CSS Selector that is class name of some ‘li’ in HTML.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XHSa0aWttXT_0Lv_O7kFxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JMCAy3oxCwPKsZBhMncC2w.png" /><figcaption>It is returning first element that is matching the specified CSS Selector</figcaption></figure><p><strong>5. document.querySelectorAll(selector)</strong><br>It will return the all the elements that matches the specified CSS selector.<br>We can also do this by using ‘getElementByClassName’ method to access all the classes similar to specified class Name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZTdZx9hV6Gu6nbSh_fASPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NvowbfWlY9vT3lbFp4ZRwg.png" /><figcaption>Output of Above Code; in web page Console</figcaption></figure><p>We can manipulate DOM Elements using Javascript. JavaScript is a programming language that is used to add, remove or modify elements on a web page dynamically, without having to reload the entire page.<br>To do this, firstly you need to select the element you want to modify using DOM Selectors.</p><blockquote>A <strong>DOM selector </strong>is a method that allows you to select an element or group of elements on a web page.</blockquote><p>After selecting an element, you can access and modify its properties, such as its text content, attributes, and styles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DRac9qBnpu-aF7imdghtxg.png" /><figcaption>Here I used some methods to add an element to web page from JavaScript</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eGJEPADRj_WOzx0wlmr3Gw.png" /><figcaption>Output of above code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gwVJ8bMZ2QpvI8BxZEhXWQ.png" /><figcaption>Here I removed above added div element using JavaScript</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P_dsSvYepDEi-UrgJlOUFg.png" /><figcaption>Output of above code</figcaption></figure><p>We can use any of the methods<strong> div.remove() </strong>and <strong>body.removeChild(div) </strong>to remove the specified element from web page using JavaScript.</p><p>You can also modify styles and attributes with JavaScript to change the appearance and behavior of elements on a web page dynamically.<br><strong>style </strong>property of an element is used to access and modify CSS styles.<br><strong>setAttribute</strong> method is used to add or modify attributes on an element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S6yrsd3lFhD1ugC7AxNf4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dnxCHdaOFwcElNhqUib3Hw.png" /><figcaption>Got value of li with name attribute in the Console of the Web Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YGZNQI7SB5mMk0n_hc4GEQ.png" /><figcaption>By using setAttribute Method I changes the specified Attribute Value</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X6-tTVG6uBrVvB9HnSX2ug.png" /><figcaption>Output of Above Code; here value of ‘name attribute has been changed to noValue’</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_iIlzJ5yBwpfEuRIpN-MXg.png" /><figcaption>By using removeAttribute Method, I removed name attribute</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJTwwR_TQ50c4hdXK-450w.png" /><figcaption>Output of Above Code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eqNIJAYdfEvpQaULF4VQcw.png" /><figcaption>Rather than using setAttribute Method you can simply add an id using above technique</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQjqDmRhnF8vTKfE2fFVUQ.png" /><figcaption>Output of Above Code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g892hYfLl2TgpdIuALskgg.png" /><figcaption>You can simply add a new Class by using above method</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FbKr-rmOfnCvQejEpbfbUA.png" /><figcaption>Output of above code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BkHU8H9owuToY7M9LNSH-A.png" /><figcaption>By using above method, you can delete the specified class name</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fx8epKXO2SLi5XEYEdQWGg.png" /><figcaption>Output of Above Code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLJIyxuUecJHDCuLr1gCfg.png" /><figcaption>You can also manipulate the style using style property in JavaScript</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KH64MO8rRSN__hJPUe11Rw.png" /><figcaption>Output of above Code</figcaption></figure><p>Let’s Summarize;</p><p><strong>JavaScript DOM Selectors:</strong><br>✔️ document.getElementById(‘id’)<br>✔️ document.getElementsByClassName(‘className’)<br>✔️ document.getElementsByTagName(‘tagName’)<br>✔️ document.querySelector(‘selector’)<br>✔️ document.querySelectorAll(‘selector’)</p><p><strong>Methods used for manipulating DOM Elements and Modifying styles and attributes with JavaScript:<br></strong>✔️ document.createElement(‘elementName’)<br> elementName.innerText = “Let’s Learn !”;<br>body.append(elementName);<br>✔️ elementName.remove(); OR body.removeChild(elementName)<br>✔️ const element = document.getElementById(‘name’);<br>✔️ element.getAttribute(‘attributeName’);<br>✔️ element.setAttribute(‘attributeName’, ‘attributeValue’);<br>✔️ element.removeAttribute(‘attributeName’);<br>✔️ element.id = ‘idName’;<br>✔️ element.classList.add(‘className’);<br>✔️ element.classList.remove(‘className’);<br>✔️ element.style.color = ‘green’;</p><p>Next Part is on it’s way!</p><p>Happy Coding 🙌🏻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f7c1dd02f2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/follower-booster-hub/all-about-dom-manipulation-using-javascript-7f7c1dd02f2c">All About DOM Manipulation using JavaScript</a> was originally published in <a href="https://medium.com/follower-booster-hub">Follower Booster Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Action Methods and Result Types]]></title>
            <link>https://medium.com/follower-booster-hub/action-methods-and-result-types-b52092ec2382?source=rss-1180a3794fb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b52092ec2382</guid>
            <category><![CDATA[mvc]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[action-method]]></category>
            <category><![CDATA[aspnet]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <dc:creator><![CDATA[HerWorld ]]></dc:creator>
            <pubDate>Fri, 11 Oct 2024 06:34:43 GMT</pubDate>
            <atom:updated>2024-12-01T06:38:06.936Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>Action Methods</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*8ivVlI0ZFayPm32L1AETDQ.png" /><figcaption>Action Methods and Result Types</figcaption></figure><p>i. An action method is a method that responds to user action/activity.</p><p>ii. Any method in a controller which has public access modifier acts as an action method.</p><p>iii. <strong>They are like any other normal methods with the following restrictions:</strong><br>- Action method must be public. It cannot be private or protected because request passes through these action methods.</p><p>- Action method cannot be overloaded, it means that in one action method whatever parameters you are passing, you can pass a different parameters to make it overloaded otherwise with the same signature cannot be overloaded.</p><p>- Action method cannot be a static method because they are not shareable.</p><p>iv. Every controller can have default action method as per configured route in the <strong>RouteConfig.</strong></p><p>v. By default, the Index() method is a default action method for any controller.</p><pre>public IActionResult Index()<br>{<br>  return View();<br>}</pre><p>vi. Also, you can change the default action name as per your requirement in the <strong>RouteConfig class.</strong></p><p><strong>Example 1: Action Method with return type string</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*-sfNW5Dkcs5WJY8-0eDCLA.png" /><figcaption>Action Method added in HomeController.cs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4rdXhctJXj02QYxs-ER6_w.png" /><figcaption>Output of this Action Method</figcaption></figure><p>But it is not recommended to use “string” as a <strong>return type</strong> in real world application.</p><p><strong>Example 2: Action Method with return type ViewResult</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*d1rbUZNHVElTVvfQmGCiMg.png" /><figcaption>Action method with ViewResult return type is added</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*67RbT5mUvV0aoVSdzJus0Q.png" /><figcaption>Right Click on View and click Add View</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*t3u8kUrcqzPIdev5F_4Ksg.png" /><figcaption>From here select Razor View and Press Add</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*JbLUu2Xs3NqEGfjHQSIX9w.png" /><figcaption>View name should be same as Action Method name and check Use a layout page option and Press Add</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*CR-ndTZy2BcdqWJi6JXYXA.png" /><figcaption>It will hardly takes couple of minutes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xRl9z0lHiMBeKDrJXJZgqg.png" /><figcaption>This page will be opened</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*PCey9NCNZO3uIW1JJIkTZQ.png" /><figcaption>I added some code here</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ix0KMEPwxthzPetcObwUhw.png" /><figcaption>Output of this Action Method</figcaption></figure><p><strong>Here are multiple result types implemented:</strong></p><ol><li><strong>Action Result</strong></li></ol><ul><li>MVC Framework includes various Result classes, which can e returned from an action method</li><li>Result classes represents different types of responses, such as HTML, file, string, JSON etc.</li><li>ActionResult class is a base class of all the above result classes,</li></ul><p>- <strong>Like a ViewResult is the child one but its parent is the ActionResult Class.</strong></p><ul><li>However, you can specify the appropriate result class as a return type of action method.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*xEXbz2akfHWr11qNzrhIjg.png" /><figcaption>How requests are received and how corresponding responses are provided</figcaption></figure><ul><li>The base controller class includes the <strong>View()</strong> method along with other methods that return a particular type of result.</li></ul><p><strong>The following are the result classes with their base Controller Methods:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*HQTJFZR2lZbJ8t4QKJ90Hw.png" /><figcaption>Different Result Classes with their base controller methods</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b52092ec2382" width="1" height="1" alt=""><hr><p><a href="https://medium.com/follower-booster-hub/action-methods-and-result-types-b52092ec2382">Action Methods and Result Types</a> was originally published in <a href="https://medium.com/follower-booster-hub">Follower Booster Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Asynchronous Programming Patterns in .NET]]></title>
            <link>https://medium.com/mr-plan-publication/asynchronous-programming-patterns-in-net-80a3a27f498a?source=rss-1180a3794fb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/80a3a27f498a</guid>
            <category><![CDATA[tap]]></category>
            <category><![CDATA[apm]]></category>
            <category><![CDATA[asynchronous]]></category>
            <category><![CDATA[eap]]></category>
            <category><![CDATA[asynchronous-programming]]></category>
            <dc:creator><![CDATA[HerWorld ]]></dc:creator>
            <pubDate>Thu, 10 Oct 2024 11:58:52 GMT</pubDate>
            <atom:updated>2024-11-28T11:32:18.626Z</atom:updated>
            <content:encoded><![CDATA[<h3>Asynchronous Programming Patterns in .NET</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*dCpsxRsqkNT47mDKlQoZXg.png" /><figcaption>Async Programming Patterns in .NET</figcaption></figure><ol><li><strong>Asynchronous Programming Patterns</strong></li></ol><p>There are three patterns of implementing asynchronous programming in .NET:</p><p>☑ Asynchronous Programming Model (APM)<br>☑ Event-Based Asynchronous Pattern (EAP)<br>☑ Task-Based Asynchronous Pattern (TAP)</p><p>All of these patterns are used in .NET to provide asynchronous programming concepts, and Task-Based Asynchronous Pattern (TAP) is most widely used pattern in .NET applications.</p><p><strong>I. Asynchronous Programming Model (APM)</strong></p><p>➊ .NET Framework 1.1 introduced asynchronous programming model with APM.</p><p>➋ This model uses the <strong>IAsyncResult interface </strong>as its design pattern to perform asynchronous programming. It is also called the “<strong>IAsyncResult pattern”.</strong></p><p>➌ Input/Output operations are normally slower than other processing operations.</p><p>➍ Below is the APM version of <strong>ImportStudentData</strong> method signature:</p><pre>public class StudentImport<br>{<br>   public IAsyncResult BeginImportStudentData(Student student, AsyncCallback callback, object state);<br>   public int EndImportStudentData(IAsyncResult asyncResult);</pre><p>Here, IAsyncResult is a return type of action methods and is responsible for Asynchronous protocol implementation.</p><p><strong>Example: </strong>A typical example of APM model is file stream class in the system.io where it uses the begin read and end read methods to asynchronously read bytes from a file .</p><p><strong>II. Event-Based Asynchronous Pattern(EAP)</strong></p><p>➊ The class that supports EAP will have Asynchronous version of method.</p><p>➋ The operations executes in separate threads and we use events to notify the completion status.</p><p>➌ Application with UI components mainly use EAP for implementation.</p><p>➍ Class will have one or more methods named <strong>&lt;em&gt;MethodName&lt;/em&gt;Async. </strong>It also have <strong>MethodNameCompleted event </strong>which will be raised when the asynchronous method complete processing.</p><p>➎ There is a corresponding cancel method <strong>&lt;em&gt;MethodName&lt;/em&gt;</strong> to cancel process in middle.</p><p>➏ This is a standard pattern which hide complexity of asynchronous execution of any method.</p><p><strong>Using a class that suports this pattern can allow you to: </strong>Perform time-consuming tasks, such as downloads and database operations without interrupting your application. It executes multiple operations simultaneously, receiving notifications when each completes. It waits for resources to become available without stopping (“blocking”) your application.</p><p>It works with publisher and subscriber model as it communicates with pending synchronous operations using events-and-delegate model.</p><p><strong>Below is the EAP version of ImportStudentData method signature:</strong></p><pre>public class StudentImport{<br>  public void ImportStudentDataAsync(Student student);<br>  public event ImportStudentDataCompletedEventHandler ImportCompleted;<br>}</pre><p>Here, this is the method being referred to the delegate and to complete this delegate operation, where the method has the input parameter as student object to be stored into the database or read the student object, event handler is created here that is <strong>ImportCompleted.</strong></p><p><strong>III. Task-Based Asynchronous Pattern(TAP)</strong></p><p>➊ This is the recommended model of asynchronous programming introduced in .NET 4.5. This uses newly introduced keywords async and await in C# 5.0. This pattern provides a non-blocking framework.</p><p>➋ In this, long running requests don’t block the curent thread, which can continue doing next set of tasks till the time async request completes.</p><p>➌ Async methods by convention use Async as suffix. Meanwhile await keyword pauses the execution and asynchronously waits for the awaited task to complete.</p><p><strong>Example: &lt;MethodName&gt;Async will be the asynchronous version of&lt;MethodName&gt;method.</strong></p><p>➍ .NET Framework 4.5 has incorporated lot of existing classes with Async version. <br><strong>Example: CopyToAsync, ReadAsync, and WriteAsync method in System.IO.Stream class</strong> to make the file handling implementation more stronger.</p><p><strong>Below is the TAP version of ImportStudentData method signature:</strong></p><pre>public class StudentImport{<br>   public Task&lt;int&gt; ImportStudentDataAsync(Student student);<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80a3a27f498a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mr-plan-publication/asynchronous-programming-patterns-in-net-80a3a27f498a">Asynchronous Programming Patterns in .NET</a> was originally published in <a href="https://medium.com/mr-plan-publication">Mr. Plan ₿ Publication</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Asynchronous Programming — Async and Await]]></title>
            <link>https://medium.com/mr-plan-publication/asynchronous-programming-async-and-await-0767d38375e4?source=rss-1180a3794fb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/0767d38375e4</guid>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[asynchronous-programming]]></category>
            <category><![CDATA[asynchronous]]></category>
            <category><![CDATA[synchronous-programming]]></category>
            <category><![CDATA[aspnet]]></category>
            <dc:creator><![CDATA[HerWorld ]]></dc:creator>
            <pubDate>Wed, 09 Oct 2024 08:34:59 GMT</pubDate>
            <atom:updated>2024-11-28T11:32:38.142Z</atom:updated>
            <content:encoded><![CDATA[<h3>Asynchronous Programming — Async and Await</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*yvAHaX8mQTR-zMw8_ofuCA.png" /><figcaption>Synchronous and Asynchronous programming in C#, Image Source: <a href="https://ibb.co/VBF63xb">https://ibb.co/VBF63xb</a></figcaption></figure><p>Synchronous and Asynchronous programmings are two different programming models, in which Synchronous refers to “sync” and Asynchronous refers to “async”.</p><ol><li><strong>Synchronous Programming</strong><br>• It is a type of programming in which code execution occurs in a single, sequential order. <br>• It is a single threaded model.<br>• It is known as a blocking architecture.<br>• When a synchronous method is called, program waits for method to complete before continuing to execute the next line of code. <br>• This means that the program will block, or pause, until the method completes. <br><strong>For Example:</strong> During a telephonic conversation, one person speaks and other listens, and when first person finishes, second person tends to respond immediately. This is an example of Synchronous Programming.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m8frpwlk2uvJvjiuJ0Gk4Q.png" /><figcaption>Example of Synchronous Programming</figcaption></figure><p>2. <strong>Asynchronous Programming<br></strong>• It is an efficient approach towards activities blocked or access is delayed. <br>• It is a multi-threaded model that is most applicable to networking and communication. <br>• It is also known as a non-blocking architecture, which means it does not block further execution while one or more operations are in progress. <br><strong>For Example:</strong> Texting is a asynchronous communication method where one person can send a text message and the recipients can respond at their own specific time. In the meantime, second may do other things while waiting for a response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*BdYHWH_SWGkVOz6x-RbrHg.png" /><figcaption>Example of Asynchronous Programming</figcaption></figure><p>This is how synchronous and asynchronous varies and differ from each other. In the case of synchronous, one request comes in until the first request is not processed and the response is not delivered to the client. The second request has to wait to gets its response ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*LH0iXTnIH-mX8C0fI0yntA.png" /><figcaption>Working mechanism of sync vs async programming</figcaption></figure><p>But in the case of asynchronous pattern, multiple requests are sent to the server. Whichever response will be getting ready first, they will call you back with the help of callback mechanism. So, two or more requests can be processed at the same time.</p><p><strong>3. Synchronous vs Asynchronous Programming<br></strong>Here are differences listed between sync and async programming:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3RZ-t6R-0aB5WOkl_IApnQ.png" /><figcaption>Synchronous vs Asynchronous Programming</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0767d38375e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mr-plan-publication/asynchronous-programming-async-and-await-0767d38375e4">Asynchronous Programming — Async and Await</a> was originally published in <a href="https://medium.com/mr-plan-publication">Mr. Plan ₿ Publication</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing Web Application using ASP.NET Core MVC Application]]></title>
            <link>https://medium.com/mr-plan-publication/developing-web-application-using-asp-net-core-mvc-application-2b748030bd81?source=rss-1180a3794fb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b748030bd81</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[mvc]]></category>
            <category><![CDATA[aspnet]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <dc:creator><![CDATA[HerWorld ]]></dc:creator>
            <pubDate>Sat, 05 Oct 2024 08:37:25 GMT</pubDate>
            <atom:updated>2024-11-28T11:33:12.668Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*X_F-KoUvir6WG2N3fXmwaA.png" /></figure><p>I am going to develop a web application using ASP.NET Core MVC Application, and I’ll share step by step guide with you so that every single concept will be pretty clear to you! So, let’s get started.</p><p>First of all, you will learn about the basics of ASP.NET MVC including it’s advantages over ASP.NET Web Forms, the MVC pattern and how to create an ASP.NET MVC file project. You will also gain the understanding of folder structure of ASP.NET MVC and the concepts of layouts, sections and view start. Additionally, you will learn about the differences between the MVC and tier architecture. <br>ASP.NET MVC is a powerful web application framework that is designed by Microsoft for building dynamic, data-driven web applications.<br>As I mentioned it earlier that ASP.NET MVC has number of advantages over traditional ASP.NET Web Forms including better separation of concerns, more control over HTML and URL generation and improved testability.</p><ol><li><strong>What is ASP.NET Core?</strong></li></ol><p>ASP.NET Core is an open-source and cross-platform framework for building cloud based applications such as Web Apps, IoT Apps, and Mobile Backends. It is a unified version for building Web UIs and Web APIs and to run on a cloud, as well as on-premises. It has built-in dependency injections, request pipeline and middle-wares to work with. Despite being built on a new webstack, it does have high degree of compatibility with standard ASP.NET framework to build with.</p><p>ASP.NET Core is perfectly suited for Docker containers. Basically, the applications first developed and dockerized into the image then containerized them for the reusability of the applications. It has built-in support for Single Page Application (SPA) with client-side frameworks like Angular, React and Vue.</p><p><strong>2. Features of ASP.NET Core</strong></p><p>There are certain features of ASP.NET Core, first very important is cross-platform support, then we have a high performance to build a robust and scalable application. Less code to write, because it has implemented the various shared libraries to be used across. Easy maintenance of web application. Cloud-based application development support as I discussed, we can also dockerize the applications into the image and deploy them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*UIZfE4Wc16URfe1x0x6fKw.png" /><figcaption>Features of ASP.NET Core</figcaption></figure><p><strong>3. ASP.NET Core Project Folder Structure<br></strong>Basically, the details of the default project can be seen in the solution explorer whenever a new project is generated. It displays all the project related to a single solution where in one single solution, we can have multiple projects associated with. The Project Folder Structure is organized in a hierarchical manner and each level representing a different aspect of the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*pOf985iNDhK2kTZkwEU_Sw.png" /><figcaption>Project Folder Structure in ASP.NET Core</figcaption></figure><p><strong>4. Building a Web Application Using ASP.NET Core</strong></p><p>First of all, open your visual studio 2022. Here on the left hand side all your previous created projects will be shown and on the right hand side, there will be some options for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8k_3D2lntKaSNN1tKbgAAw.png" /><figcaption>First Window shown when Visual Studio 2022 is opened</figcaption></figure><p>On the right hand side, first one is <strong>Clone a repository</strong> to get the code from online repository like GitHuB and Azure, <strong>Open a project or solution</strong> from a local machine in the form of .sln file, that’s a solution file. <strong>Open a local folder</strong> to navigate and edit code within any folder. And then we have a <strong>Create a new project</strong>.</p><p>So, I am going to create a new project at this time. If you will opt out ASP.NET Core from the search window, we have three options here. One is <strong>ASP.NET Core Web App</strong> (the web app will create razor pages), one is <strong>ASP.NET Core Empty</strong> (will create a completely empty application in which we need to configure each and everything from scratch) , and another is <strong>ASP.NET Core Web App</strong> (use model view controller architecture MVC) that is using model, view and controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gy4ZUAmvewHnOl7kc5A-Hg.png" /><figcaption>Different projects option obtained after writing ASP.NET Core in Search Window</figcaption></figure><p>I am opting out the model view controller architecture. Then, I will write name of the project and press <strong>Next.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s7gB_pt_LN15X514Rdf4XQ.png" /><figcaption>Adding Name of the Project and press Next</figcaption></figure><p>Next, it will ask to configure our project by selecting the framework. I am select <strong>.NET 6.0 </strong>that has a long-term support. For the time being, I am not considering any authentication mode, and I really don’t want to configure for HTTPs. So, I am simply creating my project by pressing <strong>Create. <br></strong>Once the Application is successfully created, we can see the files and folders on <strong>Solution Explorer. </strong>It hardly takes couple of minutes to generate the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JM62iLO9zIyVpVBOjH8iVQ.png" /><figcaption>First Look of project and its folders structure once project is created</figcaption></figure><p>Here, On the right hand side, in Solution Explorer all the files and folders associated are shown. Most importantly, we need to see this <strong>Program.cs </strong>where the routing is being configured, how our request comes through the Home Controller.</p><pre>app.MapControllerRoute(<br>    name: &quot;default&quot;,<br>    pattern: &quot;{controller=Home}/{action=Index}/{id?}&quot;);</pre><p>Request first of all comes to the <strong>Home </strong>Controller, over the controller we have the action methods associated with. I can simply go to the Controllers through <strong>Controllers</strong> Folder and show you there is a home controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NyAbO0Dehw6QNKkQ9bbmMQ.png" /><figcaption>Home Controller with Action Methods Defined in it</figcaption></figure><p>Here, you can see that Action Method <strong>Index </strong>is being defined here. Let me run this application to check what this action method is returning. Build the application from green triangle like symbol,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*oZ9aVVJceHxSx_dSB7jzTw.png" /><figcaption>Build Your Application from Here</figcaption></figure><p>After running, this will be shown on browser;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RrDWKYlfuXuex9LfZ6ynPQ.png" /><figcaption>Output of the Project</figcaption></figure><p>Here is your Home Controller and by default the index action method runs. Request comes to the home controller and then the respective action method calls up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_0WFGJZW5WoXqENynr5ow.png" /><figcaption>By Default, Action Method Index of the Home Controller is Called up</figcaption></figure><p>localhost:5267/Home/Index === localhost:5267<br>These are equal because <strong>Index Action Method is set as default</strong> method to call up once a request to Home Controller comes when you first create your project without modifying anything. <br><strong>5. Understanding MVC Pattern</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*FfVmHv1iywKI3nSeQM2nEg.png" /><figcaption>MVC Pattern</figcaption></figure><p>MVC Pattern helps in developing an application which is loosely coupled. <strong>MVC</strong> stands for <strong>Model</strong>, <strong>View</strong> and <strong>Controller</strong>. Here, <strong>model</strong> represents the shape of the data and <strong>view</strong> in MVC is a User Interface. But <strong>controller </strong>is the main request handler that makes an interaction between model and view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*bhoqllt6eTmTW0iIvVz2Lw.png" /><figcaption>This is how the MVC pattern works</figcaption></figure><p><strong>Model</strong> are the domain classes which represents the entity. <strong>View</strong> is a UI component which is also makes as an interaction, but displays what entities or the final output needs to be displayed to the end user. But <strong>Controller </strong>comes into the very first into this architecture, that is a request handler, takes up the request interacts with the model and view, accordingly prepares the result.</p><p><strong>I. Model:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*eGKPgUuTTlInI_8e0jduQA.png" /><figcaption>What Model Does</figcaption></figure><p>It represents the shape of the data and business logic of the application.</p><p><strong>For Example:</strong> If you are developing an ecommerce application, the category, brand, product, supplier, customer all are the entity or the domain classes that represents the business logic of the application.</p><p><strong>Model</strong> is responsible for defining the data entities, also validating the input and performing the database operations. We can create the repositories to perform the operations. It is used in conjunction with data access technologies such as <strong>Entity Framework, LINQ or SQ (ado.net).</strong></p><p><strong>II. View:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*NkG4iIXjT_xw0Q2B900nJg.png" /><figcaption>What View Does</figcaption></figure><p><strong>View </strong>in MVC is basically a <strong>user interface </strong>which is responsible for rendering the user interface of the application. It displays the model data to the user and also allows them to modify them. <strong>View</strong> in ASP.NET MVC is HTML, CSS and some special syntax called razor syntax that makes it easy to communicate with the model and the controller itself. <br>A <strong>View</strong> is typically defined as an HTML template that includes server-side code to render data. It can use a variety of technologies to render HTML, including Razor, ASPX, and others. Client-side technologies such as JavaScript, and CSS can be used to enhance the user interface. You can also use Angular or React for Single Page Application.<br><strong>III. Controller</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*62Wpr5T6TQZegNKzIGJFUQ.png" /><figcaption>What Controller Does</figcaption></figure><p>A <strong>Controller </strong>is responsible for handling the user inputs and updating the model and the view. It is the component that handles the requests from the clients and performs necessary operations (known as <strong>CRUD operations</strong>) on the model, and selects the right view to render the response. <strong>Controller </strong>is defined as a class that inherits from the base controller class in ASP.NET MVC that includes the action method that corresponds to user requests and perform operations on the model.</p><p><strong>6. Model-View-Controller Communication MVC Pattern<br></strong>Whenever a user sends a request from the browser, request comes to the controller. Controller is a request handler that understands whether this controller needs to communicate with a view to render the data, or it needs to prepare the data by exchanging it from the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*xGy5TRs-IRBSaNpQkOtSZg.png" /><figcaption>Model-View-Controller Communication</figcaption></figure><p>If it requires a view to render the data, it will simply interacts with the view and returns with the help of a return view in the action method.</p><p><strong>— — — — — — — — — — — — — — — — Note — — — — — — — — — — — — — —</strong><br><strong>View </strong>and <strong>Model </strong>cannot interact with each other. They always needs a <strong>Controller </strong>to generates their response. That is a <strong>middle iterator</strong> or the <strong>binder</strong> between view and the model.</p><p><strong>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</strong></p><p><strong>7. Communication and Interaction between different Components</strong></p><p>● <strong>Model to Model: </strong>We can communicate from Model to Model via parameters/composition (By creating an instance of one model to another).<br>● <strong>Model to View: </strong>To communicate Model to View, you have to follow the path: Model &gt; Controller &gt; View.<br>We can’t directly move from Model to View. First, the Model object is made in the Controller and then it is passed to the View (that will carry the data along with). <br><strong>We can pass the data or communicate from Model to View by these three steps:<br>-</strong> We need to create an object in the action of a Controller or Action Method of a Controller<br>- Then we pass the model object as a parameter to the view that is known as model binding. <br>- Then use <strong>＠model </strong>to include Model on the View page.<br>● <strong>Model to Controller: </strong>We need to create an object of Model class in Controller and we can directly access the methods and the properties associated.<br>● <strong>View to Model: </strong>To communicate View to Model, you have to follow this path: View &gt; Controller &gt; Model.<br>We can’t directly move from View to Model. First you have to submit the data to the controller and then pass it to the model. <br><strong>To pass the data from View to Model, you have to follow these three steps:<br>- </strong>Submit HTML Form to a Controller<strong> <br>- </strong>Then it will send the model to the action method in the controller<strong><br>- </strong>And then pass the value to the Model object that prepares the response and send it back.<br>● <strong>View to View: </strong>We can move from one view to another view by using partial views (that starts with underscore).<br>● <strong>View to Controller: </strong>We can move data from view to controller by submitting forms to controllers and calling the action methods with the help of tag helpers or by (some ways to interact between view to controller) :<br>- JSON<br>- AJAX Calls<br>- JavaScript<br>- Partial Views<br>● <strong>Controller to Model: </strong>We can move from Controller to Model just like we move from Model to Controller. By creating an object of one class into another class.<strong><br></strong>● <strong>Controller to View: </strong>We can move data from Controller to View in the following ways:<br>- By using ViewBag<br>- ViewData<br>- TempData<br>● <strong>Controller to Controller: </strong>We can move from one Controller to another Controller by using <strong>RedirectToAction(); </strong>and then pass the name of the specific action.<br>If you want to navigate from one action method to another action method, just one parameter, which is action method’s name needs to be passed in this method. Otherwise, the second parameter that you can pass is in which controller you want to navigate.</p><p>Second Part Is On It’s Way!<br>Stay Tuned and Happy Learning 🙌🏻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b748030bd81" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mr-plan-publication/developing-web-application-using-asp-net-core-mvc-application-2b748030bd81">Developing Web Application using ASP.NET Core MVC Application</a> was originally published in <a href="https://medium.com/mr-plan-publication">Mr. Plan ₿ Publication</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the .NET Core Platform: Key Features and Benefits for Modern Development]]></title>
            <link>https://medium.com/mr-plan-publication/understanding-the-net-core-platform-key-features-and-benefits-for-modern-development-37e45b18076b?source=rss-1180a3794fb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/37e45b18076b</guid>
            <category><![CDATA[sdk]]></category>
            <category><![CDATA[compilers]]></category>
            <category><![CDATA[net-core]]></category>
            <category><![CDATA[common-language-runtime]]></category>
            <category><![CDATA[aspnet]]></category>
            <dc:creator><![CDATA[HerWorld ]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 06:22:05 GMT</pubDate>
            <atom:updated>2024-11-28T11:33:42.524Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding the .NET Core Platform: Key Features and Benefits for Modern Development</h3><p>Dive into the .NET Core platform to explore its fundamental structures and components. This guide will help you navigate the framework, providing a solid foundation for your development journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26-CV8AmHz7ZIXDel0MI-g.png" /><figcaption>.NET Core Architecture</figcaption></figure><ol><li><strong>.NET Core Platform Structure</strong></li></ol><p>.NET Core Framework is composed of the following parts:</p><p>i. <strong>CLI Tools:</strong> A set of tooling for development and deployment</p><p>ii. <strong>Roslyn:</strong> Language Compiler for C# and Visual Basic.</p><p>iii. <strong>CoreFX:</strong> Set of framework libraries which are common to all the supported programming languages.</p><p>iv. <strong>CoreCLR:</strong> A JIT (Just-In-Time) based CLR (Command Language Runtime) that provides a memory management and understanding the managed and unmanaged code along with the security and authentication aspects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*esFawCfKpiodVkJDsywZ2Q.png" /><figcaption>.NET Core platform Structure</figcaption></figure><p>These are the four components that are consistent into the .NET Core architecture.<br>2. <strong>.NET Core Language Compilers</strong></p><p>The Compilers included in .NET Core are responsible for translating code. Translated code written in C#, F# and Visual Basic into Intermediate Language (IL) code. IL is a low-level language that can be executed by the .NET runtime. Roslyn language compiler is used for C# and Visual Basic. F# Compiler (fsc.exe) is used to compile F# code while C# Compiler (csc.exe) is used to compile C# code.</p><p>3. <strong>.NET Core CLR</strong></p><p>CoreCLR is the .NET runtime (i.e., the execution engine) used in .NET Core application whether it is a console application or Windows application. It is responsible for compiling and executing .NET Core applications. It provides features like garbage collection, just-in-time (JIT) compilation, and exception handling, memory management, authentication and authorization. One of the benefits of CoreCLR is its performance that it provides high level flexible implementation that makes application robust, scalable and fast. Is is optimized for modern hardware being used in latest execution environments where the application gets build and deployed. It is lightweight and modular as compared to the .NET Framework. It is an improvised version of .NET CoreCLR. It uses the less resources than the full .NET framework.</p><p>4. <strong>.NET CoreFX</strong></p><p>As .NET is a multilingual framework and providing the support to multiple programming languages. CoreFX is foundational set of libraries that provides functionality to .NET Core applications. It provides a wide range of libraries. Those libraries provides functionalities such as file I/O (input/output), networking,and collections, generics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37e45b18076b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mr-plan-publication/understanding-the-net-core-platform-key-features-and-benefits-for-modern-development-37e45b18076b">Understanding the .NET Core Platform: Key Features and Benefits for Modern Development</a> was originally published in <a href="https://medium.com/mr-plan-publication">Mr. Plan ₿ Publication</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[.NET Core Architecture and .NET CLI]]></title>
            <link>https://medium.com/mr-plan-publication/net-core-architecture-and-net-cli-290cc44d8097?source=rss-1180a3794fb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/290cc44d8097</guid>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[net-core]]></category>
            <category><![CDATA[command-line-interface]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <dc:creator><![CDATA[HerWorld ]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 05:25:55 GMT</pubDate>
            <atom:updated>2024-11-28T11:34:10.908Z</atom:updated>
            <content:encoded><![CDATA[<h3>.NET Core Architecture and .NET CLI</h3><p>.NET Core CLI(Command Line Interface) is a new cross-platform tool that is used for creating, restoring packages, building and publishing .NET applications. It also supports installation of third-party packages. Visual Studio also internally uses the .NET CLI commands to restore build and publish the applications. We can also create, build and run .NET Core projects by using .NET CLI commands. We can also use it to manage dependencies, whether to add the third party dependencies, removing them, or updating them using .NET nugget package manager. It can be easily automated and integrated into build and deployment pipelines because it supports the command line interface. When .NET Core SDK is installed then by default .NET Core CLI is also installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*HTRimn6LLfH0OJ9QY1-wYw.png" /><figcaption>.NET CLI (Command Line Interface)</figcaption></figure><ol><li><strong>.NET CLI Command Structure</strong></li></ol><p>dotnet&lt;command&gt;&lt;argument&gt;&lt;option&gt;</p><p>All the .NET CLI commands start with driver named “dotnet”. The driver <strong>dotnet</strong> starts the execution of the specified command, whatever template or a project you want to generate.</p><p>After dotnet, we add “command” to perform a specific action.</p><p>Giving brief introduction of all these components:</p><p><strong>dotnet:</strong> It is the driver and a fixed word.</p><p><strong>command:</strong> It is used to specify that we want to create a new project, e.g. new.</p><p><strong>argument:</strong> It is used to identify what kind of project we want to generate.</p><p><strong>option:</strong> It is used to specify the name of the projector other entities that you want it to include into your project.</p><p><strong>2. Introduction to .NET Core CLI Commands</strong></p><p>Now, I will discuss about .NET Core CLI Commands and will show you practical implementation;</p><p>i. By writing “<strong>dotnet — — help” </strong>command, it will list all the commands the tool is offering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*J43aLOXH8KF9fZNf8FC93Q.png" /><figcaption>Most Commonly Used .NET CLI Commands</figcaption></figure><p>ii. Project Modification Commands</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*cBe7z1FckflIJ5gAaAN_lA.png" /><figcaption>Project Modification Commands</figcaption></figure><p>iii. Advanced Commands</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*TKYhenLYIt20e041KrJjig.png" /><figcaption>Advanced Commands</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*amXu5lrZPbhmx_xA_aua1g.png" /><figcaption>This command is listing all the commands that .NET CLI is offering</figcaption></figure><p>Now, I am going to create an Empty ASP.NET Core project, and this project should be created in D drive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*5HNHgwokKmExe0HtNh3Daw.png" /><figcaption>Creating a new ASP.NET Core Web Project using commands</figcaption></figure><p>First of all, I am writing a command to create a new web project in a specified folder, then I am going inside the created project folder and then building and running the project. This all will be done using some useful commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*NJYvReMJQ69VEx9szMq_WQ.png" /><figcaption>Built the project and obtained 0 Warning and 0 Errors</figcaption></figure><p>On successful build, “Build Succeeded” message is received as highlighted above in green color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*fqgBH7p-ndBzHQsN-Aixuw.png" /><figcaption>Running the project after successful build</figcaption></figure><p>By running the project, we get a localhost(a hostname that refers to the local machine currently making the request.) address in result of executing the command; <a href="http://localhost:5211/">“http://localhost:5211</a>” By visiting this, we can get the output of our project.<br>In my case, it is “Hello World!”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AA6HLGypPxR18JefSH970Q.png" /><figcaption>Output of my Project</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=290cc44d8097" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mr-plan-publication/net-core-architecture-and-net-cli-290cc44d8097">.NET Core Architecture and .NET CLI</a> was originally published in <a href="https://medium.com/mr-plan-publication">Mr. Plan ₿ Publication</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>