<?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: Vishwas Bhat</title>
    <description>The latest articles on DEV Community by Vishwas Bhat (@bhat_vishwas).</description>
    <link>https://dev.to/bhat_vishwas</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%2F1699216%2F46ef3e44-546c-40bb-a0e1-5ab7ed51eb19.png</url>
      <title>DEV Community: Vishwas Bhat</title>
      <link>https://dev.to/bhat_vishwas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bhat_vishwas"/>
    <language>en</language>
    <item>
      <title>React Components:</title>
      <dc:creator>Vishwas Bhat</dc:creator>
      <pubDate>Sun, 01 Dec 2024 04:30:52 +0000</pubDate>
      <link>https://dev.to/bhat_vishwas/react-components-3dn</link>
      <guid>https://dev.to/bhat_vishwas/react-components-3dn</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;What Is Components in React?&lt;/strong&gt;&lt;br&gt;
-&amp;gt;In React, components are the building blocks of a React application. They allow developers to break the UI into independent, reusable pieces.&lt;/p&gt;

&lt;p&gt;React components can be broadly categorized into two types Those are:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Functional Components&lt;br&gt;
2.Class Components&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let us know these components in details-&amp;gt;&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  1.Functional Components:
&lt;/h2&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Definition: JavaScript functions that return React elements (JSX).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Purpose: Used for simpler components that primarily render UI.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Characteristics:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Stateless (before React Hooks were introduced).&lt;/li&gt;
&lt;li&gt;    Can use React Hooks (like useState and useEffect) to manage state and lifecycle in modern React
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function Greeting(props) {
  return &amp;lt;h1&amp;gt;Hello, {props.name}!&amp;lt;/h1&amp;gt;;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;2. Class Components&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Definition: ES6 classes that extend the React.Component class.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Purpose: Used when state management or lifecycle methods are needed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Characteristics&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Stateful and Becoming less common with the advent of Hooks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Includes lifecycle methods like componentDidMount, shouldComponentUpdate, etc.&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Greeting extends React.Component {
  render() {
    return &amp;lt;h1&amp;gt;Hello, {this.props.name}!&amp;lt;/h1&amp;gt;;
  }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Thank You Keep Learning React&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>LINQ Queries(Part 2):</title>
      <dc:creator>Vishwas Bhat</dc:creator>
      <pubDate>Tue, 20 Aug 2024 10:19:36 +0000</pubDate>
      <link>https://dev.to/bhat_vishwas/linq-queriespart-2-ag5</link>
      <guid>https://dev.to/bhat_vishwas/linq-queriespart-2-ag5</guid>
      <description>&lt;h2&gt;
  
  
  LINQ Query Operation
&lt;/h2&gt;

&lt;p&gt;Step 1 : &lt;strong&gt;Obtain the Data Source&lt;/strong&gt;:&lt;br&gt;
&lt;em&gt;A valid LINQ data source must support the IEnumerable interface or an interface that inherits from it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Let's Define Simple data source:&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var EmployeeIds= new int[5] { 0, 1, 2, 3, 4 };
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here The &lt;u&gt;studentIds &lt;/u&gt;is an array and it supports the &lt;u&gt;IEnumerable&lt;/u&gt;&lt;br&gt;
interface&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Types that support&lt;/strong&gt; IEnumerable or a &lt;strong&gt;derived interface&lt;/strong&gt; (IQueryable) &lt;strong&gt;are called queryable types&lt;/strong&gt;. A queryable type can directly be applied as a LINQ data source. However, if the data source is not represented in memory as a queryable type, we have to use LINQ providers to load it to a queryable form.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steps 2 :Create the Query&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;A query specifies what information we want to retrieve from the data source. &lt;br&gt;
To create a query , We need to Import LINQ into our code&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using System.Linq;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now We Will Write a Query:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var EmployeeWithEvenIds =
    from EmployeeId in EmployeeIds
    where (EmployeeId % 2) == 0
    select EmployeeId;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Here We are returning&lt;/em&gt; &lt;code&gt;IEnumberable&amp;lt;int&amp;gt;&lt;/code&gt; &lt;em&gt;Collection named&lt;/em&gt; &lt;em&gt;EmployeeWithEvenIds. It Holds all the Even-numbered Employee Ids.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The query expression has three clauses&lt;/em&gt;. The &lt;strong&gt;from , where , select&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; from clause describes the data source.&lt;/li&gt;
&lt;li&gt; where clause applies filters.&lt;/li&gt;
&lt;li&gt; select clause produces the result of the query by shaping the data. _&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Execute the Query&lt;/strong&gt;:&lt;br&gt;
&lt;em&gt;There are two ways to execute a LINQ query:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Deferred Execution&lt;/li&gt;
&lt;li&gt;Immediate Execution&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Deferred Execution&lt;/strong&gt;:&lt;br&gt;
We differ the actual execution of our previous query until we iterate over it using a &lt;u&gt;foreach &lt;/u&gt;statement. This concept is called deferred &lt;strong&gt;execution or lazy loading&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;foreach (int EmployeeId in EmployeeWithEvenIds )
{
    Console.Write("Employee Id {0} which is even.", EmployeeId);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Immediate Execution&lt;/strong&gt;:&lt;br&gt;
&lt;em&gt;Immediate execution is completely the opposite of deferred execution. Here, we execute our query and get the result immediately. Aggregate functions such as &lt;u&gt;Count&lt;/u&gt;, &lt;u&gt;Average&lt;/u&gt;, &lt;u&gt;Min&lt;/u&gt;, &lt;u&gt;Max&lt;/u&gt;, &lt;u&gt;Sum&lt;/u&gt;, and element operators such as &lt;u&gt;First&lt;/u&gt;, &lt;u&gt;Last&lt;/u&gt;, &lt;u&gt;SingleToList&lt;/u&gt;, &lt;u&gt;ToArray&lt;/u&gt;, &lt;u&gt;ToDictionary&lt;/u&gt; are some examples.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>LINQ Queries(Part 1):</title>
      <dc:creator>Vishwas Bhat</dc:creator>
      <pubDate>Mon, 19 Aug 2024 05:23:19 +0000</pubDate>
      <link>https://dev.to/bhat_vishwas/linq-queriespart-1-54dc</link>
      <guid>https://dev.to/bhat_vishwas/linq-queriespart-1-54dc</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;What is LINQ?&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;LINQ is a uniform query language, introduced with .NET 3.5 that we can use to retrieve data from different data sources. These data sources include the collection of objects, relational databases, ADO.NET datasets, XML files, etc.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What are the different steps of a LINQ query operation??
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;- There Are Few Steps Are There Those are&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;1.Obtain the data source&lt;br&gt;
2.Create the query&lt;br&gt;
3.Execute the query&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Explanation Of these Steps will discuss in next part Thank you.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Introduction On IDE.(Part 1).</title>
      <dc:creator>Vishwas Bhat</dc:creator>
      <pubDate>Mon, 01 Jul 2024 16:58:03 +0000</pubDate>
      <link>https://dev.to/bhat_vishwas/introduction-on-idepart-1-34ag</link>
      <guid>https://dev.to/bhat_vishwas/introduction-on-idepart-1-34ag</guid>
      <description>&lt;p&gt;1.What is IDE?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;IDE stands for Integrated Development Environment.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Central Hub For coding ,Finding problems and testing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Designed to improve developer efficiency.&lt;br&gt;
`&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;`&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
