I can never tell whether these titles are referring to the programming language or the board game.
Learn Go: Hand-crafted Go exercises and examples
11–20 of 68 posts
Re: Learn Go: Hand-crafted Go exercises and examples
#12Re: Learn Go: Hand-crafted Go exercises and examples
#13Earlier quoted context omitted.
Your can't really do anything real without pointers in Go though because you won't be able to mutate states out of a function.
That's definitely true, but I've often seen beginners just say: type Foo struct { ... } func (f *Foo) Bar() { ... } And go "Aha, that's an object and a method, I get it!" but when asked whether they should be using a pointer there or not, have no idea what that even entails. In other words, it's possible to neglect the details of pointers easily and have things generally work
[1]: https://doc.rust-lang.org/stable/book/ch05-03-method-syntax....
Re: Learn Go: Hand-crafted Go exercises and examples
#14Observation: I see that you do 26 exercises before doing anything with pointers. I often wonder if one of the reasons Go is more "simple" or approachable to some is because you can, to a large extent, ignore pointers and interfaces and "just write that weird little * or & in some places" and get away with it. Whereas, I believe in other languages, this is much less possible (e.g. in Java or Rust you need to learn abo…
Your can't really do anything real without pointers in Go though because you won't be able to mutate states out of a function.
ᕕ(¬ ͜ ¬)ᕗ
Re: Learn Go: Hand-crafted Go exercises and examples
#15This doesn't ask the most important question: why would I learn Go at all?
Re: Learn Go: Hand-crafted Go exercises and examples
#16Re: Learn Go: Hand-crafted Go exercises and examples
#17I can never tell whether these titles are referring to the programming language or the board game.
I was disappointed to see it was golang. Is there a site like this for the game?
Re: Learn Go: Hand-crafted Go exercises and examples
#18Re: Learn Go: Hand-crafted Go exercises and examples
#19Earlier quoted context omitted.
Your can't really do anything real without pointers in Go though because you won't be able to mutate states out of a function.
That's definitely true, but I've often seen beginners just say: type Foo struct { ... } func (f *Foo) Bar() { ... } And go "Aha, that's an object and a method, I get it!" but when asked whether they should be using a pointer there or not, have no idea what that even entails. In other words, it's possible to neglect the details of pointers easily and have things generally work
Re: Learn Go: Hand-crafted Go exercises and examples
#20Earlier quoted context omitted.
That's definitely true, but I've often seen beginners just say: type Foo struct { ... } func (f *Foo) Bar() { ... } And go "Aha, that's an object and a method, I get it!" but when asked whether they should be using a pointer there or not, have no idea what that even entails. In other words, it's possible to neglect the details of pointers easily and have things generally work
Remember ByVal and ByRef from VB? (I hope you don't, it was the dark ages) but those to terms I've found are very useful for getting folk introduced to pointer - and also why.