Skip to content

Comment on Programming for lawyers, the law for programmers

Comments

Pushing code is similar to having your contract (program, remember) tested by a court.

The computer always runs the same code the exact same way. The courts can be damn near random on many issues.

Thinking of law like programming is a dangerous trap many techies fall into. Its a whole different mode of thought.

True but browsers don't run code the same way

Different browsers don't run code the same way, that's part of implementation, but the same browser should run the same code the same way. It's nearly the definition of computation to be predictable.

Similar to law, that's like leaving something purposely ambiguous and letting the courts sort it out later and get more specific. But with computers, that's nearly impossible and wouldn't produce usable software You can't just write some code intended to run in the browser, and release it and expect the browser to do something sane, reasonable, desired, or even logical after the fact. The testing for intended results needs to happen before the code is released and is "used".

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.