Question for all the White-Hats and C++ programmers[message #101782]
|
Fri, 20 August 2004 14:36
|
|
JSF |
|
Messages:8
Registered:March 2004 Location: Ontario, Canada |
|
|
How did you learn to use C++ Programming, did you learn it in highschool, college, university, books, friends, internet, and how much time have you spent learning it? I ask this because I want to learn C++ too but I want to know how I should start(school, books, or the internet).
Report message to a moderator
|
Private
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Question for all the White-Hats and C++ programmers[message #101794]
|
Thu, 02 September 2004 15:23
|
|
ebuck |
|
Messages:123
Registered:August 2004 Location: Houston, TX |
|
|
I know that C++ is all the rage, but plot your course before you rush into things.
C++ can be used several ways, the most popular of which include:
1. C++ as a better C.
2. C++ as an object oriented programming language.
My suggestion is to figure out which one applys to you.
If you use C++ as a better C, grab a C programming text book (from you local community college / half price bookstore) and start reading. You'll know if it's really a text book by the number of problems it has (for homework assignments) at the back of the chapter. (A classic is "How to Program C" by Dietel and Dietel)
If you use C++ as an object oriented programming language, grab a copy of the Java Developer's toolkit from SUN, and the latest copy of "Learning Java" from O'Reilly Publishers OR "Thinking in Java" by Bruce Eckels. Then after you start to understand the language, start learning about patterns.
Of course, there's other ways to use (and abuse) C++, and other paths to take. But generally, there's a few guidelines that I like to (sometimes) adhere to:
1. Realize that learning how to program and learning a programming language are two different things. Learning how to program is similar to learning how to write a good essay. Learning a language is similar to learning about grammar and sentence structure.
2. Avoid "for Dummies", some people like the manner in which it's presented, but the buddy-buddy chat style has a high amount of fluff to content ratio. Try to buy books which are reguarded as staples of the computer science program at your nearby school / university.
3. There's a few good publishers who have made a name for themselves by writing excellent computer books. O'Reilly, New Riders, Addison Wesley, Prentice Hall, and perhaps a few others.
4. After you learn your first language, learn another. Most languages are related, and you can gain insight on both which language to use for a particular project (right tool for the job) and how to better use a language you already know.
5. Read good code. You'll get better ideas on how to solve your problems in a clean manner. Good code is clear, avoids repetition, does the job, and can be modified without deep knowledge of every other piece of code in the program. Bad code lacks some (usually all) of these features.
Report message to a moderator
|
Sergeant
|
|
|
|
|