Syoichi's Tumblr: 自分のコーディングルールとその理由
0-9:
・横80列で折り返す。
普段80列で開発してるわけじゃないけど、横に長いコードも見にくいので。・1funtionは30行にする。
これも列指定と同じ意味で。
数字自体はそこまで意味がないけど、長いコードはそれ自体問題がある可能性が高い。・1ファイルは200~300行
「JSを1ファイルに200行以上書くと人間は死ぬ」と言われてるけど、実際はもうちょっと多くても大丈夫。・インデントは8タブ
タブを使う理由は「タブはスペースに一括置換できるけど、スペースはタブに一括置換できない」から。
…
Syoichi's Tumblr: 自分のコーディングルールとその理由
0-9:
・横80列で折り返す。
普段80列で開発してるわけじゃないけど、横に長いコードも見にくいので。・1funtionは30行にする。
これも列指定と同じ意味で。
数字自体はそこまで意味がないけど、長いコードはそれ自体問題がある可能性が高い。・1ファイルは200~300行
「JSを1ファイルに200行以上書くと人間は死ぬ」と言われてるけど、実際はもうちょっと多くても大丈夫。・インデントは8タブ
タブを使う理由は「タブはスペースに一括置換できるけど、スペースはタブに一括置換できない」から。
…
Posted 4 months ago 102 notes
Notes:
-
roesy reblogged this from mokari
-
shotamiura liked this
-
techou reblogged this from 0-9
-
goonew liked this
-
sayucandy liked this
-
wfsp reblogged this from vivit-jc
-
vivit-jc reblogged this from interglacial
-
floriputrezite liked this
-
nobby0-0 reblogged this from syoichi
-
ayu reblogged this from syoichi
-
nacun liked this
-
mgng liked this
-
under-hair liked this
-
echizen-kurage reblogged this from syoichi
-
yoderkeez reblogged this from nasubanana
-
ken0205 reblogged this from syoichi
-
nasubanana reblogged this from kens-notepad and added:
・横80列で折り返す。 普段80列で開発してるわけじゃないけど、横に長いコードも見にくいので。 ・1funtionは30行にする。 これも列指定と同じ意味で。 数字自体はそこまで意味がないけど、長いコードはそれ自体問題がある可能性が高い。...
-
kens-notepad reblogged this from syoichi
-
kfumiya reblogged this from syoichi
-
kfumiya liked this
-
sada123 reblogged this from syoichi
-
mnemonicnoel liked this
-
torimaze liked this
-
asanons liked this
-
asanons reblogged this from syoichi
-
mokari reblogged this from syoichi
-
mno-okr reblogged this from 0-9
-
alfadori reblogged this from syoichi
-
orihika reblogged this from syoichi
-
kkuma reblogged this from syoichi
-
shima-ken liked this
-
overthetetrapod reblogged this from syoichi
-
cr96 reblogged this from syoichi
-
red765 reblogged this from syoichi
-
nullpointerexception reblogged this from syoichi
-
stardance liked this
-
stardance reblogged this from syoichi
-
stardance reblogged this from syoichi
-
dekoi2501post reblogged this from hsmt
-
warufuzaketaichi liked this
-
okanoao reblogged this from hsmt
-
matubuse reblogged this from syoichi
-
juntk liked this
-
hsmt reblogged this from syoichi
-
toqoz reblogged this from 0-9
-
hirokin liked this
-
criff reblogged this from syoichi
-
vitan reblogged this from syoichi
-
nobby0-0 reblogged this from syoichi
-
take-cheeze liked this
- Show more notes