EasyCFM.COM ColdFusion Forums / Good Coding Tips! / Naming Conventions

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Naming Conventions -- page: 1 2

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

11-19-2007 @ 3:06 PM
Send P.M.
My Gravatar!
Powered by Gravatar
Posts: 1149
Joined: Jan 2007

Nice thread!!

I usually use camel case with everything.

Functions explain what they do in the name:
- validateNumber

Variables are usually a title:
- myString

I never prepend anything with Tbl or ary or whatever because thats what scoping is for!!!

I too upercase all SQL statements to distinguish between wats SQL and whats not.

Column names are always camelCase.

Columns or variables that end with ID are written like this userID.

Date and time fields are prepended with the first letter of the table name. i.e vDateTime

This is terribly set out.. sorry about that hehe.


Notice-Board in NZ has now been released. Check it out at www.notice-board.co.nz !!

PAGE: 1 2

Website Designed and Developed by Pablo Varando.