Ask HN: “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)
16 comments
[ 2.2 ms ] story [ 48.5 ms ] thread"Codes" seems to be considered valid in the context of scientific computing but not generally elsewhere in the software industry.
Another way to think about it: when you're inside a web browser, you're using "code".
When you're inside an airplane, or driving a car over a bridge, or at the top of any modern building, you're benefiting from someone having used "codes" to numerically simulate the material properties and dynamic responses of those systems, to increase your safety.
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.
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.
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.
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.
https://www.google.com/search?q=%22finite+element+codes%22
I don't know about a recent uptick in "codes", but I know it is incorrect to attribute using "codes" to non-native English. As I noted in another comment, software for numeric and scientific computing is very commonly referred to as "codes". Finite element simulations are a good example of something where the code has been written and refined over many decades, and so the result is a treasured collection of discrete objects that are passed down. You can see that in how "codes" is used in the search results above.