Articles tagged with Design

Architecture Patterns with Python Review

By Eric — 5 minute read

Architecture Patterns with Python

Architecture Patterns with Python by Harry Percival and Bob Gregory

I learned about this book by watching Harry Percival's 2020 PyCon talk Stop Using Mocks (for a while). In the past, I was pretty enthusiastic about mocks, especially in Python because they, along with patching, let me test just about …

Read more...

When to Give Up - Retrying Failures

By Eric — 4 minute read

When we programmers find an aspect of software that fails intermittently, we sometimes follow the impulse to add retries with a Churchillian insistence that we will "Never give in — never, never, never, never"! But sometimes the right thing is to give up.

One might ask, why retry at all? Didn't …

Read more...

Design by Contract: Is It Worth It Without Language Support?

By Eric — 7 minute read

This is a continuation of thoughts after reading Design by Contract by Example by Richard Mitchell and Jim McKim. This time I want to write a little about design by contract without direct language support. What do you give up without language support, and is it still worth it to …

Read more...

Design by Contract: An Alternative to Testing for Code Quality

By Eric — 7 minute read

I recently finished reading Design by Contract by Example by Richard Mitchell and Jim McKim. The book, as its title suggests, gives advice about writing good contracts through a set of principles applied in various examples. In addition to wanting to learn more about design by contract generally, I came …

Read more...