- 言語ごとにスケルトンを用意しておくと、それをダウンロードしてからスタート出来る。
- IDEの違いが一番のネックになってくる。
- キーバインドが違っているとペアが出来ない可能性がある。
- GitHubなどで共有するのは妥当な解決策だが、参加者層によっては難しい。
- 初心者同士のペアを作らないのは、良かった
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'convert start.' | |
noise_option="$1" | |
if [ -z $noise_option ]; then | |
noise_option=0 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'convert start.' | |
noise_option="$1" | |
if [ -z $noise_option ]; then | |
noise_option=0 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package chapter11 | |
import org.junit.Test | |
import static org.hamcrest.CoreMatchers.is | |
import static org.junit.Assert.assertThat | |
class MethodExtractExampleGroovyTest { | |
@Test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package chapter11 | |
import org.junit.Test | |
import static org.hamcrest.CoreMatchers.* | |
import static org.junit.Assert.assertThat | |
class DelegateObjectSampleTest { | |
@Test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EmployeeBean { | |
private boolean forManagementMode; | |
public String getFullName(String userCode) { | |
Employee employee = findBy(userCode); | |
if (employee.middleName == null) { | |
return employee.lastName + " " + employee.firstName; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ast | |
import groovy.transform.* | |
@ASTTest(value = { | |
def owner = node.declaringClass | |
assert owner.fields.any { it.name == 'x' } | |
}) | |
@Field int y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* http://d.hatena.ne.jp/nowokay/20130501#1367357873 | |
* 上記の記事をGroovyでやってみました。 | |
*/ | |
def enclose = { s -> "[" + s + "]" } | |
assert "[foo]" == enclose.call("foo") | |
assert "[foo]" == enclose("foo") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile 'org.slf4j:slf4j-api:1.7.5' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply { | |
plugin 'java' | |
plugin 'war' | |
plugin 'jetty' | |
} | |
apply plugin: 'maven' | |
apply { | |
plugin 'idea' |