Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 15th, 2008, 8:15 AM   #11
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Re: c++ vs. java

Learn them both. On a side note, C++ will be here when most of us are dead and gone, kinda like Cobol and Fortran
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jan 15th, 2008, 4:48 PM   #12
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Re: c++ vs. java

so true, some of the programs that I work on belong to dead people. I know because some were written back in 1972. I always put RIP next to their name in the mod box
OpenLoop is offline   Reply With Quote
Old Jan 15th, 2008, 6:19 PM   #13
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 4 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
Re: c++ vs. java

Personally I have a distaste for Java because I feel it is unnecessarily verbose (see this post for more on that) and rigid. I prefer a language with high amounts of expressiveness, but by my standards, C++ doesn't come close either.


The best solution is to flip a coin, and I'm serious. You can learn plenty of the intricacies and better and worse points after that. Just don't get language deadlocked.
It is particularly sad how many people who are in the industry or really programmers in general do not seek more knowledge, better solutions, and keep asking questions. Rather, they get locked to one language because that is what their job is and that is what it depends on. It would be quite tragic for you to do the same thing.

Anybody can have quirks and language biases, even the best programmers. They may seek work more related to such things. But when it comes to a project, this should never stop you from just getting things done, favorite language or not.
__________________
os: mac os 10.5.4
revision control: git
editor: emacs

site
Mad_guy is offline   Reply With Quote
Old Jan 15th, 2008, 6:51 PM   #14
null_ptr0
12 years old
 
Join Date: Nov 2007
Posts: 80
Rep Power: 1 null_ptr0 is on a distinguished road
Re: c++ vs. java

C++ was created to be a more OO C, and Java was made for a completely different purpose; to be a programming language used on the web.
__________________
iload_0 iconst_1 ishl or
iload_0 iconst_2 idiv or
iload_0 iconst_2 iconst_1 imul idiv
[1] & [2] use the smallest stack size
null_ptr0 is offline   Reply With Quote
Old Jan 15th, 2008, 10:02 PM   #15
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
Re: c++ vs. java

Quote:
Originally Posted by null_ptr0 View Post
Java was made for a completely different purpose; to be a programming language used on the web.
No, Java was designed to be used on a wide variety of consumer devices and appliances. That is the driving force for all of its features, the JVM (portability), no pointers (reliability), and garbage collection (reliability).
__________________
Robotics @ Maryland AUV Team - Software Lead
Game_Ender is offline   Reply With Quote
Old Jan 16th, 2008, 3:40 AM   #16
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,206
Rep Power: 5 grumpy is on a distinguished road
Re: c++ vs. java

Quote:
Originally Posted by Game_Ender View Post
No, Java was designed to be used on a wide variety of consumer devices and appliances. That is the driving force for all of its features, the JVM (portability), no pointers (reliability), and garbage collection (reliability).
Well, that was the intent.

In practice, like any feature of any programming language or environment (Java includes aspects of both), those features have trade-offs.

Portability via the JVM gives an effect known as "write once, debug everywhere" (as different JVMs work differently), "no pointers" contributes to some loss of expressiveness which makes some things more difficult to code, and "garbage collection" is only a partial solution (it addresses some problems with memory usage but not with other resources such as file handles) that can make a program behave unpredictably at times because of the way the garbage collector works.

The above is not at shot at Java; I can equally describe trade-offs of the counter-part features of C++ (not relying on a JVM, supporting pointers, and garbage collection not being the default).

I agree with others who have said that there is no universal "best". Each language suits some applications better than the other, and each has weaknesses. Despite claims by zealots in either language.
grumpy is offline   Reply With Quote
Old Jan 17th, 2008, 2:22 PM   #17
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: c++ vs. java

I recommend that you go straight and learn C++. Do take in account that at first it is VERY complicated and you have to be comitted, but over time it almost becomes second nature. You might feel confused at first if there is any point to go passed HTML because of the complexity but don't turn away. You could follow my advice because I was in the same prediciment as you are in now; many people told me to way because of my age(14) and did other things such as to learn Python first, the thing is that I dd actually try but found it so hard that I quit.

You might wonder "Why the hell you I listen to a child?", right? Well the only way I could get you passed this is maybe explain how much I learned and show what level I am at so that you can feel slightly more secure about your choice(if a child can do it then so can I! Is the feeling you should get ). Hmm, currently I am able to create applications like Paint and can even create screensavers... I'm currently am working on a project that makes windows transparent as well as make certain parts of a window invisible or even a colour/color.

So for my ending statement I guess I'm gonna say go with C++(in general I believe it has much more power then Java)...

NOTE to all: Please, do not give me any flak for this post.
pcbrainbuster is offline   Reply With Quote
Old Jan 17th, 2008, 2:35 PM   #18
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 3 Narue is on a distinguished road
Re: c++ vs. java

>and you have to be comitted
On the plus side, the Jell-O is fantastic!
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote
Old Jan 18th, 2008, 2:50 AM   #19
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: c++ vs. java

I'm confused... But I like Jell-O to :p
pcbrainbuster is offline   Reply With Quote
Old Jan 18th, 2008, 7:25 AM   #20
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 639
Rep Power: 4 Jessehk is on a distinguished road
Re: c++ vs. java

Quote:
Originally Posted by pcbrainbuster View Post
I'm confused... But I like Jell-O to :p
http://en.wikipedia.org/wiki/Psychiatric_hospital
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming with Java: Tutorial ReggaetonKing Java 7 May 20th, 2008 10:58 AM
Special browser in Java (Project) stalefish Java 3 Feb 9th, 2008 4:22 PM
First Java Program duale2005 Java 3 May 22nd, 2006 5:17 PM
Java programmers, game developers, artists, be ware! RPG game team is recruiting! atcomputers.us Paid Job Offers 7 Sep 25th, 2005 7:25 PM
Begin my first lesson to learn Java satimis Java 7 Mar 3rd, 2005 2:45 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:24 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC