ESS多版本 【TA】【ESS】Ruby编程基础目录

TAAAAAAA

天王
管理成员
2024/06/16
279
4
39
1,270
The basics of the Ruby programming language
Ruby编程语言的基础知识

注:关于代码的细节部分通过AI帮忙检查查证,但是我并没有实际去验证过,如果你发现冲突的地方的话,你最好去自行验证。

Written by Marin
由Marin所写,TA翻译


这个帖子是我对Eevee Expo上的The basics of the Ruby programming language这篇文章的中文翻译,当然,不仅仅是翻译,我会说得更具体以及结合具体的例子进行解释说明。

参考:

另外,在你完全看完这篇文章之后,如果你觉得你想要深入学习Ruby,而不仅仅只是浅尝辄止的话,你也可以去看一下这两个视频教程——

官方文档参考——

以及,一个写正则表达式的网站——

那么首先,Ruby是什么?
Ruby是一种编程语言,Pokemon Essentials里面的代码,是用Ruby写的。
另外,Ruby的本意是红宝石。
所以,如果你想要做好一款属于你的游戏的话,势必是需要自己改代码的,那你就或多或少不得不学习Ruby。

我不会翻译每一句话,我对原文进行了删减、重组,以及增加了我自己的理解;当然,你可以使用翻译工具自行研究原文;或者只看我翻译的中文部分。
 

TAAAAAAA

天王
管理成员
2024/06/16
279
4
39
1,270
The purpose of this document is to teach people who are new to Ruby or programming as a whole about some general programming concepts that apply to many more languages, but also about Ruby specifically. The clean syntax of Ruby will make it easier to understand everything and follow along with the tutorials.

Please note that there is so much more to Ruby than just what is covered here. These are merely the basics with which you will be able to write your own programs or edit code you’ve seen somewhere without having to worry about breaking things.

本文档的目的是向刚接触 Ruby 或编程的新手传授一些基础的通用编程概念。

It is suggested that you follow the order of the Table of Contents, as they are listed from easy to hard. You will not understand Modules if you don’t understand Classes, for instance.

希望你按照目录的顺序进行学习,不要跳着学。

If you’d like to link to this document, you also have the ability of linking to https://bit.ly/RubyBasics.

Cyan: This represents an additional note which may be confusing to beginners. It is mainly meant for people who already know a bit about programming or have experience with other programming languages. It’s also used to give extra information sometimes for those who understand it and/or are interested in it. You will not miss anything important by skipping over these.

蓝色:这部分是对于一些人可能感到疑惑的点的额外补充说明。技术上来说,你不需要在意,忽略就好。
 

TAAAAAAA

天王
管理成员
2024/06/16
279
4
39
1,270
Table of Contents 目录

1
: Variables and data types 变量和数据类型

2: Conditions 条件

3: Methods 方法

4: Arrays 数组

5: Ranges and for-loops 范围和遍历

6: Classes and objects 类和对象

7: More classes and polymorphism 类的多态性

8: More variables and scopes 变量的作用域

9: Hashes 哈希

10: Exception handling 异常处理
本章不会更新,因为原作者已弃坑。

11: Blocks and Procs 块和处理
本章不会更新,因为原作者已弃坑。

12: IO, Marshal, and Zlib 输入/输出,对象序列化、和压缩库
本章不会更新,因为原作者已弃坑。

13: Modules 模块
本章不会更新,因为原作者已弃坑。
 

在线成员

论坛统计

主题
543
消息
2,480
成员
3,147
最新成员
执余-