I feel like I'd be unable to code if I smoked a joint. I've never tried it though. I'd love to hear about people's experiences doing something like that though.
That being said, I've only been high for personal programming projects, I wouldn't be likely to smoke before an interview.
If I smoke any amount I just zone out and get paranoid, while I have friends who get high and do their discrete math homework.