All learning is good.
Your question is way to subjective. Ststat eyour intent. More people could help
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
All learning is good.
Your question is way to subjective. Ststat eyour intent. More people could help
You'd learn more if you learn a bit of Clojure or Erlang. Go is easy, but it is mostly competing with Python for the web.
Are you only asking about the worthiness as a job skill or also for personal satisfaction?
In my humble opinion, being monocultural as a developer is a path to obsolescence. Be T-shaped: know your specialty really well, but also a bunch of stuff more superficially.
If you have a little hands on experience with Go on top of your Java expertise, you are imo more valuable to your employer. They may even be mid transition from Java to Go, where you would be very useful indeed.
Besides, it's just healthy to keep learning new things.
I mean it's a language specifically designed to be easy and quick to learn. Even if you don't work with primarily, you'll find it useful for stuff like cli programs, advanced scripts(instead of python), small services, etc.
Do you see downsides to learning it?
If you can, do it. It's common enough to be [potentially] useful. If you don't have a concrete need, then it's not necessary, though.
It's hard to predict the future, but I can point to a couple of indexes.
TIOBE measures language popularity according to a variety of factors. It has Java on a steady downward trend over the last couple of decades, but shows it as still very relevant. TIOBE does not show comparable growth for Golang. I don't see much growth in the top 10 for languages that are especially suited to autoscaling. C# looks to be steady as a language in a similar niche as Java.
OTOH another survey from devjobsscanner that looks purely at job postings shows Java openings as very steady over the last couple of years. It also shows Java as more popular than Golang.
So I don't know exactly what conclusion to draw from that. But learning a new language can be a helpful exercise regardless to broaden your perspective, and to keep your skills sharp.
Personally for the purpose of producing resource-efficient binaries for scaling I prefer Rust. It's design incorporates some correct-by-construction strategies that promote high-quality code. And it's well-suited for compiling to WASM so you can do stuff like deploy small services to Cloudflare workers for wild scaling. But I guess Rust isn't making a big showing in the popularity charts. And Golang is popular for its lower learning curve.
I have been mostly writing C++ for more than 20 years, but TOBIE seems useless (again...) Visual Basic and Pascal have better ratings than Kotlin or Rust? I don't believe it.
TIOBE merely measures the number of questions asked about a particular language online, which is obviously not exactly realistic metric but people for some reason love to spout it
That makes sense. I didn't find many surveys available, so I referenced the ones I could find.
There is not much to learn, so just do it? It's not a relevant investment that would require much thought.
IMO it doesn't matter, learning go from Java should not be what excludes you from an offer. Of course if the employer has a choice between two otherwise even candidates then maybe it'd help.
I think the problem is working with both in a production environment is what is going to set you apart.
I'd say learn a language that's really different like a functional or a logic language.
Otoh I've not been interviewing lately so maybe my take is totally off base
I think java has enough momentum that it will join in the perpetual pantheon of languages with FORTRAN and C - however with that said, learning Go changed how I write Java for the better, I was able to do this within my java job after convincing the team that a small but neccisarry but not critical side project could be done in Go to test it out - I had a blast learning and writing it, even though ultimately the dynamics of my company kept us in Java
RE autoscaling: effective distributed systems design isn't really language-dependent. Java apps can scale just as well as ones written in Go. That said, I can see there being a case for Java apps not making it as easy to build that way. There's definitely a lot of mainframe/monolith-oriented patterns in both the standard library and in enterprise Java culture.
As for the job market and career investment, I'd say this:
I've written a lot of Java in my career and studied it in college, and I've written one app professionally and several hobby projects and utilities in Go. There's a lot to like about it, regardless of its marketability on a resume.
I had to containerize an older java app. It sucked, java would take all the memory you gave it regardless, so it was hard to determine memory requirements/limits. It had pretty slow start although this wasn't an issue for us, logging formatting was a pain. All this was overcome (not by upgrading), it was just a pain.
I suspect this isn't true of modern java though - I'd suspect with the hype kubernetes went through a few years ago that it's just fine now a days.
Yeah I wouldn't say a java service taking multiple seconds to boot up being scalable the same way that any other compiled language will be.
There are also the huge "legacy" frameworks that slow down java, the auto magic and more non features that make maintaining any real world java application a pain.
IMO it's not as good a language as Rust, so I wouldn't learn it for the purposes of making something. However it's very easy to learn (at least to a productive level), so you may as well if you want to.
Just work through go by example and see what you think.
By far the best thing about Go is the tooling. Language itself is eh.
Yeah the language is not the most sexy but it does the job. The tooling is where the real benefits come to life
Not sure what distributed/micro service stack you have, but Go is used a lot for Kubernetes and Terraform utilities, so the client libraries are well supported and there is a lot of sample code. Our main application is in Java, but we have a Kubernetes operator for SaaS instances and a Terraform provider to install it, both written in GoLang.
Java will likely remain one of the common languages for the next 4 decades. Go is a better language which is why the pay rates are lower. But it is unlikely for Go to replace Java but it is actively competing against Rust to become the replacement for C.
What a confused post.
Go pay rates are lower? Not in my experience, any source for this?
Just job posting in this area.
For the same level of experience the pay order seems to be:
COBOL > Java > go
Depends on the required experience. Most java jobs I see are for junior/medior with corresponding salaries. Go jobs tend to be more medior/senior and thus have higher range.
Senior java jobs may pay a bit better but there are way less of them compared to go jobs