Learning the Right Way to Break Things

Learning the Right Way to Break Things

by Ammara Mubeen -
Number of replies: 0

Hi everyone

I am a junior developer and I’m still learning about the best practices for defensive programming and input validation. I want to start testing my code against malformed data, but I am a little bit nervous about accidentally damaging my operating system or losing my personal documents if I make a mistake.

Can anyone give me some advice on how to safely test file corruption scenarios without putting my entire development environment at risk? I was thinking of using a virtual machine or a sandbox, but I would love to hear from the experts here.

Thanks in advance.


100 words