One of the best programming skills every programmer needs to have is to follow the proper naming conventions of the application and also do proper documentation of the changes they are making. Microsoft provided some naming conventions to follow for Dynamics NAV and please check the below link for more information
I have seen several times even a very good programmer fails to follow these simple naming conventions. I believe that by following these simple rules not only helps the programmer who is doing programming but also other developers to understand the code easily, incase they have to support it later.
One trick I always use for naming variables especially for record or codeunit variables is if I am not sure what would be the name I have to use for my variable, then I will go and check in standard objects if that record or codeunit was used how it was named.
For example what do I name the variable if I have to declare a record of subtype Sales Header table, in standard objects most of the time if you notice it will be named as SalesHeader and if you have to declare multiple then use SalesHeader2, SalesHeader3….. and so on.
One other important naming convention is to always use Temp before variable name if it is a temporary record.
For example: for the same sales header record variable if I set that as temporary then I use the variable name as TempSalesHeader
You have to follow the naming convention when naming functions, records, codeunits, field names, table names, control names and or so on….Please leave your comments, feedback or any suggestions you have for me to improve me my blog and also if you have any questions, feel free to post..