[Tutor] Really basic won't run error
Alan Gauld
alan.gauld at yahoo.co.uk
Mon Jul 5 04:17:23 EDT 2021
On 05/07/2021 00:46, Phil wrote:
> On 5/7/21 6:26 am, Dennis Lee Bieber wrote:
>> It's your own file... But you seem to have trimmed the example
>> WITHOUT posting the error message as reported by the sample. In the trimmed
>> example it is line 18.
>
> Thank you Dennis for your reply.
>
> I've never been able to run any of the demo examples outside of demo.py.
> Occasionally, I've been able to take a line or two from a demo example
> and add it to my template and have it work or find a snippet in the
> documentation but mostly it takes hours of Internet searching to get
> something working.
When writing code with a new framework it usually pays to go
through the basic tutorials sufficiently that you understand
how it works. If you don't know what the various parameters
are for then you are almost certainly going to spend a lot
of your life hunting for solutions. My old teacher used to
call it "poke and hope", it's a very slow and inefficient
way to work.
Spending a day (or two) working through a detailed tutorial
that explains how the framework does things will save a
lot of time hunting for some random code that works
(possibly by accident!) Don't just type (or paste) in
the examples, pay attention to the explanations. If the
tutorial doesn't explain its not a good tutorial,
find another. Learning by example is only good for
getting started. You need understanding too.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list