I don't like using Python for really serious applications, but it's a fantastic language for small projects and system scripting. It's a nice upgrade from bash scripting... if a script is going to need more than 20ish lines of bash code, or if it needs to analyze the output of programs, Python is the next logical step.
It takes longer to write the boilerplate to set things up and call the programs you want, but then you've got a very nice, friendly syntax and can do all kinds of advanced data manipulation without working very hard.
But then when you start getting to any kind of real complexity, I start to find it annoying. Duck typing can be damnably hard to troubleshoot when programs get big. Ensuring that your Python program is operating securely and won't do something unexpected, even when given bad or malicious data, can take a heck of a lot of test code.
Haha funny you said that. A few years ago duck typing was hailed as a way to help large python application development by making it possible to write unit test for any code even if they has hard dependency to 3rd party library with poor testing support.
Now that microservice took off, companies don't need a language that can do everything anymore and can just write each microservice with language most suitable for its task, and they choose languages with better type safety and performance. It's sad because python ecosystem begin to stagnant because of this but it's still the best language when you need something that can do absolutely everything thanks to its large 3rd party libs that cover everything from web development to ml and bioinformatics.
403
u/zdaga9999 Aug 26 '20
Well you can put semicolons, python doesn't care.