To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 26604
26603  |  26605
Subject: 
Re: NQC programming guide
Newsgroups: 
lugnet.robotics
Date: 
Thu, 7 Dec 2006 13:32:32 GMT
Original-From: 
linmix <linmix@gmail.{NoMoreSpam}com>
Viewed: 
8416 times
  
Interesting! I never knew all those languages were from the same 'family'.

Being a 'natural' language teacher I can see how knowing one helps to
learn another related one, and I also appreciate the need for practice,
practice and more practice.

So now to reiterate part of my initial question: can anyone recommend a
good resource for learning c/c++ ?
I'm looking for something with plenty of examples and for a beginner
with basically no knowledge (I've done a bit of bash scripting, but that
hardly counts), but complete enough to teach me anything I might need in
NQC.
Online availability is a pro, but not a must.

linmix


Chris Phillips wrote:
> In lugnet.robotics, steve <sjbaker1@airmail.net> wrote:
> 
> > linmix wrote:
> > 
> > 
> > > As for which programming language to learn, I'm sure C (or C related) is
> > > a perfect choice. For one, as you say NQC is C based. Secondly, learning
> > > C should give me a better insight in some of  the things that happen in
> > > my Linux machine. Java sounds interesting because it is used for quite a
> > > few cross platform applications and because of lejos, but let's take
> > > this a step at a time. Once I know my way around NQC I can always decide
> > > to learn something else.
> > 
> > Yep - that's definitely the case.
> > 
> > Once you have learned one C-like language (and I'd describe JAVA, NQC,
> > C++, Python, Pascal, JavaScript, PHP as 'sufficiently C-like') - it's
> > quite easy to learn another.  I needed to learn PHP for a project I
> > had planned - I bought the "Sam's PHP in 24 hours" book and picked
> > up enough PHP in an hour to write a 3,000 line web-based application
> > without needing to refer back to the book even once!
> > 
> > The most important thing about learning to program is that you have
> > to write LOTS AND LOTS AND LOTS of programs!  It doesn't matter what
> > they do - drive robots, balance your checkbook, play Tetris...just
> > so long as you write lots and lots of code in whatever language you
> > choose.  There is absolutely no substitute for practice.
> > 
> > I've been programming since the mid 1970's - and still, when I look
> > back on a program I wrote a couple of years ago, I say to myself "Wow!
> > I was really that bad back then!  I can do SO much better now!".
> 
> 
> This is probably the best advice I have *ever* seen given to someone who is just
> starting out trying to learn how to program.
> 
> Spotlighted!!
> 
> 



Message has 1 Reply:
  Re: NQC programming guide
 
(...) References for "classic" C programming are getting rather scarce, but the top hit on google for "c++ tutorial", www.cplusplus.com looks like a good place to start. It begins with the basics, and only gets into object-oriented programming in (...) (20 years ago, 7-Dec-06, to lugnet.robotics)

Message is in Reply To:
  Re: NQC programming guide
 
(...) This is probably the best advice I have *ever* seen given to someone who is just starting out trying to learn how to program. Spotlighted!! (20 years ago, 7-Dec-06, to lugnet.robotics)

14 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR