inohilog

/var/log/inohiro.log

日記

  • RubyKaigi 2日目
    • 聞いたセッションについて

jpmobileのベストプラクティス

たのしいRails

  • http://rubykaigi.org/2011/ja/schedule/details/17M03
  • もっとも楽しみにしていたセッションかも
  • Rails の開発について
    • 朝起きたら git log を読むとか
    • great social corder になるための tips とか
      • Read Rails
      • Read git log
        • how to improve a product, test a software, write good commit comment
        • check remarkable people(twitter, github, blog)
      • Good commit
        • atomic, with tests, with a short commit comment, what
      • English
      • Live on the edge (try edge version)
      • docrails
      • share your monkey patch(instead write a blog post, push to upstream)
      • start from a gem
      • write a good comment
      • attend RailsConf

Use rails_best_practices to refactor your rails codes

5 years know-how of RSpec driven Rails app. development.

Efficient JavaScript integration testing with Ruby and V8 engine.

MacRuby on RailsMacRubyから見たcRuby〜

The Gate

CRubyのロックデザインの解説および改善案について

Lightning Talks 1

  • 以下、メモ
config/initializer/

include jpmobile::ViewSelecter

disable_mobile_view!

** testing
request.mobile?
assert_template

* summary
Session ID Management
Encoding
View Selection
Email
Testing/Issues

* たのしいRails
Social Coding

pro tips: great social corder
1) Read Rails
Read git log every morning
2) 

install hub
g clone rails/rails
b pull
g log

Rails 3.2/4 will be like

How to improve a product/ test a software/ write good commit comment

Check remarkable people
- Stalk them online
- Github
- twitter
- blog

wycats
carllerche

3) Good commit
- atomic
- with tests
- with a short commit comment telling
- what

GitHubby

4) English
know these 26 letters
aware of the accents
Rails Casts

5) Live on the edge
- try edge version

6) docrails
- rails guides
$ git clone lifo/docrails
s/a/an/g

7) share your monk patch
Push it to the upstream

instead write a blog post, push to upstream

8) start from a gem
use edge gem

9) write a good comment
10) Attend RailsConf

BDD, VDD

* BDD style unit testing
@ihower

Unit test, Custom test(acceptance test)

Regression test 

Minitest/Spec

caveat
rspec - let, its

Bacon 

focus on the expected ~

* rspec driven rails app. development
達人出版会

write model test,
Cucumber

@railstokyo

** Model unit testing
setup model

multi strategies for multi data types

*** 3 Data type
- Master Data
- Resource Data
- Event Data
-- Represent relatopnship betw resources

*** 3 data generate
- Fixture
-- good speed
-- less maintainability, flexibility
- Fixture Replacement
-- fabirication gem, factory girl
-- frexible, powerful but difficult to use correctly, slow
- before/setup block

- fixture => Master Data
- fixture replacement => Resource Data
- before/setup => Event Data

** less DRY
share your testing context

- naming each
let
-- name each focusing object
-- build strategy does not matter

- naming them
-- shared_context
-- include context

** Conclusion
- write model unit test
- use multi strategies for multi types of data
- share your testing context(shared_context)

The rspec book.

* V8
Headless Browser
- HtmlUnit(Java)
- Zombie(node.js)

Mustang nu7hatch
RubyRacer

# ir_b

Mike - Headless Chicken

* MacRuby on Rails
自分 > 家族 > 社会