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

  • Home
  • SEARCH
  • 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 3489920
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:27:12+00:00 2026-05-18T11:27:12+00:00

However trivial this may seem, I can’t help my curiosity. In your experience, what

  • 0

However trivial this may seem, I can’t help my curiosity. In your experience, what are some readability considerations when it comes to naming arguments and parameters? Arguments are in function calls and thus may serve a different human-readable purpose than parameters in function definitions. When should an argument name be more specific than its corresponding parameter name and vice versa, or should they carry the same name when possible?

Do you know of any conventions or criteria that would help decide one way or the other? Or would you say this is left to the realm of preference?

Thanks in advance.

  • 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-18T11:27:13+00:00Added an answer on May 18, 2026 at 11:27 am

    Parameter and argument as terms are usually used interchangeably, but if we want to get more specific, then it usually boils down to this:

    A parameter is just a name in function’s definition.

    An argument is an object that will be passed to that function.

    So, let’s say you’ve got a function that accepts a database connection:

    public void doDatabaseStuff (DatabaseConnection dbConnection) {...}
    

    Here, dbConnection is a parameter.

    When you actually use this function, if you’re using an Oracle database, you can name that DatabaseConnection as oracleDbConnection and use it like this:

    DatabaseConnection oracleDbConnection = // some code to actually obtain that connection
    doDatabaseStuff(oracleDbConnection);
    

    Here, we have two things:

    • dbConnection is the parameter name
    • oracleDbConnection is the argument name

    From this, we can see that the parameter name is usually more “generic” than the argument name, but it doesn’t have to be so. You can also just use dbConnection as the argument name, but oracleDbConnection is more meaningful.

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

Sidebar

Related Questions

I know this may seem trivial to some, other won't see the point, however
This may sound like a trivial question, however I have looked over the web
This may seem trivial but I have no idea how and the lack of
This seems trivial enough, but I can't seem to stumble upon the answer. I
I'm fairly new to rails (only about a month's experience), so this may be
At first glance, this question may seem like a duplicate of How to detect
I feel this question may be a bit trivial, but I simply cannot wrap
Firstly, this may sound very trivial, but currently I am creating a function getQuadrant(degree)
I think I may have asked this on Haskell-Cafe at some point, but damned
I believe this is trivial, but I can't for the life of me, figure

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.