登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

Antonieo's

Life is not wonderful , therefor it is .

 
 
 

日志

 
 

于XSI而言,JScript很好,Python也不错  

2008-07-11 22:17:25|  分类: Dev Mem |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

乐乐今天给我发了这篇老外程序员的文章,由于目前还不知道他从什么链接看到这篇文章,且不知道作者名字,所以暂时转载链接缺省为空。这位老外说得很不错,下面是文章内容:

It depends on what you want to achieve and how deep you want to get. Personally, I think JScript is the safe choice, but Python is making a case for itself.

JScript is small and concise which makes it easy to learn. It's a consistent language with very few exceptions to it's own rules (unlike VBscript). It's very versatile as it addresses XSI, the command line, and web development. It's also one of the more popular (read: documented) languages should you need additional resources from a friend or bookstore. You can build your own custom objects and work with them in object oriented ways. JScript has similar syntax to C/C++/Java in case you want to minimize your relearning for future endeavors. It also comes out of the box with XSI. Whenever I professionally students in XSI scripting, I teach using JScript for the above reasons. I'm not sure what other people's experiences are, but every major production I've worked on that uses XSI has used JScript as it's language of choice.

VBScript is largely tied to Microsoft products, so if you move to Linux or some other platform, you might have to pick up a different language depending on what your tasks are. VBscript is not a consistent language and it's constructs tend to differ from most other languages. It's more function based than object oriented even though it has both. While many examples in the SDK docs are VBScript, as XSI has matured JScript and Python are becoming more commonly used in examples as it better reflects what users are actually using.

Python - powerful as it comes with many of it's own libraries. People are adapting to it. Not me personally, but I can see why people would use it. Just be aware you have to install Python yourself if you're going to use it with XSI. Like JScript, Python is object oriented and is quite versatile, but it's a little more on the recent side compared to JScript which is more mature.

I'd recommend evaluating languages in this order:

JScript
Python
VBScript

I say JScript first because if you really need something powerful or better performance than what JScript can provide, chances are you're looking at a compiled language such as C/C++, not another scripting language. I have nothing against Python, but it's not as widely used, that's why I place it 2nd. I strongly discourage use of VBscript except when you're painted into a corner with no other option.....even then I might choose death Regardless of what language you choose, majority of the time you'll be working with the XSI object model, not the individual language extensions. The language is mostly important for communicating with other applications, GUI's, and API's outside of XSI.

这是一位老程序员关于针对XSI编写脚本程序的语种选择的心得和总结。

时间有限,回头再详细翻译,呵呵,大体意思是,在XSI的内部脚本环境里,JScript比VBScript更值得推荐。哈哈,我深表赞同!

  评论这张
 
阅读(568)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018