473,545 Members | 289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 #1
55 45929
Elijah wrote:
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,


It would probably be more fun to learn Java first.

Programming games today is about high performance graphics.
Take as many math courses as you can get and *pay attention*!

Jul 19 '05 #2
"Elijah" <el***********@ yahoo.com> wrote in message
news:63******** *************** ***@posting.goo gle.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?

Sorry if this post some how offends somebody.

A teenager in desperate need of advice,
Elijah


I wouldn't recommend learning Java as an expedient to learning C++. Learn
Java if you want to program in Java. If your ultimate goal is to learn C++
start right away. There are GUI programming tools in just about every
language today, so I don't see that as a language selection criterion.

You might also consider Python. It has a lot to offer.

--
Cy
http://home.rochester.rr.com/cyhome/
Jul 19 '05 #3
> learning C++ is best done aftee u learn c thoroughly

If you really want to learn C++ I would not take the C detour first. I
you learn C first thoroughly (like I did), you will have to unlearn a
lot when you are start programming C++. The problem is that even though
almost all C constructs still work in C++, they are often not
appropriate in a C++ context because C++ offers usually much better
alternatives.
Because u wud be able to make a differece between language specific
syntactical info(in C) and object oriented concepts of C++
Once u learn language syntax in C thorughly , when u start learning C++ u wud be able to apprciate the OOPS concepts in C++,
C++ doesn't force you to use OOP concepts. Consequently I see still many
programmers with a C background essentially programming C with C++. The
learning the syntax of a new programming language is usually the easiest
part. Learning new concepts behind it is much harder. The transistion
from Pascal to C was very easy for me, I only had to get familiar with
another syntax. However the transition from C to C++ was much harder
because I had to learn whole new concepts and new ways to structure
code.
Java since its made a platform independent it will be too heavy on u if u are not sure of basic concepts of a high level language ,


Java can be a perfectly acceptable language to learn programming.
However if the goal is to learn C++ I wouldn't take that detour either.

I don't think that the language you use to learn programming is all that
important. I started programming with BASIC on a C64, hardly an ideal
start. Yet it learned me basic concepts like variables, loops,
sub-routines...etc, concepts you will find in just about any other
language. I do believe that quick and positive feedback is advantage
when learning to program. On the C64 I could enter a line of code, press
enter and see the results. With Python I can do the same thing, and with
Python you can learn many of the important concepts including OOP. Once
you have mastered the basic concepts, learning a new programming
language becomes a lot easier.

--
Peter van Merkerk
peter.van.merke rk(at)dse.nl

Jul 19 '05 #4
Eljah> Are there any recommended books on Java or C++ (depending on which
Eljah> language I should learn first) for the beginner who only know PHP and
Eljah> BASIC?
Eljah>
Eljah> Sorry if this post some how offends somebody.

Go to your local second hand bookstore and find the books
on Java and C++. You'll probably find lots of both of them.
Decide on the language by the documentation that you can get.
It is not easy to recognize a good book but some general
guidelines are:

