quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

2013-01-01から1ヶ月間の記事一覧

RubyTapas #052 - #053

052 The End of Mocking ★ 'I like to use mock and stub objects to help me drive out a design.' ファイル書き出しひとつとってもこんな書き方があるのかといった感じ あとはspecの中で tmpfile 使えるようになるとよさそう file = Tempfile.open('w') on…

Ruby5 #340

Ruby5 - Episode #340 - January 29th, 2013 Devise security Postgres, sqlite以外を使っている場合、Deviseアップデートが必要らしい Rails 3.0系、2.3系もアップデートが出ていた Split - ABテスティングらしい、興味ある andrew/split · GitHub Rails4で…

thoughtbot podcast Episode #25

thoughtbot Learn Episode #25 Long hours on the BoltBus Shownoteを見たら、apprentice.ioってすごいな ゲストはthoughtbotで見習いしたみたいだけど、 トップページは37signalsに行った人が紹介されている 今はdispatch.ioというプロジェクトらしい チー…

thoughtbot podcast Episode #33

thoughtbot Learn Episode #33 I've failed before 主にデザインの人 Bootstrapping design $39ドルの本 高くないかどうか質問されてた クーポンもたまにある? $50000収入あった? Twitter bootstrapとは関係無さげ cascade デザイン用のツールキットらしい…

RailsCasts #403 Dynamic Forms

#403 Dynamic Forms (pro) - RailsCasts 使いどころがはまればきれいに作れそうだけど、自分のアプリでない限り現実はそんなに甘くないと感じる。 現実は、 複雑なvalidationがあったり 同じ画面で一括編集させようとしたり Ajaxをひたすら使う要求だったり …

RailsCasts #402 Better Errors & RailsPanel

#402 Better Errors & RailsPanel - RailsCasts better_errorsというかbinding_of_callerとセットで使うと最強 RailsPanelは一度動かしたが、まだ本格的には使っていない BetterErrors.editor = :sublime if defined? BetterErrors があるのか、試してない l…

Ruby5 #339

Ruby5 - Episode #339 - January 25th, 2013 テンション受ける (hey man!) PartyFoul - Rails exceptions automatically opened as issues on Github GitHub Code Search - パワーアップした模様 早く使いたいシーンんで使いたい Curly Templates - またテン…

thoughtbot podcast Episode #26 ★

thoughtbot Learn Episode #26 Deep into the psyche of Gary Bernhardt またキャス友 Destroy All Software Screencasts なぜみんな $9/month なんだろう topicsではTest-Driven Development (TDD)の部分が気になる キーワード lisp rubyconf, happy, matz …

Ruby5 #338

Ruby5 - Episode #338 - January 22nd, 2013 Strecher - elastic search関連 elastic searchは良く聞いた事あるけど試した事ない 検索系試したことあるのはsolr, grrongaとか TheSortableTree - jqueryのツリー系かな 個人で使うには良さそう the-teacher/th…

thoughtbot podcast Episode #27

thoughtbot Learn Episode #27 Fabulous new mistakes 相変わらず、最初の自己紹介的なやつについていけないのだが、 メインパーソナリティは Ben Orenstein という名前というのを押さえようと思った 今回最も重要なキーワードは Demeter (正直最初は一瞬、t…

RSpec 雑感

個人的にはあまり批評的なことは書かない。 最近RSpecについて気づいた事について RSpecは表現力が豊かだと思う うまく書けたときの満足感は非常にある ただそのうまく書けたという感覚が、人によって全然違うと思った。 it "bla bla .." の部分にはshouldを…

jquery-rails

gem

railsと簡単に連携できる *-rails系のgem railsのレポジトリにあるんだな 最新にしたら既存プロジェクトのjsでエラーが出るようになったので戻した 最新の変更 8f601cb Updated to jQuery 1.9.0 Added source map Updated CHANGELOG.md and README.md commit…

RubyTapas #011 - #015

011 Method and Message ?? 多分もう何回か見てもピンと来ない。理解不能だ。 A message is a name for a responsibility which an object may have. A method is a named, concrete piece of code that encodes one way a responsibility may be fulfille…

thoughtbot podcast Episode #32

thoughtbot Learn Episode #32 There is an excited you in there 昔アップルで働いていた人がゲストというのは分かった 2000年前後にいたみたい 今は小規模でソフトウェアを作って売っている 分散管理システムの話があって GitはPCでMercurialはMacと言って…

thoughtbot podcast Episode #28 ★★

