| 日時: | 2016-09-21 |
|---|---|
| 作: | @voluntas |
| バージョン: | 1.0.1 |
| url: | https://voluntas.github.io/ |
2016 年 6 月 24 日に行われる BPStudy の発表資料です
| 日時: | 2016-09-21 |
|---|---|
| 作: | @voluntas |
| バージョン: | 1.0.1 |
| url: | https://voluntas.github.io/ |
2016 年 6 月 24 日に行われる BPStudy の発表資料です
| #!python | |
| """Bootstrap distribute installation | |
| If you want to use setuptools in your package's setup.py, just include this | |
| file in the same directory with it, and add this to the top of your setup.py:: | |
| from distribute_setup import use_setuptools | |
| use_setuptools() | |
| If you want to require a specific version of setuptools, set a download |
http://tddbc.doorkeeper.jp TDD Boot Camp 2013-07 -- TDDBC で、偶然にもロンドンから来日していたSteve Freeman氏を招くことができた。ちなみに本当に偶然の来日で、その日の夕方にご家族と隅田川の花火を見る予定だったらしい。貴重な時間である。
20分ほど講演していただき、さらに参加者と一緒にペアプロ課題に挑戦してもらった。しかもペアプロでっていう貴重な体験をさせてもらったので、そのことについてまとめたい。
Steve Freeman氏は書籍 "Growing Object-Oriented Software, Guided by Tests" (邦訳「実戦テスト駆動開発」)の共著者の一人で、Javaのモックフレームワーク "JMock"の開発者の一人。当然、自動販売機の課題にもJMockを駆使してモデリングしていただくことになった。
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| /*! | |
| * @brief GNU拡張機能を用いたラムダ関数を実現するマクロ | |
| * | |
| * gccもしくはC++0x対応コンパイラでのみコンパイル可能<br> | |
| * トップレベルで用いることはできない |
| type HttpStatus = | |
| { Code: string; Message: string } | |
| override self.ToString () = sprintf "%s %s" self.Code self.Message | |
| let httpStatus code message = { Code = code; Message = message } | |
| let httpStatusList =[ | |
| httpStatus "100" "Continue"; | |
| httpStatus "101" "Switching Protocols"; | |
| httpStatus "102" "Processing"; |
| organization := "net.seratch" | |
| name := "sandbox" | |
| version := "0.1" | |
| scalaVersion := "2.9.1" | |
| libraryDependencies ++= Seq( | |
| "junit" % "junit" % "4.9" withSources(), |
| open Microsoft.FSharp.Compiler.CodeDom | |
| open System.Reflection | |
| open System.CodeDom.Compiler | |
| type EvalResult<'a> = | |
| | CompileError of string seq | |
| | RuntimeError of exn | |
| | Success of 'a | |
| let eval args expr = |