05:39TALK / Jonathan Striebel / Using Declarative Configs for Maintainable Reproducible Code
From the creator
Wondering how to keep your application config from getting outdated? Looking for a way to future-proof it in a backwards-compatible manner, keeping previous versions reproducible? Join this talk, we’ll share how declarative configs can be leveraged to make your code maintainable and reproducible at the same time. Therefore, an overview across the application config landscape is given – from inputs as cli-args, env-vars, and config-files, to their representations in code, covering serialization & deserialization, type-safety with config-schemas and evolutions. We’ll recommend cherries to pick for a maintainable and expressive declarative config system. All code examples are available at https://github.com/jstriebel/declarative-configs 00:18 *Introduction & Problem Domain* https://scalableminds.com https://webknossos.org https://twitter.com/jostriebel 03:02 *Goals: Maintainability & Reproducability* *Declarative Configurations and their Pythonic Representations* 04:16 Toy Experiment 05:07 Declarative Configuration Exctraction 06:08 Input Formats, Representations & Deserialization https://typer.tiangolo.com https://www.attrs.org https://cattrs.readthedocs.io 08:49 Landscape Overview Blog Post comparing attrs, dataclasses & pydantic: https://stefan.sofa-rockers.org/2020/05/29/attrs-dataclasses-pydantic *Code Examples* 10:10 Toy Example 11:08 Split Configuration 13:46 Type Checking https://mypy.readthedocs.io/
Published 2021-06-04 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





