Write code in class in real time. This way you’ll be forced to pace yourself, so students can better see and understand the process you’re going through.
Reward code solutions that have the correct thinking and steps behind them, as this can often be reassuring for students.