What software engineers can teach lawyers

What software engineers can teach lawyers

One of the common themes in the work I do is how people think about problems, from my PhD days of looking at how people in different disciplines solved the same problem, through work in fintech and defence, and now to legal design and tech. I see strong parallels between software engineering and legal work, with lessons for lawyers to help them write more effective contracts. ?

Let’s start with the basics. Both lawyers and software engineers are producing text, using structured language, that they want to have a particular effect. To someone not working in the same field, the language they use is hard to understand. Sometimes it's hard to understand if you are working in the same field!

Clarity over confusion


count = 1
while count <= 5:
    print(f"Number: {count}")
    count += 1
Counter written in Python

One of the first things programmers are taught is the importance of writing clearly. Programming is like the law turned up to 11: each word has a very specific meaning, so must be used in the right way to communicate meaning to the computer. Because of this, software engineers structure their code to help comprehension, for instance indenting it so loops can be more clearly seen, and using tools that colour code certain terms to make them stand out more clearly. Where software engineers themselves assign meaning to words, they use clear language that reflects what the variable or constant does, just like a defined term in a contract.

Collaboration over competition

Contract lawyers can get bit adversarial, for instance writing payment or liability terms that are heavily biased to their own side. By contrast, software engineering emphasises collaboration. This ranges from open-source software such as Linux or LibreOffice, through shared code libraries, to pair programming, where two software engineers work on one machine, with one coding, and the other reviewing the code.

This stems from understanding that code isn’t static: someone has to maintain it, so they need to understand it. It might be the same person who wrote it, or someone who’s never seen the code before, so if you write and document as if someone else is going to maintain it, you’ve made it easier for yourself when you come back to your code after months or years.

Documentation ?

In descending order of preference, software engineers want code that:

  • doesn’t need any documentation
  • is supported by judicious comments
  • is supported by judicious comments and external documentation

Why? Because the more comprehensible something is without having to read more stuff, the better. Good legal documents are the same: they ideally need to be understood without additional documents, but sometimes clarifying points inline or even having a contract manual can help.

Security through obscurity

Software engineers sometimes talk about ‘security through obscurity’: the idea that you can make a system secure by hiding the details of how it works. It’s a much broader concept than code, but in code terms it might mean using obfuscated code: code that’s intentionally made difficult to understand, in order to be harder to change or conceal what it’s doing.

This may be familiar to some lawyers.

Because software engineers find that sort of thing fun, there are programming languages deliberately designed to be hard to understand such as Intercal and Malbolge.

?Summary

Lawyers have long written contracts in a way that’s like the early days of software engineering: what they produce does the job – sort of - but not in a way that’s easy to understand. Good software engineers know that if they code in a way that’s easy to understand, it’s easier to spot errors, maintain, and change.


Sarah Sheehan

Legal Design Practitioner & Evangelist | Erstwhile Lawyer | Quietly Geeky | Shape Shifter

2 个月

Imagine working with lawyers in legal publishing. They could teach a thing or two about semi-colon arguments!! And edge cases for that matter...

Sergei Golubev

UX Designer / Entrepreneur / Speaker from Estonia ???? in London ????. Founder of The School of UX and TheUXConf. 20+ years of experience at Microsoft, Heathrow, British Gas, fintech and 20+ of my own startups.

2 个月

Ouch, that's offensive ??

回复
Gloria Owolabi

Equity Financing|| Technology|| Data Privacy|| Intellectual Property|| Policy|| Dispute Resolution

2 个月

Quite interesting

回复

要查看或添加评论,请登录

Peter Hornsby的更多文章

  • When to break the rules of writing

    When to break the rules of writing

    In general, it's important to know and follow the rules. In general.

    4 条评论
  • Legal Geek reflections: Misguided optimisation

    Legal Geek reflections: Misguided optimisation

    After spending the last couple of days at Legal Geek, I’ve been digesting the many conversations I had with tech…

    19 条评论
  • The beautiful efficiency of design

    The beautiful efficiency of design

    Last night I passed my purple belt grading in aiki jujutsu. I've tried a few martial arts over the years, starting out…

    2 条评论
  • What designers can learn from the Skunk Works

    What designers can learn from the Skunk Works

    I’ve long had a fascination with military jets. When I was a child there was a video game where the copy protection…

    4 条评论
  • Avoiding common mistakes by legal tech founders

    Avoiding common mistakes by legal tech founders

    Slow is smooth and smooth is fast I’ve worked with a number of startups and spoken to founders in legal tech and other…

    23 条评论

社区洞察

其他会员也浏览了