Re:Ask HN: What APIs do you wish existed?
by jodrellblank on Sunday November 22, 2009 @12:52AM
(#955458)
and justMagicallyWork(), the call that papers over leaky abstractions, off-by-one errors, misunderstandings, logical errors in your thinking and just does whatever it is you were trying to do.
>>> data = urlopen('example.org/lovelydata/2009/') YetAnotherException: [...]
It needs some kind of web form cookie login non-standard authentication. Aaargh I can't spend any more time on this sub-project it was only supposed to take two minutes!
>>> import bigGuns Warning, Universe enters a fragile state. Tread carefully. >>> data = justMagicallyWork(urlopen('example.org/lovelydata/2009/')) Success. Cost: 12 Karma. >>> del bigGuns normality restored
Phew!
This is from the same framework that has winTheGame() and doMyHomework()