C++ or Java, witch you like most, why?
I like C++, you can do anything, its amazing
I don't like Java, I dont consider it as a program language, everything is ready, all you must do is put words in order. Idk Java is so boring
¿Water or bread? ¿Which you like most?
This is senseless, as both programming languages are good, but for different uses. All programming languages are good, but each for it's use, comparing C++ and Java is stupid, as they aren't different approachs for the same problem, they are different approachs for
different problems. A very different thing would be comparing languages like ASP vs PHP, or VBScript vs Javascript.
I never programmed in Java, though i
kind of know how it works, though, it's one of those languages i would like to learn sometime.
Oh, and, by the way, Java has
nothing to do with
Javascript,
nothing.
I thought Knx's post sounded wierd.. he confused Java with Javascript?
They have certain similarities, like similar syntax, but other then that they have different uses. C/C++ is for making huge, complicated programs, Java is made for smaller ones and some other functional differences are present.
He pointed to this topic when we were discussing about javascript. Also, almost the same syntax is shared by C/C++, Java, Javascript, PHP, and an awful lot more of languages. Though, at least those three languages, have as much in common as i have in common with Arnold Schwarzenegger. And they are all "The best" for different uses, you won't usually make a simple calculator(unless you want it to be faaaast) in C++, but in Visual Basic, altough, i don't think it's a good idea to make a 3D game in Visual Basic, because it will be way slow. Every language is better for a use, but no language is completely good at all areas, we wouldn't have so many languages if there was such a language.
Javascript and PHP are different, though the basic-basics are the same (loops, etc). Other then that, PHP doesn't use the dot syntax(which, in javascript, boggles my mind). The middle path between them in Java, which (I think) uses dot syntax + PHP-like code.
So C++ is the absolute fastest and is faster then VB even for simple programs? That's useful.
QUOTE(Centreri @ Oct 31 2006, 06:59 PM)
Javascript and PHP are different, though the basic-basics are the same (loops, etc). Other then that, PHP doesn't use the dot syntax(which, in javascript, boggles my mind). The middle path between them in Java, which (I think) uses dot syntax + PHP-like code.
So C++ is the absolute fastest and is faster then VB even for simple programs? That's useful.
[right][snapback]581482[/snapback][/right]
Hmmm if you mess up C++ can be as slow as any other stuff, and is slower to program. For simple programs it's better to just use something like VB, except if you are programming for example for a cellphone's calculator(where you would probably use Java anyway) or are making a core(yet simple) component of an OS.
I think Windows XP's calculator, KDE's calculator and Gnome's calculator all use C or C++. Anyway, it all completely depends on usage, whatever does the job for you is usually all right, though other decisions "could have been better" when you choose the wrong language.
C/C++ are very low languages, it's quite faster than other languages when used right, but that difference speed is irrelevant when making programs like a calculator...
Sorry if i'm messing up too much
I think platform independence is extremely important; thus Java is better.
It is, but speed matters too. I don't think a WoW made with Java would attract that much attention.
If C was up there, i'd vote for it. Its not a coincidence that almost every scripting language is written in C. (Python, PHP, Perl,(Firefox's implementation of) Javascript, etc)
C > All (unless you're going for web programming).
QUOTE(Centreri @ Oct 31 2006, 05:47 PM)
It is, but speed matters too. I don't think a WoW made with Java would attract that much attention.
[right][snapback]581515[/snapback][/right]
Which is more important: games or something like Open Office?
For me, both, but there's a reason I have Windows, and not Macintosh, Solaris or Linux.
Definently C++. Java's got nothing on it.
Although I persoonally prefer C# for making applications. While I wish It was possible to designate memory outside of the Gabage Collector I can't.
C# is very close to speed in terms of C++ as most of your code is natively compiled right before it's ran. This also allows optimizations specific to your machine that technically makes managed languages like C# in theory to be able to be faster than native languages. The only slowdown in C# is if somehow it doesn't compile a block of code and has to interprete the block of code.
In fact Managed Dx9 vs Native Dx9 has little speed difference.
However for pure memory managment C++ is the way to go. Although once again theory a Garbage Collector is much easier on memory is faster. It takes quite some time to malloc a set of bytes in C++. You cannot measure a managed programs resources easily. In the Task Manager it is reported incorrectly, and most people refer to what it says is how much space .net has acquired for your application. When another application needs more memory, .Net happens to be very willing to give memory not being used up. Hopefully once .net really matures it will prove to be even better at memory managment than native applications.
C++ and Java... it's quite an unfair comparison here. C++ wins because it has more power and it's faster. Java does have it's uses anyway, else it wouldn't exist.
Anyway, you can work with memory that the garbage collector doesn't collect or move in .Net. Just use the Marshal class to allocate and deallocate that memory.
My sophomore year in High school, I took AP Computer science and we learned Java. My teacher said in his opinion that Java is better than C++ because it is cleaner.
There's no "better" language, at least not between Java and C++. Sometimes dealing with all the dependency problems you have in C++ can be quite annoying, specially if you are making it cross-platform, though, depending on the complexity of the application, java may not be an option.