Write and test your code in a virtual machine.... You will just have to reboot the virtual machine if it crashes. I used to do that when programming the Linux Kernel... It will then make the task so much easier and won't affect your hardware :)
J
Jinjav
@Jinjav