law and coding is much closer than people think because there is a lot more logic than there is tv drama in a real court room.
I've a friend who abandoned her engineering career at 30 to become an IP lawyer (she is incredibly senior in her firm now) who says the law is just a program that you run on a judge.