This file contains 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
import scala.util.Random | |
object Kakugen extends App { | |
val arigataiKakugen = Array( | |
"格言1 一日は24時間ある。 今日中という意味は明日の朝までという意味である。", | |
"格言2 プログラムは思った通りに動かない。書いた通りに動く。", | |
"格言3 要求仕様はプログラム完成後に完結する。 基本仕様は完成品を顧客が見てから決定される。 詳細仕様は使用者がプログラムを動かしてから固まる。", | |
"格言4 私は、ソフトウェア設計には 二つの方法があるという結論に達した。 一つは、欠陥がないことが明らかなほど単純にする方法である。 もう一つは、明らかな欠陥がないほど複雑にする方法である。 c.a.r.hoare", | |
"格言5 コードは開発現場で書くんじゃない! 納品先で書くんだ! デバグは納期前にするんじゃない! 運用後にするんだ!!", | |
"格言6 画面は青かった 。 (通信用語の基礎知識 より)", |
This file contains 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
# coding: utf-8 | |
terms = %w(わかんない え? 分かった まじで? うける! おれのコップどこ? おれの充電ケーブルどこ? チケットに書いて ぎゃぼー ぎゃぽー) | |
final_term = "わかんないけどわかった!" | |
(3 + rand(7)).times { | |
print terms.sample | |
print "、" | |
} | |
puts final_term |