Python或Ruby for .NET开发人员? [英] Python or Ruby for a .NET developer?

查看:98
本文介绍了Python或Ruby for .NET开发人员?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#.NET开发人员,我主要从事ASP.NET项目。

I'm a C# .NET developer and I work on mostly ASP.NET projects.

我想学习一种新的编程语言,

I want to learn a new programming language,


  • 通过体验新语言提高我的编程能力,

  • 看到与微软环境不同的东西,


我的目标是两种语言。 Python Ruby

I focus on two languages for my goal. Python and Ruby.



  • 他们彼此的利弊?

  • 是否值得学习?

EDIT:很抱歉,我修改了我的帖子,但不通知这里:

EDIT : Sorry I editted my post but not inform here,

推荐答案

这两种语言都是强大而有趣的。

Both languages are powerful and fun. Either would be a useful addition to your tool box.

Python有一个更大的社区,可能更成熟的文档和库。它的面向对象有点不一致,感觉(对我来说,IMHO)喜欢的东西,固定的语言。你可以在运行时改变类的行为(猴子修补),但不是为了预编译的类,它一般是皱眉的。

Python has a larger community and probably more mature documentation and libraries. Its object-orientation is a little inconsistent and feels (to me, IMHO) like something that was bolted on to the language. You can alter class behaviour at runtime (monkey-patching) but not for the precompiled classes and it's generally frowned-upon.

Ruby可能会有点不同于你的当前经验:它有一些Smalltalk的味道(例如方法调用更准确的消息发送)。它的对象导向是从头开始的,所有类都可以修改,这是一个被接受的 - 如果有点可怕的做法。社区规模较小,图书馆不太成熟,文档覆盖面较少。

Ruby might be a little more different to your current experience: it has some flavour of Smalltalk (method-calling is more correctly message-sending for example). Its object-orientation is built-in from scratch, all classes are open to modification and it's an accepted - if slightly scary - practise. The community is smaller, the libraries less mature and documentation coverage is less.

这两种语言在下一个majopr版本中都有一定程度的向下兼容性,实现(IronPython是生产,IronRuby到那里)。两者都有反映他们的优势的网络框架(搜索SO为Django / Rails辩论)。

Both languages will have some level of broken backward compatibility in their next majopr releases, both have .Net implementations (IronPython is production, IronRuby getting there). Both have web frameworks that reflect their strengths (search SO for the Django/Rails debate).

如果我从来没有见过Ruby,我会很高兴工作Python,并且这样做没有痛苦在必要时。我总是发现自己希望我可以做Ruby的工作。但这是我的意见,YMMV。

If I'd never seen Ruby, I'd be very happy working in Python, and have done so without suffering when necessary. I always found myself wishing I could do the work in Ruby. But that's my opinion, YMMV.

编辑:来想想它,即使它痛苦我,如果你想利用你的知识.Net框架,你可能是最好的看看IronPython,因为它比Ruby等同物更成熟。

Come to think of it, and even though it pains me, if you're seeking to leverage your knowledge of the .Net framework, you might be best off looking at IronPython, as it's more mature than the Ruby equivalent.

这篇关于Python或Ruby for .NET开发人员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