3 ms·
That still seems complicated to me. You're still passing around an object representing a collection of arguments/options, and there are functions whose outputs
by zacharyvoase 14y ago
That still seems complicated to me. You're still passing around an object representing a collection of arguments/options, and there are functions whose outputs vary based on this object's state—it's not immediately inferable from the call to `get_filtered_tweets` whether the result will be filtered for profanity or not. So you might as well have that bit of code right next to the code which uses its result, rather than splitting it up into two separate (but still complex) parts.
EDIT:
I added a bit here on how I would do it better without needless refactoring: http://localhost:3000/2013/02/08/copypasta/#a-better-solution http://localhost:3000/2013/02/08/copypasta/#a-better-solutio...