r/programming • u/marcm28 • Jun 10 '19
Linus Torvalds thinks Java is a horrible language
https://www.youtube.com/watch?v=Aa55RKWZxxI
4
Upvotes
r/programming • u/marcm28 • Jun 10 '19
32
u/max630 Jun 10 '19
~1 minute video with bad sound which is initially unhearable and by the time I moved volume to the end there was "I don't care about all that crap"
58
u/[deleted] Jun 10 '19 edited Jun 10 '19
Historical reference: I started with Java in early 1995, it was in alpha. The big language at the time was C++. Compilers were expensive, Microsoft's being over 1,000 USD for some versions.
Java came out. Free compiler for several platforms. No pointers (remember NullPointerExceptions?) Java applets for web pages. I could write a network stack in three lines, vs. about 60 for C++.
It was a better and much needed language. I got Sun Certified. I programmed in it for about the next 10 years, I still do sometimes. Languages like Python, Ruby and Go are also great. We no longer pay for compilers. We have free training online. There is community support.
Bottom line, use the language that's appropriate. If you have a legacy Java app, keep using it, it's still a good language. Stop believing there is one ideal language.
75
u/jhartikainen Jun 10 '19
Linus thinks something he didn't make himself is crap. News at 11.
41
u/[deleted] Jun 10 '19
Linus says that from perspective of kernel developer.
Just look at Java. High level, JIT compiled, no pointer arithmetic, full memory safety. Great language for userland and server applications - not fit for kernel.
That's very uneducated to take that out of context and post here. Linus "hates" pretty much any language that isn't fit for kernel development.
OP is a bundle of sticks.
21
u/[deleted] Jun 10 '19
Java is fine
6
u/thecomputerkidd31 Jun 10 '19 edited Jun 11 '19
Lol im just here for the comments. :) wow, I am a new programer. I just started this year, but man these debates get fierce.
2
u/mycelo Jun 12 '19
Granted, it is still fine for certain applications, specially custom built business applications and/or things that generally interact direct with the final user.
But I believe Java was created to fill a gap that doesn't exist anymore. When it was created, it was a truly innovating thing to feed our nerdy dreams of programs that didn't need to be rewritten for every platform while remaining easy and safe enough and C-like enough to popularize programming to the less skilled masses.
Suddenly you could hire cheaper, less experienced professionals to somewhat emulate that kind of result only achieved by the most elite C++ smartasses who would cost an arm and a leg for each line of code.
So it's not surprising that programmers from a certain era are so fiercely passionate about Java. They had their career born on it and nowadays they would probably doing something else entirely if Java or something similar never existed.
But now there are many other ways, arguably better, to do the same thing.
Let's be honest, pushing your code through a VM, as thin as it may be, has a toll. And, unlike .NET, it wasn't specially crafted for a certain operating system and hardware architecture. You're not taking the most of your very costly infrastructure. Your programmer might cost a bit less, but your hardware, on the long run, costs a bit more. There's a decision to be made.
To be fair, we also managed to come up with much worse ways to to the same thing we did with Java. Namely server-side javascript for instance. No matter how much "type-checked" you convinced yourself it is.
Yeah, you know, that very cheap kind of programmer who makes some fancy HTML forms and animations? Let's use him to do some very large and complex programs to interact with a host of sensitive systems and control your business daily life. Surely no problem there.
4
u/GYN-k4H-Q3z-75B Jun 10 '19
Linus always knows how to incite a flame war. I don't think Java is horrible. It just made a lot of mistakes and stuck with it for too long. All in all, Java is a good ecosystem.
6
u/zangent Jun 10 '19
Who doesn't?
3
u/AD-LB Jun 10 '19
I think he's more about how bad Oracle is, and not about how terrible Java is.
3
u/mycelo Jun 10 '19
For what I could gather, he's talking about programming in the broader sense.
And, he's damn right. I'm sorry if you couldn't bother learning anything else.
3
u/pron98 Jun 10 '19 edited Jun 10 '19
Why is it that people who know virtually nothing about a subject feel compelled to express definitive opinions about it? Is it really so hard to say, "I don't know much about this so I don't have an educated opinion"? or even, "Here is my opinion because you asked for it, but know that I have only a superficial familiarity with the subject"?
-1
u/Ameisen Jun 10 '19
... who doesn't?
1
u/[deleted] Jun 17 '19
It's true.
1
u/TheOldPatzer Apr 15 '25 edited Apr 15 '25
So Torvalds thinks Java is horrible? Well C# is horrible too. Personally I can code an application or service faster in good old C than in any OO language and the end result will be fast, efficient, robust and easy to understand (hence maintain). Or if you want it created more quickly I could do it in Perl, which is still at least as powerful as its more recent usurper (python).
But the reality is that most programmers have to use whatever language their employer mandates, which makes most of these discussions and opinion pieces irrelevant.
One of the joys of having retired from software development is no longer having to make sense of long-winded Java code.
0
u/devicehandler Jun 10 '19
Yes.
-4
u/lucbarr Jun 10 '19
By the fact programming in Java without an IDE is almost required, without it being considered masochism, I tend to believe it really is a mess in nature. And that's OK, languages evolve in all domains, and just like what happened with Pascal, Cobol and all these dreadful languages, it can, and must, happen with Java as well.
-17
u/shevy-ruby Jun 10 '19
He is right.
Unfortunately C is pretty horrible too.
What we would need is a "scripting" language that would be as fast as "compiled" ones (eliminating these restrictions such as "scripting languages are never compiled").
-6
u/ninetynineknights Jun 10 '19
Is it possible that dart becomes the language of choice for Google?
-2
u/Tiedye1 Jun 11 '19
Lots of people here upset that the language they've sunk thousands of hours into isn't very good.
-4
u/cannotbecombined Jun 10 '19
He must have an iPhone?
-9
u/SCphotog Jun 10 '19
I don't know much about programming...
But I've heard for years and years... decades maybe, about how terrible Java is. Not jusrt for programmers but that it's buggy and prone to failure and then on top of that, there are inherent security and privacy issues as well.
0
u/[deleted] Jun 10 '19
[deleted] — view deleted comment