Best Coding Practices - Naming Conventions

Naming Conventions

Use of proper naming conventions is considered good practice. Sometimes programmers tend to use X1, Y1, etc. as variables and forget to replace them with meaningful ones, causing confusion.

In order to prevent this waste of time, it is usually considered good practice to use descriptive names in the code since we deal with real data.

Example: A variable for taking in weight as a parameter for a truck can be named TrkWeight or TruckWeight, with TruckWeight being the more preferable one, since it is instantly recognisable. See CamelCase naming of variables.

Read more about this topic:  Best Coding Practices

Famous quotes containing the words naming and/or conventions:

    See, see where Christ’s blood streams in the firmament!
    One drop would save my soul—half a drop! ah, my Christ!—
    Ah, rend not my heart for naming of my Christ!—
    Yet will I call on him!—O, spare me, Lucifer!—
    Where is it now? ‘T is gone; and see where God
    Stretcheth out his arm, and bends his ireful brows!—
    Mountains and hills, come, come and fall on me,
    And hide me from the heavy wrath of God!
    Christopher Marlowe (1564–1593)

    Languages exist by arbitrary institutions and conventions among peoples; words, as the dialecticians tell us, do not signify naturally, but at our pleasure.
    François Rabelais (1494–1553)