你如何写出优秀的非常有用的通用库? [英] How do you write good highly useful general purpose libraries?

查看:131
本文介绍了你如何写出优秀的非常有用的通用库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我问这个问题了解的Microsoft .NET库和源$ C ​​$ C的复杂性。从我读什么,写通用库和编写应用程序可以有两种不同的东西。当写库,你要想想谁可以从字面上大家(假如我松开库用于一般公众)的客户端。

I asked this question about Microsoft .NET Libraries and the complexity of its source code. From what I'm reading, writing general purpose libraries and writing applications can be two different things. When writing libraries, you have to think about the client who could literally be everyone (supposing I release the library for use in the general public).

什么样的​​实践或理论或技术是有用的?你在哪里学写code像一个在.NET库?这看起来像一个黑色艺术,我不知道太多。

What kind of practices or theories or techniques are useful when learning to write libraries? Where do you learn to write code like the one in the .NET library? This looks like a "black art" which I don't know too much about.

推荐答案

这是一个pretty主观的问题,但这里有客观的答案。该框架设计指南书(一定要得到第2版)是一本非常好的书有关如何编写有效的类库。内容非常好,经常持反对意见的注解是发人深省。每家店铺应该提供这本书的副本。

That's a pretty subjective question, but here's on objective answer. The Framework Design Guidelines book (be sure to get the 2nd edition) is a very good book about how to write effective class libraries. The content is very good and the often dissenting annotations are thought-provoking. Every shop should have a copy of this book available.

这篇关于你如何写出优秀的非常有用的通用库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