aspose file tools*
The moose likes Beginning Java and the fly likes Java / C++ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java / C++" Watch "Java / C++" New topic
Author

Java / C++

charles atlas
Greenhorn

Joined: Jun 17, 2003
Posts: 8
My friend says C++ is a more interesting and applicable language. He says I should have taken C++ then learn Cobalt!
Do you agree?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
C++ is more interesting an applicable than what? Java?
Let's see... 300 million Java enable processors are manufactured each month (if I recall correclty the numbers Jonathan Schwartz stated at JavaOne). 60+ percent of all enterprise applications are written in Java. Java is easy to learn. C++ ain't so pretty. Java has JavaRanch. C++ doesn't.
I say, just learn to program in a good OO language (like Java). After you've figured out the basics, then figure out the applications that might interest you more.
He says I should have taken C++ then learn Cobalt!
What does that mean? Does he mean that instead of learning Java, you should be studying C++ and then Cobol? Well, we probably need somebody to maintain those old systems.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Malcolm Featonby
Greenhorn

Joined: Jun 18, 2003
Posts: 14
Hey easy,
There are still some of us old timers around who remember what Cobol looks like.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
There is no reason you can't learn both C++ and Java. In fact, many of us do know both! But C++ is harder so it might make sense to start with Java. I think you might be better off learning C# though, instead of C++.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
He says I should have taken C++ then learn Cobalt!

And after you master Cobalt (sic), you can move on to LISP (lost in silly parentheses). Seriously, if you are new to programming, learning the basics with Java is the best way to go and as you progress you can start experimenting with the OO side of Java. The problem with C++ is that it is a superset of C which is procedural language, so it carries all the hair and warts that its predecessor does. Just be happy that you have Java to learn, I can't begin to tell you how hard it is to unlearn the bad habits that languages like C, C++, COBOL, RPG etc trap you into.


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Java vs C++ is an old flame war, but I'll throw in one point of view. I'm developing software to run a business. That means I'd like every line of my code to do some busines function, tell me something about customer service. Every line that is managing memory or overloading equals is questionable. Now, with that (exaggerated) point of view, C++ is pure hell. Coders can spend all day on housekeeping code and deliver no insurance code at all. Java lets them focus more on the business and less on keeping the compiler happy. Other languages do even better!
I have 25 years in the business and I'm a huge OO believer, but I have nothing bad to say about COBOL. It fills a business and technical need very nicely. Productivity and the ratio of business to housekeeping code can be VERY high. It has a rich data structure definition syntax. Mainframes easily support thousands of users doing millions of transactions a day. COBOL CICS has been doing stateless servers for thin clients since the 70s. Ok, it did take the committee 30 years to discover END-IF but nowadays COBOL is very capable.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
charles atlas
Greenhorn

Joined: Jun 17, 2003
Posts: 8
Originally posted by Dirk Schreckmann:
What does that mean? Does he mean that instead of learning Java, you should be studying C++ and then Cobol? Well, we probably need somebody to maintain those old systems.

hahaha
Malcolm Featonby
Greenhorn

Joined: Jun 18, 2003
Posts: 14
Thanks Stan,
I feel appeased.
I agree with Micheal however. If your starting out then Java is by far the best choice.
Get a good grip of the basics in a friendly environment before waging war with
hair and warts
Enamul Haque
Greenhorn

Joined: Jun 07, 2003
Posts: 21
All I know, understand and feel what Gregg said:
Really Philosophical


1. Do whatever earns you a living.
2. Use whatever language can get the job done.


<b><i>We all are the components of a huge program...... the programmer is always debugging us with His debugger.</b></i>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java / C++
 
Similar Threads
A GC Question
Exam Lab Question
the things Google use for developing
K&B book Chapter 2 Self Test Question No.3
problem in rediredtin GUI to IO Streams