Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-48976

[CBBS] Use Go style type/constant names

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Minor
    • backlog
    • 7.1.0
    • tools
    • None
    • 1

    Description

      What's the issue?
      IMO the backup service names lots of variables in a backward fashion, for example:

      AWSCloudProvider (which is of type 'CloudProvider')

      In my opinion, this should be:

      CloudProviderAWS

      I think this for two reasons:
      1) It appears to be the general consensus with popular Go libraries (and is used internally e.g gocb/gocbcore)
      2) For newcomers, it's far easier to find the enumerations using auto-completion (by name)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            james.lee James Lee
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty