logoalt Hacker News

iLoveOncallyesterday at 8:10 AM2 repliesview on HN

I'm native French and nobody would consider code countable. "codes" makes no sense. We'd talk about "lines of code" as a countable in French just like in English.


Replies

true_religionyesterday at 12:42 PM

Codes is a proper grammatical word in English, but we don’t use it in reference to general computer programming.

You can for example have two different organizations with different codes of conduct.

There is though nothing technically wrong with seeing each line of code as an complete individual code and referring to then multiple of them as codes.

dahartyesterday at 3:52 PM

Codes can be synonymous with codebases and is grammatically just fine, though probably not the most common usage.