Staredit Network

Staredit Network -> Computers and Technical -> C++ or Java
Report, edit, etc...Posted by Knx. on 2006-10-29 at 08:16:46
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
Report, edit, etc...Posted by Sicarul on 2006-10-30 at 17:58:05
¿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.
Report, edit, etc...Posted by Centreri on 2006-10-30 at 19:06:02
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.
Report, edit, etc...Posted by Sicarul on 2006-10-31 at 11:12:11
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.
Report, edit, etc...Posted by Centreri on 2006-10-31 at 16:59:31
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.
Report, edit, etc...Posted by Sicarul on 2006-10-31 at 17:20:43
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 tongue.gif
Report, edit, etc...Posted by CheeZe on 2006-10-31 at 17:36:35
I think platform independence is extremely important; thus Java is better.
Report, edit, etc...Posted by Centreri on 2006-10-31 at 17:47:54
It is, but speed matters too. I don't think a WoW made with Java would attract that much attention.
Report, edit, etc...Posted by Doodle77(MM) on 2006-10-31 at 18:36:44
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).
Report, edit, etc...Posted by CheeZe on 2006-10-31 at 18:40:01
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?
Report, edit, etc...Posted by Centreri on 2006-10-31 at 18:45:14
For me, both, but there's a reason I have Windows, and not Macintosh, Solaris or Linux.
Report, edit, etc...Posted by Cole on 2006-10-31 at 19:12:56
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.
Report, edit, etc...Posted by fatimid08 on 2006-11-02 at 07:47:52
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.
Report, edit, etc...Posted by MillenniumArmy on 2006-11-02 at 22:21:44
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.
Report, edit, etc...Posted by Sicarul on 2006-11-03 at 05:15:18
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.
Next Page (1)