by shigemk2

当面は技術的なことしか書かない

2013-04-21から1日間の記事一覧

97 Things Every Programmer Should Know 15 Coding with Reason

コードの論理を分かりやすくする術について。 Avoid using got statements, as they make remote sections highly interdependent. Avoide using modifiable global variables, as they make all sections that use them dependent. Each variable should ha…

97 Things Every Programmer Should Know 16 A Comment on Comments

リーダブルコードに通じるものがあるお If it was hard to write, it should be hard to read. Make sure that your comments clarify your code but do not obscure it.

10進法 8進法 16進法

hexadecimal 16進法 octal 8進法 decimal 10進法

複素数

complex numberを複素数といい。 imaginary poart を虚数部という。1 + 2i が複素数で、2iが虚数部。

対話によるCommon Lisp入門 38 member その3

= は数が等しいかどうかを調べるものなので、 シンボルと比較するとエラーになる [1]> (defun member$ (item list) (if (null lst) nil (if (= item (first lst)) lst (member$ item (rest lst))))) MEMBER$ [2]> (member$ 'tea '(juice tea coffee)) *** - …