As a programmer you should read some neuroscience papers to understand that ECT and medications are overly rough tools to change patient's behavior without harming him.
As an anarchist and freedom fighter should be against involuntarily changing people's opinions and behaviors, as long as they don't psychically harm others.