When replying to a post (for example on Craiglist) that asks for sample code, is there a way to be (reasonably) sure of delivery?
Here\'s the problem, stated as possible
I usually send a link to my SVN repository. another option is pastebin
If it's only one file just rename it as a text file.
A zip file seems fine. It shouldn't get flagged unless there are executables in it. If you have an externally linkable SVN repository, that'd be ideal for some companies, and overkill for others.
I prefer links to external services or my own server, where the code is usually browsable, syntax-highlighted, etc ..
I don't send code as email. I put my stuff online using Dropbox and send a download link only.
http://www.dropbox.com/
Works perfectly for me and my team.
Personally I like:
http://www.sourcepod.com/ or http://pastebin.com/