Schizophrenic Programmers

What is the effectiveness of a developer during a psychotic episode?

The greatest program I ever wrote and completed was during a psychotic episode.

Terry Davis wrote TempleOS and implemented Holy C during sickness. I know others too implementing programming languages through bouts of psychosis.

How is this possible? What is happening here?

How is it I can write the greatest program of my life yet be hallucinating and dealing with grand delusions and intrusive thoughts?

We need a schizophrenic/psychotic coding platform. This shit is interesting.