Simple and Efficient Programming with C#: Skills to Build Applications with Visual Studio and .Net
暫譯: 使用 C# 進行簡單高效的程式設計:在 Visual Studio 和 .Net 上構建應用程式的技能
Sarcar, Vaskaran
- 出版商: Apress
- 出版日期: 2021-09-07
- 售價: $2,240
- 貴賓價: 9.5 折 $2,128
- 語言: 英文
- 頁數: 252
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1484273214
- ISBN-13: 9781484273210
-
相關分類:
.NET、C#、Visual Studio
海外代購書籍(需單獨結帳)
相關主題
商品描述
This book is divided into four 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 you will know 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 takes you through the 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.
In the fourth and final part you will learn about effective memory management techniques by preventing leaks in your application and the use and misuse of design patterns. This part also discusses how to decide between a static method and an instance method and other techniques, in brief.
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 the alternative solutions before implementation by comparing the 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
- Test your application in .NET 6
Who Is This Book For
Developers with a basic knowledge of C#
商品描述(中文翻譯)
應用技能和方法於您的程式設計中,使用最新版本的 Visual Studio、C# 和 Microsoft .NET 建立一個實際應用程式,使用 C# 9。每一章節都以介紹和原始的 C# 9 應用程式開頭,讓您可以立即開始編碼。接著,您將被引導了解預期的輸出,並在過程中學習最佳實踐。作者 Vaskaran Sarcar 強調擴展和維護相同的程式,並展示不同情境的範例,以使您的程式更有效率和有效。
本書分為四個部分。第一部分開始於對多型(polymorphism)的詳細討論。然後展示如何正確使用抽象類別(abstract classes)和介面(interfaces),並讓您知道在特定情境下應使用哪種技術。對於程式碼註解的討論教您如何有效使用它們,以及為什麼需要小心處理程式碼註解。
在第二部分,您將學習六個設計原則,包括 SOLID 和 DRY 原則。這些是知名設計模式的基礎,並為隨著專案成長而考慮維護和擴展的軟體開發建立實踐。
第三部分將帶您了解如何製作高效的應用程式。您將學習工廠模式(factories)的常見用法,以將程式碼與其對立面分開,以及使用物件組合(object composition)和包裝器(wrappers)作為繼承的替代方案。這部分還展示了在程式設計中使用模板方法(template methods)、鉤子(hooks)和外觀(facades)。提示將告訴您專業程式設計師如何開發企業應用程式。
在第四部分和最後一部分,您將學習有效的記憶體管理技術,通過防止應用程式中的記憶體洩漏以及設計模式的使用和誤用。這部分還簡要討論如何在靜態方法(static method)和實例方法(instance method)之間做出決定及其他技術。
閱讀完本書後,您將能夠實施最佳實踐,使您的程式更有效和可靠。
您將學到什麼
- 在實施之前分析替代解決方案,通過比較優缺點
- 使多型程式碼表現更佳
- 知道不良/冗餘註解的副作用
- 理解 SOLID 和 DRY 原則的重要性
- 使用包裝器添加功能
- 重新定義步驟而不改變演算法的呼叫順序
- 在您的應用程式中使用鉤子
- 使用外觀將複雜系統轉換為使用者友好的系統
- 在 .NET 6 中測試您的應用程式
這本書適合誰
具備基本 C# 知識的開發人員
作者簡介
作者簡介(中文翻譯)
Vaskaran Sarcar 取得了印度加爾各答的 Jadavpur University 的軟體工程碩士學位,以及印度 Midnapore 的 Vidyasagar University 的 MCA 學位。他曾是國家門檻獎學金得主(2007-2009),並在教育和 IT 行業擁有超過 12 年的經驗。Vaskaran 在早期的幾年(2005-2007)專注於在各大工程學院教學,之後他加入了 HP 印度的 PPS 研發中心,並在那裡工作直到 2019 年 8 月。在他從 IT 行業退休時,他是 HP 的高級軟體工程師和團隊負責人。為了追隨他的夢想和熱情,Vaskaran 現在是一名獨立的全職作家。Vaskaran 其他撰寫的 Apress 書籍包括:C# 設計模式 第二版、進階 C# 入門、互動式物件導向程式設計(Java) 第二版、Java 設計模式 第二版、互動式 C#、互動式物件導向程式設計(Java) 和 Java 設計模式。他撰寫的其他書籍包括:Python Bookcamp(Amazon, 2021)和 作業系統:計算機科學面試系列(Createspace, 2014)。