I was a law student who got sick of legal practice, and found my passion for programming through luck. I actually wrote a reflective blog piece on my journey recently if anyone is interested -
https://medium.com/@fabianterh/celebrating-1-year-as-a-softw...(It's not paywalled and I don't earn a single cent, so I hope this isn't against the rules)