thoughtbot Learn Episode #28 Farther, further, faster はっきり言って、どんな人がゲストなのかとか重要なのに、最初の方でさらっとしか言われないから聞き逃す事が多い。 日本の商業的ラジオ番組とか、誰がゲストとか何度も繰り返すからすごい良心的。 …

RailsCasts #401 ActionController::Live pro

#401 ActionController::Live (pro) - RailsCasts ActionController::Live puma, redis, Faye とか まだ発展途上な部分が多いがポテンシャルはあるということらしい 最近はけっこう流して見ていたが、今回はちゃんと見た

git_statistics

gem

実行の流れ /bin/git_statistics #!/usr/bin/env ruby require 'git_statistics' GitStatistics::GitStatistics.new(ARGV).execute lib/git_statistics.rb require 'git_statistics/initialize' module GitStatistics class GitStatistics def initialize(ar…

Ruby5 #336 #337

Ruby5 - Episode #336 - January 15, 2013 secret_token.rbの件は何が正解かまだ良く分からないが気になる $ rake secret Ruby5 - Episode #337 - January 18th, 2013 Metasploitは試そうとしたが環境構築で心が折れた Virtual Box + Ubuntuまでやったが続き…

thoughtbot podcast Episode #29 ★

thoughtbot Learn Episode #30 Giant Year-End Extravaganza Ben Orenstein is joined by Gordon Fontenot and Matt Mongeau, two thoughtbot developers thoughtbotの人 RubyMotionの話が厚かった 一人はiOSが一番の言語でやってきた人 最初に学ぶ言語とし…

thoughtbot podcast Episode #30 ★

thoughtbot Learn Episode #30 Giant Year-End Extravaganza キーワード Airbrake podcastの話ですごい盛り上がってたような サービスのprofitableがどうのといった話 No one pay hundred dollar 採用とかオフィスとかその都市とか ライブラリの話とか copic…

RubyTapas #006 - #010

006 Forwardable ★ 同じような委譲のメソッドが多い時にシンプルに書ける class User attr_reader :account def initialize(account) @account = account end def first_name account.first_name end def last_name account.last_name end 次のように書ける …

rcov

gem

ruby 1.8 ruby 1.8用 1.9はsimple cov test requireでエラーで動かない やり方いろいろありそうだが、 Rakefileの最初に $LOAD_PATH.unshift File.expand_path("../lib", __FILE__) 追加したら $ rake 動いた エラーがいくつかで make: /usr/bin/gcc-4.2: No…

capybara-screenshot

gem

From CHANGELOG 07 Jan 2013 Support for Terminus rspec $ rspec Run options: include {:focus=>true} Finished in 0.02319 seconds 21 examples, 0 failures メソッドのテスト クラスメソッドの場合も ::Capybara.should respond_to(:screenshot_and_save…

biding_of_caller

gem

better_errorsと組み合わせて使われるやつ rake 7 tests, 10 assertions, 0 failures, 0 errors .yardopts YARD is a documentation generation tool for the Ruby lsegal/yard · GitHub example.rb $ ruby examples/example.rb x y u outer examples/exampl…

RubyTapas #039 - #046

やる気が尽きるのも時間の問題かもしれないからできるときにやる 書籍とかも頭から読んで読まなくなる事多々あるので 今日は新しい方をやる 039 Gem Love Part 1 ★ Rubygems plugin basic structure require 'rubygems/command_manager' Gem::CommandManager…

thoughtbot podcast Episode #31

thoughtbot Learn Episode #31 I write everything in Markdown 何度か挑戦しようとして、くじけてきたのをついに実行した。 時間的に通勤時間に聞く以外続けられそうにない。 思ったよりいろいろ聞き取れた ゲストはGeekで色々なことを楽にできるように考え…

taps

gem

今日herokuのデータを操作する機会があって触ったので中を見てみる herokuのdbのデータをpush/pullするときとかに使われている ローカルで違うdb間でデータやりとりするのにも使える #342 Migrating to PostgreSQL - RailsCasts version 0.3.24 rspec走らな…

Starting RubyTapas #001 - #005

I have subscribed RailsCasts over 3 years. I have subscribed Ruby5 over 2 years. But I feel I'm not good at clean coding and programming design. (Actually I realize myself improved to use many tools, gems etc for recent years.) I started t…

落書き

前々から継続的に調べようと思っていた事があったが、全くやってこなかった 習慣化することを目標にするため、メモを残し続けるようにする (体裁を整えようとするとくじけるのでやらない) テーマは 気になるGem RailsCasts Ruby5 RubyTapas 他 たまに英作…