Ruby是什么?

What is ruby?

Ruby是什么?

Ruby is “an interpreted scripting language for quick and easy object-oriented programming” — what does this mean?

Ruby是一门灵活简单的面向对象解释型脚本语言。这些意味着什么?

interpreted scripting language:

解释型脚本语言:

ability to make operating system calls directly

  • 直接执行操作系统调用的能力

powerful string operations and regular expressions

  • 强大的字符操作和正则表达式

immediate feedback during development

  • 开发过程中的即时反馈

quick and easy:

灵活简单:

variable declarations are unnecessary

  • 变量无需声明

variables are not typed

  • 变量不是类型化的

syntax is simple and consistent

  • 语法简单一致

memory management is automatic

  • 自动内存管理

object oriented programming:

面向对象编程:

everything is an object

  • 一切皆为对象

classes, methods, inheritance, etc.

  • 类,方法,继承等等

singleton methods

  • 单例方法

“mixin” functionality by module

  • 模块的混入功能

iterators and closures

  • 迭代器和闭包

also:

以及:

multiple precision integers

  • 多精度整数

convenient exception processing

  • 方便的异常处理

dynamic loading

  • 动态加载

threading support

  • 支持线程

If you are unfamiliar with some of the concepts above, read on, and don’t worry. The mantra of the ruby language is quick and easy.

如果你对上面的某些概念不熟悉,不必担心,继续往下看即可,因为Ruby的”咒语“灵活而简单。

上一章 目录
下一章 起步