Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Cursed Elixir. Parent comment
Here is a code example from the front page of the official Python website [python.org]:
>>> numbers = [2, 4, 6, 8] >>> product = 1 >>> for number in numbers: ... product = product * number
product = [2, 4, 6, 8].inject(:*)
There are no comments on this comment yet.
Here is a code example from the front page of the official Python website [python.org]:
Compared to the Ruby equivalent, this feels like unnecessary bloat that makes it harder to understand what is going on in the larger picture, i.e. the unit of code this is a part of.