this post was submitted on 05 Apr 2025
276 points (99.3% liked)
Programmer Humor
34819 readers
439 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Back in my days working as .NET developer on Windows 7, I came into work one morning to find a colleague fuming that his machine had died on him.
He spent the whole morning reinstalling Windows and getting his environment set back up, and then pulled the branch he was working on, happy to finally be done with setup and get back to work. Ran his test suite and bam, machine crashes!
It was only at that point the penny dropped. We took a look at his branch, and sure enough he'd accidentally written a test that, when ran, deleted his entire C: drive!
That particular lesson made me very careful when writing any code that does things with the filesystem.
Or, you know, run it in a chroot.