Introducing Go by Example(mmcgrana.github.com) |
Introducing Go by Example(mmcgrana.github.com) |
I have a few suggestions.
Make the code easily copyable. Under Chrome, at any rate, if you select the code you can't help but select your comments to the left of the code. I think that people running through the examples should type everything in line by line, but some people will prefer to copy and paste.
Also, it would be great to have some "where to go from here" links. I've run the examples, now I want to write some useful code. Where should I go next?
Also agree that a learn more section could be good - I'll noodle on it.
They're quite different languages, so I was surprised to see a bunch of Go libraries in your Github after using a bunch of Clojure gear you'd written over the years.
In the meantime, mind a quick comment on the typography? The Palatino Linotype body text renders poorly on Windows. Italics are particularly hard to read.
I tried changing it to Georgia and it made a world of difference:
Also, dynamic languages has a tendency to "blow up" in less serious ways..
t := []int{1, 2, 3, 4, 5}
What makes that a slice and not an array?
EDIT: Ok, found that answer on google go's blog. Apparently leaving out the length makes it one.
Beneath the bleeding edge of "what is cool" and "what cool companies use" there is a very large iceberg of people and companies doing/using things that stopped being cool a decade ago.
Although I'd be amazed if Go won over a significant portion of the PHP/ASP crowd, given that they have already self-selected out of using Ruby, Python, etc. for web development instead.
I suppose you could argue that Go is a good fit for PHP/ASP programmers who have really tuned their applications for performance, but I strongly suspect they're a small minority.