《框架设计指南》封面

框架设计指南

Framework design guidelines

Krzysztof Cwalina、Brad Abrams · 初版 2005 年

11人推荐
16位读者提及
25次提及

为什么值得读

  • 强调API设计应优先关注使用者的开发体验
  • 提供清晰精炼的结构化与易读代码规范
  • 总结的模式不仅适用于C#也能启发Java

Hacker News 上怎么说

  • ……但在设计 API 层时,他们只顾着创建 endpoint,而不是聚焦在“DX”场景上(开发者体验,不是他们自己的,而是使用该 API 的开发者的体验)。我记得当年读了 Cwalina 的《Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries》,才真正理解了那是什么意思。虽然这是一本专注 .NET 的书,但我真希望开源界里的许多同行能克服……

    …But when designing the API layer, they just start creating end points instead of focusing on the "DX" scenarios (developer experience, not theirs, but devs using the API). I remember reading Cwalina's "Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries" and really learning what that means. It is a book focused on .NET but I wish many of my colleagues in the open source world would get over…

  • C++ 比大多数其他语言更容易让人搬起石头砸自己的脚,所以它更需要这类的书。写 C# 代码的话,《Framework Design Guidelines》[1] 是一本不可多得的佳作。我认为只要针对命名约定做点微调,它同样适用于 Java——而且在我看来,Java 更需要这些建议,因为面向测试的代码很容易变得臃肿、过度复杂……

    C++ provides many more ways to shoot yourself in the foot than most other languages, so it is in more need of such books. For coding in C#, Framework Design Guidelines[1] is an excellent book. I'd argue that with a little adjustment for conventions, it applies to Java too - and IMHO Java is in more need of the advice, as test-oriented code can lead to unwieldy, overcomplex…

  • 对于 C#,首推 Cwalina 和 Abrams 写的《Framework Design Guidelines》。对于如何编写结构良好、易读的代码给出了非常清晰简练的指导。不过现在看有点过时了,真希望他们能出第三版。

    For C#, Framework Design Guidelines by Cwalina & Abrams. Very clear and concise pointers for well structured and easy to read code. It's a little out of date now though, wish they'd update it to a third edition.

  • ……真的别急着赶设计。在这件事上必须慎之又慎。这里有一本这方面的书,作者是全球在 API/标准库设计方面最有经验的大牛之一:https://www.amazon.com/Framework-Design-Guidelines-Conventio...

    …really want to rush designs. You want to be very, very careful about it. Here's a book about it from one of the most experienced people in API/Standard lib design on the planet https://www.amazon.com/Framework-Design-Guidelines-Conventio...

  • 我推荐《Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries》这本书。http://www.amazon.com/Framework-Design-Guidelines-Convention...

    I recommend the "Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries" book. http://www.amazon.com/Framework-Design-Guidelines-Convention...

  • 《Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries (第2版)》http://www.amazon.com/Framework-Design-Guidelines-Convention... 读起来很有意思,里面凝聚了实战经验的结晶……

    Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries (2nd Edition) http://www.amazon.com/Framework-Design-Guidelines-Convention... is an interesting read and contains the result of actual work…

正在加载完整评论……

键盘快捷键

/
聚焦搜索框
j / k
下一本 / 上一本
Enter
打开选中的书
Esc
关闭 / 返回
g h
回到首页
g b
值得读精选
g t
历史总榜
g r
上升最快
g l
我的书架
?
显示本帮助