4 ms·
What do you use Go for? Python is my go to language, but I'm increasingly seeing things supporting Go too. When would you pick one over the other, do you think
by 7ewis 8y ago
What do you use Go for? Python is my go to language, but I'm increasingly seeing things supporting Go too.
When would you pick one over the other, do you think it's working learning Go or just focusing on python?
- ngngngng 8y agoI prefer the static typing of Go. I feel like code is less likely to have bugs and far easier to understand when I've got static types sent to and returned from every function. The concurrency of Go is the main feature over python. Python is still faster to write. But very often I want several processes running concurrently and pythons async features just don't cut it. It's so easy to understand goroutines and channels.
- icebraining 8y agoHave you tried mypy?
- madrafi 8y agoI used mypy to build a tiny toy deep learning library it was nice to use.
- madrafi 8y agoI use Go for systems programming and networking such as a toy P2P app or a blockchain implementation.I also used it for cryptography https://github.com/radicalrafi/gomorph https://github.com/radicalrafi/gomorph It depends on the use cases but I'd say hope on the Go train. I only use Python for things such as quick impementations or numerical stuff and machine learning Python is still unbeatable in these two areas . Learning Go isn't that hard if you know Python it's pretty easy most of your time will be spent awing at the Standard Library which has everything you'll need.