Book description
This book is divided into five parts. The first part starts with a detailed discussion of polymorphism. It then shows you how to make proper use of abstract classes and interfaces, and teaches you to discern which technique to use for a specific scenario. Discussions on code comments teach you how to use them effectively, and why you need to be careful with code comments.
In the second part you will learn six design principles, including SOLID and DRY principles. These are the foundation of well-known design patterns, and they establish practices for developing software with considerations for maintaining and extending as a project grows.
The third part walks you through methods to make efficient applications. You will learn the common use of factories to separate code from its opposite and the alternative of inheritance using object composition and wrappers. This part also demonstrates the use of template methods, hooks, and facades in programming.Hints show you how professional coders develop an enterprise application.
Better handling of exceptions and null values is another integral part of professional programming, which the fourth part explores in detail. This will help you become a more professional programmer.
In the final part of the book, you will learn about effective memory management techniques and the use and misuse of design patterns. This part also briefly discusses how to decide between a static method and an instance method and other techniques.
After reading this book, you will be able to implement best practices to make your programs more effective and reliable.
- Analyze alternative solutions before implementation by comparing pros and cons
- Make polymorphic code perform better
- Know the side effects of bad/redundant comments
- Understand the significance of the SOLID and DRY principles
- Add features using wrappers
- Redefine steps without altering the calling sequence of an algorithm
- Use hooks in your application
- Convert a complex system into a user-friendly system using facades
- Run your application in .NET 6
Product information
- Title: Simple and Efficient Programming with C#: Skills to Build Applications with Visual Studio and .NET
- Author(s):
- Release date: November 2022
- Publisher(s): Apress
- ISBN: 9781484287378
You might also like
book
Simple and Efficient Programming with C#: Skills to Build Applications with Visual Studio and .NET
Apply skills and approaches to your programming to build a real-world application in C# 9 using …
book
Design Patterns in .NET Core 3: Reusable Approaches in C# and F# for Object-Oriented Software Design
Implement design patterns in .NET Core 3 using the latest versions of the C# and F# …
book
Microsoft Blazor: Building Web Applications in .NET 6 and Beyond
Build web applications in C# and Microsoft .NET 6 that run in any modern browser and …
book
Introducing .NET 6: Getting Started with Blazor, MAUI, Windows App SDK, Desktop Development, and Containers
Welcome to .NET 6, Microsoft’s unified framework that converges the best of the modern and traditional …