'Outlook style' rules for Subversion
At work, when I get an email from an idiot, I set a rule.
I start work at a new company.
I notice they use Microsoft Outlook.
Within minutes I get an email:
This message was sent with High Importance!
Subject: "URGENT!!!! Get your footing tipping entries in by Tuesday week!"
Hmmm. It's "URGENT!!!!" so I spring into action:
Add new rule -> Messages from: 'Jenny@work' -> Delete.
But now look at all this crappy code the other devs keep commiting to the repository.
Every time I perform an "SVN update" it's like I've just invited a carnival of freaks to crap all over my hard drive.
A nice feature would be if we could get the same utility from subversion as I get from outlook.
"Do not accept any code changes from Trevor, if they relate to internationalization."
Trevor, you see, doesn't have a freakin' clue about internationalization. But he thinks he's God's gift to the unicodes.
And Joella, who thinks every programming nail is another excuse to wield the hammer of reflection.
"If you see code submitted by Joella, containing '
System.Reflection' replace with '//TODO: write actual code here, rather than namby-pamby show off serialization code.'
It's just a humble dream I have. The best approach to implementing it, that I've come up with so far, is to build a custom version of Tortoise SVN (it's open source right? I can fork it a little if I want to ) and then dump this custom version of tortoise on Trevor and Joella's machines.
From Trevor's point of view, it will look like he's committing his changes to the repository. But tortoise will in fact be just quietly twiddling its thumbs and doing nothing. If you count 'logging keystroke and scraping bank account details' as 'doing nothing', that is.
Trevor may realise sooner or later that he's never getting anyone else's changes. That no matter how often he updates, he never gets any new code. He may even begin to suspect something is up and he may bring it to our attention. At that stage it's time to enact the "remote 'overwrite every byte on the hard drive, and perform thorough boot sector corruption' " feature of his custom tortoise build.
With a little creativity, a little software, and a little patience, we truly can make the world a better place.Next → ← Previous
My book "Choose Your First Product" is available now.
It gives you 4 easy steps to find and validate a humble product idea.