Most Powerful Open Source ERP

Guideline Variable Name Is Lowercase Separated By Underscore

Independent of language used.
  • Last Update:2017-04-06
  • Version:001
  • Language:en

Variable Name Is Lowercase Separated By Underscore

Variables can be defined within a Python or JavaScript method or function, within a python script Zope object, within a page template Zope Object or within a DTML Method Zope Object. Variable shall be not abbreviated word in English and shall not conflict with python or Zope keywords.

Good Example:

base_price
attribute_name
document
movement

Bad Example:

azerty   # not a word
doc      # abbreviation
object   # python reserved keyword

Good Example:

var delivery_note = 1;

Bad Example:

var deliveryNote = 1;