Size: a a a

2020 August 29

M

M in Random Ruby Chat
Why it exists is interesting I do not think it just exists mere
источник

A

Anton in Random Ruby Chat
источник

M

M in Random Ruby Chat
Great I'm go to read now
источник

A

Anton in Random Ruby Chat
$ does not exists in ruby as a kind of a special symbol. It can be a part of a variable or a function name, but not more than that. And since it's really weird to name your variable with preceding $ (unless you don't live in PHP reality) - I'd not recommend to use that as a part of a variable or a function/method name in ruby
источник

EB

Eugene Burmakin in Random Ruby Chat
$ in the beginning of var name means it would be a global variable
источник

M

M in Random Ruby Chat
So why is he using it is not a special sign?
источник

EB

Eugene Burmakin in Random Ruby Chat
$var would be available everywhere in your program
источник

EB

Eugene Burmakin in Random Ruby Chat
var would be available only in local scope
источник

M

M in Random Ruby Chat
Eugene Burmakin
$ in the beginning of var name means it would be a global variable
Thanks 👍👍👍
источник

EB

Eugene Burmakin in Random Ruby Chat
M
So why is he using it is not a special sign?
Just a bad example
источник

EB

Eugene Burmakin in Random Ruby Chat
Stick to using of local or instance vars
источник

EB

Eugene Burmakin in Random Ruby Chat
Depending on necessity
источник

M

M in Random Ruby Chat
Eugene Burmakin
Just a bad example
This is the only guide I found I would love to link if there is a better one
источник

EB

Eugene Burmakin in Random Ruby Chat
M
This is the only guide I found I would love to link if there is a better one
Codeacademy
источник

EB

Eugene Burmakin in Random Ruby Chat
"Learn Ruby the hard way" is the most recommended guide
источник

M

M in Random Ruby Chat
Eugene Burmakin
Codeacademy
Is free ?
источник

EB

Eugene Burmakin in Random Ruby Chat
M
Is free ?
Part of it
источник

M

M in Random Ruby Chat
I like learning weird languages😁
источник

EB

Eugene Burmakin in Random Ruby Chat
Check out Michael Hartl's guides
источник

M

M in Random Ruby Chat
Thanks you
источник