I'm the tech orientated founder (the other is the business guy), not the best coder but I understand my domain and know my abilities.
We brought in a guy as CTO to help us move past problems we were having (feature creep, project management, enterprise level etc.).
The guy has a lot of experience as CTO (I had very little, also little as a coder), and he was instrumental in getting us to the point of launch where we were enterprise grade ready (as opposed to hacker ready).
Now he is advising me to leave, that I'm not a good coder, that he wouldn't hire me if I wasn't already a founder and not what the company needs.
I have improved significantly in the last few months from where I was (generally unstructured development, no tests, poor formatting / naming etc., but functional, generally coding to working with others instead of by myself) but he has said that it's not enough.
We have hired another coder who I get along well with and I have learned from.
My question is, does he have a point? Is this something that is common? Has he overstepped the boundaries?
EDIT: He's not asking me to leave now, since I'm still desperately needed, but in 3-6 months time after we have raised more funding.
Honestly, you need to get some self confidence. You need to man up. Being a nice guy in this scenario doesn't help. If the CTO wants to play dirty and ruthless. You must play dirty and ruthless. How did a guy you hire get the guts to tell you he wants to fire you as a co-founder. This means your other co-founder is probably ganging up with him behind your back. You cannot trust both of them. I don't know who owns more percentage of the company betwen you and your co-founder but I want to believe that your CTO is minority stake holder at this point. Don't leave without a thorough fight. The good thing is that you can code no-matter how terrible, you can build a minimum viable product for any future idea you have. Your CEO cannot which is why it is convenient for him to try and co-operate wit the CTO.
Line of action:
If they were bold and ruthless, you must be bold and ruthless too.
sate your importance to founding the company, idea generation, writing enough code to make the CTO, join since he knew you people were not idea only guys.
Kick that CTO out and henceforth watch your co-founder closely.