News for hackers. Stuff that matters.
Re:Understand Go pointers by bpp on Wednesday April 26, 2017 @10:12AM (#14203090)
I'm a programmer who spends all day in Go working on backend systems, but came to it from Javascript, my first language. Pointers were one of the concepts that took me the longest to understand, even having dug into them previously in the context of V8's object implementation. So I for one am grateful for this article, and just passed it on to a recent bootcamp grad at my company. Hopefully it will accelerate his learning curve.
Re:Understand Go pointers by penpapersw on Wednesday April 26, 2017 @10:38AM (#14203331)
The first language I learned was QBasic, so when I started to learn C++, the concept of pointers was bizarre and took longer to learn than it should have, but after it finally clicked, it gave me a special love for pointers, the simplicity of C, and low-level programming in general.
Re:Understand Go pointers by int_19h on Wednesday April 26, 2017 @10:57PM (#14208843)
While QBasic didn't have pointer types, it did have pointers in disguise (or rather, pointers without disguise, which are just memory addresses) - VARPTR, PEEK and POKE. As I recall, PEEK'ing and POKE'ing things was actually necessary to do many important tricks in QB, especially once you started playing with CALL INTERRUPT.