New programming elements in Arnica script

August 12, 2023 by Igor Lozhkin
Arnica script has been evolved over the years to make programming for web and APIs development more efficient.

Its semantics has been influenced by trends established by Java and C# languages to use long names for variables, objects, classes and other language elements.

Modern programming languages like Golang, Rust and others promote brevity with the idea that shorter names of identifiers produce smaller code which is easier to encompass at first glance.

In Arnica Platform v11, Arnica script has been updated by adding programming elements with shorter names, which are synonyms to existing ones, and can be used interchangeably with each other.

Below is a quick summary of new elements:

oServer - core - root level programming framework object reference 
oSystem - sys - reference to system object
oCMD - cmd - reference to object containing various frequently used functions
oHTML - html - reference to HTML builder object
oXML - xml - reference to XML/JSON builder object
oWeb - web - reference to object implementing web communication
oSQL - sql - reference to SQL builder object
oSQLSession - dbs - reference to database session object
oFileSystem - fls - reference to object containing functions to work with files
oRegistry - reg - reference to object containing functions to work with INI structures
oUserSession - usr - reference to user session object
oError - err - reference to error handler object
oContainer - vars - reference to global variables container object

Many functions now also have their synonyms with sorter names, for example:

oServer.oWeb.GetQueryStringParameter() - core.web.QueryParam()
oServer.oWeb.GetFormParameter() - core.web.FormParam()
oServer.oWeb.EncodeHTTPString() - core.web.HTTPEncode()

Arnica Foundation Technology documentation includes all new programming elements which have been added in Arnica script.