I have an answer for this one ... wanted to share. The question comes up with some regularity. For me it came up because I was teaching a beginner to code in C / C++ on his Ubuntu box, but they had already been spoiled by limited exposure to a Windows IDE.
The answer is that IMHO, teaching a development environment to a beginner before you teach them C makes things harder, not easier. So what you want for a beginner is something as dirt simple as possible, that does not interpose itself between them and their code. I attach my answer ... and am eager for other contributions. asked 14 Jun '10, 05:46 pcardout |
I was inspired by this thread: Compiling and running straight from gedit I like this solution because the beginner does not need to learn vim or emacs before starting to program. gedit (gnome-edit) is dead simple to use for most beginners who like pointing, clicking, cutting and pasting. Nonetheless, gedit does have syntax highlighting and parenthesis-matching (you need to turn bracket-matching on in your prefs.); certainly features that no programmer should do without. (Pity the poor Windows noobs who use Notepad). Further, gedit DOES have the ability for one click compiling and running -- it's just implemented in user scripts. So -- I explain the script system and provide some samples. After this you have a development environment that a beginner can use. I do assume that you are helping your beginner set this up.
Here is my execute script.
Here is my script called *CCompile_and_Execute*.
A couple of notes:
link
This answer is marked "community wiki".
|
IMHO, the rookie must understand what a shell is, an ASCII file-C program and how to run gcc. This is before he attempts anything. This urge to "Why can't I just click?" irks me. Once he grasps a few basics, he will need a real IDE that can be used to throw up an X window or whatever. Skip the IDE it spoils noobs, I still don't use one........don answered 14 Jun '10, 21:27 don I agree with you Don. My little hacked scripts actually show what you would be typing at the command line to try to take the fear away. My view as a teacher (and a Dad) is to do whatever it takes to get them going. Once he starts, he'll see the simplicity of the command line. OTOH -- Now that I've got "Compile_and_Execute" working -- it's pretty cool, and for hacking a single file over and over again, which is what beginners do, it does save time.
(15 Jun '10, 01:25)
pcardout
Also, taking your hand off the keyboard to find the mouse and using additional hand-eye-coordination and mental focus to click the icon takes more time and effort and is more distracting than just touch-typing "make".
(07 Nov '13, 06:28)
KenJackson
|
If you found an answer, please accept this answer via the tick next to the answer. You don't need to put "SOLVED" in the title.