Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 12-08-2009
Member
 
Join Date: Apr 2009
Posts: 65
Naming convention used for layout of Program

What naming convention one should use for his layout of a program, because there are many naming convention any of the programing language provide, so provide me basic convention that would be widely used and that would be necessary.
Reply With Quote
  #2  
Old 12-08-2009
Member
 
Join Date: Nov 2008
Posts: 41
Re: Naming convention used for layout of Program

Naming conventions for java make programs more understandable by making them easier to read. They can also give information about the function of the identifier-for example, whether it's a constant, package, or class-which can be helpful in understanding the code.

Packages
The prefix of a unique package name is always written in all-lowercase ASCII letters and should be one of the top-level domain names, currently com, edu, gov, mil, net, org,

Classes
Class names should be nouns, in mixed case with the first letter of each internal word capitalized. Try to keep your class names simple and descriptive.

Interfaces
Interface names should be capitalized like class names.
Reply With Quote
  #3  
Old 12-08-2009
Member
 
Join Date: Apr 2008
Posts: 88
Re: Naming convention used for layout of Program

When designing a database it's a good idea to follow some sort of naming convention. Table names should not contain spaces, words should be split_up_with_underscores.

Namespaces

Use CompanyName.TechnologyName as root. If you don't have a company, use your domain name or your own initials. Note that any acronyms of three or more letters should be pascal case (Xml instead of XML) instead of all caps.

Classes and Structs
no underscores or leading "C" or "cls". Classes may begin with an "I" only if the letter following the I is not capitalized, otherwise it looks like an Interface.

Microsoft SQL Server databases in some examples, but can be used generically with other RDBMSs like Oracle, Sybase etc. too.
Reply With Quote
  #4  
Old 12-08-2009
Member
 
Join Date: Oct 2008
Posts: 167
Re: Naming convention used for layout of Program

A design decision to put the secondary content (#right-col) to the right of the main content area (#left-col) completely invalidates the document?s model. The "ux" naming convention for controls is something I have added and found to be helpful. It is not based on any official standards, but instead based upon a multitude of projects by my teams and others, as well as on-line discussions on the topic.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Naming convention used for layout of Program"
Thread Thread Starter Forum Replies Last Post
after installing Windows 8.1 preview, keyboard Layout automatically switches to US-layout Ebadaah Operating Systems 3 31-07-2013 11:26 AM
Elevated CPU convention every time, yet after format The Picture Hardware Peripherals 6 18-10-2011 07:23 AM
L.A. Noire game, naming convention for Title updates Lol$prakash Video Games 2 07-10-2011 12:03 AM
drive naming issues... Jarredfw Hardware Peripherals 7 16-09-2009 06:17 PM
Naming Conventions in java Nihar Khan Software Development 3 12-08-2009 02:44 PM


All times are GMT +5.5. The time now is 10:00 PM.