GoogleCloudPlatform / samples-style-guide

Guidelines on writing effective Google Cloud samples.
https://googlecloudplatform.github.io/samples-style-guide/
Apache License 2.0
11 stars 19 forks source link

Migrate node.js client object naming guidance to this guide #121

Open grayside opened 1 year ago

grayside commented 1 year ago

Description

The following text is from another node.js guide. Let's consolidate this to one place:

Name the variable the camel-cased version of the constructor, making sure the variable name ends with `Client`.

As variable names, `someApi` and `client` are each not descriptive enough. `someApiClient` follows a standard pattern that balances being descriptive and allowing for multiple clients in a single sample.

Impact

No response

Challenge

No response