<?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: Bug &amp; Fix</title>
    <description>The latest articles on DEV Community by Bug &amp; Fix (@bugandfix).</description>
    <link>https://dev.to/bugandfix</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%2F1117401%2Fe9717b99-064d-42a4-8eaa-3da6a0cab2a7.png</url>
      <title>DEV Community: Bug &amp; Fix</title>
      <link>https://dev.to/bugandfix</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bugandfix"/>
    <language>en</language>
    <item>
      <title>.NET 8 - C#12 - Primary Constructors</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Wed, 20 Sep 2023 05:57:05 +0000</pubDate>
      <link>https://dev.to/bugandfix/net-8-c12-primary-constructors-26a1</link>
      <guid>https://dev.to/bugandfix/net-8-c12-primary-constructors-26a1</guid>
      <description>&lt;p&gt;Beginning in C# 12, you can declare a primary constructor in classes and structs. You place any parameters in parentheses following the type name&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/wuTpS0zdfFs"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>dotnet</category>
      <category>constructor</category>
    </item>
    <item>
      <title>Occurrence Count of each character in a string in C# - Interview question</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Tue, 05 Sep 2023 06:04:39 +0000</pubDate>
      <link>https://dev.to/bugandfix/occurrence-count-of-each-character-in-a-string-3l0b</link>
      <guid>https://dev.to/bugandfix/occurrence-count-of-each-character-in-a-string-3l0b</guid>
      <description>&lt;p&gt;Counting the occurrence of each character in a string is a common job interview question, and it assesses your ability to manipulate strings and data structures.&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/1ku2X88T_vs"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>aspdotnet</category>
      <category>csharp</category>
      <category>progrraming</category>
    </item>
    <item>
      <title>Delete in EF 8 !</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Mon, 04 Sep 2023 05:18:00 +0000</pubDate>
      <link>https://dev.to/bugandfix/delete-in-ef-8--21eo</link>
      <guid>https://dev.to/bugandfix/delete-in-ef-8--21eo</guid>
      <description>&lt;p&gt;Deleting a record efficiently using Entity Framework (EF) involves a few key considerations to minimize unnecessary database operations and improve performance.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/OYb-QuvOO8g"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public async void DeleteStudent(int Id)
{
        UniverSityDBContext db = new UniverSityDBContext();
        var studentData = db.Students.FindAsync(Id).Result;                
        if (studentData == null)
            throw new Exception("Student not found");

        db.Students.Remove(studentData);
        await db.SaveChangesAsync();
}
//
public void DeleteStudentOptimized(int Id)
{
    UniverSityDBContext db = new UniverSityDBContext();
    var student = new Student { ID = Id };
    var studentEntity = db.Students.Attach(student);
    studentEntity.State = EntityState.Deleted;
    db.SaveChanges();
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>csharp</category>
      <category>entityframework</category>
      <category>ef</category>
      <category>dotnet</category>
    </item>
    <item>
      <title>CSS Fade-in &amp; Grow-in Effect on Hover</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Mon, 04 Sep 2023 05:16:49 +0000</pubDate>
      <link>https://dev.to/bugandfix/css-fade-in-grow-in-effect-on-hover-2n4b</link>
      <guid>https://dev.to/bugandfix/css-fade-in-grow-in-effect-on-hover-2n4b</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/5ReBNRQuY3U"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Github Source Code :&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/bugandfix"&gt;
        bugandfix
      &lt;/a&gt; / &lt;a href="https://github.com/bugandfix/Mouse-Hover"&gt;
        Mouse-Hover
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>html</category>
      <category>css</category>
      <category>style</category>
      <category>css3</category>
    </item>
    <item>
      <title>EF8, Raw SQL, but Dapper is FASTER !!!</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Sun, 03 Sep 2023 09:48:50 +0000</pubDate>
      <link>https://dev.to/bugandfix/ef8-raw-sql-but-dapper-is-faster--of1</link>
      <guid>https://dev.to/bugandfix/ef8-raw-sql-but-dapper-is-faster--of1</guid>
      <description>&lt;p&gt;Dapper and Entity Framework (EF) are two different Object-Relational Mapping (ORM) libraries for .NET, and their performance characteristics can vary depending on the specific use case and how they are used. It's important to note that the performance difference between Dapper and EF isn't always one being "faster" than the other; rather, they have different design philosophies and trade-offs that make them better suited for different scenarios. but will all of these explanations , Dapper is still Faster !&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/OYb-QuvOO8g"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>ef</category>
      <category>dotet</category>
      <category>csharp</category>
      <category>database</category>
    </item>
    <item>
      <title>Method Chaining In C#</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Sun, 03 Sep 2023 05:13:02 +0000</pubDate>
      <link>https://dev.to/bugandfix/method-chaining-in-c-4ckp</link>
      <guid>https://dev.to/bugandfix/method-chaining-in-c-4ckp</guid>
      <description>&lt;p&gt;Method chaining in C# is a programming technique where multiple method calls are chained together in a single statement. Each method call returns an object (usually the same object on which the method was called), allowing you to call another method on the returned object in a continuous sequence. This creates a more fluent and expressive style of coding, often used in scenarios like building configurations, performing operations on collections, or setting properties.&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/DicMUkEVo6U"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>dotnet</category>
      <category>functional</category>
      <category>method</category>
    </item>
    <item>
      <title>Tuples in C#</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Sun, 03 Sep 2023 05:11:13 +0000</pubDate>
      <link>https://dev.to/bugandfix/tuples-in-c-3odo</link>
      <guid>https://dev.to/bugandfix/tuples-in-c-3odo</guid>
      <description>&lt;p&gt;Tuples in C# are lightweight data structures that allow you to group multiple related values into a single object. Unlike classes or structs, tuples don't require defining a specific type beforehand. Tuples are useful when you need to return multiple values from a method or store related data without creating a custom class or struct.&lt;/p&gt;

&lt;p&gt;Tuples are great for simple scenarios where you need a temporary container for related values, but for more structured or reusable scenarios, using custom classes or structs is generally recommended.&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Lp3wn49xj9g"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>tuples</category>
    </item>
    <item>
      <title>Parallelism Antipatterns</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Sun, 03 Sep 2023 05:09:31 +0000</pubDate>
      <link>https://dev.to/bugandfix/parallelism-antipatterns-35dj</link>
      <guid>https://dev.to/bugandfix/parallelism-antipatterns-35dj</guid>
      <description>&lt;p&gt;Parallelism antipatterns are common mistakes or practices that should be avoided when designing and implementing parallel or concurrent code. Parallelism is the use of multiple threads or processes to execute tasks concurrently, and when not done correctly, it can lead to various issues such as performance problems, deadlocks, race conditions, and more.&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/HtQhtE-ONuw"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>async</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to make a Maximizing CSS Sibling Selector</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Sun, 03 Sep 2023 05:06:49 +0000</pubDate>
      <link>https://dev.to/bugandfix/how-to-make-a-maximizing-css-sibling-selector-6mp</link>
      <guid>https://dev.to/bugandfix/how-to-make-a-maximizing-css-sibling-selector-6mp</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/GS8XAAUI64Q"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;GitHub Source Code :&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/bugandfix"&gt;
        bugandfix
      &lt;/a&gt; / &lt;a href="https://github.com/bugandfix/Sibling-Selectors"&gt;
        Sibling-Selectors
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>html</category>
      <category>css</category>
      <category>sibling</category>
    </item>
    <item>
      <title>High Performance C# - Span&lt;T&gt;</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Sun, 03 Sep 2023 05:04:54 +0000</pubDate>
      <link>https://dev.to/bugandfix/high-performance-c-span-1757</link>
      <guid>https://dev.to/bugandfix/high-performance-c-span-1757</guid>
      <description>&lt;p&gt;Span is a valuable feature introduced in C# 7.2 (and further improved in later versions) as part of the "Span of T" family of types. It is primarily used for efficiently working with sequences of data in a contiguous block of memory, without the need for unnecessary copying or allocations.&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/awW-F2_pMRc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Higher-Order Functions</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Wed, 30 Aug 2023 09:58:53 +0000</pubDate>
      <link>https://dev.to/bugandfix/higher-order-functions-4i5e</link>
      <guid>https://dev.to/bugandfix/higher-order-functions-4i5e</guid>
      <description>&lt;p&gt;In C#, higher-order functions refer to functions that can accept other functions as arguments and/or return functions as results. In other words, these functions treat functions as first-class citizens, just like any other data type. This concept is an integral part of functional programming, which aims to treat computation as the evaluation of mathematical functions and avoid changing-state and mutable data.&lt;/p&gt;

&lt;p&gt;Higher-order functions enable a more modular and expressive way of writing code, as they allow you to encapsulate behavior in functions and pass that behavior around as needed. This can lead to more concise, readable, and reusable code.&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/8AfI0prW0nI"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>functional</category>
      <category>aspdotnet</category>
    </item>
    <item>
      <title>Native AOT in .NET 8</title>
      <dc:creator>Bug &amp; Fix</dc:creator>
      <pubDate>Wed, 30 Aug 2023 09:57:52 +0000</pubDate>
      <link>https://dev.to/bugandfix/native-aot-in-net-8-4b6m</link>
      <guid>https://dev.to/bugandfix/native-aot-in-net-8-4b6m</guid>
      <description>&lt;p&gt;In this presentation, we will delve into the latest native Ahead-of-Time (AOT) capabilities designed for ASP.NET Core within the .NET 8.0 framework...&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Fj2Jk4R1lH0"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>dotnet</category>
      <category>aot</category>
    </item>
  </channel>
</rss>
