2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vue基礎:コーディングスタイル

Posted at

コーディング規約ですが、JAVAでは歴史長いし、守ったらメリットが多いです。
特に可読性、保守性はよくなります。

Vue.js、Node.jsなどもeslintなどのツールでコーディングスタイルも統一できるようになりました。

有名な【コーディングの心得5か条】

・見やすさを重視せよ
・ネーミングはわかりやすく
・サンプルを鵜呑みにしない
・同じコードを二度書かない
・役割は一つに

JAVAのコーディング規約

Javaコーディング規約
https://future-architect.github.io/coding-standards/documents/forJava/Java%E3%82%B3%E3%83%BC%E3%83%87%E3%82%A3%E3%83%B3%E3%82%B0%E8%A6%8F%E7%B4%84.html

同じようにJavascriptもいくつかのコーディングスタイルがあります。

Airbnb JavaScript スタイルガイド

Airbnb JavaScript スタイルガイド
https://mitsuruog.github.io/javascript-style-guide/

Felix's Node.js Style Guide

Felix's Node.js Style Guide
http://popkirby.github.io/contents/nodeguide/style.html

Vue.jsのスタイル

スタイルガイド: https://jp.vuejs.org/v2/style-guide/index.html

prettier、eslintなどのチェッカー、フォーマッタのツールを設定し、スタイルを統一しましょう

以上

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?