From 972d42d925e6cae3f8eebd9b21d445e06c2eb386 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 15 Mar 2020 15:50:36 -0400 Subject: content: rename articles to reinforce convention of short URLs The Go blog started out on Blogger (http://web.archive.org/web/20100325005843/http://blog.golang.org/). Later, we moved to the current self-hosted blog server with extra Go-specific functionality like playground snippets. The old Blogger posts have very long URLs that Blogger chose for us, such as "go-programming-language-turns-two" or "two-go-talks-lexical-scanning-in-go-and", predating the convention of giving posts shorter, more share-friendly, typeable names. The conversion of the old Blogger posts also predated the convention of putting supporting files in a subdirectory. The result is that although we've established new conventions, you wouldn't know by listing the directory - the old Blogger content presents a conflicting picture. This commit renames the posts with very long names to have shorter, more share-friendly names, and it moves all supporting files to subdirectories. It also adds a README documenting the conventions. For example, blog.golang.org/go-programming-language-turns-two is now blog.golang.org/2years, matching our more recent birthday post URLs, and its supporting files are moved to the new 2years/ directory. The old URLs redirect to the new ones. Change-Id: I9f46a790c2c8fab8459aeda73d4e3d2efc86d88f Reviewed-on: https://go-review.googlesource.com/c/blog/+/223599 Run-TryBot: Russ Cox Reviewed-by: Andrew Bonventre --- content/debug-opt/stepping.graffle | Bin 0 -> 10984 bytes content/debug-opt/stepping.svg | 59 +++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 content/debug-opt/stepping.graffle create mode 100644 content/debug-opt/stepping.svg (limited to 'content/debug-opt') diff --git a/content/debug-opt/stepping.graffle b/content/debug-opt/stepping.graffle new file mode 100644 index 0000000..6deefa7 Binary files /dev/null and b/content/debug-opt/stepping.graffle differ diff --git a/content/debug-opt/stepping.svg b/content/debug-opt/stepping.svg new file mode 100644 index 0000000..fb39be5 --- /dev/null +++ b/content/debug-opt/stepping.svg @@ -0,0 +1,59 @@ + + + + + + + + +Produced by OmniGraffle 7.10.1 +2019-03-21 19:47:24 +0000 + + +Canvas 1 + +Layer 1 + +l := line{point{1 + zero, 2 + zero}, point{3 + zero, 4 + zero}} +tinycall() +hist := make([]int, 7) +var reader io.Reader = strings.NewReader(cannedInput) +scanner := bufio.NewScanner(reader) +for scanner.Scan() { +s := scanner.Text() +i, err := strconv.ParseInt(s, 10, 64) +if err != nil { ... } +hist = ensure(int(i), hist) +hist[int(i)]++ +} + + +Go 1.10 + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3