Link to home
Start Free TrialLog in
Avatar of geeboy
geeboy

asked on

Real experts deserve this...

  Hello,I'm a beginner on programming.
   I want to ask a question here:
   If i begin studying a language like c++ or alike.Besides the concrete tech,what habites are importants?  
   To be more precisely, I want to know what habites are necessary .Are there some good habites or rules if I want to begin study a language like c++?
   I know I aint express it clearly.In short ,what should be paid specially attention if I want to become a veteran on like VC of windows?
   Any comments on how to studying a computer language like vc,java and whatsoever will be much much much much appreciated.
Thank all,wholehearted.
 
Avatar of Shay050799
Shay050799

Dear geeboy !
the best way to start VC++ is starting with C++, u don't need knoledge in C in order to start C++, there are tons of book out there for C++, VC++ is the windows version of C++, same code same rules, but much more complicated, i think u better start C++, check
www.amazon.com for C++ books, read the comment people gave for books, and find the one for you....

good luck.

p.s: i think a good book to start colled : "thinking in C++"
Avatar of geeboy

ASKER

Thank you very much.
However,you misunderstand my meaning.
I just want to know what habits are necessary when I study a language.Like read more and more source code by other peoples...
Thank you again...
>> VC++ is the windows version of C++
correction, it is the MicroSoft version of C++. There are other C++ development environments targetting Windows applications
One rule:
  Try things, experiment.
Keep a diary of what you learn and why you don't understand.  You will learn that there are many little subtleties and pitfalls in C++.  When you encounter them, put them in the diarry so you will have a record of them for later.  Nothing is more frustrating than running into a problem the 2nd time and not knowing how you got out of it before.  Well nothing is more frustrating than that--except when it happens the 3rd time...
What do you want exactly ?
- learn a langage ?
- learn a development environment ?

start with Stroustrup's C++ 3rd Edition
also, see his website.  he has a section on getting started.
also, you do not have to know how to use every feature of the language, just the features to express what you want to do/say. but you will need to know what they do. and then you can master each feature as you need it.  ie, your first programs will probably not need virtual functions, RTTI, templates or multiple inheritance, so you won't need to master them.  But you should know what these things are and why they might be used, so that when they are needed you will know and not reinvent the wheel. then you can dive in and bring your level up.  

you may also want to read Meyer's books, Effective C++ and More Effective C++ after you have been using it for a while.
he tends to give a what to do/what not to do with reasonable explanation why/why not.

don't be disocuraged. I have been doing C++ for years and I feel like I am still learning things.
ASKER CERTIFIED SOLUTION
Avatar of basslera
basslera

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
First of all, save your Experts Exchange points for a concrete question instead of spending them on opinions.  However valuable the expert’s opinions are, there is no right answer to your question and so awarding them to only one expert doesn’t seem right.  Anyway, if you’re just starting to learn to program, you’ll want to save your points for when you get stuck on a problem.  You should set your points to zero when asking an opinion, but that’s only my opinion.

Here are a few suggestions:

If this is your first programming language, I’d choose one platform, language, and even compiler for a while just to keep things consistent in the beginning.

Try to duplicate a simple utility program.  For example, one of my first Win 3.x programs I rewrote in C was CLOCK.EXE.  It demonstrated many of the features of a Windows program that I thought were interesting (in only a 16k program): timers, fonts, window resizing, disappearing title bar, Always On Top, change time event, etc.

Wear sunblock.

Comment your code well.  Write your comments as if you were writing them for others.  Place a comment header before every function and update it whenever the function changes its promise to the user.

When changing a function or class that is currently in use, always keep the original promise of the code.  Make it do more, never less.  Never remove functionality.  Doing so may break previously written code.

Always keep your code blocks properly indented (this more of a pet peeve).

Read C++ FAQs: http://www.cerfnet.com/~mpcline/c++-faq-lite/
Avatar of geeboy

ASKER

Yep,I will give the points to the expert who answer me.
He is on the point.Now,I just want to suspend it awhile for more thoughts.
Thanks all .................................
Anybody know is there a article about habits about program somewhere?