Best of C#September 2023

  1. 1
    Article
    Avatar of codemazeCode Maze·3y

    22 C# Best Practices

    Learn about C# best practices for readability and code structure, exception handling and defensive coding, and code quality and performance enhancements.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    How to Use Dynamic Programming to Solve the 0/1 Knapsack Problem

    The 0/1 Knapsack Problem is often used as a pedagogical tool to teach two important paradigms in algorithm design: Dynamic Programming and Greedy Algorithms. You will learn how it works and discover how to build an efficient solution from scratch using C#.

  3. 3
    Article
    Avatar of codemazeCode Maze·3y

    Using a Discard Variable in C#

    C# 7 introduced discards as placeholders for values we do not have any use for in our code. They are write-only variables that allow us to explicitly inform the compiler or anyone reading our code to discard their content. They are particularly useful in scenarios where we receive a value but have no intention of using it.