News for hackers. Stuff that matters.
Re:Show HN: When my builds fail I pay money to charity by brudgers on Monday May 07, 2018 @10:48AM (#17013137)
The interesting thing about this project is how the incentives align. The premise requires the view that donating to charity is a bad thing. Or conversely, writing build failing code is a good thing. Otherwise --if donating and buildable code are good -- there is no self reinforcing cycle. The system architecture is closed...a finite pie if you will. Successful builds and charitable donations have a reciprocal relationship. An increase in one comes at the expense of the other. A win-win system architecture would have a positive correlation between charitable donations and successful builds. The charities and the developer would both benefit or suffer together. If both successful builds and charitable donations are good, the system architecture encourages the Shirky Principle https://en.wikipedia.org/wiki/Clay_Shirky#Shirky_principle
Re:Show HN: When my builds fail I pay money to charity by paulsutter on Monday May 07, 2018 @11:13AM (#17013322)
Neither of your requirements are true in the least. It’s a great idea because he’s penalizing himself for failed builds in a really fun way, with no waste because it’s going to a good purpose. It’s called “win-win” and it’s a good thing.
Re:Show HN: When my builds fail I pay money to charity by dubcanada on Monday May 07, 2018 @12:10PM (#17013883)
"penalizing himself"

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...

Re:Show HN: When my builds fail I pay money to charity by fouc on Monday May 07, 2018 @01:10PM (#17014424)
OP and yourself are perhaps engaging in what could be termed as "semantic trolling"

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.

Re:Show HN: When my builds fail I pay money to charity by tnegoshi on Monday May 07, 2018 @05:32PM (#17016633)
The only misuse of semantics I see is where an attempt to obscure a concretely causal relationship occurs:

mistake > punish himself > donate to charity to punish himself

Donating to charity as a method to achieve the punishment goal is precisely material in this case.

GP is asking if this method, which contains both a gain and loss, actually results in a punishment with an intended loss.

Re:Show HN: When my builds fail I pay money to charity by zumu on Tuesday May 08, 2018 @02:08PM (#17023143)
The punishment isn't donating to charity. The punishment is losing money.
Re:Show HN: When my builds fail I pay money to charity by dijit on Monday May 07, 2018 @12:24PM (#17014009)
Involuntarily losing money is a punishment. Even if it goes to a good cause.
Re:Show HN: When my builds fail I pay money to charity by aeorgnoieang on Monday May 07, 2018 @02:48PM (#17015313)
But surely 'losing money' to a bad cause would be an even better punishment. Is the punishment supposed to discourage breaking builds? Are the 'warm fuzzy feelings' (or the actual benefits of the relevant charity!) that causing a charitable donation to occur being properly accounted for in deciding whether this is a good idea?
Re:Show HN: When my builds fail I pay money to charity by dalore on Tuesday May 08, 2018 @08:46AM (#17020508)
Punishing himself is the losing money aspect. It doesn't matter where it goes technically for it to be a punishment. His goal is to not lose money.

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.

Re:Show HN: When my builds fail I pay money to charity by quickthrower2 on Wednesday May 09, 2018 @02:10AM (#17027713)
If the money goes to "Starbucks" as shown in the image, I don't think he is being punished.
Re:Show HN: When my builds fail I pay money to charity by TeMPOraL on Monday May 07, 2018 @12:13PM (#17013909)
It's better than just throwing away money after a failed build. But a true win-win strategy is donating to charity unconditionally, and not wasting time punishing yourself for failed builds in an elaborate way ;).
Re:Show HN: When my builds fail I pay money to charity by sametmax on Monday May 07, 2018 @02:06PM (#17014930)
You are advocating perfection while op is making the best out of the dealt cards. We need both approaches as a society, but one should not nag the other.
Re:Show HN: When my builds fail I pay money to charity by aeorgnoieang on Monday May 07, 2018 @02:51PM (#17015339)
They were advocating not misaligning incentives, which is definitely not making the best of a situation.
Re:Show HN: When my builds fail I pay money to charity by compiler-guy on Monday May 07, 2018 @02:31PM (#17015154)
You are not accounting for the fun that doing this entails. It's gamification of the build with a gaming partner that is actually fun to play with.

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.

Re:Show HN: When my builds fail I pay money to charity by TeMPOraL on Monday May 07, 2018 @11:57PM (#17018707)
In reality I was just nitpicking. Doing the win-win strategy I described does require more willpower, and I understand that one employs tricks like these to avoid using willpower.

Incidentally, I somewhat envy people who are capable to pull such strategy off. It requires some amount of suspension of disbelief, forgetting for a moment that you're the game master and playing the game by the book way past the point it's become uncomfortable. I don't have that. I tried many times, but my mind just refuses to participate in self-trickery.

Re:Show HN: When my builds fail I pay money to charity by aeorgnoieang on Monday May 07, 2018 @02:46PM (#17015298)
> penalizing himself for failed builds in a really fun way

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.

Re:Show HN: When my builds fail I pay money to charity by gangstead on Monday May 07, 2018 @12:45PM (#17014200)
Freakonomics introduced the concept of the [anti-charity](http://freakonomics.com/2011/08/25/how-to-improve-iphones-ne...) that you don't want to donate to.

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.

Re:Show HN: When my builds fail I pay money to charity by gmac on Monday May 07, 2018 @01:12PM (#17014458)
Re:Show HN: When my builds fail I pay money to charity by megaman22 on Monday May 07, 2018 @11:10AM (#17013302)
It's a technological swear-jar. The pain is that it's taking money out of your pocket.
Re:Show HN: When my builds fail I pay money to charity by neolefty on Monday May 07, 2018 @11:20AM (#17013377)
Maybe view it as art that assigns meaning to an abstraction. A failing build is pretty obscure to most people, but giving to charity makes sense.

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.

Re:Show HN: When my builds fail I pay money to charity by justonepost on Monday May 07, 2018 @10:56AM (#17013207)
He chose donating because it’s a good thing. Reasonable amount of build failure is ok, just not excessively so.
Re:Show HN: When my builds fail I pay money to charity by skate22 on Monday May 07, 2018 @08:06PM (#17017601)
In this system there is always somthing to stay positive about. Yay i wrote code that built, or yay i donated to a cause i believe in. I think everyone who is talking about incentives are over thinking it
Re:Show HN: When my builds fail I pay money to charity by ggg9990 on Monday May 07, 2018 @11:44AM (#17013637)
Donating money is something that has a short term sting but feels good in the long term. That short term sting gives the immediate feedback and the long term benefit means that the user will keep the system on. If my failed builds donated to Trump 2020 I wouldn’t keep the system on.
Re:Show HN: When my builds fail I pay money to charity by baddox on Monday May 07, 2018 @12:05PM (#17013829)
It would make more sense for build failures to donate to a cause that the user opposes. Perhaps you oppose the NRA, or the ACLU, or a certain political party. That ought to provide a strong disincentive.
Re:Show HN: When my builds fail I pay money to charity by hamandcheese on Monday May 07, 2018 @12:50PM (#17014239)
As mentioned elsewhere, there needs to be some long term incentive to keep the system on at all that counters the short term financial disincentive.
Re:Show HN: When my builds fail I pay money to charity by baddox on Monday May 07, 2018 @07:51PM (#17017497)
If there's a separate incentive to keep the system on, then it doesn't function as a disincentive to cause build failures. If you're worried about keeping yourself honest (i.e. not turning the system off), then there could be an escrow service where you prepay and can't get that money back. After every build failure, the escrow contributes a small amount to the "bad" charity, then at the end of the year, the remaining funds get contributed to a "good" charity.
Re:Show HN: When my builds fail I pay money to charity by feedjoelpie on Monday May 07, 2018 @10:54AM (#17013182)
Eh, there's always a limit though.