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.

Link to comment
Share on other sites

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • 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.