July 5, 2017

...Learn TDD with Codemanship

A Little Test for My Conceptual Correlation Metric

Here's a little test for my prototype .NET command line tool for calculating Conceptual Correlation. Imagine we have a use case for booking seats on flights for passengers.

The passenger selects the flight they want to reserve a seat on. They choose the seat by row and seat number (e.g., row A, seat 1) and reserve it. We create a reservation for that passenger in that seat.

We write two implementations: one very domain-driven...

And one... not so much.

We run Conceptual.exe over our first project's binary to compare against the use case text, and get a good correlation.

Then we run it over the second project's output and get zero correlation.

QED :)

You can download the prototype here. What will it say about your code?

Posted 2 weeks, 1 day ago on July 5, 2017