Relative Content

Tag Archive for design

When should code favour optimization over readability and ease-of-use?

I am in the process of designing a small library, where one of my design goals is that the API should be as close to the domain language as possible. While working on the design, I’ve noticed that there are some cases in the code where a more intuitive, readable attribute/method call requires some functionally unnecessary encapsulation. Since the final product will not necessarily require high performance, I am unconcerned about making the decision to favour ease-of-use in my current project over the most efficient implementation of the code in question.

Design documents as part of Agile

At my workplace, we face a challenge in that “agile” too often has meant “vague requirements, bad acceptance criteria, good luck!” We’re trying to address that, as a general improvement effort.