Welcome!
Application Programming Interface
Netapps
Applications
Codrut Software installer
Code Writing Policies
Names, conventions and variabiles
Document • By Codrut Software • Last modified 19 March 2026
Variable
When naming variables, the following structure should be used: lowercase variable names separated by underscores. Same for custom variable typesIf the variable is global, It's recomended to prefix the name with the unit name to prevent global scope intersection.
These should be consistent across PHP, C, Pascal, Python, JavaScript code.
let variable_name = 10; int variable_name; var variable_name: integer = 10; int unit_variable1_name;
Constants
Use full case and separated by underscores.
If the constant is global, It's recomended
to prefix the name with the unit name to prevent global scope intersection.
CONSTANT_NAME = "Text here"; UNIT_CONSTANT_NAME = "Text here";
Function, binaries, packages, modules names
function function_name(parameter_1, do_something=10) {
// code
}
Getters & Setters
Getter:
function get_value_name: integer;Getter:
function set_value_name(value: integer); or if procedures available: procedure set_value_name(value: integer);It's not recomended to use put_value_name
Classes
Pascal-style naming. Generally no underscores and uppercase letter for each word.
class ClassName() {
// constructor (and destructor) is first
// ...
function function_name(parameter_1, do_something) {
// code
}
}
APIs
Lowercase with hyphens, no capitalization permitted.
GET /users
POST /users
DELETE /users/{id}
PUT /users/{id}
GET /user/action/delete-user
Exceptions
type
CustomExceptionName = class(TException);
Databases
Use lowercase text and underscores to separate words.
column_name username phone_number
CSS (Cascading Style Sheets)
Standard CSS convention.
/* variabiles */
:root {
--main-color: blue;
--secondary-color: #5555FF;
}
/* classes */
.user-profile { }
.main-header { }
.btn-primary { }
/* IDs */
#user-card { }
#main-content { }
/* pseudo-classes / modifiers */
.btn-primary:hover { }