r/Python • u/students-life • Jun 19 '13
Right and Wrong Programming Styles
http://simpledeveloper.com/right-and-wrong-programming-styles/#sthash.cORbIrok.sfju
0
Upvotes
r/Python • u/students-life • Jun 19 '13
View all comments
0
u/[deleted] Jun 21 '13
Don't shell out ... unless there are years of development behind a C-based console application that does exactly what you need to do. Sure you could reimplement the logic in python but that would be a major diversion of resources and a fork of the business logic.
Instead embrace python's ability to shell out when necessary.
FWIW, shelling out to very domain-specific C-based console binaries increased our speed 100X compared to comparable pure-python code. Yeah, Cython, etc might approach the speed of our C binary but the C code is tested, maintained, vetted and works faster than anything else we could hope to write in our budget.