动态类型编程语言 Ruby
- 授权协议: GPL
- 开发语言: Ruby
- 操作系统: 跨平台
- 软件首页: http://www.ruby-lang.org/
- 软件文档: http://www.ruby-lang.org/en/documentation/
软件介绍
Ruby是一种跨平台、面向对象的动态类型编程语言。Ruby 体现了表达的一致性和简单性,它不仅是一门编程语言,更是表达想法的一种简练方式。
Ruby的作者于1993年2月24日开始编辑Ruby,直至1995年12月才正式公开发布于fj(新聞群組)。之所以称为Ruby,是因为Perl的发音与6月的诞生石pearl(珍珠)相同,因此Ruby以7月的诞生石ruby(红宝石)命名。
Ruby明显比其他类似的编程語言(如Perl或Python)年轻,又因为Ruby是日本人发明的,所以早期的非日文资料和程式都比较貧乏,所以现在在网上仍然可以找到Ruby的资料太少之类的批评。约于2000年,Ruby开始进入美国,英文的资料开始发展。
下面是一个在标准输出设备上输出 Hello World 的简单程序,这种程序通常作为开始学习编程语言时的第一个程序:
#!/usr/bin/env ruby puts "Hello, world!"
或者是在 irb 交互式命令行的模式下:
>>puts "Hello, world!" Hello, world! => nil
Ruby1.9在线文档:http://tool.oschina.net/apidocs/apidoc?api=ruby-1.9.3-core
Ruby-library在线文档:http://tool.oschina.net/apidocs/apidoc?api=ruby-library
Computers and Intractability
M R Garey、D S Johnson / W. H. Freeman / 1979-4-26 / GBP 53.99
This book's introduction features a humorous story of a man with a line of people behind him, who explains to his boss, "I can't find an efficient algorithm, but neither can all these famous people." ......一起来看看 《Computers and Intractability》 这本书的介绍吧!