没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论



格式:pdf 资源大小:3.1MB 页数:106

格式:pdf 资源大小:10.4MB 页数:127







格式:pdf 资源大小:4.9MB 页数:127








格式:doc 资源大小:805.0KB 页数:40











What is ruby?
Ruby User's Guide
Preface to the English Edition
Preface to the English Edition
本版本来源于ruby官方网站,鉴于目前ruby学习材料有
限,特整理此文,献给努力拼搏在计算机第一线的程序员们。
翻译版本正在进行中。
ruby是一门很好的语言,虽然从目前状况看来,更适合做
的事情是开发web server,python也有着一样的特性,相比之
下,ruby更加容易学习和掌握,特别是在ruby on rails的构架
下,程序设计不在是枯燥的事情,而转变成为一门艺术。
当然,在轻松入门的情况下,了解内幕也就变的不太容
易,我一直相信,当不了解某些内在运作机制之前,我们都是
迷茫的,这样增加了我们学习的难度。但是不可否认的是rails
大大提高了程序员的产率,在rails的主页上,我们可以得到一
些相关视频,建立数据库变的如此容易(如果你学习过JDBC,
ODBC的话,就会有所感觉)。
本人水平有限,如有错误之处,请指正。任何问题均可以
来信交流:[email protected]
file:///C|/Documents and Settings/Administrator/桌面/What is ruby.htm (1 of 2)2006-3-15 19:20:24

What is ruby?
梁国栋
2006年3月15日于福州
Copyright (c) 2005 Mark Slagell
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software
Foundation; with no Invariant Sections, no Front-Cover Texts,
and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU
Free Documentation License."
file:///C|/Documents and Settings/Administrator/桌面/What is ruby.htm (2 of 2)2006-3-15 19:20:24

What is ruby?
Ruby User's Guide
What is ruby?
> What is ruby?
Getting started
Simple examples
Strings
Regular expressions
Arrays
Back to the simple examples
Control structures
Iterators
Object-oriented thinking
Methods
Classes
Inheritance
Redefinition of methods
Access control
Singleton methods
Modules
Procedure objects
Variables
Global variables
Instance variables
Local variables
Class constants
Exception processing: rescue
Exception processing: ensure
Accessors
Ruby is "an interpreted scripting language for quick and easy
object-oriented programming" -- what does this mean?
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
http://www.rubyist.net/~slagell/ruby/index.html (1 of 2)2006-3-15 16:53:05

What is ruby?
Object initialization
Nuts and bolts
About the guide
Ruby homepage
Library reference
Technical reference (old)
FAQ
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.
Copyright (c) 2005 Mark Slagell
Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.2 or any later version
published by the Free Software Foundation; with no Invariant Sections, no
Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU Free
Documentation License."
http://www.rubyist.net/~slagell/ruby/index.html (2 of 2)2006-3-15 16:53:05

Getting started
Ruby User's Guide
Getting started
What is ruby?
> Getting started
Simple examples
Strings
Regular expressions
Arrays
Back to the simple examples
Control structures
Iterators
Object-oriented thinking
Methods
Classes
Inheritance
Redefinition of methods
Access control
Singleton methods
Modules
Procedure objects
Variables
Global variables
Instance variables
Local variables
Class constants
Exception processing: rescue
Exception processing: ensure
Accessors
First, you'll want to check whether ruby is installed. From the
shell prompt (denoted here by "%", so don't type the %), type
% ruby -v
(-v tells the interpreter to print the version of ruby), then press
the Enter key. If ruby is installed, you will see a message
something like the following:
% ruby -v
ruby 1.8.3 (2005-09-21) [i586-linux]
If ruby is not installed, you can ask your administrator to install
it, or you can do it yourself, since ruby is free software with no
restrictions on its installation or use.
Now, let's play with ruby. You can place a ruby program
directly on the command line using the -e option:
% ruby -e 'puts "hello world"'
hello world
http://www.rubyist.net/~slagell/ruby/getstarted.html (1 of 3)2006-3-15 16:53:15
剩余125页未读,继续阅读
资源评论


solaris_navi
- 粉丝: 64
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 移动互联成为全球软件产业投融资重点关注领域(2014-).docx
- 基于s3c2410的模拟智能家居系统方案设计书.doc
- 教你用EXCEL绘制施工进度计划横道图.docx
- 浅析互联网+背景下中学英语阅读教学策略.docx
- 后MOOC时代高等医药院校计算机基础课重构与创新模式研究.docx
- 计算机科学与技术专业实践教学体系的构建.docx
- 计算机操作系统-司机与售票员的进程问题.doc
- (源码)基于嵌入式C编程语言的汽车温度监测与管理系统.zip
- 单片机C语言程序设计方案师试题.doc
- VB的图书管理系统方案设计书与实现1.doc
- 中铁四局大数据时代的企业信息化建设.docx
- 基于 RV1106 开发的神经网络模型部署仓库,已支持 PicoDet、MobileNet、CRNN、PPHumanSeg、OCR 及 YOLOv5 等模型
- 项目管理10大模板Excel版.xls
- 如何快速将cad转换成pdf.docx
- (源码)基于Python的网络简易英英词典.zip
- PHP-Mysql-音乐交流论坛的设计与实现评阅书-(含所有设计文档).doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
