Giter Site home page Giter Site logo

aic2023's Introduction

総合機器センター予約システム

1. 仕様

  1. すべての機能や画面のソースファイルは、srcフォルダ以下に集約する。
  2. 各機能や画面の利用は、必ずindex.phpを通して行う。
  3. 各機能や画面のURLはindex.php?do=fooのような相対URLに統一。

2. コーディング規約

  • PHPタグ:PHPタグは<?php ?>, <?= ?>しか使わない。PHPコードのみの場合、終了タグ?> を付けない。
  • 文字コード:UTF-8 BOM無しに統一
  • 副作用:副作用のあるコードと副作用のないコードを同じフィルにしない。
    • 副作用のあるコードとは、画面出力、設定変更等を行うコードを指す。
    • 副作用のないコードとは、クラス、関数、定数等の記号を宣言・定義するコードを指す
  • 中括弧:クラス、関数の場合は、中括弧を新しい行とする。その他は、開き括弧前に改行せず、閉じ括弧のみ新しい行とする。
  • 改行:PHPファイルの最後に空白行を1行入れる。名前空間のあとに空白行を1行入れる。インデントTabを使わず、スペース4文字とする
  • スペース:制御文のキーワード後にスペースを一つ入れる。関数呼び出し時に丸括弧(開き・閉じ括弧とも)の前後にスペースなし。コンマ「,」の前にスペースを入れず、コンマの後に一つ入れる。
  • クラス名:大文字から始まる StudlyCaps, class KsuCalendar{ }
  • 関数名:小文字から始まる camelCase,function getName($dept_id)
  • 変数・引数名 全て小文字:アンダーバーで単語をつなぐ$first_name
  • 定数名: 全て大文字。アンダーバーで単語をつなぐconst FACULTY_CODE='RS';
  • 行長:強制はしないが、おすすめは80文字以内
  • 文数:同じ行に複数の文を書かない
<?php
include 'foo.php';

class Bar
{
    private $name;
    static const NO_NAME = '名前なし';
    /**
     * setName(): 名前を登録・変更する
     */
    function setName($name=null)
    {
        if (!$name){
            $name = self::NO_NAME;
        }
        $this->name = $name;
    }
}

3. 役割分担

  • PL 井手
  • 申請関連 石橋
  • 空き状況 機器設備 金政

aic2023's People

Contributors

kuhaha avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.