Computer Program: code or codes?

Status
Not open for further replies.

tree123

Member
Joined
Feb 9, 2019
Member Type
Student or Learner
Native Language
Chinese
Home Country
China
Current Location
China
On a Chinese-based IT forum, I saw someone said to the OP who posts a program "Can you share source code"?

I think that should be "Can you share source codes (of the program)" or "Can you share your source file". Am I correct?
 
On a Chinese-based IT forum, I saw that someone said to the OP who posted a program "Can you share source code"?

I think that should be "Can you share source codes (of the program)" or "Can you share your source file". Am I correct?

My suggestions.
 
I think "source code" needs a definite article.
 
I'm with tedmc. I'd expect "Can you share the source code?"
 
Code is singular. Even if you had ten different modules or programs, one would still ask for the "code," not the "codes."
 
I don't know why Tarheel inserted the red "that" in post #2.
 
No, Rover. I don't know why. Do you mind elaborating?
 
For the same reason that teechar explained in this thread.
 
Code is singular. Even if you had ten different modules or programs, one would still ask for the "code," not the "codes."

It can be plural in other contexts- the nuclear codes that will launch missiles, where separate passwords are required.
 
I think it's typical of short messages such as this that people tend to leave out articles.

There's also a strong possibility that the writer was a non-native speaker and that this was an error.
 
Programming language text used to write computer programs is called "code". It is uncountable and singular.
 
Status
Not open for further replies.

Ask a Teacher

If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know:

(Requires Registration)
Back
Top