valid,invalid

関心を持てる事柄について

8/3学んだこと / Ruby@codecademy / CoffeeScript文法

Ruby

codecademy を100%まで達成した。

  • attr_accessor

    setter / getter 的な。

  • module

    You can think of modules as being very much like classes, only modules can't create instances and can't have subclasses. They're just used to store things!

  • scope resolution operator

    See that double colon we just used? That's called the scope resolution operator, which is a fancy way of saying it tells Ruby where you're looking for a specific bit of code.

  • mixin

  • include

  • extend

ここら辺はややこしかった。

goo.gl

次はRuby on Railsやってみる。

CoffeeScript

以前にPlay Framework触った時に書いたぶりなので記事読みつつ文法から思い出してみた。Python / Ruby 文法をひととおり見た後だと実によく馴染む…。

qiita.com

qiita.com

PlayはデフォルトでCoffeeScriptをサポートしてたので難なく使えたけど、単体で使おうとするとどうするのかよくわからないことに気づいた。フロントエンド開発環境の知識を仕入れないといけない。