comments - What's the name of this type of documentation? -


i've seen in several files authors use write this:

// code...  /**  * creates new ship.  *  * @param {number} x x position of ship.  * @param {number} y y position of ship.  *   * @return {object}.  */ function ship (x, y) {  // stuff... }  // more code... 

it's quick example, functions documented this. however, atention on @thing, type of technique? mean, uml , stuff, kind documentation pattern/standard develop software? if so, can find it? , advantage when implementing it? thank's!

it use of code conventions , best practices. @param meaning parameter in case. used team development scenarios etc, both , team understand code doing.

there many different conventions different companies/programming languages if take @ examples below.

java

c++


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -