/AnvilHackDice

On that pebble thing

Primary LanguageC

Naming Scheme

Example of a possible Naming Scheme which is to be decided at the pub.

Images/Resources

File name:

 >> ScreenName-screenobject.png

  >> e.g Home-Background.png
  
  >> e.g DiceShow-Outline.png

Identifier:

 >> First 5 characters of LETTERSOFSCREEN_OJECT

   >> e.g HOME_BACKG

   >> e.g DICES_OUTLI

Script files

Functions:

 >> funFunctionName.c

 >> e.g funTextUpdatec.

Screens

 >> scrScreenName.c

 >> e.g scrHome.c

File Containing data such as numbers

 >> datNameOfDataList.c

 >> e.g datAppUUID.

Variable Naming Conention

> Its all about that Hungarian Notation!!!

  >> Prefix variables with their type i.e.
  
    >>> The string for text to print would be szTextToPrint
    
    bBusy : boolean
    
    chInitial : char
    
    cApples : count of items
    
    dwLightYears : double word (Systems)
    
    fBusy : float (or flag)
    
    nSize : integer (Systems) or count (Apps)
    
    iSize : integer (Systems) or index (Apps)
    
    fpPrice: floating-point
    
    dbPi : double (Systems)
    
    pFoo : pointer
    
    rgStudents : array, or range
    
    szLastName : zero-terminated string
    
    u16Identifier : unsigned 16-bit integer (Systems)
    
    u32Identifier : unsigned 32-bit integer (Systems)
    
    stTime : clock time structure
    
    fnFunction : function name