Skip to content

Instantly share code, notes, and snippets.

@bgnori
Created August 8, 2012 00:02
Show Gist options
  • Save bgnori/3290742 to your computer and use it in GitHub Desktop.
Save bgnori/3290742 to your computer and use it in GitHub Desktop.
「あるプログラミング言語を一通り触る」という目標を達成するのに必要な課題の集合はなにか?
"Hellow World"
まずはこれ
標準出力、実行環境
"fizzbuzz"
if文, mod
制御構造、リスト
与えられた配列の奇数番目の要素の合計を求めるメソッドf(xs)の実装
f([0, 1, 2, 3, 4]) = 1 + 3 = 4
f(['a', 'b', 'c', 'd', 'e']) = 'b' + 'd' = 'bd'
ruby [0, 1, 2, 3, 4].each_with_index.select{|v, k| k.odd?}.map{|v,k| v}.inject{|x, y| x+y}
"fib"
フィボナッチ。末尾再帰
"アッカーマン関数"
"竹内関数"
tarai
http://ja.wikipedia.org/wiki/%E7%AB%B9%E5%86%85%E9%96%A2%E6%95%B0
brainf**k処理系の実装
副作用の扱い/辞書
LRUなキャッシュを作る
"日本語の扱い"
もっと広範囲にCJKとかでもよいが、分からんのでpass.
"binaryの扱い"
bitchunkを与えられた時にどのように操作できるか?
探索
ソート
Tree
”objectの整列化"
正規表現
parser
platformによる違い(Linxu, Win, Mac)
=> どういうコードで?
pathの操作関係
GUI
".soの呼び出し"
.soでかかれた外部モジュールとのやりとり。
"Echo server"
TCP/IPでのエコーサーバ
"Fork"
プロセスのフォーク
"Database (SQL)"
"Database (not SQL)"
"urlopen"
指定したURLを取得する。
"webserver"
framework を使う
"twitter bot"
twitterのbot
JSONを理解する
Oauth
GUI binding
tkとかQtとかwxとか
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment