Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
他の誰かが作成した検索プログラムやストアドファンクションを 修正させられる時に、 検索対象のテストデータとか プログラムに渡す検索パラメータのテスト用データを 必要なパターン分作成してテストするのだけど、 抜け漏れのないテストデータを簡単に生成できないものかと調べていたら、 PythonにもClojureにも組み合わせリストを作成してくれるライブラリがあった。 組み合わせデータを作成する 必要なパターンの組み合わせデータを自前で作成するのはなかなかめんどくさい。 例えば商品検索機能のテストデータを作成する際、 「商品データ」が 属性として「有効区分(0:無効、1:有効)」と「表示区分(0:非表示、1:表示)」を 持っていて、「有効」で「表示」の商品のみ検索結果に含まれる、 ということを確認したい場合に テストデータとしては「有効区分」2パターンと「表示区分」2パターンの 組み合わせで下記の
In this series we take an in-depth look at transducers. Transducers - a portmanteau of "transform reducers" - are a new functional programming concept introduced into the Clojure programming language. Although transducers are actually pretty straightforward in retrospect, wrapping your brain around them, especially if you're not already a competent Clojureist, can be challenging. In this series, w
最近とある理由でClojureに触りました。 8年近くCやPythonなどの手続き型言語を使ってきた者にとって,最初は「関数型言語」に戸惑いもありましたが,一方で,Pythonが関数型言語の良い点をたくさん取り入れていることにも気づきました。 そこで,Pythonでどこまで関数型言語ライクなことができるか,Clojureのサンプルを参考ししつつ試していきたいと思います。 今回はayato-pさんが公開されている「Clojure の日本語ガイド」の イディオム集 の内容をPythonで実装してみます。 手元のPythonのバージョンは3.6.1です。 複数のコレクションの要素を index ごとにまとめる
gist.md Haskell vs Clojure The JSON data is in the following format { "Genesis": { "1": { "1": "In the beginning..." , "2": "..." }, "2": { ... } }, "Exodus": { ... }, ... } In JSON, keys aren't ordered and must be strings. The goal is to parse the JSON file, order everything correctly (which means parsing the keys into integers), and produce an array that looks like this: [ ("Genesis", 1, 1, "In
Node.js - Async non-blocking event-driven JavaScript runtime built on Chrome's V8 JavaScript engine. Cross-Platform - Writing cross-platform code on Node.js. Frontend Development iOS - Mobile operating system for Apple phones and tablets. Android - Mobile operating system developed by Google. IoT & Hybrid Apps Electron - Cross-platform native desktop apps using JavaScript/HTML/CSS. Cordova - JavaS
PLEAC - Programming Language Examples Alike Cookbook Summary Following the great Perl Cookbook (by Tom Christiansen & Nathan Torkington, published by O'Reilly; you can freely browse an excerpt of the book here) which presents a suite of common programming problems solved in the Perl language, this project aims to implement the solutions in other programming languages. If successful, this project m
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く