考虑到下面列出的条件,您将使用哪种Python、Groovy或Ruby?
发布于 2008-11-03 01:44:39
我认为这将很难得到一个客观的比较。我个人更喜欢Python。为了解决其中一个标准,Python从一开始就被设计为一种可嵌入的语言。它有一个非常丰富的C API,解释器是模块化的,以便于从C调用。如果Java是您的主机环境,那么您应该看看Jython,它是Java环境中Python的一个实现(VM和libs)。
发布于 2009-09-09 19:33:20
在与三人一起工作之后,我可以这样说:
- 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
- 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
- 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.
发布于 2008-11-03 02:06:59
只是为了搅浑水..。
Groovy允许您访问Java。Java有一组极其丰富的API/库、应用程序等。
Groovy是可嵌入的,尽管在Java中最简单。
尽管有一些方法和一些API可以帮助,但是DLLs/库(如果您正在谈论的是非Groovy/Java)可能会有一些问题。
我已经做了一些Python编程,但是更熟悉Java,Groovy对我来说就容易多了。
https://stackoverflow.com/questions/257730
复制相似问题