|
|
|
|
|
by kalecserk
2987 days ago
|
|
> I start with the lowest-level, simple operations. I then build in layers on top of the prior layers. I was discussing this with a coleague this week: starting by the lower level details vs starting from the more abstract/whole api. I prefer to start by writing a final API candidate and its integration tests and only write/derive specific lower level components/unit tests as they become required to advance on the integration test.
My criticism on starting with the bottom-up is that you may end up leaking implementation details in your tests and API because you already defined how the low level components work. I have even seen cases where the developer end up making the public API more complex than necessary due to the nature of the low level components he has written.
Food for thought! |
|