Valhalla Legends Forums Archive | General Programming | Java or C++

AuthorMessageTime
Crypticflare
Tomorrow I'm heading up to our book store and trying to determine which I want to read, I learned some easier languages (HTML) and read up to some Intermediate levels of Visual Basic, but Java and C++ have really intrigued (sp?) me lately, so I was wondering which one would be the easier of the book learning, I was leaning towards Java but C++ is widely used and an ownage language, so If I could hear some ideas on what you do lemme know, I don't plan to program commercially but I'd still like to know an intermediate level or higher stage of if. Having more knowlege can't hurt you I guess. Would Java be easier to start with then convert to C++, or should I just start fresh with the C++?
April 18, 2003, 4:28 AM
iago
First of all, html isn't a programming language.

Java and C++ both have advantages to them. They both have a hard part and an easy part. In C++ the easy part is that you don't need object orientation, but the difficult part is having to understand pointers (granted, to anybody experienced in C or assembler, pointers become second nature). Java, on the other hand, doesn't have pointers (well, it does, but it hides them which actually confuses stuff more), but Java will force you to program in Objects, which can be confusing for a beginner programmer and it could lead to doing a lot of stuff that you know works but you don't know why (more so than c++, anyway).

Java is multiplatorm, it's hard to crash a java program while running (it'll almost always throw an exception which can be handled), but in the real world, or in any serious software, it's useless.

C++ is somewhat multiplatorm, the programmer has to be careful or his program can be crashed, you can have memory leaks, it's easier to crack ("hex"), but it's a lot more fun and you can actually do real programs.

That's the summary of each, I'll let you decide for yourself :)
April 18, 2003, 8:01 AM
Grok
About two weeks ago there was some movie on TV in which one of the characters was a self-proclaimed super guru technical guy. He told this girl that she wouldn't understand his job because it was a "very specialized programming language" that very few people could do.

What was his job you ask? Well so did someone in the movie.

"html on unix"

i about died laughing.
April 18, 2003, 2:49 PM
Crypticflare
For now I will be sticking to Java, Web design is what I'm interested in, and it can't hurt to have some Java knowlege when I apply for jobs and whatnot, thanks for the help Iago I really appreciate it!
April 18, 2003, 3:43 PM
St0rm.iD
[quote author=iago link=board=5;threadid=1081;start=0#msg8042 date=1050652864]
First of all, html isn't a programming language.

Java and C++ both have advantages to them. They both have a hard part and an easy part. In C++ the easy part is that you don't need object orientation, but the difficult part is having to understand pointers (granted, to anybody experienced in C or assembler, pointers become second nature). Java, on the other hand, doesn't have pointers (well, it does, but it hides them which actually confuses stuff more), but Java will force you to program in Objects, which can be confusing for a beginner programmer and it could lead to doing a lot of stuff that you know works but you don't know why (more so than c++, anyway).

Java is multiplatorm, it's hard to crash a java program while running (it'll almost always throw an exception which can be handled), but in the real world, or in any serious software, it's useless.

C++ is somewhat multiplatorm, the programmer has to be careful or his program can be crashed, you can have memory leaks, it's easier to crack ("hex"), but it's a lot more fun and you can actually do real programs.

That's the summary of each, I'll let you decide for yourself :)
[/quote]

Iago you know nothing.

He said HTML was a language, not a programming language.

