.NET 重构
Professional Refactoring Books for VB.NET and C# Developers
掌握 .NET 重构 — 提供 VB.NET 和 C# 两个版本
学习现代技术,编写更简洁、更易维护的代码。每个版本都包含实际示例、可下载的代码和免费示例章节。
版本比较
| 特性 | VB.NET 版 | C# 版 |
|---|---|---|
| 书名 | Professional Refactoring in Visual Basic | Professional Refactoring in C# & ASP.NET |
| ISBN | 978-0-470-37254-8 | 978-0-470-43452-9 |
| 目录 | 查看目录 (VB.NET) | 查看目录 (C#) |
| 受众 | VB.NET 开发者(传统和现代应用) | C# 和 ASP.NET 开发者(所有级别) |
| 源代码 | 下载 ZIP |
在 GitHub 上查看
git clone https://github.com/darsen/refactoringin.net
|
为什么要重构?
重构在不改变行为的情况下改善代码结构和质量。这些书籍教授经过验证的技术,以增强 .NET 代码的可维护性、可读性和可扩展性。
关于作者
常见问题
Q: Which book should I choose - VB.NET or C# edition?
Choose based on your primary development language. While core refactoring techniques are the same, each book provides language-specific examples and patterns. The VB.NET edition is ideal for developers working with legacy VB6 upgrades or modern VB.NET applications. The C# edition includes additional coverage of ASP.NET, LINQ, and C# 3.0+ features.
Q: What skill level do I need to benefit from these books?
These books are designed for developers with basic programming knowledge in .NET. They progress from fundamental concepts to advanced techniques, making them suitable for junior developers looking to level up, as well as experienced developers wanting to formalize their refactoring practices. No prior refactoring experience is required.
Q: What specific problems will these books help me solve?
These books address common development challenges including: • Identifying and fixing code smells in existing applications • Managing and reducing technical debt • Upgrading legacy code (especially VB6 to VB.NET) • Improving code maintainability and readability • Implementing design patterns effectively • Integrating unit testing with refactoring practices • Transforming prototype code into enterprise-level applications
Q: Are the techniques still relevant for modern .NET development?
Absolutely. The refactoring principles and patterns taught are timeless and apply to all versions of .NET, including .NET Core and .NET 5+. Reviewers specifically noted that these books are "not likely to become obsolete" because they focus on fundamental software design principles rather than version-specific features.
Q: How are these books different from other refactoring resources?
These books stand out for their: • Hands-on approach - build a real application from scratch • .NET-specific focus with platform-relevant examples • Coverage of both code-level and architectural refactoring • Real-world scenarios from enterprise banking systems • Step-by-step transformation guides • Integration of refactoring with unit testing and patterns
Q: What tools and technologies are covered?
The books cover refactoring using Visual Studio, including free refactoring tools and extensions. The C# edition additionally covers Refactor! for ASP.NET, LINQ transformations, and HTML refactoring techniques. Both books emphasize tool-agnostic principles that work with any IDE.
Q: Can I apply these techniques to other languages?
Yes! While examples are in VB.NET or C#, reviewers noted that "same advices can be applied to C#, Java or any other OO language." The refactoring principles, code smell identification, and design patterns are universal to object-oriented programming.
Q: What do readers say about these books?
Both books have received 5-star ratings on Amazon. Readers praise them as "clearly written, easy to follow and very practical," "great value," and "excellent reference on code refactoring." Professional developers recommend them to their peers for their practical, real-world approach.
Q: Is source code included with the books?
Yes! The VB.NET edition includes downloadable source code (ZIP file), while the C# edition provides code via GitHub repository. All examples from the books are available to practice with and adapt for your own projects.
Q: Who is the author and what are his credentials?
Danijel Arsenovski is a Microsoft MVP and MCSD-certified software architect who pioneered refactoring on the .NET platform. He developed these techniques while overhauling large banking systems and has extensive real-world experience in enterprise code transformation and legacy system modernization.
开发者评价
"Very well done!" ↗
"Arsenovski has done a great job with this book. It is clearly written, easy to follow and very practical. A great one to keep on the shelf and reference as needed. The free tools that he covers in the book are a bonus! They really help to get you applying what you've learned quickly."
"A worthwhile, unique, focused book for VB.NET developers" ↗
"This is a unique book. It specifically targets VB.NET developers. This is a refreshing change, as most specialized books for .NET target C#. By the end of the book, the reader has a healthy knowledge of various refactoring techniques and is able to start on his own refactorings."
"Great buy, good read, very good condition" ↗
"This book is a little old however there is not a lot of refactoring books that use C# and ASP.NET examples. The concepts are solid and it's a great little read even if a lot of it is just consuming already known information."
"Great read for intermediate and beginner" ↗
"This book takes you on a journey how to turn into a professional programmer. With the help of very clear examples the author explains why you don't want to program the 'quick and dirty way'. This book should be in every ASP.NET developer's book case."
"I wish every programmer would read this book" ↗
"Reading this book really made me wish that anyone who just got done reading a dummies book would immediately read this book. I'm so sick of seeing procedural coding styles and massive code duplication. This isn't 1996!!"
"Book Review: Professional Refactoring in C#" ↗
"I would recommend the book Professional Refactoring in C# & ASP.NET by Danijel Arsenovski for any developer interested in refactoring code. Arsenovski gives clear and documented refactoring improvements for a variety of common code structures."
Join thousands of developers who have improved their code with these proven techniques.