473,386 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Should I learn C++ or Java now?

I have read many of the topics on learning C++ or Java first.
It seems like everyone says something different.
I would like to know if I should learn C++ or Java.
First a little about myself.
I know PHP, BASIC, and of course HTML.
I'll be 15 years old in September.
I am interested in programming GUI applications.
I am also interested in programming games.
I know that I should learn C++ to program games, but would learning
Java make the process any easier? Or am I better of just diving right
into C++?
Are there any recommended books on Java or C++ (depending on which
language I should learn first) for the beginner who only know PHP and
BASIC?

Sorry if this post some how offends somebody.

A teenager in desperate need of advice,
Elijah
Jul 19 '05
55 45893
Alexander Terekhov <te******@web.de> wrote in message
I have the 3rd edition pdf(s) [1st printing, I guess] from the IBM
Visual Age C/C++. Uhmm, perhaps you can provide a patch, oder? ;-)


I think what they shipped with the IBM compiler was something like a
3rd printing. It's now 1000+ corrections/improvements and two
appendices behind. If I were actually using it, I'd retire it to my
personal museum and get a new printing.

I do provide "patches" aka errata, and the two extra appendices are
also on my home pages as is the C/C++ compatibility appendix (by
popular demand). However, "patches" will only get you so far.
Jul 19 '05 #51

Bjarne Stroustrup wrote:

Alexander Terekhov <te******@web.de> wrote in message
I have the 3rd edition pdf(s) [1st printing, I guess] from the IBM
Visual Age C/C++. Uhmm, perhaps you can provide a patch, oder? ;-)
I think what they shipped with the IBM compiler was something like a
3rd printing. It's now 1000+ corrections/improvements and two
appendices behind. If I were actually using it, I'd retire it to my
personal museum and get a new printing.


The "problem" is that I really need pdf(s)! Searching aside, I have
terrific ThinkPad with a FlexView display, you know.

I do provide "patches" aka errata, and the two extra appendices are
also on my home pages as is the C/C++ compatibility appendix (by
popular demand). However, "patches" will only get you so far.


I meant that "a patch" would provide some "data" plus some nice C++
program [open source, of course] that I'd use to update the stuff:

02/18/1998 03:03 PM 71,601 appA.pdf
02/18/1998 03:04 PM 63,046 appB.pdf
02/18/1998 03:06 PM 196,765 appC.pdf
02/18/1998 03:07 PM 86,541 ch1.pdf
02/18/1998 03:08 PM 183,056 ch10.pdf
02/18/1998 03:09 PM 200,553 ch11.pdf
02/18/1998 03:16 PM 153,774 ch12.pdf
02/18/1998 03:17 PM 152,795 ch13.pdf
02/18/1998 03:18 PM 165,478 ch14.pdf
02/18/1998 03:02 PM 202,431 ch15.pdf
02/18/1998 03:19 PM 177,831 ch16.pdf
02/18/1998 03:23 PM 269,602 ch17.pdf
02/18/1998 03:24 PM 264,881 ch18.pdf
02/18/1998 03:36 PM 193,287 ch19.pdf
02/18/1998 03:37 PM 119,948 ch2.pdf
02/18/1998 03:38 PM 166,133 ch20.pdf
02/18/1998 03:42 PM 301,934 ch21.pdf
02/18/1998 03:43 PM 202,769 ch22.pdf
02/18/1998 03:46 PM 135,671 ch23.pdf
02/18/1998 03:48 PM 195,784 ch24.pdf
02/18/1998 03:49 PM 132,684 ch25.pdf
02/18/1998 03:50 PM 121,593 ch3.pdf
02/18/1998 03:51 PM 96,204 ch4.pdf
02/18/1998 03:52 PM 102,436 ch5.pdf
02/18/1998 03:54 PM 177,092 ch6.pdf
02/18/1998 03:55 PM 118,218 ch7.pdf
02/18/1998 03:56 PM 149,431 ch8.pdf
02/18/1998 03:57 PM 126,849 ch9.pdf
02/18/1998 03:59 PM 165,653 index.pdf
02/10/1998 02:32 PM 8,970 npref.pdf
02/10/1998 02:30 PM 7,495 opref.pdf
02/04/1998 01:55 PM 5,766 part0.pdf
02/04/1998 01:50 PM 4,827 part1.pdf
02/04/1998 01:52 PM 5,130 part2.pdf
02/04/1998 01:53 PM 4,800 part3.pdf
02/04/1998 01:53 PM 5,144 part4.pdf
02/04/1998 01:46 PM 4,640 partA.pdf
02/10/1998 02:29 PM 8,604 pref.pdf
02/18/1998 04:01 PM 45,888 tbl.pdf
02/10/1998 02:35 PM 10,993 title.pdf

I'd simply "apply a patch" and, voila, all bugs are gone and I
enjoy 1000+ corrections/improvements. Well, it won't "++" book
sales, though. ;-)

regards,
alexander.
Jul 19 '05 #52
el***********@yahoo.com (Elijah) wrote in message news:<63**************************@posting.google. com>...
I have read many of the topics on learning C++ or Java first.
It seems like everyone says something different.
I would like to know if I should learn C++ or Java.
First a little about myself.
I know PHP, BASIC, and of course HTML.
I'll be 15 years old in September.
I am interested in programming GUI applications.
I am also interested in programming games.
I know that I should learn C++ to program games, but would learning
Java make the process any easier? Or am I better of just diving right
into C++?
Are there any recommended books on Java or C++ (depending on which
language I should learn first) for the beginner who only know PHP and
BASIC?


