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
Post a Comment