There had been some discussion in the topic
about learning to program.
I think people approach this in various ways. I may be the odd one out here, so let me tell you what I do , and lets see if others differ
I never try to learn from examples… neither doing them nor reading them .
When I first started to need to program, I read the manual once, then sat down and wrote code. When I had a slab of code that I thought would work, I compiled it… it did not work of course… then the learning started… how to debug, why does this loop never exit?, what is floating point overflow?, what is an undefined reference.?
Eventually I got something elementary to compile and run. Then I built on it, one subroutine at a time. Cant see how to do something?.. now is the time to look at code examples… you can learn for other peoples code when you have a specific need.
I have always done it that way. Never do exercises… never do a course… never look at a tutorial. … do the real thing… then seek help when you crash.
Now the question… How do others do it? Am I an odd man out?.. …Is there a right way to learn to program?
I know maths and physics are taught with examples… I hated it… only really learnt maths when I came to use it for real world problems. . Sure you need to have algebra drummed into you before you can use it, but does that apply to programming?
I think not. You might disagree.