-good books are heavy books
-good books have a good index
-good books have a good Table of Contents at the start (except
for Bjarne Stroustrup's C++ Programming Language, that has a
lousy Table of Content. There is also something with the backside
of it that I must always look twice to find it. But the weight will tell
me I'm right)

Some Java books have a CD-ROM in the back with a compiler and
tools that you need to start programming. If you plan to jump in quickly
with a high level object oriented language, I'd advice Java. With C++,
you'll have to go through a lot of grunch. But it pays of.

-X
Jul 19 '05 #5
"Elijah" <el***********@ yahoo.com> wrote in message
news:63******** *************** ***@posting.goo gle.com...
I have read many of the topics on learning C++ or Java first.
It seems like everyone says something different.
That is because the answer to your question depends very much on what
the objectives are. Even though many people believe differently, there
is no single perfect programming language for every possible
application. But whatever your choice will be, you can't really go
wrong. Worst thing that may happen is that you did not take the most
direct way to reach your goal, but even that experience may be valuable.
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++?
If C++ is your goal go straight for C++, even though the learning curve
of C++ is steeper. At first sight Java and C++ may look deceptively
similar, but there are some major conceptual differences between the
two. These differences can make a transition from Java to C++ difficult.
Are there any recommended books on Java or C++


"Accelerate d C++" (http://www.acceleratedcpp.com/ ) is usually
recommended as an excellent beginners C++ book for people with some
programming experience.

--
Peter van Merkerk
peter.van.merke rk(at)dse.nl


Jul 19 '05 #6
"Agent Mulder" <mb************ *******@home.nl > wrote in message news:<bf******* ***@news4.tilbu 1.nb.home.nl>.. .
Eljah> Are there any recommended books on Java or C++ (depending on which
Eljah> language I should learn first) for the beginner who only know PHP and
Eljah> BASIC?
Eljah>
Eljah> Sorry if this post some how offends somebody.

Go to your local second hand bookstore and find the books
on Java and C++. You'll probably find lots of both of them.
Decide on the language by the documentation that you can get.
It is not easy to recognize a good book but some general
guidelines are:


http://www.accu.org/bookreviews/public/index.htm

<snip>
Jul 19 '05 #7
mjm
Find out if games are actually programmed in Java, ie. talk to game
programmers.
If the answer is yes do Java since it is more than just a language it
comes with an enormous number of tools that can be used very easily.
In C++ you have to acquire libraries and although this is possible you
have to find out how to install them and link against them which are
issues which you don't have with Java.

While you can draw something on the screen immediately in Java once
you understand the use of classes in Java it will take much more
effort in C++.

C++ as a language is probably 3 times as extensive and complicated as
Java.

Moreover the problem is not only the language but also the tools which
are needed to build (compile and link) a program and what sort of
error messages these tools produce. If you can't handle these tools
you won't ever get to the level where there is any difference between
C++ and Java and certainly not to the point of programming games. You
will not have code that executes.

This process is much simpler in Java with decent error messages that
tell you what goes wrong and where. In C++ you might see

"program was terminated since SIGNAL 11 (segmentation fault) was
received".

Where? Why? What? ----- you find it out and learn how to use the
debugger.

Linker errors in C++ are ultimate horror:
"In function <incomprehensib le string, seemingly unrelated to your
program> undefined reference to <ghastly string, 1000 characters all
on one line, scroll right for minutes>".

Sometimes the function where supposedly the undefined reference
occured is one you have never heard of, the file resides in a
directory you did not even know existed and when you look it up there
surely is no reference to your function at all.

It will take a long time until you can even read these error messages.
It is very daunting.

I have dealt with programs consisting of about 100 classes without
ever using the debugger in Java. I have also written and compiled
classes that compiled right away and worked correctly. That has never
happened to me in C++.
I am about 3 times faster in Java than in C++.

On the other hand C++ is the pinnacle of programming languages and it
produces very fast code. It also forces extreme discipline on you
otherwise you won't make it. Plan on programming sessions lasting 20
hours and longer. If you can't stomach that C++ is not for you. You
will also need help fom other C++ programmers. It is very unlikely
that you will succeed in isolation.
Jul 19 '05 #8

Gavin Deane wrote:
[...]
http://www.accu.org/bookreviews/public/index.htm


http://groups.google.com/groups?selm...9973D%40web.de
(Subject: Re: Book reviewer)

My, in the meantime the counter jumped from 840 to 939. Geezes.
Francis is 'the-1K-computer-book-man'. Almost.

regards,
alexander.
Jul 19 '05 #9
"Agent Mulder" <mb************ *******@home.nl > wrote in message news:<bf******* ***@news4.tilbu 1.nb.home.nl>.. .
Eljah> Are there any recommended books on Java or C++ (depending on which
Eljah> language I should learn first) for the beginner who only know PHP and
Eljah> BASIC?
<snip>
Go to your local second hand bookstore and find the books
on Java and C++. You'll probably find lots of both of them.
Decide on the language by the documentation that you can get.
It is not easy to recognize a good book but some general
guidelines are:

-good books are heavy books
No! Some big books are terrible.

books with titles like:-
"Learn <anything> In 21 Days For Morons"
-good books have a good index
-good books have a good Table of Contents at the start (except
for Bjarne Stroustrup's C++ Programming Language, that has a
lousy Table of Content. There is also something with the backside
of it that I must always look twice to find it. But the weight will tell
me I'm right)


Mr Stoustrup's book is excellent. Possibly a bit tough for a beginner.
You (Elijah) arn't a complete beginner.

<snip>
--
Nick Keighley

Computers are useless. They can only give you answers.
-- Pablo Picasso
Jul 19 '05 #10

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

Similar topics

124
4819
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 RealPlayer, MediaPlayer and all applications that need speed are written in c++ ? (except for
8
1714
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 place where I can find out more about this (preferable a website)? Thank you Nicolaas
1
3069
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 of the source code for the programs. If you do, you can send me to my google account drpanli@gmail.com and it will be able to receive large...
1
3277
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
4015
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 ; Intermediate/Advanced Database designer . Because of the requirements , I must create Web Application . Access Pages is not suitable for that so I...
4
3572
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 shopping cart I'll be using yet (am looking at os-commerce and miva) but the other part will be content. I will be writing reviews of products,...
6
2236
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
2584
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
1653
by: vpatel1 | last post by:
can any one help me ? I want to learn java in one month
0
7398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7752
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5325
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3449
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
701
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.