Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

Use of the Word 'Argument'


  • Please log in to reply
3 replies to this topic

#1 jtv123

jtv123

  •  Avatar image
  • Members
  • 10 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:United Kingdom
  • Local time:09:47 PM

Posted 21 May 2020 - 05:54 AM

I have often wondered about the wording and character symbols used in the creation of a program and applications.

I would like to concentrate on specific words for a little while and I would like to start with the word 'ARGUMENT' or 'args' used in the creation of a program.

 

Question:

 

Why is this word used?

 

Is it only used in Java programs?

 

Why can't another word resembling it be used instead?

 

I hope these are questions I can ask here on 'bleepingcomputer'.

 

I look forward to your replies.

 



BC AdBot (Login to Remove)

 


#2 cknoettg

cknoettg

  •  Avatar image
  • BC Advisor
  • 1,897 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Delray Beach, FL
  • Local time:04:47 PM

Posted 21 May 2020 - 06:27 AM

Why is the word used?

I think this is a good discussion of the topic - I tend to favor the "argument" that the word came from mathematics, as in "argument to a function":

https://english.stackexchange.com/questions/144141/what-is-the-sense-of-using-word-argument-for-inputs-of-a-function

 

Is it only used in Java programs?

No. But Java is the only language I know of where args is required to execute main program function.

People often speak of command line arguments. Java was built using C/C++, which uses args

 

Why can't another word resembling it be used instead?

Depending on the context, people might substitute "parameter" or "switches," but within a language like Java, arguments is considered correct. 

You would be surprised how a word can take hold in programming, and continue to be used outside its original context. The original hackers at MIT used the term "foo" in a pretty specific context, and "foo" soon became the prototypical function that programming manuals and books used as their example when describing how functions operate.

 

Speaking of "functions" - one language might call it a "function," and another language might call it a "method."

 

See also: https://en.wikipedia.org/wiki/List_of_computer_term_etymologies


Microsoft MCE, CASP+, Linux+, Server+, Cloud+, Certified Forensic Computer Examiner


#3 jtv123

jtv123
  • Topic Starter

  •  Avatar image
  • Members
  • 10 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:United Kingdom
  • Local time:09:47 PM

Posted 19 June 2021 - 04:24 AM

Dear BC Advisor

 

It has been a while since I have come to this site, so sorry for being so long to thank you for your reply.



#4 SamHobbs

SamHobbs

  •  Avatar image
  • Members
  • 84 posts
  • OFFLINE
  •  
  • Local time:01:47 PM

Posted 27 December 2021 - 08:28 AM

From the point of view of a function (the developer of the function) it has zero or more parameters.

 

From the point of view of a caller of a function (the developer using the function) the function has zero or more arguments.

 

Differences Between Parameters and Arguments - Visual Basic | Microsoft Docs






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users