Lawyers take their work home with them every day. They never have any rest at all, because they have to respect certain deadlines and they have multiple clients breathing down their neck. Next to that, there's also the question of morality: Sometimes a lawyer has to make immoral decisions to get the right outcome. This is especially true in penal law.
Doctors have to face the consequences of wrong diagnoses. If one of the patients dies because of an error the doctor made, you can be damn sure he'll carry that mistake with him for the rest of his life. Not only morally, but also legally and it could be a possible career killer.
Programmers have it the easiest, they only have computational problems to worry about. While programming is without a doubt strenuous on the mind, it is by no means affected by morality and therefore incomparable to practicing law or medicine.