Best of .NETApril 2024

  1. 1
    Article
    Avatar of ardalisArdalis·2y

    5 Rules for DTOs

    Learn the 5 rules for DTOs, including their purpose, ease of use, property usage, naming conventions, and specific use cases.

  2. 2
    Article
    Avatar of towardsdevTowards Dev·2y

    Improving Factory Pattern using DI in .Net

    This post discusses how to improve the Factory Pattern using Dependency Injection in .Net 5. It explains the concept of the Factory Pattern and demonstrates how dependency injection can be used to enhance it.

  3. 3
    Article
    Avatar of techworld-with-milanTech World With Milan·2y

    API Gateway vs. Load Balancer vs. Reverse Proxy

    This post discusses the differences between API Gateway, Load Balancers, and Reverse Proxies. It also provides examples of API Gateways and Load Balancers.

  4. 4
    Article
    Avatar of watercoolerWatercooler·2y

    Who

    Discover similar articles, compare versions, and find more information about dotnet and dotnet-core.

  5. 5
    Article
    Avatar of dotnet.NET Blog·2y

    Refactor your C# code with primary constructors

    Learn how to refactor your C# code using primary constructors to reduce boilerplate code and improve readability.

  6. 6
    Article
    Avatar of csharpcornerC# Corner·2y

    Explain Lambda Functions in .NET C#

    Explore the fundamentals of lambda functions in .NET C#. Learn about their concise syntax, closure capture, and practical applications in LINQ queries, event handling, and asynchronous programming.

  7. 7
    Article
    Avatar of codemazeCode Maze·2y

    Using Server-Sent Events for Realtime Updates in ASP.NET Core

    Learn about Server-Sent Events in ASP.NET Core, including what they are, their features, and how they work. Discover the differences between Server-Sent Events and WebSockets. Implement Server-Sent Events in a simple ASP.NET Core Web API for real-time updates.

  8. 8
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    What is Mocking? Mocking in .NET Explained With Examples

    Learn about mocking in .NET software development, including why it's necessary for building a robust testing strategy and exploring popular mocking libraries. Gain the knowledge to choose the best mocking tool for your needs.

  9. 9
    Article
    Avatar of lobstersLobsters·2y

    PowerShell: the object-oriented shell you didn’t know you needed

    Learn about PowerShell, an object-oriented shell and scripting language from Microsoft that is powerful, versatile, and has unique features compared to standard Unix shells. Topics covered include differences between Windows PowerShell and PowerShell Core, working with files and directories, finding duplicates, using .NET classes and COM objects, launching Internet Explorer, and customizing the PowerShell prompt.

  10. 10
    Article
    Avatar of codemazeCode Maze·2y

    How to Build a URL Shortener in .NET Applications

    Learn how to build a URL shortener in .NET using the ASP.NET Core Web API framework.

  11. 11
    Article
    Avatar of syncfusionSyncfusion·2y

    What’s New in .NET 8 for Developers?

    Discover the exciting features and enhancements in .NET 8 for developers, including the new LTS release, improved JSON handling, friendly DI metrics APIs, DevOps improvements, and more.

  12. 12
    Article
    Avatar of csharpcornerC# Corner·2y

    New LINQ Methods in .NET 9 Preview

    Discover the new LINQ methods in .NET 9 Preview and learn how to use CountBy, AggregateBy, and Index for grouping items, finding the most frequent word, and extracting index positions in a list.

  13. 13
    Article
    Avatar of dotnet.NET Blog·2y

    Secure your container build and publish with .NET 8

    Learn how to produce non-root container images and configure Kubernetes pods to require non-root images with .NET 8. Also, explore the process of inspecting images and containers.

  14. 14
    Article
    Avatar of codemazeCode Maze·2y

    How to Show the Generated SQL Query in EF Core

    Learn how to show the generated SQL query in EF Core using the ToQueryString() method and logging capabilities.

  15. 15
    Article
    Avatar of milanjovanovicMilan Jovanović·2y

    A Clever Way To Implement Pessimistic Locking in EF Core

    Learn how to implement pessimistic locking in EF Core using raw SQL queries. See how to handle concurrent requests in high-traffic scenarios and avoid overbooking. Understand the flavors of locking and when to use them. Consider the benefits and drawbacks of pessimistic locking versus serializable transactions.

  16. 16
    Article
    Avatar of codemazeCode Maze·2y

    Generate Sortable Unique IDs With the NewId Library in .NET

    Explore the limitations of using integers and Guids as primary keys in .NET projects and learn how the NewId library can provide unique and sortable IDs to overcome these limitations.

  17. 17
    Article
    Avatar of milanjovanovicMilan Jovanović·2y

    Introduction to Distributed Tracing With OpenTelemetry in .NET

    Learn what OpenTelemetry is and how to use it in .NET applications for distributed tracing. Configure OpenTelemetry with instrumentations and exporters. Run Jaeger locally for analyzing distributed traces.

  18. 18
    Article
    Avatar of codemazeCode Maze·2y

    How to Validate a GUID in C#

    Explore several approaches to validate a string representation of a GUID in C#. Learn about the format of a GUID and different techniques like regular expressions, Guid.Parse(), Guid.ParseExact(), Guid.TryParse(), and the Guid constructor for validation. Benchmarking results show that Guid.TryParse() methods offer better performance and efficiency.

  19. 19
    Article
    Avatar of codemazeCode Maze·2y

    Using Property Mappings in AutoMapper To Define Mapping Rules

    This post explores the usage of AutoMapper and how to define property mappings in order to streamline object mapping and minimize errors in .NET development.

  20. 20
    Article
    Avatar of codemazeCode Maze·2y

    Fastest Way to Find and Extract a Number From a String in C#

    Explore the quickest method to find and extract a number from a string in C#. Implement techniques using regular expressions, LINQ, StringBuilder, and Span. Performance comparison shows the advantage of using Span with the lowest memory allocation.

  21. 21
    Article
    Avatar of milanjovanovicMilan Jovanović·2y

    Request Response Messaging Pattern With MassTransit

    Learn about the request-response messaging pattern and how to implement it with MassTransit.

  22. 22
    Article
    Avatar of telerikTelerik·2y

    ASP.NET Core Basics: Getting Started with LINQ

    Learn how to use LINQ in ASP.NET Core for efficient data manipulation. Find out how LINQ can simplify querying and transforming data, and how it is commonly used with databases.

  23. 23
    Article
    Avatar of codemazeCode Maze·2y

    How to Test gRPC Services in ASP.NET Core

    This post explains how to test gRPC services in ASP.NET Core, covering both unit and integration testing. It also shows how to mock ServerCallContext in gRPC services.