The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > General Programming > C / C++


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Reply
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 07-31-2007, 08:37 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,109
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
Icon8 Is This True?

I told my friend that I'm going to learn C++ after learning Java. He told me that it's like going backward!!! He was saying why do I want to learn C++ after I'm learning Java..? Java is probably much higher language than C++, that's why he said it, but is it true that it's like going "Backward"??? He told me that here's suppose to happen:

Code:
C --> C++ --> Java

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #2 (permalink)  
Old 07-31-2007, 09:19 AM
Bench Bench is offline
Full Programmer
Join Date: Jul 2007
Location: UK
Posts: 109
iTrader: (0)
Bench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished road
On what grounds is he basing that claim?

Java is managed - its dependent on a virtual machine for all interaction with computer hardware (incl. memory management, I/O, audio/visual, GUI, etc). Other managed languages include C#, Python, VB.Net

C++ is unmanaged - it relies on the programmer and 3rd party libraries to deal with hardware interaction and memory management. The same goes for Pascal and C

Whether to use a managed or unmanaged language depends on the kind of application being written. eg, when it comes to high-performance applications (3D games, operating systems, network services, etc), the last thing you need is a virtual machine getting in the way, slowing things down. On the other hand, if the application is strongly GUI-based, (probably designed for end-users), or speed/memory isn't that important, then Java or C# might be a good idea.

Also, for someone learning their first language, it can help to get all the frustrating, fiddly memory management stuff taken care of, so alot of introductory courses will typically start with Java or Python.

So, while the two languages are syntactically similar, and Java's SDK is available in C++, both are used for very different purposes, and can't really be compared.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by Bench : 07-31-2007 at 09:21 AM.
Reply With Quote
The Following 2 Users Say Thank You to Bench For This Useful Post:
HelloWorld (07-31-2007), TeraTask (07-31-2007)
  #3 (permalink)  
Old 07-31-2007, 10:04 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,109
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
I agreed to your point that Java is more educational friendly than C++

Quote:
Java's SDK is available in C++
I don't get what do you mean by this
So we can use Java SDK to program C++? Does it still require JVM to run an application if we use Java SDK in C++?

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #4 (permalink)  
Old 07-31-2007, 10:20 AM
Bench Bench is offline
Full Programmer
Join Date: Jul 2007
Location: UK
Posts: 109
iTrader: (0)
Bench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished road
Quote:
Originally Posted by HelloWorld View Post
I agreed to your point that Java is more educational friendly than C++



I don't get what do you mean by this
So we can use Java SDK to program C++? Does it still require JVM to run an application if we use Java SDK in C++?
The SDK is essentially much (possibly all?) of the source code for the java platform, and is written in C++ (At least, this is the case on Windows, Mac, Solaris and Linux). The SDK lets you write your own extensions to the Java language itself, so, having been originally developed in C++, its easy to see why Java looks similar.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to Bench For This Useful Post:
HelloWorld (07-31-2007)
  #5 (permalink)  
Old 07-31-2007, 11:25 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,109
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
I'm just wondering here:
Does this case also applies to all programming languages? (or at least.. most)
Are most of them are also written in C++?

One reason why I want to also learn C++ is because it's the foundation of everything, and yeah, I want to know what's behind everything that works on my machine too!!!

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #6 (permalink)  
Old 07-31-2007, 02:25 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 416
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
Well, I don't understand the motivation behind criticizing learning - no matter which so-called direction it's in. What you should be asking is what do you, as a programmer, want to code? The answer to that will help guide you to an appropriate language.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following 2 Users Say Thank You to TeraTask For This Useful Post:
Bench (07-31-2007), HelloWorld (07-31-2007)
  #7 (permalink)  
Old 07-31-2007, 02:31 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,109
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
Quote:
Well, I don't understand the motivation behind criticizing learning
I also agreed with TeraTask's point. He didn't really criticize me because of learning C++, but I'm just wondering if his opinion is true about C++

The only reason why I want to learn C++ is that because it seems like it's widely used as the foundation to (almost) everything

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #8 (permalink)  
Old 07-31-2007, 04:54 PM
Bench Bench is offline
Full Programmer
Join Date: Jul 2007
Location: UK
Posts: 109
iTrader: (0)
Bench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished road
Quote:
Originally Posted by HelloWorld View Post
The only reason why I want to learn C++ is that because it seems like it's widely used as the foundation to (almost) everything
That's more than enough reason IMHO

If you're curious, Bjarne Stroustrup has written a list of just a few organisations/applications which have used C++
C++ Applications

He writes at the top of the page, that he couldn't list even a 1000th of the number of projects using C++ ... You get the idea.


One other reason, at least with regards to C (I'm not sure if it applies as much to C++), is that its widely recognised by employers. If you're competent in C, then you'll be more convincing when you come to sell yourself on other languages you know.

The employer may not need a C programmer, but if a PHP/SQL/C#/etc programmer also knows C, that adds more credibility, being essentially the 'de facto' language that many will look for in applicants. You could bet good money that the interviewer for a programming job will be versed in C too.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to Bench For This Useful Post:
HelloWorld (07-31-2007)
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 04:33 PM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50