Java is the number 1 (ok it might be number 2, next to .net, but I don't know) enterprise applications language, which I count as real-world serious software. Java's references are also insanely easy to grasp if you just don't think about them...as they take care of themselves exactly the way they're supposed to.

You're almost right on C++, except you said it's easier to crack. Hell no! Java can be disassembled to Java source so it's easy++ to crack (unless you obfuscate it, which makes life a little harder).

Too bad you're clueless Iago. I used to think better of you until now.

To crypticflare: Java sucks in web design, don't use it. Use flash/php instead. HOWEVER, if you're going to learn Java or C++ first, use Java. It gets you into good habits faster, and you can make more functional programs faster and it's a lot harder to make mistakes in Java.

Grok: HAHA.
April 20, 2003, 8:42 PM
iago
[quote author=St0rm.iD link=board=5;threadid=1081;start=0#msg8124 date=1050871323]
[quote author=iago link=board=5;threadid=1081;start=0#msg8042 date=1050652864]
First of all, html isn't a programming language.

Java and C++ both have advantages to them. They both have a hard part and an easy part. In C++ the easy part is that you don't need object orientation, but the difficult part is having to understand pointers (granted, to anybody experienced in C or assembler, pointers become second nature). Java, on the other hand, doesn't have pointers (well, it does, but it hides them which actually confuses stuff more), but Java will force you to program in Objects, which can be confusing for a beginner programmer and it could lead to doing a lot of stuff that you know works but you don't know why (more so than c++, anyway).

Java is multiplatorm, it's hard to crash a java program while running (it'll almost always throw an exception which can be handled), but in the real world, or in any serious software, it's useless.

C++ is somewhat multiplatorm, the programmer has to be careful or his program can be crashed, you can have memory leaks, it's easier to crack ("hex"), but it's a lot more fun and you can actually do real programs.

That's the summary of each, I'll let you decide for yourself :)
[/quote]

Iago you know nothing.

He said HTML was a language, not a programming language.

Java is the number 1 (ok it might be number 2, next to .net, but I don't know) enterprise applications language, which I count as real-world serious software. Java's references are also insanely easy to grasp if you just don't think about them...as they take care of themselves exactly the way they're supposed to.

You're almost right on C++, except you said it's easier to crack. Hell no! Java can be disassembled to Java source so it's easy++ to crack (unless you obfuscate it, which makes life a little harder).

Too bad you're clueless Iago. I used to think better of you until now.

To crypticflare: Java sucks in web design, don't use it. Use flash/php instead. HOWEVER, if you're going to learn Java or C++ first, use Java. It gets you into good habits faster, and you can make more functional programs faster and it's a lot harder to make mistakes in Java.

Grok: HAHA.
[/quote]


Guess it's lucky that I never thought anything of you to begin with.

Java's references are also insanely easy to grasp if you just don't think about them
use Java. It gets you into good habits faster

Don't you see a problem with that? Is it really a good habit to assume something is going to work in a certain way without thinking about it? Well, it's not, the good habit is to understand how something works rather than just being able to dumbly use it. Java and Visual Basic share that problem: you can do stuff without understanding anything about how it works.
April 21, 2003, 1:03 AM
St0rm.iD
It's not all that hard to understand how it works. Everything is passed by reference, except for primitive types.
April 21, 2003, 1:28 AM
Crypticflare
Thanks for the insight, I am currently learning Flash, (Aye its a bitch yet, I need to pick up a Flash for dummies book) PHP sounds good as well, I have the patience to read, I just need the time. I went up to our bookstore, nothing on the Java language, so PHP might work out for me, thanks Storm.
April 21, 2003, 5:29 AM
iago
[quote author=St0rm.iD link=board=5;threadid=1081;start=0#msg8144 date=1050888493]
It's not all that hard to understand how it works. Everything is passed by reference, except for primitive types.
[/quote]

But it's not necessary to understand, and they encourage you not to understand. Hiding stuff is bad, and doing stuff without understanding isn't a good habit to get into.
April 21, 2003, 8:01 AM
St0rm.iD
Then all of us should learn how compilers create code and optimize it? It is useful knowledge, but for everyday use, it's not really neccessary. It's like knowing how your car works: it's good to know, as if it breaks down it can help you, but for most uses, all you need to know is to press down the gas.
April 21, 2003, 4:11 PM
iago
I'm not saying that everybody should learn it, I'm saying it's a good habit. Not knowing how something works is a bad habit. Intentionally covering up something as important as pointers encourages bad habits.
April 21, 2003, 5:27 PM
St0rm.iD
Pointers aren't important when you're coding in a VM.
April 21, 2003, 11:11 PM
Arta
And it's coding in a VM that makes java horrid. I'm aware that there's a fundamental lack of logic behind that statement, but I don't care. It's just ewwy.
April 22, 2003, 5:54 PM
tA-Kane
[quote author=St0rm.iD link=board=5;threadid=1081;start=0#msg8161 date=1050941490]Then all of us should learn how compilers create code and optimize it?[/quote]Sounds like fun... I'm up for that! Well, after of course, I've become good at both C/C++ and (PPC) Assembly (more toward the latter of those, since Assembly is finitely more leeter).
April 24, 2003, 2:17 AM

Search