Go Faster book update
78 pages and counting...
Hi. Just a quick progress report for those of you interested. The book “Go Faster” is about 78 pages long now. Probably 40-45% complete. I’m hoping to edit further this week and then publish what I have so far on LeanPub.
You can track the book on LeanPub here.
I’ve been writing about slices recently, and their reference-type qualities in some situations. I know I wrote plenty of bugs before I understood when I could modify a slice as if it was a pointer, and when I could not.
And, just because you can doesn’t mean you should!! Eventually, I learned it was better not to be clever but keep things as simple as possible, wherever possible.
So, today, my preference when sharing a slice is always to treat it as if I’m passing a copy of the slice, which I need back after any changes. That means passing the slice to a function and taking a slice back as a return value.
It’s simple and clear and there are no hidden side effects.
Have a great week everyone!