From: Hassan Schroeder Date: 2010-01-21T01:59:00+09:00 Subject: Re: Best practices when writing destructive code On Wed, Jan 20, 2010 at 4:09 AM, Adam Akhtar wrote: > Im going to be making and removing lots of directories using ruby and Im > feeling a bit uneasy about it. One of my fears is that a potential typo > after refactoring, cutting and pasting etc could cause my program to > delete innocent and system vital directories. 1) Create a VM instance, install your code there, take a snapshot. 2) Fire away -- if something blows up, revert to snapshot. :-) Cheap virtualization rocks... -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan