Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 503839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:26:06+00:00 2026-05-13T06:26:06+00:00

I have never understood what is the ideal way to name a project, package,

  • 0

I have never understood what is the ideal way to name a project, package, class. I do it in a random way which doesn’t look professional at all. I know the class name should start with a capital alphabet. But what I don’t really have trouble with is finding the names that are suitable and look professional. lets consider this example. If I am writing a program for fibonacci series i give names like this:

project name = fibonacci_project
package name = org.fib.code1
class name = Code1

Doesn’t look neat right? How would you do it ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:26:06+00:00Added an answer on May 13, 2026 at 6:26 am

    There are some tips about naming:

    1. As you said classname have the capitalization of first letter of every word, eg. LongClassName
    2. Sun always preferred long names that explain clearly the meaning of the class (think about DefaultTableModel). Code1 is definetely not right, maybe FibonacciCalc or something that contains Fibonacci would fit better.
    3. Preprend Abstract if it’s an abstract class
    4. Append Impl if it’s an implementation of a particular interface
    5. Package names should start with org, com, it, etc (usually it was the backward URL of project repository or the nick of the coder)
    6. You should split your packages according to functionality, your example is really simple so there is not a way to do it.

    Think about something more complex in which you have:

    org.package.gui
    org.package.core
    org.package.extensions
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have never found a neat(er) way of doing the following. Say I have
Just trying to understand that - I have never used it before. How is
I have never done any Windows coding and I would like to give it
I have never programmed a gadget for Vista or Seven, but I would like
I have never thought about until recently, but I'm not sure why we call
I have never used Perl, but I am really impressed by the ack ,
I have never made a blog before. I am proficient with html and css.
I have never really done much C but am starting to play around with
I have never connected to a database in java before. May I know if
I have the following project structure using a Domain Model, StructureMap and Fluent NHibernate:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.