Position: Home page » Virtual » Ruby is a virtual currency

Ruby is a virtual currency

Publish: 2021-04-26 19:36:29
1.

Ruby, a simple and fast object-oriented (object-oriented programming) scripting language, was developed by Japanese Yukihiro Matsumoto in the 1990s, complying with GPL protocol and Ruby license

2. Ruby; Ru: Bi] [beauty] [, 712; Rubi]
new words
concise explanation
n. ruby, ruby; Ruby, deep red& lt; English & gt; Fine type; Red wine
adj; Ruby
vt; To redden; redden; Color... Red
3. Ruby is a powerful object-oriented scripting language, which can be used for object-oriented programming easily and quickly. Similar to Perl, and ruby has powerful text processing capabilities, making text processing simple. In addition, it is convenient to use C language to extend the function of ruby
if you ever "want a simple object-oriented language", or think "Perl's function is easy to use, but its syntax is really unbearable", or think "LISP series language's idea is good, but brackets everywhere are really annoying, at least the formula should be written in the usual style". So maybe Ruby will satisfy you< To sum up, ruby has the following advantages:
& { 61548; Interpretive execution, convenient and fast
ruby is an interpretive language, and its program can be executed without compiling< br /> The grammar is simple and elegant
the grammar is relatively simple, similar to ALGOL grammar< br /> Completely object-oriented
ruby has been designed as a pure object-oriented language from the beginning, so everything is an object, such as basic data types such as integers< br /> The built-in regular engine is suitable for text processing
Ruby supports powerful string operation and regular expression retrieval function, which can easily process strings< br /> Automatic garbage collection
with garbage collection (GC) function, can automatically recycle objects that are no longer used. There is no need for the user to manage the memory< br /> Cross platform and highly portable
Ruby supports multiple platforms and can run on windows, UNIX, Linux and MacOS. The portability of ruby program is very good. Most programs can run on various platforms without modification< br /> There is an elegant and perfect exception handling mechanism
Ruby provides a complete set of exception handling mechanisms, which can handle code handling errors easily and gracefully< br /> It has many advanced features
ruby has many advanced features, such as operator overloading, mix INS, special methods and so on, which can easily complete various powerful functions.
4. How to say this well? They are nothing more than some operators. There are many usages of each symbol. You can learn how to use them by reading books and reading examples. There is no need to remember so many
for example:
% # remainder operation, such as 8% 3 = 2
{} # can be used in output, such as the value of output Y: puts & quot#{ y}", It can also be used in hash tables such as $R_ Key_ Hash = {}
. # generally refers to a certain property or method. For example, for a window, self. X = 0 means that the X coordinate of the window is 0< Another example is
class person
def Hello
puts & quot; Hello,my name is Tom."
end
end
P = person. New
P. Hello ᦇ the program will output Hello, my name is Tom.
# Table judgment, such as opacity = black_ color ? 255: 128, which means if it's black, it's opaque, otherwise it's 128
, # comma is more common in arrays, such as a = [& quot; 1",& quot; 2",& quot; 3"], The three elements of array a are 1, 2, and 3
', which are common in file operation, as follows:
If dir. Glob (&# 39; txt'). Size = = 0 # if the folder TXT does not exist
dir. MKDIR (# 39;)/ txt') # Then create a folder named TXT
end
# If x= 2 means that if x is not equal to 2,
: # this may be used in attributes such as
class game_ Picture
attr_ Reader: number # picture number
attr_ Reader: origin # origin
attr_ Reader: X # X coordinate
attr_ Reader: y # y coordinate
attr_ Reader: tone # tone
attr_ Reader: angle # rotation angle
end
# Semicolons are usually used at the end of each line of a program, but in fact, you don't need semicolons at the end of each line of ruby. Just press enter to change the line. I only use semicolons when I use the interactive Ruby compiler

from my answer above, we can see that each symbol has several usages. It's better to learn more and accumulate more
5. A | = 123
is when a exists but has no assignment, a = 123
6. Ruby is a dynamic language, similar to python, developed by a Japanese
gem is a file organization package. Many plug-ins in ruby are provided by this package.
7. The language is more natural, less code, more suitable for the development of some DSL
8. It's a brand applied by a Taobao store in Qing
9. As far as I know, ruby is a powerful object-oriented scripting language, which makes it easy for you to carry out object-oriented programming. Ruby makes text processing and system management simple, which is very similar to Perl. In a word, it is simple, extensible and transplantable.
are you talking about Ruby cell? A cosmetics brand
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750