C# Brain Teasers: Exercise Your Mind
暫譯: C# 腦筋急轉彎:鍛鍊你的思維
Love, Steve
- 出版商: Pragmatic Bookshelf
- 出版日期: 2025-05-06
- 售價: $1,510
- 貴賓價: 9.5 折 $1,435
- 語言: 英文
- 頁數: 120
- 裝訂: Quality Paper - also called trade paper
- ISBN: 9798888651353
- ISBN-13: 9798888651353
-
相關分類:
C#
海外代購書籍(需單獨結帳)
商品描述
Although C#'s designers have ensured that new features play nicely with long-standing mechanisms, C#'s complexity means it has many dark corners to explore. This book shines a light into a few of those places to help you write better C# programs and more deeply understand how to use its features safely and to your advantage.
The puzzles in C# Brain Teasers cover a broad section of C# features. You'll work from common issues associated with loops, methods, and numbers, through more complex concepts such as exceptions and object lifetime. You'll see some more advanced topics such as the intricacies of type conversions, object construction and initialization, and pattern matching. Along the way we'll investigate some of the hazards associated with asynchronous methods, the Dispose method for explicit lifetime management, primary constructors, and more. At each step you'll learn to identify problems and ways to avoid them.
C# Brain Teasers is not just a show-and-tell. Each puzzle spotlights a real-world problem that you'll be able to recognize in your own programs, and learn how to fix or avoid it.
商品描述(中文翻譯)
C# 是一種看似容易學習的語言,但你很快會發現其潛在的複雜性隱藏了許多對不警覺的程式設計師來說的陷阱。《C# Brain Teasers》以謎題的形式揭示了這些危險,旨在測試和擴展你對 C# 的知識,並展示如何使用簡單且現代的技術來避免或克服這些陷阱。無論你是剛接觸 C# 的新手還是經驗豐富的老手,這本書都能提升你對 C# 的理解,並提高你的生產力。
儘管 C# 的設計者確保新功能能與長期存在的機制良好協作,但 C# 的複雜性意味著它有許多黑暗角落等待探索。本書將這些地方照亮,幫助你編寫更好的 C# 程式,並更深入地理解如何安全且有效地使用其功能。
《C# Brain Teasers》中的謎題涵蓋了 C# 特性的廣泛範疇。你將從與迴圈、方法和數字相關的常見問題開始,逐步深入到更複雜的概念,如例外和物件生命週期。你還會看到一些更高級的主題,例如型別轉換的複雜性、物件的建構與初始化,以及模式匹配。在這個過程中,我們將探討與非同步方法、用於明確生命週期管理的 Dispose 方法、主要建構函數等相關的一些危險。在每一步中,你將學會識別問題及避免它們的方法。
《C# Brain Teasers》不僅僅是展示和講解。每個謎題都聚焦於一個你能在自己程式中識別的現實問題,並學習如何修正或避免它。