Build on your existing programming skills and upskill to professional-level C# programming.
Summary In Code Like A Pro in C# you will
Unit testing and test-driven development Refactor a legacy .NET codebase Principles of clean code Essential backend architecture skills Query and manipulate databases with LINQ and Entity Framework Core
Critical business applications worldwide are written in the versatile C# language and the powerful .NET platform, running on desktops, cloud systems, and Windows or Linux servers. Code Like a Pro in C# makes it easy to turn your existing abilities in C# or another OO language (such as Java) into practical C# mastery. There’s no “Hello World” or Computer Science 101 basics—you’ll learn by refactoring an out-of-date legacy codebase, using new techniques, tools, and best practices to bring it up to modern C# standards.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the technology You know the basics, now get ready for the next step! Pro-quality C# code is efficient, clean, and fast. Whether you’re building user-facing business applications or writing data-intensive backend services, the experience-based, practical techniques in this book will take your C# skills to a new level.
About the book Code Like a Pro in C# teaches you to how write clean C# code that’s suitable for enterprise applications. In this book, you’ll refactor a legacy codebase by applying modern C# techniques. You’ll explore tools like Entity Framework Core, design techniques like dependency injection, and key practices like testing and clean coding. It’s a perfect path to upgrade your existing C# skills or shift from another OO language into C# and the .NET ecosystem.
What's inside
Unit testing and test-driven development Refactor a legacy .NET codebase Principles of clean code Query and manipulate databases with LINQ and Entity Framework Core
About the reader For developers experienced with object-oriented programming. No C# experience required.
About the author Jort Rodenburg is a software engineer who has taught numerous courses on getting up to speed with C# and .NET.
Table of Contents
PART 1 USING C# AND .NET 1 Introducing C# and .NET 2 .NET and how it compiles PART 2 THE EXISTING CODEBASE 3 How bad is this code? 4 Manage your unmanaged resources! PART 3 THE DATABASE ACCESS LAYER 5 Setting up a project and database with Entity Framework Core PART 4 THE REPOSITORY LAYER 6 Test-driven development and dependency injection 7 Comparing objects 8 Stubbing, generics, and coupling 9 Extension methods, streams, and abstract classes PART 5 THE SERVICE LAYER 10 Reflection and mocks 11 Runtime type checking revisited and error handling 12 Using IAsyncEnumerable and yield return PART 6 THE CONTROLLER LAYER 13 Middleware, HTTP routing, and HTTP responses 14 JSON serialization/deserialization and custom model binding
The book is good if you don't consider yourself intermediate or advanced. It's teaching modern idiomatic C# techniques and testing using EF Core. I would say it's more focused on testing than any other topics, giving you a good knowledge if you don't know how to test your applications.
Sometimes it's touching some niche and advanced points in C# and don't explain enough. So you gotta search them yourself to understand and learn. Also not using var keyword was annoying for me but it's personal preference. In overall, good to read if you don't know the topics mentioned in the book, especially about unit testing.
"Code like a Pro in C#" by Jort Rodenburg serves as a comprehensive guide to the ASP.NET Core framework, written in a clear, concise, and easily digestible language. The book ambitiously attempts to cater to a broad audience, and on many levels, it succeeds.
Rodenburg's book shines in its meticulous walkthrough of the framework's many features. The author takes a deep dive into ASP.NET Core, allowing readers to gain a clear understanding of the request pipeline, an often-overlooked aspect in similar titles. This level of detail is quite invaluable, especially for those who do not have the time or resources to extensively comb through framework documentation or garner significant practical experience.
However, the promise to turn the reader into a professional developer may not hold true for everyone, particularly those with extensive development experience. The book's title seems to overreach in its claim, given the gaps in the content. As a seasoned developer with 20 years of experience, the material, while certainly valuable, did not live up to the 'Pro' claim.
In particular, certain sections of the book encourage practices that could potentially impede professional growth. Furthermore, some concepts are presented without the necessary context or warning regarding their appropriate application. This lack of cautionary guidance may lead novice developers down a path that doesn't fully take into account the complexities of professional development.
In conclusion, "Code like a Pro in C#" provides a good foundation for learning ASP.NET Core framework but falls short of providing a comprehensive pathway to professional expertise. It offers many benefits, but readers should approach some of the advice with a critical eye and consider other resources as well to supplement their professional development. This book is a valuable tool in your programming arsenal, but it won't single-handedly make you a 'pro'.
explains things glossed over in "beginner" books but more "advanced" books assume you already know, like how the `CLR` works, albeit not super in depth but enough to lift the magical veil of the language.
The book is more suitable for beginner developers who wants to see a full example of how to write maintainable / testable code and follow the best practices.