Skip to content

Comment on FuckIt.py - The Python Error Steamroller

Comments

This module is not satire, and the existence of this module does not indicate anything about the quality of programmers of this generation.

For those who think so, try doing some machine learning, data handling code, or even web crawlers. Error tolerance is much needed.

For scientific experiments, sometimes the results of the experiment is still valuable even if there's a trivial bug (malformed row). A partially-correct execution is still more information than an unhandled exception causing an early exit.

Having worked on all of those, this module is satire and foolish to use in normal code. The rule is protect your boundaries and whenever data comes in it requires careful handling and thoughtful error policies. The entire notion of taint from Perl comes to mind.

If anything, your error messages are more important then.

The problem doesn't go away just because you've closed your eyes.

An age appropriate name for the module could be peekaboo.

Definitely accurate. I've spent some time working on a web crawler with a friend, and eventually you just realize that no matter what you do, requesting pages is going to break, hyperlinks lie, content is borked, ect ect ect. After countless hours debugging you just say "FUCK IT, WE'LL JUST GO THE NEXT PAGE". And really, that's what you would have done anyway if you had filtered the page out...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.