Argh =\
IMO, the best environment for a newbie is a good text editor (I like Notepad++. The least a text editor needs to be considered "good" is syntax highlight) and a command line compiler like g++. |
That'd be the worse imo.
IDEs tend to create bad habits, |
IDE's tend to create GOOD habits.
like dependence on word completion and the debugger. |
Word Completion = Faster development time, less spelling mistakes and compiler errors. These show up with sufficient syntax highlighting and hover-lookups.
Debugger = Allows you to profile/watch variables for changes, track memory allocations and deallocations and debug buggy code/runtime errors.
A programming newbie should first learn to do the debugging in his head. |
People ate terrible at debugging code in their head. Any sufficiently sized piece of code should be run through a debugger if you are having issues with it. OR alternatively, have coded in debug information.
When that fails, then can the debugger be used. |
Save yourself time, headache and un-necessary mistakes. Use an IDE.
Where do I write the code? I understand I could write it anywhere really, but what can I do to activate it and see it work. I understand the "hello world" code, but I am clueless as to how to see it in action. When programming in flash I would write code in the actions and then file play. |
All code is written in .cc or .cpp files for standard implementation. (.h / .hpp files are used for header declarations). Once the files have been developed they are compiled and linked into an executable by your compiler. From here you are free to the run the executable.
Typically, most developers will use an IDE (Integrated Development Environment). This provides you with the text editing, compiling, running and debugging functionality you need to make applications from scratch. IDE's also offer extended functionality like syntax highlighting, function and variable lookups, code-completion etc.
There are many different IDEs, some are suitable and aimed towards new developers, others are aimed squarely for the professional market.
Dev-C++ from
http://www.bloodshed.net/devcpp.html is a very suitable IDE for a new developer. It should see you right quite comfortably even into a professional career.
Other popular ones are Code::Blocks (Multi-Platform), Anjuta (Linux equal of Dev-C++), Eclipse, Microsoft Visual Studio (C++/Windows).
Compiler you use doesn't make much difference. It's usually what your IDE comes with, or works best with.
Dev-C++ will come with the MingW Compiler. This is the Windows port of g++.