[Tidbit] making your D code more modular & unittestable

XavierAP via Digitalmars-d digitalmars-d at puremagic.com
Wed Mar 8 14:03:28 PST 2017


On Wednesday, 8 March 2017 at 21:34:19 UTC, H. S. Teoh wrote:
> While writing a tool for dissecting various file formats, I 
> found a useful coding pattern that helps your D code be 
> cleaner, more modular, and more easily unittestable.

https://en.wikipedia.org/wiki/Dependency_inversion_principle

"Abstractions should not depend on details. Details should depend 
on abstractions."


More information about the Digitalmars-d mailing list