Re: NQC programming guide
"Jordan Bradford" <[email protected]> Tue, 5 Dec 2006 23:05:08 GMT
| Newsgroups | gmane.comp.hardware.lego.robotics |
|---|---|
| Organization | None |
| Message-ID | <[email protected]> |
I think you need to learn to program in text-based languages in general, first. Since NQC stands for "Not Quite C," you should learn the basics of programming in C or C++. http://www.cplusplus.com/doc/tutorial/ I'm sure someone will come in here and decry that approach and tell you to start with a newer language such as Java, but I disagree. C is a procedural language, and so is NQC. Java is an object-oriented language, a programming concept that takes procedural programming a step farther but will require an additional learning curve. C++ can do it both ways. But more importantly, NQC is a limited subset of C and C++, so it really makes sense to learn to program in those languages anyway. By the way, if you just want to learn enough to get by in NQC, you can skip everything from "pointers" onward in that C++ tutorial. If you find yourself "getting it" and things are "clicking" for you, then by all means continue your education in those advanced concepts. Caveat: I learned BASIC in elementary school, promptly forgot most of what I learned, and then tried teaching myself C++ in junior high. That was a failure. Later as a college freshman I re-learned programming in a formal computer science setting, and that was much more helpful to me. What I'm saying is that when I was starting out, having someone teaching me to program produced better results than when I tried learning the basics on my own. Now I'm at a point where self-education is equally useful, but each person is different, so good luck!