News for hackers. Stuff that matters.
Re:How to write better scientific code in Python? by d0mine on Saturday February 19, 2022 @01:29PM (#30399269)
I see it more as an example of anti pattern: unnecessary layers obfuscating what happening. Good abstraction is hard and it is not free. It is better to make mistake of under using abstraction than overusing (the latter is much harder to maintain).

I would understand if the list comprehension were replaced with the corresponding numpy/scipy/pandas/etc code.

Re:How to write better scientific code in Python? by toponaut on Saturday February 19, 2022 @02:55PM (#30399970)
I agree. I didn't mean to imply this was a good explanation or example. I still think "abstraction/classes are good" was the intention/gist of the article.