[英]How to estimate the quality of pub.dartlang.org packages?
I started a Dart project and now I need some functionality that is not available in the Dart API Reference . 我启动了一个Dart项目,现在我需要一些Dart API Reference中没有的功能。 I was advised to use a package from pub.dartlang.org and now I am browsing through the pub.
我被建议使用pub.dartlang.org的软件包,现在我正在浏览酒吧。
Previous experience with Javascript libraries tell me that quality and support can vary wildly between libraries. 以前使用Javascript库的经验告诉我,库之间的质量和支持可能会有很大差异。 Therefore I am a bit reluctant to use packages from pub.
因此我有点不愿意使用pub中的包。 How would I know which package has a good quality, and whether a package will be updated when there are breaking changes in Dart?
我如何知道哪个包具有良好的质量,以及在Dart发生重大变化时是否会更新包?
Therefore I would like to know: 所以我想知道:
Some questions related to this: 与此相关的一些问题:
Kind regards, 亲切的问候,
Hendrik Jan van Meerveld Hendrik Jan van Meerveld
You are correct that the quality of packages can vary in Pub or any other pack repo. 你是正确的,包的质量可以在Pub或任何其他包回购中有所不同。 Here are a few things you could use to evaluate the quality of the packages:
以下是您可以用来评估包装质量的一些内容:
To answer your specific questions: 回答您的具体问题:
You can see a list of Dart-team developed packages on the Dart API page . 您可以在Dart API页面上看到Dart团队开发的软件包列表。 Any package there not prefixed with dart is a library that has been developed and supported by the Dart team.
任何没有以dart为前缀的包都是由Dart团队开发和支持的库。 I would definitely prefer a library developed by the Dart Team or someone from Google.
我绝对更喜欢由Dart团队或谷歌人开发的图书馆。
If the source repo for the package is available publicly (eg on GitHub), you can view the frequency of commits, and responsiveness of the author to issues/pull requests. 如果包的源代码库是公开的(例如在GitHub上),则可以查看提交的频率以及作者对发出/提取请求的响应性。 For instance, you can easily tell that StageXL is a well maintained library by taking a look at their GitHub : 550+ commits, new commits within the last couple of weeks, accepts code from other contributors, and has almost 50 closed issues.
例如,您可以通过查看他们的GitHub :550+提交,过去几周内的新提交,接受来自其他贡献者的代码以及近50个已关闭的问题,轻松地告诉您StageXL是一个维护良好的库。
Bob Nystrom has talked about a ranking mechanism for pub in the past (he recently posted some ranking results that you can see here ). Bob Nystrom过去曾谈到过pub的排名机制(他最近发布了一些排名结果,你可以在这里看到)。 Once a ranking system is in place, you will be able to better choose between two XML libraries for instance.
一旦排名系统到位,您就可以更好地在两个XML库之间进行选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.