Simple and Efficient Programming with C#
eBook - ePub

Simple and Efficient Programming with C#

Skills to Build Applications with Visual Studio and .NET

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Simple and Efficient Programming with C#

Skills to Build Applications with Visual Studio and .NET

Book details
Table of contents
Citations

About This Book

Apply skills and approaches to your programming to build a real-world application in C# 11 using the latest editions of Visual Studio, C#, and Microsoft.NET. This revised edition is updated with C#11 and places more emphasis on the newly introduced top-level statements. Additionally, you will find useful techniques and an explanation of the differences between writing code in two different styles. It also covers the new templates introduced in.NET 6, along with usage of.NET 7 in Windows 10 to write code and generate output.
Each chapter opens with an introduction and original application written in C# 11 so that you can jump right into coding. From there, you are guided through an expected output and taught best practices along the way. Author Vaskaran Sarcar emphasizes extending and maintaining the same program and he demonstrates examples for different scenarios to make your program more efficient and effective.

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.


What Will You Learn

  • 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


Who Is This Book For Developers with a basic knowledge of C#.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Simple and Efficient Programming with C# by Vaskaran Sarcar in PDF and/or ePUB format, as well as other popular books in Computer Science & Microsoft Programming. We have over one million books available in our catalogue for you to explore.

Information

Publisher
Apress
Year
2022
ISBN
9781484287378
Edition
2

Table of contents

  1. Cover
  2. Front Matter
  3. Part I. Funda
  4. Part II. Important
  5. Part III. Make Efficient
  6. Part IV. Handling Surprises in a Better Way
  7. Part V. The Road Ahead
  8. Back Matter