If you want to learn to program games you should start
with learning how to program games. Choice of language is incidental.
Find a good book on programming games in BASIC. Once you grasp
the fundamentals of games design, you will be able realize
what you really need from a programming language to help implement
your idea. Programming games is more than just writing C++ or
Java code. It is a writing a script, designing user interface,
graphics, graphics engine, scripting engine, etc, etc, etc...

BASIC is a good language to learn programming. If you want to take
on C++, then use what you already know. This is how I would do it.
1. Think of an algorithm you want to implement.
2. Implement it in BASIC.
3. Then do it in C++.
4. Then do it in C++ without using "goto". :)
Jul 19 '05 #53

i personaly think learning C++ first then maybe doing java , C++ will
probley give u a better idea on java
--
Posted via http://dbforums.com
Jul 19 '05 #54
Bladez wrote:

i personaly think learning C++ first then maybe doing java , C++ will
probley give u a better idea on java
--
Posted via http://dbforums.com


Outside of very basic similarities in syntax, one will not really help you
with the other.

Learn first whatever you think will pay the bills the quickest.

Java is actually more complicated to learn, not because of the language
itself, but because of all the extra subsystems one needs to know in
today's marketplace -- J2EE, Struts, JSP, etc.

-Fred
--
Shameless plug:
http://JobMarketIntelligence.com
A database of high-tech firms at your fingertips.
Jul 19 '05 #55

"Fred" <fr**@jobmarketintelligence.com> wrote in message
news:iJ95b.335093$YN5.228379@sccrnsc01...
Bladez wrote:

i personaly think learning C++ first then maybe doing java , C++ will
probley give u a better idea on java
--
Posted via http://dbforums.com


Outside of very basic similarities in syntax, one will not really help you
with the other.

Learn first whatever you think will pay the bills the quickest.

Java is actually more complicated to learn, not because of the language
itself, but because of all the extra subsystems one needs to know in
today's marketplace -- J2EE, Struts, JSP, etc.

-Fred
--
Shameless plug:
http://JobMarketIntelligence.com
A database of high-tech firms at your fingertips.


I agree with Fred, learn the skillset that helps pay the bill first.

However from a technical viewpoint, learn C++ really well, most commercial
and network applications are written in C/C++.
Then learn a bit of Java, since it is so popular now, it wouldnt hurt to put
it on your resume.

In my opinion, the core language Java and associated technologies like
J2SE(Java Standard Edition ) and J2EE (Java Enterprise)
are for people who can't program well or dont have the adequate Computer
Science or Engineering background to do
enterprise development in teams. Java is more for cyber coolies.

For example EJB (Enterprise Java Beans) was invented because most
programmers and developers could not handle the
complexity of CORBA,DCOM, RMI and all that funky distributed and advanced
database computing stuff like transaction processing,
component models. EJB provides a very simplified abstraction for component
transaction monitors (CTMs), which represented
convergence of 2 technologies like transaction processing monitors (TP) eg
Tuxedo etc and distributed object services like DCOM, CORBA etc.
EJB is just a simple server-side component model that makes it easier to
developer Java components (EJBs, web applications etc)
among various Application servers( that is the EJB containers). The J2EE
specifications are just a bunch of coding, design rules and contractual
terms
that allows one standard J2EE application that runs one one standard J2EE
container to run in another without modification.

Struts and JSP are no harder than DHTML or Embedded Perl with some XML
thrown in for configuration and deployment.
ASP and Visual Basic is more brainless, trivial.

Java has syntax more similar to C than C++; had garbage collection,
exception handling similar to C++.
Java does not have multiple inheritance like C++, uses interfaces instead.
Java is a distant dialect of Lisp
with C-like syntax and with some Smalltalk semantics thrown in.

Learn C++ well and some Java.

Regards,
Govindan
Jul 19 '05 #56

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

124
by: 43 | last post by:
how come m$Office isn't written in .net? how come Open Office isn't written in j2ee? how come dbms systems aren't written in either? how come browsers aren't written in either? how come...
8
by: WindAndWaves | last post by:
Hi Dudes I would really like to learn the basics of Javascript. I understand how it works, but a couple of years down the track, I am still not sure about its basic syntax. Does anyone know a...
1
by: Robert | last post by:
I am reading this book - Java Unleashed - However I cannot get the programs on the CD because the CDrom no longer works. I am just wondering if anyone has the CDrom available and can send me a copy...
1
by: Gunnar G | last post by:
Hi. I'm interested in learning java. I know how to program, and I've been using C++ for the last years. What book would you recomend for a quick thourough path to java?
8
by: Hermawih | last post by:
Hello , I want your opinion about this . In order to say it clearly , I think I have to describe it in long sentences . I could consider myself as Intermediate/Advance Access Developer ;...
4
by: MarkW | last post by:
I hope this is the correct place to post this: I am developing a web site for a e-commerce business I will be running. The site I'm setting up will be 50% store, 50% content. I'm not sure which...
6
Death Slaught
by: Death Slaught | last post by:
Where's the best place to learn Java for free? Something like the stuff on w3schools.com Thanks, Death
2
by: vikram0929 | last post by:
I am a mechanical engineer, I want to learn java/j2ee but I dont know C++ and I know c to some extent. Is it good to learn java/j2ee can I get a career in this area
2
by: vpatel1 | last post by:
can any one help me ? I want to learn java in one month
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.