記述能力の高い Clojure.
よくあるプログラミングの演習問題を Clojure で解いてみます.
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
$ hive -S -e ‘select * from tbl_a limit 100′ > hive_result.txt |
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
# Simple: | |
# a --> b | |
# --> c --> d | |
# --> d | |
graph1 = { | |
"a": ["b", "c", "d"], | |
"b": [], | |
"c": ["d"], | |
"d": [] | |
} |
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
<?php | |
/* | |
* SimpleTestのmockサンプル | |
* SimpleTest version 1.0.1 | |
*/ |
この 作品 は クリエイティブ・コモンズ 表示 - 継承 3.0 非移植 ライセンスの下に提供されています。
- TDDeXchange #TDDeX で作成したTDD練習用の課題です。この課題のライセンスはCC BY-SAになります。この課題に対するフィードバックをもらえると著者は喜ぶのでぜひお願いします。
- mail : kyon.mm at gmail.com
- twitter : kyon_mm
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
% リングのベンチマークを書いてみよう。N個のプロセスからなるリングを作り、1つのメッセージがリングをM回るようにして、 | |
% 合計でN*Mのメッセージが送信されるようにする。さまざまなNとMの値について所要時間を計ってみよう。 | |
-module(message_ring). | |
-export([benchmark/2]). | |
benchmark(N,M) -> | |
RingNodes = for(1, N, fun() -> spawn( fun() -> ring_node() end) end), | |
[FirstRingNode|_] = RingNodes, | |
connect(RingNodes, FirstRingNode), | |
statistics(runtime), |
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を駆使してモデリングしていただくことになった。
日時: | 2025-05-13 |
---|---|
作: | 時雨堂 |
バージョン: | 2025.3 |
URL: | https://shiguredo.jp/ |
言語
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
┌─[getchell][Hapkido][±][master ✓][/usr/local/share] | |
└─▪ brew doctor | |
Warning: Unbrewed dylibs were found in /usr/local/lib. | |
If you didn't put them there on purpose they could cause problems when | |
building Homebrew formulae, and may need to be deleted. | |
Unexpected dylibs: | |
/usr/local/lib/libmacfuse_i32.2.dylib | |
/usr/local/lib/libmacfuse_i64.2.dylib | |
/usr/local/lib/libosxfuse_i32.2.dylib |