Live data from Hacker News

Show HN: I wrote a book about Go

practical-go-lessons.com

151–160 of 160 posts

Re: Show HN: I wrote a book about Go

#151

Hello all, After 2.5 years of writing, countless weekends and evenings, I released a book about the Go programming language. The book is available for free on the website because I wanted to give something back to the developer's community :) It is composed of 700+ pages, 41 chapters, and approximately 405 drawings/screenshots. I tried to cover all the important topics that a new Go programmer should know. At the end…

Love the book! I think there's a small typo on https://www.practical-go-lessons.com/chap-41-cheatsheet, 2 Slices: "A good resource for playing with maps is https://github.com/golang/go/wiki/SliceTricks". I think you meant slices instead of maps?

Re: Show HN: I wrote a book about Go

#155
post #137

Earlier quoted context omitted.

Would you consider open sourcing the book? What systems are you using to create and maintain it?

Hello rijoja, I'm currently thinking about it. I'm writing the book with Lyx. Lyx documents are converted to LaTeX docs, then converted to HTML with pandoc. Then I have a homemade Go script that generates the VueJs components (one per chapter). This question is asked a lot so I will write something about the system because it can help other writers.

Surprised you didn't use Hugo for your website instead. Since Hugo is written in Go, and it's blazing fast.

Thanks for your work anyhow :)

Re: Show HN: I wrote a book about Go

#156
post #148
post #74

Earlier quoted context omitted.

On another note, you might want to consider converting the online copy of the book to MkDocs (using the Material theme), so that it's easier to read, navigate and search. I'd gladly lend a hand with this, if you like?

I like the current design, it is really clean and pleasant to read. I don't like Material Design, kind of makes everything look massive taking up too much space as if my desktop is a phone screen. for ex: http://angular-material.fusetheme.com/ui/forms Could be that it's just me though

https://squidfunk.github.io/mkdocs-material/getting-started/ = this is what I meant.

Re: Show HN: I wrote a book about Go

#157

Hello all, After 2.5 years of writing, countless weekends and evenings, I released a book about the Go programming language. The book is available for free on the website because I wanted to give something back to the developer's community :) It is composed of 700+ pages, 41 chapters, and approximately 405 drawings/screenshots. I tried to cover all the important topics that a new Go programmer should know. At the end…

One feedback: I skimmed through the Context chapter and noticed that you made the common mistake.

In the code snippet provided at https://www.practical-go-lessons.com/chap-37-context#the-ser..., you made the channel unbuffered. The doWork goroutine would write to the channel and the "main" goroutine would read from it. But since the "main" goroutine could exit early because of context cancellation, they could get into the case of no one on the reading end any more, causing the doWork goroutine to be blocked forever (the writing to the channel is blocked when there's no one to read it).

Someone even published a paper about fixing this common mistake in open source projects a few days ago: https://www.reddit.com/r/golang/comments/m66djp/automaticall...

Re: Show HN: I wrote a book about Go

#158

The website is unreachable

Hello andreagrandi, sorry to hear that, can you access the website now ? It's hosted on AWS with Amplify, I did not received any alerts regarding that. The only warning I got was a Free-Tier limit alert.

Hi! Thanks for your reply, I found the problem. I'm using NextDNS and it blocks the domain because it's been registered only a few days ago. I've added it to the allow list and now it works, thanks!

Re: Show HN: I wrote a book about Go

#159

Hello all, After 2.5 years of writing, countless weekends and evenings, I released a book about the Go programming language. The book is available for free on the website because I wanted to give something back to the developer's community :) It is composed of 700+ pages, 41 chapters, and approximately 405 drawings/screenshots. I tried to cover all the important topics that a new Go programmer should know. At the end…

Thank you for your work. I absolutely love the book. You might add links to buy digital copy at the very top of the page. Currently, I've found the link on 3rd attempt) Also, why not sell on Gumroad (https://gumroad.com)? It is convenient. Good luck!

Re: Show HN: I wrote a book about Go

#160

Always assume Go references are about the board game, always disappointed. Congrats on the book!

I was tricked too; maybe doubly so.

I thought this was a book on writing programs to play Go.

I feel at this point I should use this book to write a program to play Go using Go, and then in a way I wouldn't be so wrong.

Post reply on HN