What language You want to program? If signatures on a clean, you can jailbreak your iPad and pull from cydia to put the gcc from the console to use it (put the ssh server and client and connect to localhost and to work).
If in PHP/HTML/JS/etc... then you can write code in any text editor and ssh/ftp to upload to your server for testing. Somewhere in cydia, I even saw a php interpreter...
If you want something more serious, with a GUI, and so forth, it is likely that the above-described variant with teamviewer'Ohm fits best. Although, no one is stopping again in a text editor to write code on the way to work, and are already at work to build/run/test.