Hacker News new | ask | show | jobs
by __mharrison__ 64 days ago
Folks need to learn how to debug chains. The juice of writing with intermediate variables is not worth the squeeze.
1 comments

I'll byte: how do you debug chains without intermediate values?
Disclaimer: 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).