Magnus Hill is here; nice to see that you liked the article :-)
(, - ) :
str = "Hello World: "
@users.each do |user|
str << "How are you today, "
str << user.name
str << "? \n"
end
, , :
- , :
str << "Static"
- , :
str << expresstion
- , :
@users.each
ERB , , , . ( ), .
"", , . : , , Turing, . , .
. , , , . GOTO: / , (GOTO), , if/while-statements. ? ! , , , , .
, , , : @users.map { |f| code }.join
. , ERB , .
, , , , . , , , DRY-, .. . , , . , Lisp flavors, , , .
, ERB Ruby? : .
, ERB ?
. , . , , . , ERB , : , :
@users.each do |foo|
str << "Hello"
end
str << form_for(thing) do
another_string
end
, , "" -, . "" .
Rails " Ruby"?
Tilt , , Rails Tilt, , " Ruby" . , , , . , Ruby, , ?