Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Projects/Package Naming Convention? [closed]

Tags:

java

c++

project

I just know only naming convention of variable, constant, method... but I don't know naming convention of project and package. Anybody can help me ? Addition, name of project should have white space ? Thanks very much !

like image 497
sharaidana Avatar asked Sep 07 '25 15:09

sharaidana


1 Answers

In Java, package names are lowercase, no spaces. See http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html

You probably don't have to be so fussy with the project names. My recommendation is PascalCase, although I've seen some like this one that are camelCase (which I find odd). Sun just uses capitalized phrases for their project names.

like image 74
Robert Harvey Avatar answered Sep 10 '25 04:09

Robert Harvey