Latest Posts On Code Maze

Code Maze Weekly #85

Code Maze Weekly #85

Issue #85 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Building Minimal APIs In .NET 6 [dotnetcoretutorials.com] With the introduction of the .NET 6 features, APIs don't have to be bulky anymore. Check out this article by...

Top 11 C# Tips to Improve Code Quality and Performance

Top 11 C# Tips to Improve Code Quality and Performance

In this article, we are going to learn some useful C# tips on how to improve our code quality and performance.  Let’s get started! Why These C# Tips? Before we begin, let us briefly discuss why we chose these specific C# tips over many others that certainly exist....

Code Maze Weekly #84

Code Maze Weekly #84

Issue #84 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# How Does the StringBuilder Work in .NET? (Part 1) [www.stevejgordon.co.uk] Properly understanding and using the StringBuilder class is the topic of this series of...

10 Things You Should Avoid in Your ASP.NET Core Controllers

10 Things You Should Avoid in Your ASP.NET Core Controllers

Keeping controllers clean and tidy is something we've learned we should do the first time we've stumbled upon the MVC pattern. But as the project grows and other team members enter the project, things might get out of hand. Especially when deadlines need to be met,...

Code Maze Weekly #83

Code Maze Weekly #83

Issue #83 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Conditional compilation for ignoring method calls with the ConditionalAttribute [andrewlock.net] Ever heard of the [Conditional] attribute? No? Check out this article by...

Code Maze Weekly #82

Code Maze Weekly #82

Issue #82 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Customized JSON formatting with Serilog [nblumhardt.com] If customizing logs presentation is your cup of tea, this article by Nicholas Blumhardt is the perfect read for...

Code Maze Weekly #81

Code Maze Weekly #81

Issue #81 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Caching Enum.ToString to improve performance [www.meziantou.net] How to make converting an enum value to a string using the ToString() less expensive by Gérald Barré....

Using Dapper with ASP.NET Core Web API

Using Dapper with ASP.NET Core Web API

In this article, we'll learn how to use Dapper in the ASP.NET Core Web API project. We'll talk about Dapper overall, how to use different queries and executions, how to execute stored procedures, and how to create multiple queries inside a transaction. We'll also...

Code Maze Weekly #80

Code Maze Weekly #80

Issue #80 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Customizing Serilog text output [nblumhardt.com] Everything you need to know about formatting plain text with Serilog.Expressions, by Nicholas Blumhardt. Minimal APIs in...

Hangfire with ASP.NET Core

Hangfire with ASP.NET Core

Almost all applications need to do some sort of background work. Whether it’s a long and tedious task or a repetitive job that we need to do every other day, in this article we are going to learn how we can easily implement it. For this, we are going to be using...

Code Maze Weekly #79

Code Maze Weekly #79

Issue #79 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Benchmarking 4 reflection methods for calling a constructor in .NET [andrewlock.net] Four different reflection methods, four different results. Which reflection method...

Code Maze Weekly #78

Code Maze Weekly #78

Issue #78 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Secure an Angular SPA and an ASP.NET Core API using Auth0 [damienbod.com] A comprehensive article on securing angular SPA + ASP.NET Core with Auth0 by Damien Bowden. Must...

Creating Business Workflows with Azure Logic Apps

Creating Business Workflows with Azure Logic Apps

In this article, we’re going to learn how to use the Azure Logic Apps cloud service in detail. We’ll start by looking at what an Azure Logic App is. Then, we’ll discuss some of its advantages. After that, we’ll learn how to create an Azure Logic App from the portal...

Code Maze Weekly #77

Code Maze Weekly #77

Issue #77 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Global Exception Handling in ASP.NET Core – Ultimate Guide [codewithmukesh.com] Handling exceptions in a centralized manner is a good addition to many ASP.NET Core...

Azure Cosmos DB with ASP.NET Core Web API

Azure Cosmos DB with ASP.NET Core Web API

In this article, we are going to learn Azure Cosmos DB in detail.  We’ll start by learning what an Azure Cosmos DB is and the various APIs that it supports. Then we’ll create a Cosmos DB from the portal. After that, we’ll learn how to create an ASP.NET Core...

Code Maze Weekly #76

Code Maze Weekly #76

Issue #76 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Adding CAPTCHA on form posts with ASP.NET Core [blog.elmah.io] The necessary evil - CAPTCHA challenges. We don't like to implement them, and we don't like to use them,...