3 ms·
Absolutely terrible. You should spell everything in American English when programming as like it or not the standard in every codebase and programming language
by andy_ppp 2y ago
Absolutely terrible. You should spell everything in American English when programming as like it or not the standard in every codebase and programming language going to be this. I am British but coding is not language, and trying to be clever like this is incredibly counterproductive especially in a diverse team. If you want British English to be used why shouldn’t the German on your team be able to use their language for example.
If everyone was just aiming for consistency we would be better off than following developer whims. We should aim to get over our personal preferences and try to be consistent and that means not having an ego about American vs British English.
- jasoncartwright 2y agoHN. Never change!
- Doctor_Fegg 2y agoNot every codebase. OpenStreetMap uses British English, for example.
- ChrisRR 2y agoI'm english, my team is english. We use english spelling throughout. I'm not switching to american spelling to appease americans who aren't reading my code, in the same way as I'm not programming in french either
- andy_ppp 2y agoSo you’d advocate that codebases should be written in the locale of the people writing them? What about open source projects, should they be dictated by the first language of the creator in most cases? You presumably can’t use British English for the standard library calls so now you have a mixture of languages which to me is pointless and more about the ego of the people writing things. I’m just in favour of consistency which unfortunately you cannot achieve unless you’re wrapping americanised standard library calls with true English equivalents. If you were coming to a codebase that defined American English as the standard I’m certain you wouldn’t change it. Why then when the underlying language makes that choice for you do you feel good about ignoring that?
- GJim 2y agoThe belief that only the US'ian way of doing things is correct is curiously prevalent on the other side of the pond to a level that borders on arrogance.
- andy_ppp 2y agoAll I’m saying is keep your codebase consistent with the language the standard library of the coding language you’re using. If there was a programming language with British spelling without the use of awful hacks I’d be fine with that. Unfortunately most languages use American English, deviation from this means mixing languages and debate, therefore I’d consider it bad practice in almost every case.
- ChrisRR 2y agoWhy would you assume that the open source project in question would be written in US english? Hell, why assume that the project even be written in english at all? There's more non-english speakers in the world than english speakers
- andy_ppp 2y agoBecause if you want your project to be well used and contributed to you’re probably writing it in English. I don’t see too many French or Arabic or Chinese or British English open source projects that have taken off, but I’m happy to be proven wrong… Even large open source projects built in China like Ant Design have documentation and interfaces in American English because even if you don’t like it it’s the correct decision to not needlessly buck against patterns laid down in the programming environment you’re working in.
- bdhdud 2y ago[flagged]
- arp242 2y ago> So you’d advocate that codebases should be written in the locale of the people writing them? What about open source projects, should they be dictated by the first language of the creator in most cases? Yes. I'm the one writing the code and I can use whatever bloody spelling I damn well prefer. If someone else takes over then they're writing the code and they can use whatever spelling they want. Trying to enforce some particular detail like spelling or whatnot for all of "open source" is just eyerolling. Use what you prefer and leave the rest alone. It's that simple.
- flobosg 2y agoWhy not both? https://dplyr.tidyverse.org/reference/summarise.html#:~:text=summarise()%20and%20summarize()%20are%20synonyms. https://dplyr.tidyverse.org/reference/summarise.html#:~:text...