3 How bad is this code?
This chapter covers
- HTTP routes, resources, and endpoints
- Auto-properties and init-only setters
- Configuring an ASP.NET service
In this chapter, we’ll meet Flying Dutchman Airlines, who have hired us to refactor their legacy codebase. Flying Dutchman has told us their business needs and given us their requirements for the refactor. Their legacy application, which we’ll examine in this (and the next) chapter, is a backend web service developed on the .NET Framework following the Model-View-Controller (MVC) pattern. The code has many readability and security issues, so don’t be surprised if there are pieces of code in this chapter that you don’t like. The point of this chapter is for us to determine where we can change ...
Get Code like a Pro in C# 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.