首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python对Groovy对Ruby?(根据所列标准)

Python对Groovy对Ruby?(根据所列标准)
EN

Stack Overflow用户
提问于 2008-11-03 01:31:49
回答 10查看 36.4K关注 0票数 36

考虑到下面列出的条件,您将使用哪种Python、Groovy或Ruby?

  • 标准( 10项中的重要性,10项是最重要的)
  • 丰富的API/库可用(例如。数学、绘图、网络) (9)
  • 嵌入桌面(java/c++)应用程序的能力(8)
  • 易于部署(8)
  • 与DLL/共享库的接口能力(7)
  • 生成GUI的能力(7)
  • 社区/用户支持(6)
  • 便携性(6)
  • 数据库操作(3)
  • 语言/语义(2)
EN

回答 10

Stack Overflow用户

回答已采纳

发布于 2008-11-03 01:44:39

我认为这将很难得到一个客观的比较。我个人更喜欢Python。为了解决其中一个标准,Python从一开始就被设计为一种可嵌入的语言。它有一个非常丰富的C API,解释器是模块化的,以便于从C调用。如果Java是您的主机环境,那么您应该看看Jython,它是Java环境中Python的一个实现(VM和libs)。

票数 34
EN

Stack Overflow用户

发布于 2009-09-09 19:33:20

在与三人一起工作之后,我可以这样说:

  • Python
代码语言:javascript
复制
- has very mature libraries
- libraries are documented
- documentation can be accessed from your debugger/shell at runtime through the docstrings
- you can develop code without an IDE

  • Ruby
代码语言:javascript
复制
- has some great libraries ( even though some are badly documented )
- Ruby's instrospection mechanisms are great. They make writing code pretty easy ( even if documentation is not available )
- you can develop code without an IDE

  • Groovy
代码语言:javascript
复制
- you can benefit from everything Java has to offer
- syntax is somewhat inspired from Ruby
- it's hard to write code without an IDE. You have no way to debug stuff from your console ( this is something you can easily do in Python/Ruby ) and the available Groovy plugins have a lot of catching up to do. I wrote some apps using Groovy and as they get bigger I regret not going with Ruby/Python ( debugging would have been WAY more easier ). If you'll only develop from an IDE, Groovy's a cool language.

票数 29
EN

Stack Overflow用户

发布于 2008-11-03 02:06:59

只是为了搅浑水..。

Groovy允许您访问Java。Java有一组极其丰富的API/库、应用程序等。

Groovy是可嵌入的,尽管在Java中最简单。

尽管有一些方法和一些API可以帮助,但是DLLs/库(如果您正在谈论的是非Groovy/Java)可能会有一些问题。

我已经做了一些Python编程,但是更熟悉Java,Groovy对我来说就容易多了。

票数 24
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/257730

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档