VS 2008 Naming convention for files and folders in ASP.NET-VBForums
Results 1 to 3 of 3

Thread: Naming convention for files and folders in ASP.NET

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2007
    Posts
    36

    Question Naming convention for files and folders in ASP.NET

    Folks,

    Is there a recommended naming convention for files and folders in ASP.NET? If so, what it it? Is it CamelCase?

    So far, I've found this thread on the native ASP.NET forum. But it doesn't sound very helpful. Some people say "meh, naming convention is not that important", others reply "no, naming conventions are important" but don't say what the recommended convention for ASP.NET actually is.
    Of course, I can use standard VB notation for variables and method names inside the files.

    Any suggestion, insight or reference is really appreciated!

    Cheers,
    - Nick

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    31,268

    Re: Naming convention for files and folders in ASP.NET

    The actual used convention isn't important... you can camel case, sentence case, init case, or no case. The key is consistency. As a matter of habbit working on Unix/Linux based servers, which are case-sensitive, my personal "standard" is everything is lower cased - files and folders. Then I have my FTP client to force lower-case on any file I upload. Consistency, consistency, consistency. Pick a convention and stick to it. At the same time, don't be afraid to change if you find it doesn't work (I used to camel case until I got bit by the case after deploying to a server).

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,385

    Re: Naming convention for files and folders in ASP.NET

    The key is consistency
    Yep, the other point i would make is readability!!

    i have often picked up applications written by others and i cant for the life of my understand why people refuse to give variables decent names.

    Name your variables after what you are using them for not something generic or horrid abbreviation

    e.g Your data is - 'Total Costs Including Vat' then name your variable TotalCostsIncludingVat NOT totcosvat or something else.
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.