19 ms·
Folks need to learn how to debug chains. The juice of writing with intermediate variables is not worth the squeeze.
by __mharrison__ 6mo ago
Folks need to learn how to debug chains. The juice of writing with intermediate variables is not worth the squeeze.
- _ZeD_ 6mo agoI'll byte: how do you debug chains without intermediate values?
- __mharrison__ 6mo agoDisclaimer: I wrote a book about pandas that is semi famous because it focuses on chaining. And it has a while chapter on debugging chains. Debugging: use a debugger, create intermediate variables using .pipe (and side effects), logging, testing, writing your code clearly (use good naming).