简体   繁体   English

如何估计pub.dartlang.org包的质量?

[英]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: 所以我想知道:

  • Is there a way to know which packages on pub.dartlang.org are safe to choose for a long-term project? 有没有办法知道pub.dartlang.org上哪些包可以安全地为长期项目选择?

Some questions related to this: 与此相关的一些问题:

  • Will packages where "Dart team" is the author be supported for a long time? 将“Dart团队”作为作者的包装是否会得到长期支持?
  • Should I prefer packages where the uploaders have @google.com in their email address? 我是否更喜欢上传者在他们的电子邮件地址中使用@ google.com的套餐?
  • Is there a list of google-supported packages? 是否有谷歌支持的包列表? (I suppose polymer would be on it) (我想聚合物会在上面)
  • Is google currently monitoring the quality of the pub packages? Google目前是否正在监控酒吧套餐的质量?

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: 以下是您可以用来评估包装质量的一些内容:

  • Is the package actively maintained? 包裹是否积极维护?
  • How many active committers does it have? 它有多少活动提交者?
  • How many people have starred or forked it on GitHub? 有多少人在GitHub上加星标或分叉?
  • How much use do you think it is getting? 你认为它有多大用处? Are there questions about it on StackOverflow or other mailing lists? 在StackOverflow或其他邮件列表上有关于它的问题吗?

To answer your specific questions: 回答您的具体问题:

  • You can reasonably expect "Dart team" packages to be supported. 您可以合理地期望支持“Dart团队”包。
  • There isn't a list of official Google supported packages. 没有Google官方支持的软件包列表。 Just look for packages supported by the Dart team if you're looking for packages created by members of the Dart project. 如果您正在寻找由Dart项目成员创建的软件包,请查看Dart团队支持的软件包。
  • The Dart project doesn't currently have any way of ranking Pub packages. Dart项目目前没有任何方式对Pub包进行排名。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM