Jump to content

POLL: Function and Variable naming conventions, which do you use and why?


alexweber15

What naming convention do you use?  

19 members have voted

  1. 1. What naming convention do you use?

    • camelCase for functions AND variables
      9
    • lowercase for functions AND variables
      0
    • lowercase + underscores functions AND variables
      3
    • camelCase for functions, lowercase for variables
      1
    • cameCase for functions, lowercase + underscores for variables
      4
    • lowercase for functions, camelCase for variables
      0
    • lowercase for functions, lowercase + underscore for variables
      0
    • lowercase + underscores for functions, camelCase for variables
      0
    • lowercase + underscores for functions, lowercase for variables
      2


Recommended Posts

the reason you have to follow naming conventions is that simply, web apps once written are built using a search and replace on files that are generic definitions, eg the Model and the View and teh controller for a one to many relationship is generic i do a search and replace on the name of the item, wheras the relationship is the same for both EG. job>user and group>user  therfore the software are generic u just need to change the name.

 

Doing a search and replace on a file to make a new interface from generic file means u have to preserve the old naming conventions unless u whant to rewrite the whole things WHICH IS NOT WORTH IT in teh big picture.

  • Replies 51
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.