Writing an Interpreter in Go: The Paperback Edition
thorstenball.com
thorstenball.com
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.
In other words, they know a lot more context and can tell whether something that appears totally normal in the project is actually done in an unusual way that has limitations, etc.
Most experts I come across are generous when it comes to sharing what they know and their generosity may sometimes get in the way of a beginner's learning, but this is not always the case.
Feel free to let me know your feedback!
Perhaps, but they often have not yet built up the muscle memory needed to manipulate instruments as skillfully as more experienced doctors, nor the knowledge needed to know how to handle unusual situations, both of which are particularly important for surgeons[0,1].
0. http://journals.lww.com/annalsofsurgery/pages/articleviewer....
1. http://jamanetwork.com/journals/jamasurgery/fullarticle/4061...
Whether that puts one in a far better position to teach than an expert probably depends on the expert. I definitely had math professors for whom the charge applied, and I'd speculate that an expert who's primarily focused on further mastery/development along the edges of the field might be someone who becomes less and less able to recall or relate to what it's like to take first steps into it. But on the other hand, I had math professors who clearly thought a lot about pedagogy as well as research, and practiced both at length... and I think someone who's spent significant time teaching beginners and reflecting on that as well as practicing their discipline and refining deep insights from that is likely in a better position to teach a topic than someone who just learned.
(And if you really want an optimal learning environment, put a class full of motivated learners in front of a teacher like that, and have them talk to each other. Hence the value of a good university course...)
That can work, assuming that (1) the particular difficulties you encountered will generalize to most other learners and that (2) being good at programming equates to being good at pedagogy.
>I recently read a comment (I think it might have been on HN, but I can't find it)
I think it probably was on HN.
"we live in an ironic world, where pros decide what things are easy for newbies to understand. "
https://www.reddit.com/r/golang/comments/5eubdp/the_future_o...?
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)...