Created
June 3, 2018 00:13
-
-
Save apple502j/2337e47db7821e6681f803b15a99577b to your computer and use it in GitHub Desktop.
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
・プログラミング用ファイル名の付け方 | |
基本、英数字・-・_のみにする。 | |
小文字のみ、必要な場合はスネークケース | |
実行用ファイルは「main」またはGitHubレポ名、HTMLなら「index.html」、設定用ファイルは「settings」 | |
単体で実行できないもの(css,pngなど)は別フォルダ | |
もっぱらLintやGitなどに使うものは親フォルダ | |
HTMLの拡張子は.htmlで統一し、.htmは使用しない | |
.batは簡易プログラム、.cmdは複雑なプログラム | |
・変数/関数名 | |
基本キャメルケース(言語問わず)の頭を小さくしたもの。 | |
PEP8違反なんて気にしない。(pylintに例外つけよう!) | |
document.getElement~系の返り値はclass/id名と同じ変数 | |
特殊用法 | |
・C+数字 もっぱらforループをまわすだけのカウンター | |
・i カウンター | |
・n, m 数値系。 | |
・s, str, text 文字列。textは主に引数 | |
・e JSのaddEventListener経由で呼び出される関数の引数 | |
略語 | |
・chk check | |
・req request | |
例: | |
req=sendReq().decodeTo(webApi.encoding) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment