2 ms·
> > Can use advanced Python libraries like numpy, pandas, matplotlib. > You're a data scientist and this is not "Python". Pandas and matplotlib, are a weaker
by dragonwriter 3y ago
> > Can use advanced Python libraries like numpy, pandas, matplotlib.
> You're a data scientist and this is not "Python".
Pandas and matplotlib, are a weaker case, maybe, but numpy is fairly broadly used (math being a core part of computing) library outside of just data science.
E.g., this tutorial on building a roguelike in Python has two direct dependencies, tcod (a library specifically to support roguelikes) and numpy: https://rogueliketutorials.com/tutorials/tcod/v2/part-0/ https://rogueliketutorials.com/tutorials/tcod/v2/part-0/
- drbig 3y agoAnd I have learnt the basics (and some of the Advanced, as per the article) of Python before numpy even existed. Mixing external libraries, however useful!, with the language itself is not good. "Batteries included" would be very fine here - it comes with the language and that was one of the original (selling? nah, _utility_) points of Python (and now with the external stuff that has morphed... to its life-line really; so never underestimate the ecosystem!).
- selcuka 3y ago> but numpy is fairly broadly used (math being a core part of computing) library outside of just data science. True, but Python can still do maths without numpy. Also I don't think "building a roguelike" is a typical example of a real-world programming task.
- kstrauser 3y agoI'm probably guilty of (poorly) re-implementing bits of Numpy in various places. If I'm whipping out a little tool to show some timings, I'm likely to write a simple standard deviation function instead of dragging along Numpy for just that one thing. Lots of backend/platform engineering uses math, but not always enough to justify adding such a huge dependency.