ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

where to start learning to program in c++

(1/3) > >>

dtrud0h:
Hey Mouser, and others.
  If you could recommmend only one text, or book for someone with absolutely zero c, or c++ knowledge to read as their first venture into programming (in my case besides "introduction to basic" which I took 25 years ago in High school.) what would it be.  Also would that be a good place to start?  I know that python and delphi have been mentioned as easier languages to learn, but for me, (I'll probably only learn 1 or 2 languages before I die if I start now,) so from a functionality and compatibility stand point what languages do you see sticking around for a while and staying competitive for the forseeable future?

EDIT:  I probably should have put this in the "Teach Yourself C" Main forum instead of a reply,  feel free to move it, I couldn't figure out how.

mouser:
c++ is one of the harder languages to learn, because it has so many oddities that come from its long history and need for backward compatibility.

i have a real love/hate relationship with c++.  it is my primary language and has been so for over 20 years.
but i am increasingly skeptical of its longevity and the current modern languages are moving in a better direction imho in terms of consistency,etc.
though i must say i haven't found a language yet that i am willing to switch over to full time.

i like a lot of the ideas of c# and i think that might be a reasonable choice for someone interesting in learning; so would java. python as well.  perl i would avoid - it's very powerful but for learning i think it teaches the wrong sloppy things.

my advice to people who are trying to learn is somewhat non-standard. i have always found that for new learners, staying motivated and staying the course can be the hardest part.

so my usual suggestion is take a take when you have some time and find yourself a bookstore, and browse.  go through books until you find one that really speaks to your style of learning.  at least for your first jump into the subject, i think finding a book that speaks to you may be the most important.  It's very hard to find book reviews for newbie programmers, because those who review programming books are experts and they won't care about what you care about.

the current favorite c++ text book (and they make java and c# as well) is by Deitel and Deitel.
http://www.deitel.com/books/cpphtp5/

these are big comprehensive good books, but im not sure they will inspire you.

c++ is a hard language to learn and a harder language to master.  it has no build-in user interface or graphics or networking libraries, and it can be hard to add such things to your code, which makes it a very frustrating learning experience in the short term, expecially for windows users.

languages like c# and java are full serious languages like c++ but are a little more gentle and have user interface libraries integrated, which can give you a much more immediate sense of satisfaction..

the so-called scripting languages like python, lua, ruby, etc are even more immediate satisfaction types of languages.

again, you really can't go wrong with any of these, browse some books and see which one has some sample programs that excite you.

no matter what you choose, if you stick with it you will learn it.

mouser:



here's a bit of coder humour for you.

everytime i make a post somewhere saying how i have been using c++ for 20 years, i always get a quick message from jibz with something snarky like this:

[Jibz] hmm .. it continues to amaze me that you started with c++ before the first edition of The C++ programming Language was published
[Jibz] you were really up front back then
--- End quote ---

he never lets me get away with anything !

ive been programming in c and c++ for the last 20-25 years.  at what point i switched from c to c++ i can't remember, though it was probably sometime after the invention of c++.

btw i am an OOP (Object Oriented Programming) true believer - i think it's one of the greatest inventions of man, and will reshape the way your mind works for the better :)

Jibz:
dtrud0h,

I think what language to choose depends a lot on what you are going to be doing with it. No single language is great for everything, all have some places where they excel, and others where you have to struggle with them.

I know that's not much help, but I think you should start by finding out what you are going to program and on what platform(s). If you are going to be coding Windows GUI applications, then Delphi, VB, C#, C++ are probably all good choices.

mouser,

The first edition of The C++ Programming Language was from 1985, so from next year on I'll stop :mrgreen:.

chr15:

AT&T researcher Bjarne Stroustrup built the first version of C++ in 1983  ;)

Navigation

[0] Message Index

[#] Next page

Go to full version