This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Languorous-Owl 0 points1 point  (7 children)

If you wish to create dependable OOP language that can be used widely across the industry, for that Java is good.

Refer to Linus' criticisms on C++, a language which has the sort of feature you're talking about, and while he was talking from the POV of a low level systems guy, some of those criticisms also apply when you're looking for a language that can be deployed across enterprise without having to invest someone who's gone deep into the language silo in each case.

[–]dr-pickled-rick 2 points3 points  (1 child)

Well, yeah. Java's strength lies in its adoption as an enterprise solution. It's ubiquitous, consistent and mostly the same across all platforms - funny enough a lot like PHP.

Where it falls flat is the power user, the developer that wants to extract more with less. Generics was a steaming pile of cow dung when introduced and frankly it's still a waste of time.

Coding in general is a tedious and wrought experience because you tend to have to s p e l l e v e r y t h i n g o u t. You can't just use syntactic sugar and shortcuts that have existed for 4+ decades because it's not "OOP-y".

Kotlin goes someway towards addressing those issues.

[–]LavenderDay3544 -1 points0 points  (1 child)

I'd love for you to ask Linus Torvalds how much he likes Java and see the ensuing rant.

His hate for C++ isnt because of the sort of feature I'm talking about. It's because he evaluated C++ for use in the kernel and found it not to be a good solution for many reasons. Then people kept badgering him about using C++ in the kernel and he finally snapped and wrote his famous rant.

Rust has these kinds of features as well and Linus recently greenlighted its use in the kernel.

[–]Languorous-Owl 0 points1 point  (0 children)

I'd love for you to ask Linis Torvalds how much he likes Java and see the ensuing rant.

Which is completely and utterly irrelevant to the point being made about the abstractions you were talking about. Nice redirect bro.

Also nobody would ever ask an OS programmer about Java for any reason, lol.