How to deal with cargo-cult programming attitude?

Posted by Aivar on Programmers See other posts from Programmers or by Aivar
Published on 2011-11-30T09:32:56Z Indexed on 2011/11/30 10:31 UTC
Read the original article Hit count: 324

I have some students (in introductory programming course) who see programming language as a set of magic spells, which must be cast in order to achieve some effect (instead of seeing it as a flexible medium for expressing his idea of solution). They tend to copy-paste code from previous similarly sounding assignments without considering the essence of the problem.

Can anyone recommend some exercises or analogies to make those students more confident that they can and should understand the structure and meaning of each piece of code they write?

© Programmers or respective owner

Related posts about programming-languages

Related posts about teaching