Episode #293 - July 31st, 2012
ActiveRecord loves blocks
http://blog.plataformatec.com.br/2012/07/active-record-loves-blocks/
- ActiveRecordのオブジェクトを作成するときにblockを使って書くのは簡単!
has_manyやbelogs_toの関係もblockを使って書ける!
コード例が分かりやすく載ってるので、読みやすい!
Rails 4.0 Live Streaming
- Rails 4.0に最近追加された機能
- その機能のデモとか使いかたの紹介サイト
- ビデオのストリーミング的なものではなくて、ライブストリーミング
- 技術としてはServer-Sent Eventsが使われている
Team Dashboard Released
http://fdietz.github.com/team_dashboard/
Heroku上のデモ
http://team-dashboard.herokuapp.com/
Always define respond_to_missing? when overriding method_missing
http://robots.thoughtbot.com/post/28335346416/always-define-respond-to-missing-when-overriding
- method_missingをoverrideするときにrespond_to?もoverrideするのはいいことだが…
- Ruby 1.9.3でmethod_missingをoverrideするときは、respond_to?ではなくrespond_to_missing?を定義するべき
詳しい挙動については↑のブログ記事参照
- respond_to?をoverrideした場合
- respond_to?でtrueを返していても、methodで呼びだそうとするとundefined methodエラーが出てしまう。
- respond_to_missing?をoverrideした場合
- 正しくmethodのオブジェクト?が返されているみたい
ActiveRecord Deep Dive
- テキサス大学でRichard Schneems氏がDatabases & Railsの授業をしている
- その内容を記事にしている
今週の記事がActiveRecordの基本の話
-
- スクリーンキャスト有り
- 初心者にとても良い
- find, where, include, order, offset, joins, group, havingの話
Synack
https://github.com/Bantik/synack
- Moutain Lionの通知センターに通知を送れるgem
- 自分のコードから通知を送ることが出来る
- UNIXのパイプでも送れる
Master Space and Time with JavaScript
http://www.noelrappin.com/mstjs-faq/
Noel Rappin氏が“Master Space and Time with JavaScript”という本を出した
Try iOS
http://www.kickstarter.com/projects/eallam/try-ios-iphone-app-development-course
Kickstarterキャンペーン
CodeSchoolの講座
- すごくお高いのでKickstarterのページを見たほうがいいとのこと…
- 桁がぜんぜん違うような…
頑張りたい!