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.
I have 10 years experience in law and father is a lawyer and even though her remark has obviously a comedic basis , she is very much correct. Objectivity is a huge deal in the legal profession, the ability to separate emotion from critical thinking. Of course its easier said than done which is what creates the laughing part :)