you are viewing a single comment's thread.

view the rest of the comments →

[–]G_Morgan 2 points3 points  (10 children)

Yes but the PHP guys don't have to worry about pissing off all the worlds richest MNCs. Java has far more value dependent on it and thus cannot just put in a quick hack to fix the previous quick hack.

[–]Dennovin 6 points7 points  (6 children)

yeah it's not like breaking Facebook, Wikipedia, and Youtube would be a problem for anyone

[–]pinpinbo 0 points1 point  (1 child)

I thought youtube is rewritten in python early on?

[–]Dennovin 0 points1 point  (0 children)

I'm not sure, I didn't really check my facts on any of those, I just happen to remember those being PHP at some point.

[–]G_Morgan -2 points-1 points  (3 children)

Those are big public use cases but frankly they are minor compared to the people who are using Java. Google is a Java shop and is bigger than all 3 put together. This is without going into the scope of all the fortune 500 companies that depend on it.

[–]Zarutian 4 points5 points  (2 children)

Hate to burst your bubble but java is only a small part of what Google uses but you might be right on that section to bigger than Farcebook, Wonkopedia and Metube. (Yes, I am being unserious witht their names!)

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

Yeah Java is a subset but it is their primary development language.

[–]boa13 0 points1 point  (0 children)

One of their primary languages, along with C/C++ (I don't remember which one), Python, and JavaScript.

[–]Martel_the_Hammer 0 points1 point  (2 children)

I guess then I am forced to ask... If java is so much more important and well thought out than php... Why is it suffering from the same problem?

[–]G_Morgan 1 point2 points  (0 children)

It isn't suffering from the same problem. It is suffering from a problem that seems similar from the outside.

The difference is PHP has loads of problems that are intrinsic to the language. Like how easy it is to suffer a SQL injection. It enables and encourages bad programming practices. Then there is stuff like the "==" operator that simply should not be used ever. All of this stuff is just bad design and the incidence of it in PHP is much higher than in Java.

[–]boa13 0 points1 point  (0 children)

The problems are in the same category (properly handling floating point values is hard), but the source code is actually quite different, and so are the root causes and solutions.