Relative Content

Tag Archive for maintainability

Is there a software quality metric related to side effects?

In large systems there are often code paths that modify state or produce side effects that other code comes to depend on. This makes it hard to safely change code without understanding the whole system, because changing the order of function calls or operations could change the behavior. Is there a software quality metric that measures or correlates with this kind of issue?

Which is the most practical way to add functionality to this piece of code?

I’m writing an open source library which handles hexagonal grids. It mainly revolves around the HexagonalGrid and the Hexagon class. There is a HexagonalGridBuilder class which builds the grid which contains Hexagon objects. What I’m trying to achieve is to enable the user to add arbitrary data to each Hexagon. The interface looks like this:

Which is the most practical way to add functionality to this piece of code?

I’m writing an open source library which handles hexagonal grids. It mainly revolves around the HexagonalGrid and the Hexagon class. There is a HexagonalGridBuilder class which builds the grid which contains Hexagon objects. What I’m trying to achieve is to enable the user to add arbitrary data to each Hexagon. The interface looks like this:

Which is the most practical way to add functionality to this piece of code?

I’m writing an open source library which handles hexagonal grids. It mainly revolves around the HexagonalGrid and the Hexagon class. There is a HexagonalGridBuilder class which builds the grid which contains Hexagon objects. What I’m trying to achieve is to enable the user to add arbitrary data to each Hexagon. The interface looks like this:

Which is the most practical way to add functionality to this piece of code?

I’m writing an open source library which handles hexagonal grids. It mainly revolves around the HexagonalGrid and the Hexagon class. There is a HexagonalGridBuilder class which builds the grid which contains Hexagon objects. What I’m trying to achieve is to enable the user to add arbitrary data to each Hexagon. The interface looks like this: