Guidelines

The TAGWALK developers guidelines.

WEB-APP

Resources:

SCSS

Resources:

CSS

General rules:

  • class/attributes naming: snake-case
  • never use !important
  • do not use px unit for bloc size
  • try to avoid use of id attribute when possible, use class instead
  • use rem unit for font-size, margin and padding properties
  • use % unit for height and width properties

Resources:

JS

General rules:

  • data-* attributes are designed to store data
  • prefer import as require see more

Resources:

PHP

General rules:

  • Use PHP 7
  • Write unit and/or functionnal tests when possible and relevant
  • Use type hint in PHP function parameters and return values

Coding Standards:

Resources:

Symfony

Resources: