Class naming convention, Reverse domain

The reverse domain naming convention is very unique. This becomes more prominent if we are to distribute our codes, work within a team of developers.

Well, there are still questions that we consider understood and took no further discussion. Today, a friend asked me why most people use the reverse domain name for class package naming convention; com.oinam.util.MyClass.

Well, it is because of the fact that this naming convention is very unique. This becomes more prominent if we are to distribute our codes, work within a team of developers.

Following the defined convention, the prefix of our packages should always be written in all lowercase plain ASCII letters (well, we still don’t have a domain names with $, # or * yet), and they should be of the top-level domain names viz: com, edu, gov, mil, net, org (you are also allowed to use one of the English two-letter codes identifying countries as specified in ISO Standard 3166, 1981).

The other part of the package name is usually the project name or a company’s division, department, machine, login names or commonly used packages like “util”, “arcade”.

Thus, a typical class, say “MyClass” with the class definition “com.oinam.util.MyClass” would have been in the folder “util” which is inside “oinam” which resides on the top folder “com”. Structurily, com > oinam > util > MyClass.as


Don't like it? There are lots of published articles, pick a random one.

oCricket

Brajeshwar posted this article on Tue, Feb 15th, 2005 at 1:39 pm
Categorized under Technology and has the following tags

Prev Article: Valentine

Next Article: Hell Freezes Over


Possibly Related Articles

Archives: Visit the Archives for more articles.

Comments Post Yours

There are no response so far. You can follow any responses to this entry through the RSS feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Post yours

Sidenotes

Quick notes, scribbles, somehow related to this website and to what I do. Or perhaps I'm just plain lazy to make them into a full article.

Fedora 10 Released

Let's talk history! Fedora was created in late 2003 as a Linux based Operating System which gives the users an admittance from anywhere in the world to the most up-to-date free and open source software ...28th Nov, 2008

Top 25 Hottest Indian Web Companies

Note: User submitted article. Personally, I would advise not to take this video seriously. 21st Nov, 2008

India gets ready for Free and Open Source Software

Over the years, FOSS.in has attracted thousands of participants, and the speaker roster reads like a "Who's Who" of FOSS contributors from across the world. FOSS.in is a non-commercial event organised and run entirely by FOSS ...21st Nov, 2008

Cooliris for the iPhone

Cooliris is the browser extension that revolutionizes the way you view media on your computer. It is now available as an application for your iPhone! Cooliris for the iPhone allows you to search the web ...22nd Oct, 2008

Adobe releases Flash Player 10 (Mac, Win & Linux)

Adobe have released the shipping version of Flash Player 10 for Mac, Windows and Linux. More about Flash Player 10 * About Flash Player 10 * Get Flash Player 10 (Official Release version 10.0.12.36) * Download Debug and Standalone ...15th Oct, 2008

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • Ode to Apple Dedicated to Apple - Mac, iPhone, iPod, iTunes, Quicktime, Apple TV and all the awesome softwares for the Apple Mac.
  • AS 2.0 Reference Reference for ActionScript 2.0 Programming Language used in Flash. Primarily stashed here for my own personal reference.
  • Not Safe for Work Ever clicked a link and felt embarrassed with the content in front of your co-workers? Ever caught unaware because the funny link your friend sent was a little beyond funny? Let’s minimize that with NSWF.
  • Downloads All downloads, Free and Open Source.
  • oCricket oCricket is about Cricket and people enthusiastic about it.
  • My Special Job My Special Job is a place where you can look for your weird necessities, strangely superb employees, when your need are more of those hackers, geeks, and ultimate rockstars in the Internet Technology.
  • Forum Oinam’s technical discussion forum where developers and designers can discuss all technical topics.

Download free Brajeshwar Wordpress Theme

Brajeshwar

Brajeshwar I firmly believe in keeping things simple, easy for users and I envison pushing the technical envelop time and again for the betterment of viable commercial and practical applications. More about me.

Brajeshwar's affinity with Adobe

My Photos

More photos on Flickr

Member of 9rules Network

Since its inception on 11th June, 2001, "Brajeshwar" has 903 Articles and 6,149 comments, contained within 21 categories and 1,384 tags.