Basics¶
This article explains the basic coding guidelines that apply to the different parts of the system. The true power of the ValueA framework lies in the way messages are processed and functionality is split into small services which can be accessed using restful api calls. When developing new applications, always try to split your business logic into logical small services.
For the core languages we use are style guides available, which we tend to follow as close as possible. Development tools such as PyCharm and PHPStorm will help you follow the coding styles easier.
Python¶
For Python code the Python Enhancement Proposals (PEPs) apply. See the Python Developer’s Guide for detailed information.
PHP code¶
PHP code is used for some parts of the frontend system, specifically when developing custom hooks which don’t fit the standards in our framework, like changing the http input data before queuing or functionality that only exists on the frontend of our system. The PSR1 and PSR2 Coding Standard apply.
Front end development (Volt templates, Javascript)¶
When developing frontend/web applications, the core technology used is javascript, using jQuery as primary framework for logic, bootstrap is used for presentation. To template the basic html page, Volt is used, which is part of the Phalcon framework.