The Wayback Machine - https://web.archive.org/web/20200527092616/https://github.com/topics/best-practices
Skip to content
#

best-practices

Here are 855 public repositories matching this topic...

goldbergyoni
goldbergyoni commented Jan 26, 2020

Given the immense popularity of Docker and the need to harden it different per platform (see ideas below) - we'd like to start writing a Docker best practices section.

You're welcome to contribute ideas and write best practices - writing and brainstorming will people is an amazing way to deepen your Docker understanding.

At first, we want to collect ideas for best practices, solidify a list

shirchen
shirchen commented Apr 14, 2020

We should discourage fields or variables named after built-in types:

var string string

type Foo struct{ error error }

As variable names, they shadow the actual type, making it impossible to use that type in that scope again:

var string string
var x string // error: string is not a type

Carrying this over to field names is just a matter of consistency in style.

Improve this page

Add a description, image, and links to the best-practices topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the best-practices topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.