Java is dumbed down C++. The syntax is almost the same, but C++ has some more advanced features.
Other than that I don’t really fiddle with Java, because there are good platform toolkits for C++ and I don’t like the complexity java adds when dealing with opengl extensions.
So my point was that don’t listen to these fanatics.
[/quote]
Yeah! Listen to the guy who only does C/C++ as oppsoed to those of us with lots of experience in both. That makes sense.
Why are you even here CG? I can’t imagine these forums are of ANY use to you.
Fact of the matter is that those who have really learned Java after being very skilled C and C++ professionals have time after time reported 2 to 10 times productivity increases. there are plenty of enterprise studies out there to supprot this if you wan’t to actually do some google research.
FACT: Java promotes error that are late-errors in C and C++ (hiding til release) to compile time or first-run time errors. This alone drastically reduces the error count released into the field and the Q&A time necessary to get to those releases.
FACT: C++ suffers from the “fragile abse class” problem due to pre-compilation. Java late binding solves this.
FACT: C++ requires you to do your own memory management and is generally horendously slow at allcoation and deallocation compared to Java. The result is pressure to write less object oriented and thus in the end less maintainable code.
There are other reasons but these are three of the big ones.
Take it from someone who was considered a C++ guru, who now does Java exclusively.
Please read my other posts. I do quite a bit of lisp and ocaml. Even more than C++ now that I got my renderer finished and got to move into more interesting things.
Also please restraing from sprouting those “facts” as truims. They are not much better than someone saying Java is dumbed down C++.
20% increase in productivity? What is it just me or am I watching the infomercials channel here? Wait am I lazy? No. Your failure to provide “enterprise” studies is supported by the fact that I could not find any either.
Also, please if you find something let the source be something else than sun affiliated site. Java.sun.com affiliates promise to increase my productivity, get me a new boiler tank while I enhance my bust and penis size at the same time!!
Java is great. I admit it. I like the fact that you can write it once and run it anywhere. However I don’t like the closed design of Java, which makes it almost impossible to incorporate it with my other projects written in other languages. Going using C from java is possible, but using Java from C is impossible. However I can use ocaml and lisp that way.:o
These forums are plenty of use for me. I don’t like to be a closed minded C++er as you seem to make it out.
[quote]A lesser known function of JNI is that it wil let you actually launch a VM and make method calls into it from C.
But im not sure you want all that overhead for a plug-in, which is why I didn’t mention it sooner.
JK
P.S. I did 15 years of C and 10 years of C++ guys. Yes, when you NEED “the world’s highest level assembler” C is useful.
The rest of the time its a royal fricking pain in the ass. i get working code written about 8 times faster in Java then I do in C
[/quote]
Have you actually tried that?
I sure have. Yet it is incomplete and unstable and i’d rather claw my eyes out than use it.
Back on topic: a direct port from Java to C++ is probably not possible. It would be wise to determine the gist of the algorithm and write it from scratch. As someone here said, you’d have it done by tomorrow if you just sat down and did it.
How about some arguments rather then some insults? Your assertions are sorely lacking ANY substantiative argument. I gave you clearly identified and visible REASONS why Java is more productive. You basically just ignored them and launched another barrage of empty insults.
And thats 200% to 1000%. Read closer. I sad 2 to 10 TIMES productivity.
This a very well researched and well established phenomenon, despite your trolling comments.
Yes it is. Its yet ANOTHER productivity point I didn’t mention. (I told you tehre were more.) Late binding allows much more freedom and ease of use when trying to create reusable libararies. (Its something I alluded to in “fragile base class” but didn’t really go into.)
Mature.
As I said before, if you find no value here why hang around?
Plain wrong, there are over 100 other languages written for the Java VM. If you cannot find the link googling, and I realize you are handy capped in that regard, let me know and I’ll find that for you, too.
Wrong and ignorant. Please read the artcle on JNI that comes with the VM. You can launch a VM from C. You can call INTO a VM from C.
How? You started this by saying “Right now, I’ll only use few features of Java in my project. Mainly JavaDoc, because it was the first good documentation method I ever met. Other than that I don’t really fiddle with Java,”
How then is a site dedicated to Java programming of ANY use to you?? Other then a place to post trolling and ignorant assertions, that is.
[/quote]
Oh and I have to say, dude. That that last quote of yours I quoted was almost unnecessary.
Its obvious to anyone who actually HAS done the Java transition, that you haven’t yet or we wouldn’t be having this discussion. That 2 to 10 times figure I bandy about is based on hundreds of reports I’ve heard from hundreds of developers in my speaking and client contact capacities for Sun.
Ya know, not one has told me they were more productive in C/C++. In fact they universally tell me Java has made them MUCH more productive.
Its obvious to anyone who does it, dude. The one’s who argue are the ones who don’t want to. (cf. Slashdot.)
Im going to ask Chris to lock this thread because there is clearly nothing more productive that can be said here. The facts are there. You can chose to ignore them. But further trolling isn’t going to elicit a response from me.
A truly ignorant statement from someone that obviously hasn’t done any research.
I love the people that go on an don about Java being “closed” and “proprietary” - just silly. Just because Sun decided not to hand over the future of Java to a standards body that Microsoft can bully (coughW3Ccough). The JCP becomes more “open” every day. I certainly feel as a Java developer I have more of a chance of influencing the direction of Java than say C++ or .Net.