And if he breached, what would he have to give back to the founders that was given to him for the code?
Also, if the code was given in return for equity (or the promise of equity), then he is an owner and should have a say in the decision to accept the investment and negotiate the terms.
I agree that the final stock agreement depends on the investor's lawyers (provided everything works out), but how the equity is divided before that is between the founder and the coder.
That is true, but only if you can prove there was an oral agreement. That is why written agreements are considered better, you have physical proof.
With an oral agreement you'll need to convince a judge or jury that both sides agreed to said contract, otherwise you could be SOL.