HACKER Q&A
📣 eqvinox

“code” or “codes”?


There seems - subjectively - to be a recent (years) uptick in the use of "codes" referring to source code. But because the terms are generic, it's hard to get data (e.g. google trends is unhelpful.)

What's others' perception on this? Is there an increase in use of "codes"? Do you see any cultural/regional correlation?

(And, perhaps controversially, does "codes" still sound wrong? - it conflicts with the grammar of an uncountable / mass noun)


  👤 brennvin Accepted Answer ✓
"Codes" is correct when the intended meaning is access codes and the like, but not for source code, which is a non-countable noun.

I think the uptick is due to the increased number of participants who are not native speakers, mainly from Asia and eastern Europe I would presume--I'm not a native speaker either but the distinction between countables and non-countables is natural to me, coming from another Germanic language.


👤 dusted
I've heard people referring to code as "codes" which seems silly to me for some reason..

I kind of dislike both terms, "codes" seems to refer to each individual statement in isolation, which makes zero sense at all. "The code" I think, refers to the entirety of a program/function/system, and makes a bit more sense.

However, code suggests something that is difficult to understand, which is the opposite of what's actually going on..

You're not "coding", you're writing a program or even programming.. If anyone is coding it's the compiler or assembler translating your easliy understood programming text into the binary machineCODE, which is actually annoying and hard to understand.


👤 jhugo
> There seems - subjectively - to be a recent (years) uptick in the use of "codes" referring to source code.

I agree that there is an uptick in the last few years, but I've never encountered "codes" used by a native English speaker with an understanding of software (occasionally, even 10+ years ago, I've heard it used by non-technical people).

> And, perhaps controversially, does "codes" still sound wrong?

To my (native English speaker) ears, yes, very wrong, and all of the people I've encountered who use "codes" when referring to source code make numerous other common mistakes which I consider "codes" to be one of.


👤 ThrowawayR2
You could just Google it: https://english.stackexchange.com/questions/20455/is-it-wron...

"Codes" seems to be considered valid in the context of scientific computing but not generally elsewhere in the software industry.


👤 nathanaldensr
Code by itself is not countable IMO; therefore, it's code. Lines of code are countable, however.

👤 an1sotropy
"Codes" is absolutely standard and common in settings like numeric or scientific computing (like, fluid dynamic simulation, large matrix linear algebra, constrained optimization). You could say this is because that community more often has old people who talk different.

Or, imho, you could imagine that those pieces of code, for doing very precise things under specific constraints (of memory, or CPU, etc) is software that received maybe thousands of person-hours of attention and wisdom, over many years or decades, so they are battle-tested, esteemed, and highly trusted objects. Software that was written in Fortran when Fortran was the only language with good optimizing compiler, and the software is still running in Fortran because the Elders were wiser than we are. A collection of such software is sensibly called “codes”.

Software in many other circumstances is more of a fluid and maleable thing, shifting in form and purpose in response to a changes in needs and fashion. “Code” here is more like air or bread, a medium we inhale and emit, not a collection of specific venerated objects.

Anyway, that’s how I understand the code vs codes divide, having seen both sides of it.


👤 Am4TIfIsER0ppos
Depends if I can have 1 code. In common use it is the opposite to data which is the plural. When was the last time you heard (in English) of a singular datum?

👤 yuppie_scum
Codes sounds wrong. Code is a collective noun.

👤 uberman
I have never heard the term "codes". If one were to use it, I would assume that they are non native speakers

👤 Smar
I like calling it as a wild duck.