I got something for you: https://nekrogoblikon.bandcamp.com/album/heavy-meta
110 karma · joined July 16, 2011
while True:
bytes = io.get(x)
if not bytes:
break
...
which I think is objectively less readable.In the second example, you have an extra call to foo for every element of stuff. If foo(z) is expensive, you'd probably want to write this as
[bar(x) for x in map(foo, stuff) if x]
instead - which I personally don't mind, but it's arguably not as clear as having the in-line assignment expression.After doing that 36 times, Lufthansa noticed it and sent him a bill over 1980€ (55€ per lounge visit). He refused to pay, got sued and lost.
Source (in German): http://www.justiz.bayern.de/gericht/ag/m/presse/archiv/2014/...
https://github.com/openssl/openssl/blob/103b171d8fc282ef435f...
Apparently this is done to work around potential length limitations in C string literals.
[].slice.call(nodeList)
That way you get all array methods, not just forEach.Not sure about ascending too fast, I'd imagine at high speeds there's a risk of damaging the balloon due to wind.