so some day i want to hand code a security program(anti-virus probably). but i dont know where to start on theory and actual code.

Where should i start and what language is most common?
Where did you start if you have been in the same bind i have?

thanks to all that respond...