Skip to content →

Code

This page lists all the publicly available pieces of code that I produced.

Variable naming

I hereby stipulate the following rules to name variables:

  • Variable names should be informative. Example: rt for reaction time.
  • They should be short. Therefore I will use capitalisation to separate the variable name instead of for instance an underscore. Example: dataMean.
  • The variable should start with a lower case later.
  • If the variable is in some way nested, the name should indicate that by a decreasing hierarchy. Example: dataSub1Mean.
  • I will use the following abbreviations for singular and plural form:
    • acc = accuracy
    • agg= aggregated
    • comb = combination/combined
    • con = condition
    • conf = confidence
    • dim = dimension
    • disp = display
    • err = error
    • img = image
    • iter = iteration
    • len = length
    • lin = linear
    • logi = logistic
    • num = number
    • obj = object
    • pos = position
    • quad = quadratic
    • rect = rectangle
    • resp = response
    • rt = reaction time
    • str = string
    • sub = subject
    • subNo = subject number
    • tex = texture

These are variables I used and then changed according to convention:
numberObjects -> numObj             
sub_SS_foils    -> foilSsSub