News for hackers. Stuff that matters.
Re:Python List Comprehensions Explained Visually by scrollaway on Wednesday December 02, 2015 @11:53PM (#10667824)
> I think most code should be made an image to limit copy/pasting

You think what now?

Re:Python List Comprehensions Explained Visually by tsumnia on Thursday December 03, 2015 @10:08PM (#10674353)
As others have discussed, making coding example images for the sole purpose of forcing them to type it out. Don't get me wrong, I copy/paste like the rest of us; however, from a learning perspective, I think forcing students to type out the code gives them practice, akin to how you'd practice your shots for basketball.

I've actually implemented typing exercises that are straight "copy this image" as one of the assignments I give students each week. Now, students have my lecture, the demo done in class, AND a typing exercise before trying to implement something like, say, a collision detection algorithm.

Re:Python List Comprehensions Explained Visually by elevensies on Thursday December 03, 2015 @12:42AM (#10667972)
Not OP but I prefer to re-type rather than copy-paste because too often when I copy paste I discover that I forgot to change something.
Re:Python List Comprehensions Explained Visually by Majestic121 on Thursday December 03, 2015 @03:43AM (#10668556)
It seems to me that the cost of retyping code each time is much higher than the cost of forgetting something.

I get the underlying idea, that you "feel" and understand the code more if you type it, but holy hell would that be annoying !

Re:Python List Comprehensions Explained Visually by elevensies on Thursday December 03, 2015 @02:50PM (#10672071)
To qualify my statement:

- If found a boilerplate HTML layout and wanted to insert some stuff into it, I would use copy-paste.

- If I were editing a function to enqueue data, and I wanted to send it to two queues, I would re-type the 2nd enqueue command to avoid blindly copying over an inappropriate parameter, which is the kind of thing a tired mind might gloss over.

Re:Python List Comprehensions Explained Visually by tsumnia on Thursday December 03, 2015 @10:11PM (#10674360)
Yup! Its suppose to be annoying (well, not 'really').

It's primarily a method to ensure the reader 'learns' by mimicking versus blindly copying. Annoying to a seasoned programmer, but its a great way for students to get extra practice.