According to the OP:
> Federal prosecutor Mark Chutkow countered that Liang was a "pivotal figure" in designing the systems used to make Volkswagen diesels appear to comply with U.S. pollution standards, when instead they could emit up to 40 times the allowed levels of smog-forming compounds in normal driving.
This wasn't just someone who wrote some code that he didn't intend to be misused. This is someone who used his expertise to direct the implementation of an unlawful system. To be successful in that, it seems you'd have to have a decent understanding of the law that you intend to break.
I'm in favor on increased whistle blower programs. There were lots of people who knew what was going at Enron and VW and others. If companies are morally bankrupt and think of profits at all costs, we should reward the grunts who can expose it.
The law is generally written in legalese. It is really hard to understand how X volts on some sensor relates to emissions regulations. Therefore the engineers doing the work are easy to mislead, they probably don't even have access to sensor values that can directly tell you something in the law. Rather it is a mechanical engineer explaining that when the temperature is X and (pages of sensors they do have) you change these actuator settings. Give wrong information here and the engine will run as design and the programmer who made the mistake won't even know.