News for hackers. Stuff that matters.
Re:What Is Java, Is It Insecure, and Should I Use It? by smoyer on Saturday March 09, 2013 @09:16AM (#5348421)
Here's the money quote: "Java has two parts: the runtime that runs on your computer (and lets you run Java apps), and the browser plug-in that comes along with it. When people talk about Java being insecure, they're talking about the browser plug-in. Java apps themselves aren't inherently insecure, it's the browser plug-in that causes problems."

A world in which Java (the run-time) suddenly disappeared would be completely non-functional due to the amount of enterprise software that runs on the JRE. And while Java (the language) is often bashed for it's verbosity, many of the up-and-coming, "cool" languages target the JRE as their run-time environment.

Unfortunately, burying that paragraph in a long article and stating "you probably don't need it" is the wrong story to tell. You probably couldn't live (your modern life) without it, but you may not need to have it installed on your computer.

EDIT 1:

I also should have mentioned that Javascript is not "safe" ... it's "safer" than it used to be because browsers have gotten way better at "sand-boxing" its behavior (I love LocalStorage!). Applets were designed to allow browser-based applications access to the underlying computer's OS, so it should be no surprise that there are more vulnerabilities. And if you think about the biggest attack vectors on the IE browsers (at least the older ones), ActiveX shares this trait (I won't call it a problem).

For Android users, you should realize that when you authorize applications to use various features of your phone or tablet, you're explicitly opening holes in Android's default security model (fully sand-boxed).

EDIT 2:

My favorite quote (so far) on the life-hacker site is "Java does have some legitimate uses (namely Minecraft) ...". The rest of his commentary sounds like the rants typically found in language wars (I won't participate).

Re:What Is Java, Is It Insecure, and Should I Use It? by berlinbrown on Saturday March 09, 2013 @11:49AM (#5348858)
I would even go a step further and talk about the Java runtime plugin supplied by Oracle for Windows?
Re:What Is Java, Is It Insecure, and Should I Use It? by taeric on Saturday March 09, 2013 @09:29AM (#5348457)
Well, to be fair, I think the answer is essentially, "if you do not know why you need it, then you probably do not need it." This is true for pretty much everything on your computer.
Re:What Is Java, Is It Insecure, and Should I Use It? by mich41 on Saturday March 09, 2013 @09:38AM (#5348478)
Tell this to somebody who doesn't know what kernel is for.

Your computer contains lots of stuff you use daily without being aware of it.

Re:What Is Java, Is It Insecure, and Should I Use It? by smoyer on Saturday March 09, 2013 @10:03AM (#5348535)
When my eldest children were about 6 and 4 respectively, we got a Windows 98 computer that they could use at home. One of the things I love about kids and computers is that they're fearless. They learn through trial-and-error without the slightest hesitation. In contrast, teaching your parents to use the computer is full of questions about whether they're "allowed" to do something.

Anyway, my daughter (four years old at the time) got a new game (probably educational) and when she tried to run it, she was told there wasn't enough hard drive space and her mom told her to "wait until dad gets home".

Undaunted, she went looking at the hard drive and recognized most of the programs as games she (or her brother) played, but noticed one they never used ... that game was called "Windows". (The reinstall included an update to Windows XP and restricted user accounts for each of the kids ... I learned something too).

Re:What Is Java, Is It Insecure, and Should I Use It? by ConstantineXVI on Saturday March 09, 2013 @02:46PM (#5349379)
In a similar incident, once a long time ago, I was asked to put an English copy of Win31 on an old NEC laptop running the Japanese version.

No one involved was aware that the NECs of the time[0] weren't quite typical PCs.

[0] http://en.wikipedia.org/wiki/PC98

Re:What Is Java, Is It Insecure, and Should I Use It? by Fargren on Saturday March 09, 2013 @10:54AM (#5348673)
I did the exact same thing your daughter did, except i "only" deleted some random files on the System32 folder. Windows didn't stop working, it just became strangely unstable.
Re:What Is Java, Is It Insecure, and Should I Use It? by taeric on Saturday March 09, 2013 @09:56AM (#5348522)
I had a feeling I would get that counter point. I would presume that folks can educate themselves on things. I realize that is an optimistic stance that is not shared by the majority around here.
Re:What Is Java, Is It Insecure, and Should I Use It? by blaabjerg on Saturday March 09, 2013 @11:23AM (#5348769)
They can, but assuming that people (can) have a perfect understanding of all the technology they use in their daily life is not only optimistic, it is entirely unrealistic.
Re:What Is Java, Is It Insecure, and Should I Use It? by taeric on Saturday March 09, 2013 @11:40AM (#5348821)
True, but if you hear that folks are having concerns with item X, and you see you have item X, then you should make sure you know why you have it.

Hell, I'd consider that to be extended to non computer things, honestly.

Re:What Is Java, Is It Insecure, and Should I Use It? by martinced on Saturday March 09, 2013 @09:28AM (#5348455)
Spot on.

People do not realize that in some countries virtually all the citizen are carrying a Java SmartCard on them at all time (either an ID card or a medical security card). People do not realize that there are billions of devices running Java (like TV decoders) and that Java is even officially part of some specs (e.g. you cannot have a Blu-Ray player without having Java). In addition to basically power the entire banking infrastructure (it's damn near close to impossible to make an electronic payment without having Java involved in the process) and pretty much the entire corporate world, Java also powers a gigantic number of high-target websites (like eBay and FedEx).

And even in browsers, without needing applets, Java is also used to generate JavaScript (GWT and ClojureScript being to examples -- at this point ClojureScript still needs the JVM to compile to JavaScript).

And Android, of course.

Java is going to dwarf COBOL's legacy. Big times.

The real sadness here is that the writing was on the wall: any knowledgeable Java programmer knew, 15 years ago, that Java applets were an insecure piece of excremental technology.

You don't know how many time I've vomited on Java applet in Usenet's comp.lang.java.programmer years ago, saying how big of a mistake and loss of energy it was... Only to have the likes of Jon Skeet and Roedy Green defending Java applets tooth and nail.

Re:What Is Java, Is It Insecure, and Should I Use It? by moccajoghurt on Saturday March 09, 2013 @10:29AM (#5348607)
Why do corporations spend resources in mounting the JRE to their devices? Wouldn't it be much simpler to use the instruction set of the hardware and write stuff in C / Assembly?

I am asking because my first language was Java and after learning C / gnu AS it feels much more comfortable to actually have control over the resources you are using than relying on the magic the JRE does for you.

Re:What Is Java, Is It Insecure, and Should I Use It? by riobard on Saturday March 09, 2013 @10:45AM (#5348657)
“it feels much more comfortable to actually have control over the resources you are using than relying on the magic the JRE does for you.”

That's exactly the problem Java/JRE was trying to solve. People make mistakes. Given the large quantities of programers corporations hire, it is almost certain that mistakes, especially those dealing with hardware resources (e.g. memory), will happen. Java/JRE reduces a large part of them (e.g. memory allocation/deallocation due to GC) so corporations can hire average programers to do the majority of tedious tasks without blowing things (too much) off. You cannot have such guarantee with C/C++.

Re:What Is Java, Is It Insecure, and Should I Use It? by blaabjerg on Saturday March 09, 2013 @11:21AM (#5348761)
In addition to the points made by riobard and kd0amg, using the JRE ensures that their engineers can write code that is as general purpose as possible. They won't have to rewrite large parts of the software if they want to deploy it to a different architecture/platform, for example.

Leave the low level stuff to the JRE folks and spend your resources on doing stuff that directly makes you money or furthers your cause.

Re:What Is Java, Is It Insecure, and Should I Use It? by kd0amg on Saturday March 09, 2013 @10:38AM (#5348631)
With C, you don't just get to manage memory yourself -- you have to, which can become a distraction from the actual program logic.
Re:What Is Java, Is It Insecure, and Should I Use It? by moccajoghurt on Saturday March 09, 2013 @11:29AM (#5348792)
Thanks for explaining. The reasons sound quite obvious and I feel a little silly for asking in the first place.
Re:What Is Java, Is It Insecure, and Should I Use It? by drivebyacct2 on Saturday March 09, 2013 @09:45AM (#5348499)
"TV decoders" written in Java?

edit: thanks for the info, repliers.

Re:What Is Java, Is It Insecure, and Should I Use It? by rmrfrmrf on Saturday March 09, 2013 @10:11AM (#5348558)
All of Time Warner's Digital Cable boxes, for example.
Re:What Is Java, Is It Insecure, and Should I Use It? by superuser2 on Saturday March 09, 2013 @11:55AM (#5348879)
Is that why there's 2-3 second lag responding to button presses and biweekly crashed?
Re:What Is Java, Is It Insecure, and Should I Use It? by _djo_ on Saturday March 09, 2013 @12:51PM (#5349049)
There are many embedded devices running Java that are quick and efficient, so whatever slowness those cable boxes have is not due to the technology used. It's probably due to the same organisational problems that cause all slow and bloated software.

In the case of cable or satellite TV decoders there's usually more focus from management on adding features fast than on making the software bulletproof.

Re:What Is Java, Is It Insecure, and Should I Use It? by brokenparser on Saturday March 09, 2013 @12:23PM (#5348964)
No, programmers can be rushed by management or plain incompetent in any language.
Re:What Is Java, Is It Insecure, and Should I Use It? by zoowar on Saturday March 09, 2013 @12:34PM (#5348997)
DirecTV has similar lags at times. I would love for them to open source the UI and allow hackers to fix and impove it.
Re:What Is Java, Is It Insecure, and Should I Use It? by OGC on Saturday March 09, 2013 @10:15AM (#5348570)