r/programminghumor • • Oct 17 '26

The power of Python

Post image
112 Upvotes

15 comments sorted by

View all comments

Show parent comment

4

u/jipperthewoodchipper Oct 17 '26

To be fair, that's kind of the point of python.

Rather than spending 15 hours dealing with C libraries and writing efficient C code I can spend 30 seconds writing a python wrapper to call that C library to do the thing. Sure it's a little slower than using raw C but I can write it so much faster.

There are of course times when it is worth not writing in python at all but not every project would benefit from cutting out python.

1

u/rolling_atackk Oct 20 '26

I'll post my very opinionated grain of sand

The time I save using Python 's toolset, I waste finding weird bugs any compiled language would yell at me for even before running the program

2

u/jipperthewoodchipper Oct 21 '26

I work in analytics and around 70% of the code I write is Sql and the other 30% python.

I could not imagine doing my job in a compiled language and our team has built up design guidelines and style guidelines that with strict adherence does pretty well at reducing risk of a lot of the common bugs encountered with the quirks of the language.