![]() |
|
Which language is best? |
amarillion
Member #940
January 2001
![]() |
the title said: Which language is best? Perl I'm sure you take my word for it. -- |
Evert
Member #794
November 2000
![]() |
|
nonnus29
Member #2,606
August 2002
![]() |
You guys are sooo gay. Java and C++ are nearly identical. If you want to talk about significantly different languages then Perl is a good start, then scheme, sml, haskell, prolog, ruby, etc... Even javascript has functional aspects. |
Jonatan Hedborg
Member #4,886
July 2004
![]() |
You may or may not have noticed that the OP's question was "What is better, java or c++?" not "what language is most different from Java and C++?" And if you have used Java and C++ for any extensive period of time, you would know that while they are syntactically very similar, their uses, strengths and weaknesses are quite different.
|
GullRaDriel
Member #3,861
September 2003
![]() |
To the OP: When it come to work in a company, you must use what they allow you to use. For your own production, the fact is that: THE BEST LANGUAGE IS THE ONE YOU ARE BETTER AT. "Code is like shit - it only smells if it is not yours" |
tobing
Member #5,213
November 2004
![]() |
Makes me think of this old article about 'Real Programmers don't use Pascal', comparing Fortran to Pascal and C and other programming languages. How did they say it? "You can write FORTRAN programs in any programming language." ... |
GullRaDriel
Member #3,861
September 2003
![]() |
X is for quiche eaters. Replace X with one following the rule named #must_match_a_programming_language_name# "Code is like shit - it only smells if it is not yours" |
Evert
Member #794
November 2000
![]() |
Quote: You can write FORTRAN programs in any programming language.
|
Steve++
Member #1,816
January 2002
|
Quote: Java and C++ are nearly identical. Heretic! I started learning C++ about a year before Java. I found Java programming much more productive, but used C++ because Java wasn't yet a formidable game language. Things have certainly changed now, but the game industry is quite predictably slow to catch on. It doesn't matter that Java is a memory hog. The fact that the JVM eats a big chunk of the heap at startup isn't a problem, because it is just doing what most big games do anyway. For me, distribution is the overriding factor in language choice. If I want to make a game that can be quickly downloaded, I'm probably not going to be too comfortable with requiring the JRE be installed. But if I'm distributing on CD or some other physical format, then I can just include the latest JRE and have the installer install it if needed. In the former case (Internet distribution) I would most likely prototype in Java and perform a native conversion once the game is finished. |
Marcello
Member #1,860
January 2002
![]() |
On the other hand, you can require Java Web Start, so even distributing on the web is not that big of a deal. Marcello |
axilmar
Member #1,204
April 2001
|
Coding is generally much easier in Java, thanks to garbage collection and its huge set of libraries. Java is quite fast, with only exception being Swing (which is slow due to implementing its own window manager). Java programs are portable with minimal fuss. If you need the absolute fastest speed possible, go with C++. But be prepared to be mentally tortured by an endless stream of uncontrolled crashes, memory corruption, wild pointers, etc. But, in the end, if you make it, your app will be fast! |
Evert
Member #794
November 2000
![]() |
Quote: But be prepared to be mentally tortured by an endless stream of uncontrolled crashes, memory corruption, wild pointers
Am I the only one who hasn't had problems with pointers and memory management? |
Thomas Fjellstrom
Member #476
June 2000
![]() |
I had no end of troubles when I was learning C, with Win95. Oh how I hate win95. -- |
23yrold3yrold
Member #1,134
March 2001
![]() |
Well I didn't learn on Win95. -- |
Jonny Cook
Member #4,055
November 2003
|
I usually prefer to program in HTML. The face of a child can say it all, especially the mouth part of the face. |
Matt Kindy
Member #7,331
June 2006
![]() |
I prefer C to any language SO_FAR |
ImLeftFooted
Member #3,935
October 2003
![]() |
Quote: Am I the only one who hasn't had problems with pointers and memory management? I haven't. I find it kind of fun to control my own memory allocation |
Tobias Dammers
Member #2,604
August 2002
![]() |
Quote: However, I think English is the best language. Nah. It doesn't even have consistent spelling. Quote: I usually prefer to program in HTML. No you don't. HTML is a markup language, it has nothing to do with programming. Various extensions and embedded applets can provide programming abilities, but pure HTML has nothing to do with programming. Look up 'Turing complete' in Wikipedia and you'll get a clue. C++ is teh workhorse, though I wish it had some of the features Java has (not GC though, but the serialization stuff is nice, convenient abstracted cross-platform access to all sorts of hardware, web and database integration), and that C++ weren't so explicit. Quite some extra typing required only for historic reasons (e.g. header guards). --- |
Karadoc ~~
Member #2,749
September 2002
![]() |
Evert said:
Am I the only one who hasn't had problems with pointers and memory management? I'm sure there are lots of non-programmers who have never had those sort of problems with C. Jonny Cook said: I usually prefer to program in HTML. I like variables much better than HTML. ----------- |
axilmar
Member #1,204
April 2001
|
Quote:
Am I the only one who hasn't had problems with pointers and memory management? It depends on the project's complexity and the rate of changes. For personal projects, that are usually small, I usually do not have a problem. But when KLOC is large, the chances of having a memory problem increases exponentially. |
Jonny Cook
Member #4,055
November 2003
|
Yeah, that was supposed to be a joke. I was hoping it sounded ridiculous enough that it was obvious... guess no. Quote: I like variables much better than HTML. As do I, although I'm sure you could rig something up in HTML that's somewhat variableish. [edit] The face of a child can say it all, especially the mouth part of the face. |
Karadoc ~~
Member #2,749
September 2002
![]() |
axilmar said: the chances of having a memory problem increases exponentially increases exponentially with what? The size of the program? I don't think so. ----------- |
Matt Kindy
Member #7,331
June 2006
![]() |
Karadoc~ said: ince you can do this on a line by line basis, the chances of getting a memory error must increase linearly with the size of the program. That's not neccesarily true, you see. For example you can make two memory errors in a line, or, with a loop, you can have one memory error over, and over again, which is basically more than just one error. Also, you could have a line that doesn't deal with memory, therefore, it could end up looking like this: Instead of this: {"name":"589613","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/d\/2d685d0416531eb3d6454af382d3ed68.jpg","w":400,"h":400,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/d\/2d685d0416531eb3d6454af382d3ed68"} |
Evert
Member #794
November 2000
![]() |
Quote: That's not neccesarily true, you see. For example you can make two memory errors in a line, or, with a loop, you can have one memory error over, and over again, which is basically more than just one error.
That's nonsense. It's one error, regardless of how often the code is executed. Quote: the chances of getting a memory error must increase linearly with the size of the program. I'm not sure I agree: in a complex programme, you can have correlations between lines that lead to memory leaks even if each line by itself looks fine. Therefor, I would expect the chance to scale quadratically with the number of lines of sourcecode. There has to be a way to test this experimentally. Problem is that it requires people to write a statistically significant number of programmes (so we can compare different source sizes) of different length, of similar levels of complexity, without them fixing accidental memory leaks along the way. Probably not doable, and as we're arguing over a hyperbole, also not worth the effort. |
Matt Kindy
Member #7,331
June 2006
![]() |
That makes sense |
|
|