News for hackers. Stuff that matters.
Re:Why I'm still using Python by dpkirchner on Friday December 30, 2022 @09:50PM (#34192997)
You may well be right. Personally, I dislike writing python because it lacks static types and all too often I end up triggering runtime exceptions, especially when integrating with third-party code. Do you suppose scientists/etc are more tolerant of runtime errors, at least while writing the code?
Re:Why I'm still using Python by mixmastamyk on Friday December 30, 2022 @11:04PM (#34193424)
Try pyflakes, it will find a majority of those.
Re:Why I'm still using Python by notpushkin on Saturday December 31, 2022 @08:57AM (#34196446)
Wemake [1] is much more comprehensive, although you might find it overwhelming at first. It includes a lot of useful flake8 rules that tackle complexity, enforce consistency and best practices and much much more.

[1]: https://wemake-python-styleguide.readthedocs.io/en/latest/

Re:Why I'm still using Python by mixmastamyk on Saturday December 31, 2022 @11:40AM (#34198079)
* * *
Re:Why I'm still using Python by cycomanic on Saturday December 31, 2022 @03:55AM (#34194787)
In my experience, the biggest issue in numerical/scientific code is to get correct results, these cases will hardly every be caught by typing. Moreover in many scientific programs you deal with well defined inputs, i.e. the chances of e.g. calling a function with an incompatible type are quite low. The most common error I have encountered is a mismatch in dimensionality/shape of input arrays (which I believe isn't straight forward to type for either, in particular if you want the shapes to be flexible, but all inputs to have the same shape).