News for hackers. Stuff that matters.
Re:How to write better scientific code in Python? by dragonwriter on Sunday February 20, 2022 @12:30AM (#30403467)
The thing is the abstractions on the last code are optimized for solving a far more general version of the problem, that just to exercise (not even exhaust) all the kinds of variation supported would take hundreds, probably thousands, of lines with code taking the initial approach. But you don't really have even a hint of that, because the article doesn't show at each abstraction level a broader problem, the cost of solving it without the new abstractions introduced, and then the benefit of the abstractions.
Re:How to write better scientific code in Python? by taeric on Sunday February 20, 2022 @01:23AM (#30403675)
No. I actually got that. But it doesn't help on a science report.

That is, I agree that this is better engineered code. I disagree that this is better science code.