在前幾篇都有提到 Ruby 是物件導向程式語言 (Object-oriented programming)。一直提到物件導向,但説到底物件在程式世界到底是什麼?
[Read More]
Lambda, Proc
The devil is in the details.
[Read More]
Block
Block
Ruby 為物件導向程式語言,幾乎所有東西都是物件,但 Block 卻不是,那 Block 是什麼?
[Read More]
Compare Symbol to String
趁著再釐清觀念,打一篇加深自己的印象,順便整理一下學習隨筆。其實,龍哥在上課期間就不斷強調的是學習過程中必須去思考 “這個是什麼”、“為什麼要使用?”、 “什麼時候使用”、“使用了有什麼好處”。
[Read More]
Blogging with Jekyll on Github Pages
This blog is built by Jekyll on Github Pages. What is Jekyll? Jekyll is a static website generator, which can transform plain text into static site without a database and a server. Sounds great, right?! Jekyll is written by Ruby, so it’s literally a Ruby gem, like Rails, Sinatra… and...
[Read More]