I Accidentally Deleted 7TB of Videos Before Going to Production
blog.thevinter.com
I Accidentally Deleted 7TB of Videos Before Going to Production
1–10 of 362 posts
Re: I Accidentally Deleted 7TB of Videos Before Going to Production
#2> foreign to the "Silicon Valley" world but paints an accurate picture of what
> development is for small IT companies around the world
Everybody makes mistakes even in the "Silicon Valley" world, but such problems cloud be easily caught by testing (which he did but it was restricted to the first page) and performing a simple dry-run.
Re: I Accidentally Deleted 7TB of Videos Before Going to Production
#3Re: I Accidentally Deleted 7TB of Videos Before Going to Production
#4It always does.
> Well, it teaches me to do more diverse tests when doing destructive operations.
Or add some logging and do a dry run and check the results, literally simple prints statements:
print("-----")
print("Downloading videos ids from url: {url}")
print(list of ids)
...
...
...
# delete() dangerous action commented out until I'm sure it's right
print("I'm about to delete video {id}")
print("Deleted {count} videos") # maybe even assert
...
Then dump out to a file and spot check it five times before running for real.Re: I Accidentally Deleted 7TB of Videos Before Going to Production
#5[deleted]
It's not even necessary to the story.
Re: I Accidentally Deleted 7TB of Videos Before Going to Production
#6Re: I Accidentally Deleted 7TB of Videos Before Going to Production
#7Re: I Accidentally Deleted 7TB of Videos Before Going to Production
#8Re: I Accidentally Deleted 7TB of Videos Before Going to Production
#9Re: I Accidentally Deleted 7TB of Videos Before Going to Production
#10> but at the time the code seemed completely correct to me It always does. > Well, it teaches me to do more diverse tests when doing destructive operations. Or add some logging and do a dry run and check the results, literally simple prints statements: print("-----") print("Downloading videos ids from url: {url}") print(list of ids) ... ... ... # delete() dangerous action commented out until I'm sure it's right print…