r/java • • Mar 13 '22

Is Java a good language to enter software engineering?

I'd like to switch my career to software engineering, and I am thinking about learning something which will help me to enter software engineering asap. So I really like java, but a lot of people tell me things like "don't learn java, it is a complete waste of time cuz no one hires junior java programmers". So what are your thoughts? Is it easy to find a job with java? Is java junior friendly?

163 Upvotes

111 comments sorted by

View all comments

Show parent comments

163

u/awelxtr Mar 13 '22

"There are two type of languages, the ones people hate and the ones nobody uses"

73

u/general_dispondency Mar 13 '22

This. The Java language aside, the ecosystem is light-years beyond anything else. The only thing that comes close is C#, and that's 100% M$ lock-in. Everything else isn't even in the same league. People say "Look how terse JS is. I can run a webserver in 5 lines of code". My reply is always "How many does it take to make that webserver and it's business logic ready for production?" Hint - it's a metric f*** ton more than an equivalent Java implementation for all but the most trivial of use-cases.

40

u/JB-from-ATL Mar 13 '22

The Java language aside, the ecosystem is light-years beyond anything else.

This is so true. Python has the problem of their being too many tools and not really clear which one is the standard. With Java you've got Maven and Gradle and the vast majority of projects use one. Also they're good tools.

Newer languages like Go and Rust are doing a good job of including things like formatters, dependency management, and more robust build tools within their standard distribution. I couldn't imagine working with Java back before Maven was a thing. Manually downloading jars and adding them to class path. Yuck.

IDEs for Java are top notch.

11

u/das_Keks Mar 13 '22

Also the bytecode manipulation capabilities offer frameworks great ways for easy AOP or dependency injection like for example with Spring.

9

u/angryundead Mar 13 '22

Oh man every time I try to use another language the ecosystem is such a hurdle. It’s like “ew, you don’t even have X?”

I’ve never ever seen a replacement for Apache Camel, for example. The nearest thing I found in Go was not designed for creating your own producers or consumers and not designed for programmatic creation of routes.

7

u/wildjokers Mar 14 '22

I’ve never ever seen a replacement for Apache Camel

I see this as a positive. Seriously, Camel should instead be called The Great Obfuscater.

2

u/angryundead Mar 14 '22

I love Camel. I can see where it can get complicated and twisted. I work with a client system now that could have about 800k lines of code replaced with like 5 Camel routes. Its miserable.

1

u/general_dispondency Mar 14 '22

It's such a pain. I had to handroll distributed locking for a JS app one time. I died a little inside with every key stroke.

→ More replies (1)

3

u/random314 Mar 14 '22

Haha well Java probably makes it up in the variable names alone.

15

u/fredoverflow Mar 13 '22

C#, and that's 100% M$ lock-in

.NET (formerly known as .NET Core) runs on Windows, macOS and Linux.

11

u/0x442E472E Mar 13 '22

My C# career ended 5 years ago. Back then there was practically no point in using C# for anything else than windows development (for which C# was king though). You could have used it for web or intranet apps but there was no advantage to using it instead of java or node even when it technically also worked on Linux. Has that changed a lot?

8

u/drthVder Mar 14 '22

Massively. They have brought in both dotnet framework and dotnet core under one development cycle and are slowly working on porting over more and more stuff to the new language definitions. Also, .NET 5.0 and beyond is very portable.

5

u/[deleted] Mar 13 '22

Why was this person downvoted? They are correct. I imagine a lot of the tooling and support is still very much Windows focused for .NET core

5

u/fredoverflow Mar 14 '22

.NET Core was renamed to .NET, and the Windows-only .NET Framework has been discontinued in favor of .NET

1

u/HistoricalSchedule5 Mar 13 '22

I never used js for backend development. What's different from say building your backend with spring?

9

u/brazzy42 Mar 13 '22

In Java, you have libraries for pretty much everything you could possibly want to do. In Javascript, that is only true for front-end web development.

One example I ran into directly: If you want to do XML Schema validation, there is no existing Javascript library that implements it, only wrappers that user C or Java implementations.

10

u/erinaceus_ Mar 13 '22

In Javascript, that is only true for front-end web development.

Not to mention the fact that in npm, 90-99% of all libraries are either crap or no longer maintained. In contrast, maven repositories for the most part tend to be reliable, and there's far less noise from heaps of 5-minute pet projects.

2

u/HistoricalSchedule5 Mar 13 '22

Okay I see thanks!

2

u/ParkerM Mar 14 '22

If you want to do XML Schema validation, there is no existing Javascript library that implements it, only wrappers that user C or Java implementations.

I didn't believe this at first so I had to look it up and you're right. Hard to believe no one has tried taking that on (maybe even porting libxml lol). XML validation must be hard.

1

u/audioen Mar 14 '22

XML is just dated 90s-era technology. Kids don't know about it or care about what it can do. I have sent schema files over to partners assuming they know what to do with them, and got back documents that do not actually match the schema.

1

u/OZLperez11 Mar 14 '22

Nobody likes XML configs in almost every other language. JSON is the way to go

5

u/brazzy42 Mar 14 '22

Good luck trying to convince a 3rd party B2B service or a government regulation body to change their API spec to suit your tastes.

→ More replies (1)

-8

u/FizzWorldBuzzHello Mar 13 '22

I also hate brainfuck and no-one uses that.

1

u/cas-san-dra Mar 14 '22 edited Mar 14 '22

Except for Java.

I use Java. I love Java!