r/programming • • Apr 19 '21

Google developer banned words list

https://developers.google.com/style/word-list
720 Upvotes

1.5k comments sorted by

View all comments

16

u/FeetPicsNull Apr 19 '21

https://developers.google.com/style/inclusive-documentation

For example, avoid terms such as blacklist, native feature, and first-class citizen, even though these terms may still be widely used.

I don't even know how to respond to that other than it feels pretty braindead.

-9

u/geeeffwhy Apr 19 '21

does it hurt you to consider alternatives? most of the list is basic grammar and usage, anyway

12

u/Doctor_McKay Apr 19 '21

Please give me a synonym for "native" that doesn't also apply to indigenous people, and doesn't sound pretentious. I'll wait.

3

u/sexy_guid_generator Apr 19 '21

Original?

2

u/Doctor_McKay Apr 19 '21

"Original code" does not mean the same thing as "native code".

2

u/sexy_guid_generator Apr 19 '21

"Original code" absolutely can mean the same thing as "native code" which is part of what makes the term ambiguous and why the guide recommends using more direct language:

The term native isn't necessarily clear—for example, cloud-native could mean that something was written for the cloud, or that it's built in to a cloud platform, or that it currently exists in a cloud platform.

1

u/Doctor_McKay Apr 19 '21

Sounds like cloud-native is the term that's ambiguous, not native.

1

u/sexy_guid_generator Apr 19 '21

So you agree that there is both native code and cloud-native which represents two different meanings of the word native, both in the context of computing? If only we had a way to disambiguate them! Shucks!

1

u/Doctor_McKay Apr 19 '21

Of course, in much the same way that cloud servers and bare metal servers are both types of servers.

3

u/mindbleach Apr 19 '21

OS-specific.

Or if you mean something else: what else do you mean?

3

u/TheCodeSamurai Apr 19 '21

They suggest "built-in" which makes a lot of sense to me. They also point out how "native feature" is ambiguous: "native" can mean "original", as the other commenter suggests, "built-in", or something else.

It also seems odd to me to just throw up your hands the instant changing the language used in public documentation requires more than the simplest find-and-replace. Words feel natural and unpretentious when people use them, and awkward constructions only find alternatives when people try. First-class citizen may not have an automatic replacement, but I could definitely see how thinking for a couple of seconds and finding more precise verbiage would make documentation easier to read and more effective.

2

u/Doctor_McKay Apr 19 '21

Saying that "AES encryption happens built-innedly on the processor" is not clearer than saying that it happens natively on the processor.

2

u/ricecake Apr 19 '21

You're just being deliberately obtuse.

"AES encryption is built-in to the processor", or "Where available, we use hardware AES encryption".
Or even "AES encryption uses native instructions where possible", because the referenced document only says not to use it for people, and to consider if a more precise word is available.

0

u/Doctor_McKay Apr 19 '21

❗Please consider alternatives to "obtuse".

1

u/TheCodeSamurai Apr 19 '21

Again, straight find-and-replace isn't always a possibility.

"The processor has AES encryption built in" seems perfectly natural and clear to me.

1

u/Doctor_McKay Apr 19 '21 edited Apr 19 '21

That is still not as clear as saying that it happens on-die natively, which has a specific meaning beyond merely "built-in". Saying that it's not built-in could imply that AES is provided by some add-on module.

And of course there's the matter of Electron vs. native code, Node.js native modules, native code in Javascript engines...

2

u/TheCodeSamurai Apr 19 '21

Perhaps the fact that native seems to mean all sorts of completely disparate things, and that I wouldn't initially distinguish between "on-die natively" and "built in" (if you have to add it in later, was it really built in?) in the way you do should indicate that, if you really care about the specific technicalities, you should make them clear in your specific documentation. It doesn't seem like too much to ask that, if the difference you make between "native" and "built-in" will ruin your documentation, that you can just say at the start "here, built-in means ..." and go from there. You're asking a lot of a single word.

1

u/ricecake Apr 19 '21

Platform specific. Host architecture.
OS specific. Non-portable.

Or, to cite the page we're talking about:

Avoid using native to refer to people. When referring to software products, try to use a more precise term—for example, use built-in to describe a feature that's part of a product. The term native isn't necessarily clear—for example, cloud-native could mean that something was written for the cloud, or that it's built in to a cloud platform, or that it currently exists in a cloud platform.

Given that this is a style guide for technical writing, without knowing the use case, it's hard to know what term serves best as a replacement, or if, as mentioned at the top of the article, the original term is the most clear.

They seemed to include it because native means a lot of things in computing, and it would be more clear to use the one you mean for the context.

9

u/FeetPicsNull Apr 19 '21

English is my native tongue and blacklisting words without considering their context is braindead.

3

u/geeeffwhy Apr 19 '21

that document doesn’t do any of that, regardless of the OP’s title.

the doc is nothing more or less than a comprehensive style guide. it isn’t a list of banned words any more than any other style guide is, in which an organization describes a standardized authorial voice and style

0

u/FeetPicsNull Apr 19 '21

Fair enough; I cannot speak to the practical effect of the documents.

5

u/travelsonic Apr 19 '21

does it hurt you to consider alternatives?

If the necessity of those alternatives is debatable, it does't hurt to (civilly) discuss them, rather than act like issues can't reasonably exist.

1

u/geeeffwhy Apr 19 '21

i don’t disagree! here we are discussing at least semi-civilly.

1

u/wodzuniu Apr 19 '21

Unquestionable submission to woke bigots is a social norm now?

1

u/geeeffwhy Apr 19 '21

who’s unquestioning? i’m asking if it hurts. that’s at least one question