Or if not, are there any good IDE's or programs that are designed for real-time collaborative programming?
Unfortunately I also haven't found a good way to use Google Docs for collaborative coding yet. It seems as if Google Docs (as of now) is not intended for collaborative coding.
However there are a few good free alternatives, which might help you along the way. The first two are based upon the code of EtherPad, which has been aquired by Google in December 2009. My current favorite however is CollabEdit, which also supports syntax highlighting for different programming languages.
PiratePad: http://piratepad.net
Etherpad: http://etherpad.com
CollabEdit: http://collabedit.com
For a full list of collaborative editors take a look at this Wikipedia entry.
[Update] Some things have changed in the mean time. It's also worth checking out http://etherpad.org/ for more information about upcoming development.
I’m the creator of Codr, a collaborative code editor for the web. I created Codr because I couldn’t find a “Google Docs for Code” product that met the following criteria:
100% collaborative. Every cursor move and selection change as well as edits should be instantly relayed to all users. None of the services suggested in the accepted answer do this.
Optimized for code. Should be built on a robust code editing component that provides the editor and language-specific features we're used to.
Blindingly fast document creation. This is needed to spontaneously share code on a call or chat without breaking your workflow.
Provides an instant shared preview for HTML/CSS/JS. As a web developer, I find this incredibly handy.
This is what Codr does and I think it's more or less what you're looking for. Codr has been in development for over a year and the core features are complete. I'm launching a Kickstarter campaign on Tuesday to bring it to the finish line.
Check out the campaign video at http://codr.io or follow on Twitter at @CodrEditor. To try Codr today, tweet to @CodrEditor to request an invite link.
Here's what Codr looks like:

Check out collabedit, I'm not sure what your needs are exactly but it could be an option.
Cloud 9 is a web based IDE for collaborative programming. http://www.c9.io
Neutron Drive allows you to do collaborative coding using Google Drive.
Google Docs would work, but getting the code out to be used will be trickier than you probably want.
What you probably want is a collaborative text editor like SubEthaEdit or Gobby. These editors allow multiple users to connect to the same editing session and work together. I think there may also be an Eclipse plugin built on similar principles, as well as an Emacs add-on and possibly some web-based solutions.
Why not use a regular code editor and a program like Skype or Microsoft Communicator to share screens with others on the line?
It seems like having multiple people being able to type at the same time wouldn't be particularly efficient, and if you used a document then you won't be able to compile & debug your code very easily
来源:https://stackoverflow.com/questions/7617527/is-there-a-way-to-use-google-docs-for-collaborative-programming