1,277 karma · joined August 14, 2017
id_to_name = {g['id']: g['name'] for g in list_of_genres}
And for i in range(len(list_of_genres))
is really a dangerous antipattern better replaced with for genre in list_of_genres:The crux I think is that when
A. bank teller
is juxtaposed with
B. bank teller and feminist,
we vaguely and falsely interpret A as "bank teller and not feminist", while the correct explicit interpretation is "bank teller and possibly feminist, but possibly not".
Heap sort using an array impressed me as an undergrad.
FFT continues to amaze me as a scientific programmer.
https://medium.com/@agzmn/the-making-of-apples-emoji-how-des...
Apple has released a new version of its forthcoming bagel emoji. Now including cream-cheese, this aims to address concerns raised about the previous design.
(Not that it's a bad website, it's the most common format in the academia, just an example of a plain HTML website)
EDIT:
> If the hardware doesn't make allowance for this, then the CPU will have to run useless instructions until it is needed for real work.
Do any consumer processors (think Intel iBlah) not support turning off the CPU when it's not needed?
But there's no additional depth to it, I see it as a horrors-of-bureacracy/system-vs-individual-themed amusement park attraction.