java - naming conventions for constants and their units -


should names of constants incorporate units represents, or better handled short comment? constant names can become lengthy. example, can choose between:

// seconds spent displaying logo public static final float logo_display_timer = 1.5f; 

and

public static final float logo_display_timer_in_seconds = 1.5f; 

i've been reading clean code, places great emphasis on accurate naming conventions, wasn't sure specific case.

in opinion - if there no code conventions company or sth. that, take , feel comfortable. main point consistent , use every time same style.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -