I wouldn't say hiring a programmer is doing them a favor any more than an angel investor is. The benefit from this comes in him letting you pick your own project, that's the difference between rent-a-coder and this deal. It's a rent-a-coder contract with the option of leading into steady employment.
Again, you're seeing this dangerously wrong. This isn't an employment opportunity, this is a startup where one of the founders is using an interesting way to find a co-founder and the idea itself. You bring the idea, he brings the cash.
He's not giving you a job, he's playing the role of seed investor and co-founder.
No, we're not arguing semantics. You're saying he should just be getting a salary and the OP is an incredibly generous person for also offering him half of his own idea. I'm saying that's nonsense. It could be a good deal if you have no other options but 50% is huge.