Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Conventional Wisdom

Andrew Best
November 30, 2015

Conventional Wisdom

How you can leverage convention tests to build good codebases

Andrew Best

November 30, 2015
Tweet

More Decks by Andrew Best

Other Decks in Technology

Transcript

  1. Conventional
    Wisdom
    Andrew Best

    View Slide

  2. Page
    Good codebases
    are?
    › Easy to reason
    about
    › Express clear
    opinions
    › Have low
    cognitive
    overhead
    › Inspire confidence
    › Are self enforcing
    › Are malleable
    / Copyright ©2014 by Readify Pty Ltd
    2

    View Slide

  3. Page
    How?
    › Write good code!
    › Leverage tools that help us validate our codebases
    › The .NET type system
    › Mono.Cecil
    › Combine these with tools that run these validations at
    build time
    › Unit testing frameworks
    › CI
    / Copyright ©2014 by Readify Pty Ltd
    3

    View Slide

  4. Page
    Conventional
    › A .NET library for inspecting types, assemblies,
    solutions and databases, available on nuget
    › Provides a large set of conventions that can be applied
    out of the box, or you can create your own
    › Fits in with your testing framework of choice
    › Gives human-readable output whenever conventions
    are broken, so we can go and fix our code!
    / Copyright ©2014 by Readify Pty Ltd
    4

    View Slide

  5. Page
    To the code!
    / Copyright ©2014 by Readify Pty Ltd
    5

    View Slide

  6. Thankyou!
    @_AndrewB
    [email protected]

    View Slide