[問題] Ruby入門建議的書籍
環境: Ruby 1.8/1.9
e.g. Ruby 1.8.x? Rails 1.2.3? 2.0.x?
狀況:
class Poster
def initialize
@booklist = Array.new()
end
def appendlist(arg)
@booklist.push(arg)
end
def listout
@booklist.each {|i| puts i}
end
end
originalposter = Poster.new
puts "最近想開始學習Ruby,在下稱不上程式底子很好,但基本的是有一些"
puts "最近買了The Ruby Programming Language和Ruby程式設計密技268"
puts "前者確實不錯,但吃起來有點乾澀。"
puts "後者則是寫法感覺很詭異,雖然偶爾方便但好像有很多漏光的地方。"
while true
print "誠徵Ruby新手入門書籍推薦> "; bookname = gets.chomp!
break if bookname == "quit"
originalposter.appendlist("#{bookname}")
end
附錄:
想順便問有沒有學習演算法和資料結構的推薦書籍XD,感謝。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.231.214.25
推
02/05 11:27, , 1F
02/05 11:27, 1F
推
02/05 15:11, , 2F
02/05 15:11, 2F
推
02/05 15:13, , 3F
02/05 15:13, 3F
→
02/05 15:13, , 4F
02/05 15:13, 4F
→
02/05 15:14, , 5F
02/05 15:14, 5F
推
02/06 03:53, , 6F
02/06 03:53, 6F
→
02/06 03:54, , 7F
02/06 03:54, 7F
→
02/06 03:54, , 8F
02/06 03:54, 8F
→
02/06 03:55, , 9F
02/06 03:55, 9F
→
02/06 09:18, , 10F
02/06 09:18, 10F