3 ms·
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 a
by eweise 4y ago
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 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.