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 6948279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:48:04+00:00 2026-05-27T13:48:04+00:00

It is recommended that type names and virable names should avoid using abbreviations. It

  • 0

It is recommended that type names and virable names should avoid using abbreviations. It is also recommanded the source line width should be 80 or at most 120 characters even if modern wide screen monitors are used.

Here is a line from our real prject:

final PimAuthoringApplicationMappingReader pimAuthoringApplicationMappingReader = 
      new PimAuthoringApplicationMappingReader(pimAuthoringApplicationMappingFile);

A simple new operation occupied at least 2 lines, even though we have used an abbreviation here already (Pim = ProIntralink Merge).

Although it is easy to understand each words in this way, it makes a simple method much longer, and therefore difficult to fit one method in screen.

Question: what is the better way to deal with this case? Is “reasonable” abbreviation recommended – for example:

 final PimAuthAppMapReader pimAuthAppMapReader=new PimAuthAppMapReader(pimAuthAppMapFile);

?

  • 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-27T13:48:04+00:00Added an answer on May 27, 2026 at 1:48 pm

    That’s a familiar problem, the Java project I’m working on has some classes that make me scratch my head for the same reason. I shorten the local variable names before shortening the class names, but I have no problem shortening class names if the result is reasonable.

    Breaking the convention of making the local variable the same name as its type frees up quite a bit of space in these cases. If more space is needed, I might shorten the type names as well.

    In your example, I’m fine with shortening Application to App, but not so sure about shortening Mapping to Map because “map” has a different primary meaning (first association) in Java.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It was recommended to me that, when using an IOC container, I should change
I have heard that using exception trapping is not a recommended practice for number
Is it recommended that I use an initialization vector to encrypt/decrypt my data? Will
That’s a pretty major difference. This is why it’s always strongly recommended that you
What are some recommended WordPress plugins that make building an online user manual more
Is there a dtls library that you recommended?
I understand that BigDecimal is recommended best practice for representing monetary values in Java.
I always read that it is recommended to set objects to nothing, once I
So why exactly is it that it's always recommended to use const as often
I just recently saw that xcopy is deprecated and that Robocopy is recommended. I

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.