gpt4 book ai didi

javascript - 强大的用户库,可与 Node.js(javascript) 的示例 java/go 相媲美

转载 作者:太空宇宙 更新时间:2023-11-03 22:32:17 26 4
gpt4 key购买 nike

快速浏览一下 stackoverflow,我还没有找到(所以希望这不是重复的问题)类似的问题(也有很长的内容)。我也相信TJ holowaychuck,他创建了很多优秀的node.js(javascript)库concluded相同:

The Go stdlib is something I thought was awful when I first heard of Go, being so used to ultra-modularity in Node, and having experienced most of Ruby’s stdlib rot. After getting into the language I realized that most of the stdlib is pretty essential to programs these days, compression, json, IO, buffered IO, string manipulation and so on. The bulk of these APIs are well-defined, and powerful. It’s pretty easy to get by writing entire programs with nearly only consuming the stdlib.

我正在寻找一个强大的用户库,可以与例如 (java/go) 相媲美,但适用于 node.js(javascript) 。最好通过包管理器(npm)获得,并且非常重要的是应该得到良好的维护。如果没有,我认为应该有一个,程序员应该一起努力。我们可能可以将许多好的库(来自 npm)拼接在一起并为此提供正确的可靠文档?

例如,我刚刚总结了一些主要来自 java 的包:

  • java.io提供文件io

    Provides for system input and output through data streams, serialization and the file system.

我们有fs在node.js 中,但我认为可能过于简约。我还没有找到强大的库吗?有时我们将它们与流库一起pipe(),例如 through2

  • javax.swing拥有一个在所有平台上看起来(几乎)有些的 GUI

    Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.

为此我们可能有 electronnwjs ?我也喜欢riot.js因为它很简单,但功能还不够丰富。我们还有bootstrap仅举几例来自 Twitter?

  • java.util.concurrent

    Utility classes commonly useful in concurrent programming. I know we don't really have threads(concurrency in node.js) but still I think some of these classes could also be in strong user library? Or for example channels like in Go. We have generators/co. There also a lot of good promise libraries like for example bluebird. There are also some channel library on top of generators like for example js-csp.

  • java.math

    Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal).

还有很多其他数学函数。我再次相信已经有一些好的可用但很难找到它们?

  • java.util.logging

    Provides the classes and interfaces of the JavaTM 2 platform's core logging facilities.

良好的日志记录库,例如 bunya

  • java.util.zip

    Provides classes for reading and writing the standard ZIP and GZIP file formats.

  • java.util.collections

    Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).

例如,来自 java 的集合非常好。我猜你有collectionsjs为了那个原因?时间moment.js

<小时/>

这更适合 javascript 开发,但我真的很喜欢解决方案,例如 webpackbrowserify不要创造单一的野兽。大家觉得怎么样呢。对于特定用例,你们经常使用哪些库(强大的用户库?)。也许我们应该对每个类别进行一次民意调查?

P.S:如果你问我的话,这个列表还不是完整的,但已经很长了。

最佳答案

我们正在努力构建这样一个标准库。其中一项努力是 stdlib ,我是其中的贡献者。虽然该项目的重点是numerical computing功能(包括 statistics 、机器学习和其他 math ),该库还提供了更通用的 utilities常见于各种库和 npm 中。该项目可通过 npm 使用,具有很强的用户关注度,并优先考虑高质量(且统一)的文档。希望这有帮助!

关于javascript - 强大的用户库,可与 Node.js(javascript) 的示例 java/go 相媲美,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34983037/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com