Purchase Your Copy Today! Order now on Amazon.com button

Need guidelines to write awesome code?

Improve your ASP.NET Core skills with over 120 real-world, industry-proven best practices

Two devices with ebooks and one physical copy of the book.

"ASP.NET 8 Best Practices" uses 20 years of real-world web experience to teach developers how to apply common and recommended practices to make your code more efficient and maintainable.

Learn advanced concepts and techniques like version control and CI/CD pipelines along with Entity Framework Core, Web APIs, and Middleware.

Order now on Amazon.com button

What's Inside


Source Control

Chapter 1

  • Why source control is considered a developer's superpower
  • Identifying and selecting a branching workflow
  • Why tagging is important
  • Understand proper commit etiquette

Building Software with Software

Chapter 2

  • What is CI/CD?
  • Explain how to prepare code for a pipeline
  • How to deploy databases
  • Review various types of cloud providers

Middleware

Chapter 3

  • Using a Middleware pipeline
  • Optimize your Middleware Pipeline
  • Using delegates and extension methods
  • Creating your own Middleware component

Security

Chapter 4

  • Why is security important
  • Optimize your Middleware Pipeline
  • Using delegates and extension methods
  • Creating your own Middleware component

Entity Framework Core

Chapter 5

  • Various ways to implement Entity Framework Core
  • Why async/await is important
  • Using Resources for large seed data
  • Identify better alternatives to using LINQ

Web User Interfaces

Chapter 6

  • Reasons to use Task Runners
  • Create client-side workflows
  • Benefits of centralizing site URLs
  • Using Helpers, ViewComponents, and Blazor components

Testing Your Code

Chapter 7

  • Understanding various testing concepts
  • Benefits of using the triple-A (AAA) approach
  • Why it's important to avoid write extra unit test helpers
  • Using unit tests as documentation

Exception Handling

Chapter 8

  • Understanding different types of exception handling
  • Implementing global exception handling and logging
  • Why empty catch blocks are wasteful
  • Using pattern matching with exception filtering

Web APIs

Chapter 9

  • Understand techniques like designing, creating, and testing APIs
  • Creating intuitive APIs using HTTP verbs with status codes
  • Implement API pagination
  • Why it's important to avoid creating Http Clients

Performance

Chapter 10

  • Why performance is so important and why it matters
  • How to establish baselines
  • Learn client-side performance techniques
  • Optimizing Entity Framework Core and optimizing HTML