• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java / C++

 
charles atlas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Malcolm Featonby
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey easy,
There are still some of us old timers around who remember what Cobol looks like.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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++.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
charles atlas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic