- 2人1組になってプログラムを書く
- 書く人(ドライバー)と、横で考える人(ナビゲーター)は随時入れ替える
- コーディングするときは必ず何を書こうとしているのか喋りながら書く
- 15分の作業が終わる前にgit commitして、速やかに次のペアに席を譲る
- コーディング中のペア以外の人達は以下の様に何でも良いのでその場で口を出して良い。ただし、質問が優先されるべき。
- 技術的な質問(このメソッド何なの?みたいな)
class HogeScreen < TabScreenBase | |
tab_icon icon: "fuga_image" | |
end |
# -*- coding: utf-8 -*- | |
class AppDelegate | |
def application(application, didFinishLaunchingWithOptions:launchOptions) | |
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) | |
@window.rootViewController = UINavigationController.alloc.initWithRootViewController(TestController.alloc.init) | |
@window.makeKeyAndVisible | |
end | |
end | |
class TestController < UITableViewController |
(require 'motion-mode) | |
(add-to-list 'ac-modes 'motion-mode) | |
(add-hook 'ruby-mode-hook 'motion-recognize-project) | |
(define-key motion-mode-map (kbd "C-c C-c") 'motion-execute-rake) | |
(define-key motion-mode-map (kbd "C-c C-o") 'motion-dash-at-point) | |
(push '("*motion-rake*" :position bottom :height 10) popwin:special-display-config) | |
(add-to-list 'auto-mode-alist '("Guardfile" . ruby-mode)) | |
(add-to-list 'auto-mode-alist '("Rakefile" . ruby-mode)) | |
(add-to-list 'auto-mode-alist '("Gemfile" . ruby-mode)) |
class GithubScreen < PM::WebViewScreen | |
include SingletonClass | |
def on_load | |
open_url 'http://github.com' | |
end | |
end |
module SingletonClass | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
module ClassMethods | |
def new | |
super | |
instance | |
end |
def callback_caller(&block) | |
p block_given? | |
callback_caller2 do | |
p block_given? | |
block.call if block_given? | |
end | |
end | |
def callback_caller2(&block) | |
block.call |
module MethodCallerLogger | |
module ClassMethods | |
LOG_FORAMT = "%s at %s:L%s" | |
def parse_caller(_caller) | |
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ _caller | |
file = $1 | |
line = $2.to_i | |
method = $3 | |
[file, line, method] |
use strict; | |
use warnings; | |
use Test::More; | |
use Test::More::Hooks; | |
subtest "xxxxxxxxxxx" => sub { | |
my $subject; | |
before { $subject = Foo->new; }; | |
after { undef $subject; }; |
use strict; | |
use warnings; | |
use Test::Pretty; | |
use Test::More; | |
use Test::Warn; | |
my $class; | |
BEGIN { | |
$class = "Bowling::Scorer"; |