0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

リーダブルコードで出てきた「僕らは〜と呼んでいる」メモ

Posted at

ただのメモ

※ほこりをかぶっていた下書きです
抜けてる箇所、間違っている箇所等ありましたらコメントまで

用語系

ループイテレータ

ループで使われるi, j, kなどの変数

for i in range(10):

off-by-oneエラー

「以上」「超過」「以下」「未満」の境界条件判定に関するエラー

  • a > ba >= bの間違いによるエラーとか
  • a < ba <= bの間違いによるエラーとか

プロトタイプ継承パターン

  • 既存のオブジェクトを他のオブジェクトでも使えるようにする
  • オブジェクト単位ではなく、ファイル単位でも使われる
  • 継承元のオブジェクトやファイルを引数としてとったりする

制御フロー変数

  • プログラムの実行を制御するための変数
  • プログラムに関係のあるデータは含まれない
done = False

while not done and /** (条件) */ :
	...
	if ...:
		done = True
		continue
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?