Monday, November 24, 2014

Redundant code

Legislation is like source code. It is evolved, not designed. The newer documents look ok, but it's only a matter of time before related laws get spread out over several libraries and packages, and patches and new features are often tacked on messily. They're always overdue for re-formatting, but no one wants to do the work, and there's always something more pressing. There's never enough testing or proofreading, and a lot of things have to get tested in production when they go through federal courts.

Given this, when I see:

import marriage
import civilunion

...I get an urge to push the code review button. I hate maintaining duplicate code.

No comments:

Post a Comment