-
Notifications
You must be signed in to change notification settings - Fork 4
File Naming Conventions
← Previous topic: Coding Conventions | Next topic: Directory Naming →
This memo describes conventions developed in the CIL for the naming of variables and program files. This strategy was developed as a result of much wasted time trying to guess what filenames might be, for example findxyz, or findXYZ, or Findxyz or Find_xyz, etc. By having predictable standards much time is not wasted.
-
Names should be long enough to be descriptive but not so long that it becomes really painful to type.
-
Names should give at least enough information about what the function does that the name can be used to find it.
-
Matlab .m files should have a short comment at the top of the file that will describe the function in reasonable detail when you type “help fName” (where fName is the actual file name). Non-.m functions should have a .m counterpart with this comment.
-
Names are capitalized based on the following hints: a. all letters lower case, except: b. acronyms are capitalized (e.g. DB, FOV) c. first letter of second or following words capitalized. d. no underscores.
-
By convention, some variables are expected to be capitalized in function names, for example XYZ and UV
Examples: parseFilename, findArgusFiles, myFavoriteVariable
Examples: DBGetCameraByID, findUV. (DB stands for database in CIL routines, UV is caps by convention)
Examples: DuckGetTides (Duck is a proper noun)
← Previous topic: Coding Conventions | Next topic: Directory Naming →
CIRN
Wiki Home
CIRN Website
CIRN Research and Workshops
CIRN Monthly Webinars Existing Monitoring Stations
Sampling Goals
Pixel Resolution
Fixed Mounting Platforms
Temporary Towers
FOV and Lenses
Installation Design
Cookbook
Data Processing
Understanding Image Geometries
Photogrammetry
Intrinsic Calibration
GCPs
Extrinsic Calibration
File Naming
Directory Naming
Time Conventions
Common Variable Names
Parallel Processing Issues
Etc
GitHub Help
GitHub Cheat Sheet
CIRN repository help
GitHub Best Practices and GuidelinesGitHub Repository Structure
GitHub Workflow Overview
Using Teams & Roles
Issues
Testing & Review
Code Requirements
General Guidance
Admin
Software Development Life Cycle