GPL v3
It is:
- Meant for code
- CompatibleCompatible with CC-BY-SA v3 (which is what the old answers are under)
- The only possible license with these characteristics (you have to have approval from Creative Commons to be compatible with it, and they have only given it to GPL so far.)