DEV Community

Discussion on: My reflections on Golang

Collapse
 
ajinkyax profile image
Ajinkya Borade • Edited

Following are just my reflections over 9 years, please do not get me wrong.

In India, most students start with Java in their college, its taught to engineering students.
They land jobs from college fairs, TCS, Infosys... they train them. Some unlucky ones get to work on non-programming projects, and some lucky ones actually get programming projects.

When they start working they praise Java.. spring (the mess of magic world)
Then they start bitching about Javascript, how javascript doesn't have a private variable (when they don't know JS has its way via Module pattern)

and in the same way, they start writing every other language with Java in their thinking process.

I started learning GO because of one of my colleague (hardcore Scala guy) he told me not to learn Java or Scala, but go for GO. And I'm happy with that decision.

Collapse
 
deepu105 profile image
Deepu K Sasidharan

I think you are over generalising based on your experience. I don't see what nationality or experience has anything to do with my views here. And NO, I didn't have the background stereotype you mentioned above. I started with C/C++, then learned PHP, JavaScript and then Java. And Generics weren't available in Java always. If you do a real project in Go, you would understand why I'm looking for Generics. Any strictly typed language with generics will be a PITA to work with and that is the reason Go is trying to add generics support in Go v2

Collapse
 
ajinkyax profile image
Ajinkya Borade • Edited

The pain of working with Java is immense.

The need of an IDE,
so tightly coupled community with Spring,
the configs you need to set up to get a basic test running,
the code's feedback has to wait until java finishes its build for 30mins+,
old Java, cannot run on newer versions of Java

Hence I would prefer simplicity over complexity. i.e. GO

Thread Thread
 
deepu105 profile image
Deepu K Sasidharan

Well. I don't know what you are implying. I didn't say I prefer Java for everything and I said I prefer it for usecases it is best suited for. Also seems like you have lot of false assumptions about it. Java is not a simple language but its much simpler than Scala. In terms of language complexity Java is slightly more complex than JavaScript and way more complex than Go.