4 ms·
I (and a lot of other French students) have started programming during my bachelor's mainly in Java and C. I now develop in Golang and I know it would have bee
by ArmandGrillet 11y ago
I (and a lot of other French students) have started programming during my bachelor's mainly in Java and C. I now develop in Golang and I know it would have been better for me to start with it:
- The logic of Golang is straightforward, e.g. you need to import the package fmt to do a fmt.Println("") in Golang but you do not need to explicitly import anything to do a System.out.println("") in Java. Some things could still be weird for a beginner, e.g. methods like len(), but the official documentation gives a clear explanation about a lot of things.
- gofmt, the best way for a beginner to understand what is pretty code. Golang forces you to write clear code (e.g. no unused variable) and that is an excellent way to learn as a beginner.
- The goroutines / gochannels are simple to understand, I wish I would have started concurrent programming by developing in Golang instead of C.
- Golang works on every computers and installing it is simple (simpler than installing Java and Eclipse).
This list is subjective, other languages like Python are also excellent for new developers from what I heard but Golang could also do the job.
- masklinn 11y ago> - The logic of Golang is straightforward, e.g. you need to import the package fmt to do a fmt.Println("") in Golang but you do not need to explicitly import anything to do a System.out.println("") in Java. You don't need to import println in Go[0]. The logic is exactly the same[1]: there's a pre-imported "prelude" (java.lang in Java, builtin in Go) and you import the rest. > - Golang works on every computers and installing it is simple (simpler than installing Java and Eclipse). Why do you have to install go alone but java and eclipse? [0] https://play.golang.org/p/ZWLaVuJNgq https://play.golang.org/p/ZWLaVuJNgq you don't need to import append or cap or complex128 either [1] and the same as in more or less every language out there