“Use manual sanity checks in data pipelines. When optimizing data processing systems, it’s easy to stay in the “binary mindset” mode, using tight pipelines, efficient binary data formats, and compressed I/O. As the data passes through the system unseen, unchecked (except for perhaps its type), it remains invisible until something outright blows up. Then debugging commences. I advocate sprinkling a few simple log messages throughout the code, showing what the data looks like at various internal points of processing, as good practice — nothing fancy, just an analogy to the Unix head command, picking and visualizing a few data points. Not only does this help during the aforementioned debugging, but seeing the data in a human-readable format leads to “aha!” moments surprisingly often, even when all seems to be going well. Strange tokenization! They promised input would always be encoded in latin1! How did a document in this language get in there? Image files leaked into a pipeline that expects and parses text files! These are often insights that go way beyond those offered by automatic type checking or a fixed unit test, hinting at issues beyond component boundaries. Real-world data is messy. Catch early even things that wouldn’t necessarily lead to exceptions or glaring errors. Err on the side of too much verbosity.”
―
High Performance Python: Practical Performant Programming for Humans
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From
High Performance Python: Practical Performant Programming for Humans
by
Micha Gorelick244 ratings, average rating, 22 reviews
Browse By Tag
- love (101962)
- life (80685)
- inspirational (76838)
- humor (44714)
- philosophy (31562)
- inspirational-quotes (28768)
- god (27022)
- wisdom (24974)
- truth (24954)
- romance (24599)
- poetry (23690)
- life-lessons (22782)
- quotes (21250)
- death (20749)
- happiness (19017)
- hope (18802)
- faith (18615)
- inspiration (17991)
- spirituality (15988)
- motivational (15975)
- relationships (15867)
- religion (15514)
- life-quotes (15341)
- writing (15062)
- love-quotes (14903)
- success (14211)
- motivation (13975)
- time (12966)
- science (12232)
- motivational-quotes (12222)
