The similarities between software and law is striking—in many respects, law is code. When viewed from a software engineering perspective, the U.S. Code resembles a large software system, and the application of software design principles allows us to quantify the extent to which the law is concise, changing, coupled, and complex. Our methods reveal the rise, spread, and fall of legal terms used in the U.S. Code, the structure of the cross-references network, and the types of laws that Congress enacts. When applied to specific Titles, these methods have identified particularly complex and highly interconnected sections, which should be prime candidates for regulatory reform and simplification. The sheer size and number of cross references within the core sections imply that software-engineering methods can play an important role in leveraging human ability. Therefore, a software engineering approach to measuring and managing the U.S. Code allows lawmakers to enact better legislation with fewer vulnerabilities.
Creating less complex laws and simplifying the existing legal code also reduce the number of unintended consequences and ensure more fair and equitable outcomes for all stakeholders, the conclusion says.
I wish all lawmakers took a course of coding. Otherwise, the US society and economy would drown in the borderless and ever expanding ocean of law.
I also wish to see a similar study done with the EU legal body.