87 points · by jvardy · 8y ago · 77 comments
Implies that OP is correct. In order to penalizing yourself you need to do something you consider a punishment. In this case donating to charity...
Fortunately it isn't working because as others pointed out, "penalize himself" and "donate to charity" concepts aren't directly tied together. Where the donation actually goes is immaterial, so it's not possible to argue that "punish himself" implies "donate to charity" is punishment.
But to make it worthwhile (aka the reward part of the punishment), the donations are directed to charity since they need to go somewhere. So that's a small reward built into the punishment.
When I play a game with my buddies, I try to win, but even if I lose I still have a good time.
This is a very similar concept. Also, don't assume that this is the only money he gives. Games are fun.
That doesn't make sense. Penalties aren't fun. Building software isn't a game (generally).
And there sure seems like there's a real possibility of wasteful behavior, e.g. someone 'spamming' the build system to effect a large overall donation.
I would go one step further and pick an amount that I want to donate and then each fail action moves a unit of money from the "good" to "bad" bucket. ie start with $100 and each failed build puts $1 into the Big Endian / Kodos / Republican and each successful build the dollar goes into the Little Endian / Krang / Democrat charity bucket.
As a programmer I can sympathize with wanting to get my head out of the clouds once in a while. Sure, my customers use my software, but my internal build processes are invisible to them.
If a build fails, nothing changes in the production environment. The developer can troubleshoot and fix the build. Pretty much like when local compilation fails due to a syntax error.
Why does such a routine thing as a build failure need to be rewarded or punished?
We're (mostly) past those times now, but "breaking the build" is still in the mind of many devs as a negative behavior.
Breaking a build once, for whatever reason, probably isn't a big deal. But breaking a build frequently certainly could be.
http://freakonomics.com/2013/10/23/what-makes-people-do-what...
Set it to something really high like $600 [0] and parents' behavior will change, problem solved :)
Kind of like introducing a defect lane on your factory line makes the workers feel like it's OK to have defects, and deters from quality.
The economic premise of the kindergarten is already that parents would rather pay money than spend time with their kids.
But it guess if it is just for fun who cares :)
Another approach is donating to a charity you despise. Some friends of mine use a mutual donation pact to get things done. Each sets a goal they need to accomplish by the end of the month, and hands the other a signed check for $50 for a charity or political campaign they hate. If they don't accomplish the goal, the other person drops the envelope in the mail.
It's very effective. :-X
For instance, stickK sets up its commitment contracts with the option to donate to an "anti-charity":
https://www.stickk.com/faq/charities/Commitment+Contracts
It also allows you to donate to fan clubs of sports teams you despise :)
It would be way more effective if you were donating straight to a competitor, or a political organization you do not support at all.
So many people focus on how often the build is broken. That’s not the important part in CI. The important part is how often (% of day) the codebase is broken.
It’s not how often you break the build that kills the team. It’s how long it stays that way. Breaking it twice a week for five minutes each is better than breaking it once a month for an hour or two.
I never merge something to master, or any branch that I expect other people to use without knowing that it's going to pass, but I don't see any harm in having failing builds on a personal branch (particularly if I later clean up my commits to ensure that no individual commit that gets to master ever fails).
Generally if I'm moderately sure things pass I'll just push to CI. Even sometimes when I'm sure they'll fail I'll push to CI, then work on something else while it runs the build, then come back to check the output.
Donating to charity, while an incentive, won't help me see the detailed lesson a year from now.
Does seem like a neat idea, but you'd probably be more likely to avoid failed builds if (a) the donation was immediate and irreversible; and (b) went to a charity or organization you vehemently disagreed with.
One of the founders of Saxo Bank motivated himself in a weight loss challenge, by pledging to donate ~30.000EUR to the danish communist party, if he did not make his goal.
(It worked, he made it).