Answer the question
In order to leave comments, you need to log in
How to properly comment PHP and JS code, are there any standards described somewhere?
The customer wants the development to be well documented :)
Tell me, are there any formal standards in this regard?
For example, you often see something like this in the code of frameworks:
/**
* Resolve the element's value.
*
* @param mixed $resource
* @param string|null $attribute
* @return void
*/
Answer the question
In order to leave comments, you need to log in
For js I use this method , for php I think it will work too. Well, so, the code should be self-documenting, the correct names of variable functions, in BEM css.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question