orait then...
aku seorang programmer... xpandai mana la.. tapi ada bahasa2 yang aku reti.. sebab aku banyak belajar sendiri.. (aku orang kejuteraan awam). ok skrg aku nak bagitau serba sedikit tentang ruby nih... ok then i explain to you all..
Ruby is a language of careful balance. Its creator, Yukihiro “matz” Matsumoto, blended parts of his favorite languages (Perl, Smalltalk, Eiffel, Ada, and Lisp) to form a new language that balanced functional programming with imperative programming.
He has often said that he is “trying to make Ruby natural, not simple,” in a way that mirrors life.
Building on this, he adds:
ruby nih simple jek tapi dia complex didalam..
kalu sapa2 programmer atau student yang datang VELOG aku nih.. korang kene la download ruby kat
sini
or u can try at www.tryruby.org <-- dalam browser korang jek..
ok we try 1 code dulu.. (aku anggap korang dah install ruby)
orait then,
code:
puts "Saya Nixzm!"
nil
done... itu sahaja.. save dan save it .rb file
puts is the basic command to print something out dalam Ruby. tapi then what’s the => nil bit? Thats the result of the expression.
puts always returns nil... which is Ruby’s absolutely-positively-nothing value.
ok la jari sakit dah.. nanti aku sambung lagi..