284 points · by misternugget · 9y ago · 76 comments
I'd recommend it.
Tried to push learning Rust via the Go examples. It has been a great exercise, but highlighted the pain of dealing with various string representations in Rust.
I LOVE boring
I say that as someone who really isn't a fan of the language.
(Just to preemptively clarify: The bad quality I mentioned was most noticeable when compared to a non-POD book. On its own, it looks OK-ish and you might not think anything of it, but when you look at it next to another book you can tell.)
The book itself seems pretty neat though! I'm a PDFs for tech books kind of guy, personally.
Was your experience with their paperbacks or hardbacks?
Whether those see "\t" or "{" or "begin" it's not really different, it will be the same "BLOCK_STARTS" kind of token.
Besides it's not the \t that you need to find as a marker for e.g. scope start. Python has "def xxx():" for example, so you see that and you know you're in a function declaration scope, same way function (xxx) { in C works.
After you see that you only need to keep track of \t or " " in the beginning of lines (before any other character) to know whether you're still in the same scope or not. That's why you can't just have arbitrary whitespace count in Python lines, but you need to maintain the same "indent" in the same scope.
I wish I could find the source for this, because it was much better put, but that comment contains the gist of my motivation behind writing the book.
I believe that J.K. Rowling used the same pattern for her Harry Potter books. She started writing them for children and then each book followed the same kids to their adulthood.
How does it affect the quality? Based on what criteria and examples (ideally specifically related to this book and field)?
If you want a more complete one you could check out zygomys https://github.com/glycerine/zygomys
Anyone have recommendations for a book or tutorial for creating a REST API with Go?
Ordered the non dead tree version as the sample chapter is of great quality.
Is there a PROMO CODE available?
So, yay escape hatches!
At some point it was going to be a pattern (Java + jruby/ola bini's language)...