Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Python idioms I wish I'd learned earlier. Parent comment
['a' if i % 2 == 0 else 'b' for i in range(10)]
I was only aware of code like
['a' for i in range(10) if i % 2 == 0]
There are no comments on this comment yet.
I was only aware of code like