Do not have students write code for common algorithms. Instead, incorporate common algorithms into your class in novel course-specific variants
Compare a program to a military dictatorship to emphasize that correctly-formed computer program instructions are followed literally and without question.
In assignments, make sure to include examples of or references to code that is essential for a program, but that students are not responsible for writing.
Use a simple IDE to avoid distracting from the actual material; using a complex IDE/programming environment can be overwhelming to students.
Use analogies to real-life things or events in order to provide students with a more concrete picture of abstract concepts.
When presenting abstract concepts, have students close their eyes and visualize the concepts as they are described. Then, have them draw what they saw.