Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch names-generator arrays to be long-form #9825

Merged
merged 2 commits into from
Dec 27, 2014

Conversation

tianon
Copy link
Member

@tianon tianon commented Dec 26, 2014

This way, we can embed the link/description lines directly in the array itself, conflicts between PRs to this section are minimized, new PRs are easier to review, and it's a lot easier to notice when people are missing a link/description (like the few that are currently; see 587286b).

This way, we can embed the link/description lines directly in the array itself, conflicts between PRs to this section are minimized, new PRs are easier to review, and it's a lot easier to notice when people are missing a link/description (like the few that currently are).

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
@jessfraz
Copy link
Contributor

Ah slick, LGTM

@tianon
Copy link
Member Author

tianon commented Dec 26, 2014

@yosifkit helped here too, watching over my shoulder so I didn't screw up

@tianon
Copy link
Member Author

tianon commented Dec 27, 2014

So now, PRs that change this will look like this:

diff --git a/pkg/namesgenerator/names-generator.go b/pkg/namesgenerator/names-generator.go
index c5bcd25..fe0716f 100644
--- a/pkg/namesgenerator/names-generator.go
+++ b/pkg/namesgenerator/names-generator.go
@@ -35,6 +35,7 @@ var (
                "gloomy",
                "goofy",
                "grave",
+               "hanky",
                "happy",
                "high",
                "hopeful",

Instead of:

@@ -77,7 +78,7 @@ var (
    //  http://en.wikipedia.org/wiki/Walter_Houser_Brattain
    //  http://en.wikipedia.org/wiki/William_Shockley
    // Yeong-Sil Jang was a Korean scientist and astronomer during the Joseon Dynasty; he invented the first metal printing press and water gauge. http://en.wikipedia.org/wiki/Jang_Yeong-sil
-   right = [...]string{"albattani", "almeida", "archimedes", "ardinghelli", "babbage", "bardeen", "bartik", "bell", "blackwell", "bohr", "brattain", "brown", "carson", "colden", "cori", "curie", "darwin", "davinci", "einstein", "elion", "engelbart", "euclid", "fermat", "fermi", "feynman", "franklin", "galileo", "goldstine", "goodall", "hawking", "heisenberg", "hodgkin", "hoover", "hopper", "hypatia", "jang", "jones", "kirch", "kowalevski", "lalande", "leakey", "lovelace", "lumiere", "mayer", "mccarthy", "mcclintock", "mclean", "meitner", "mestorf", "morse", "newton", "nobel", "pare", "pasteur", "perlman", "pike", "poincare", "ptolemy", "ritchie", "rosalind", "sammet", "shockley", "sinoussi", "stallman", "tesla", "thompson", "torvalds", "turing", "wilson", "wozniak", "wright", "yalow", "yonath"}
+   right = [...]string{"albattani", "almeida", "archimedes", "ardinghelli", "babbage", "bardeen", "bartik", "bell", "blackwell", "bohr", "brattain", "brown", "carson", "colden", "cori", "curie", "darwin", "davinci", "einstein", "elion", "engelbart", "euclid", "fermat", "fermi", "feynman", "franklin", "galileo", "goldstine", "goodall", "hawking", "heisenberg", "hodgkin", "hoover", "hopper", "hypatia", "jang", "jones", "kirch", "kowalevski", "lalande", "leakey", "lovelace", "lumiere", "mayer", "mccarthy", "mcclintock", "mclean", "meitner", "mestorf", "morse", "newton", "nobel", "pare", "pasteur", "paultag", "perlman", "pike", "poincare", "ptolemy", "ritchie", "rosalind", "sammet", "shockley", "sinoussi", "stallman", "tesla", "thompson", "torvalds", "turing", "wilson", "wozniak", "wright", "yalow", "yonath"}
 )

 func GetRandomName(retry int) string {

(let's play "find what changed!")

@LK4D4
Copy link
Contributor

LK4D4 commented Dec 27, 2014

@tianon Thank you!
LGTM

LK4D4 added a commit that referenced this pull request Dec 27, 2014
Switch names-generator arrays to be long-form
@LK4D4 LK4D4 merged commit bba3c14 into moby:master Dec 27, 2014
@tianon tianon deleted the long-form-names branch December 27, 2014 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants