News for hackers. Stuff that matters.
Re:Learning a new language, or how I gained familiarity with Go by eweise on Wednesday August 17, 2022 @04:40PM (#32501417)
Trying to find something I agree with in this post. I programmed in Java for decades and found that there were plenty of new concepts to learn in Go. Not sure asking myself what concepts I knew would help me in learning Go, especially since I know the concepts, I don't need to ask myself whether I know them. Some concepts not in Java

- Pointers. These take a while to understand and use effectively. https://www.timr.co/go-interfaces-the-tricky-parts

- Error handling. Very different than exceptions

- Interfaces. Not quite the same as Java's and used differently in some cases

- Channels. Java doesn't have these

- Context. passing these around everywhere instead of just sticking on a threadlocal.

Go will flex your brain plenty since you have to unlearn what you thought were good programming practices such as only one return statement per method.

There are no comments on this comment yet.