Today we’ll look at ways of productionizing the toy program from the
previous post. Our primary goal here is allowing the user to select
various statistics, computing just what the user has selected to
compute. We’ll try to do this in a modular and composable way,
striving to isolate each statistic into its own unit of some sorts.
I've been working with Python typing annotation in the last few
years as part of our main product at Flare Systems. I've found it to
be a wonderful tool to support refactoring and make the code more
readable. Lately, I explored how we can make API safer with the uses
of types. I will specifically look about how we can use Python
typing annotation to make os.system foolproof.