Code Writing Recommendations

This article contains recommendations for application developers developing Prognoz Platform 9 based components.

The list of articles:

  1. Component Inheritance.

  2. Coding Principles.

  3. CSS Code Requirements.

  4. Component Use Scenarios.

General Requirements

Along with the features described in the articles, there are general development requirements:

  1. The main library PP.js and PP.css must be installed after other additional Prognoz Platform libraries.

  2. A component can be created on creating a class instance by means of "new". A component can be created by creating a class instance by means of "new".

  3. It is allowed to use only public methods and properties. Private methods can change their names or can be deleted.

Agreements on Names

Names of classes, enumerations, enumeration members, fields must correspond to the UpperCamelCase rule. Names of local variables, methods must correspond to the lowerCamelCase rule. Property names in event parameters must correspond to UpperCamelCase.