Assessment Answers
The answers to the practice questions for each chapter are as follows:
Chapter 1
- No. However, sending a body with a
GET
request is not forbidden by the HTTP specifications, but such a request semantic is not defined either. It is preferable to avoid sendingGET
requests with a body. - Long methods are indicators that a method handles too many responsibilities and should be split into multiple methods or have some of the responsibilities extracted to other classes.
- No. Target .NET Standard 2.0 when you want to support most runtime versions, like .NET Framework and .NET 6+. Target .NET Standard 2.1 to share code between Mono and Xamarin. Otherwise, target .NET 6+ directly.
- A code smell represents a potential design flaw that ...
Get An Atypical ASP.NET Core 6 Design Patterns Guide - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.