Generally, what the average programmer "knows" about the law is the equivalent to what the average lawyer "knows" about programming: the superficial, easy stuff that you can pick up without any actual training or effort.
Virtually every grown-up will interact with the law multiple times per day, especially traffic laws. Half the population has not written a single computer program in their life.