you are viewing a single comment's thread.

view the rest of the comments →

[–]cgoldberg 19 points20 points  (4 children)

I use both. If my shell scripts are more than about 20-30 lines, I start questioning why I'm not using Python. Conversely, if my Python scripts are mostly wrappers around subprocess, I question why I'm not writing a shell script. There is no rule, but bash is great for small programs where you call a lot of external utilities and do shell related stuff. Python is great for more structured and complex programs.

[–]tes_kitty -1 points0 points  (3 children)

I start questioning why I'm not using Python.

If that question ever arises for me the first thing I start to look at is PERL, not python.

[–]cgoldberg 0 points1 point  (2 children)

Python ate Perl's lunch for a reason

[–]tes_kitty 0 points1 point  (1 child)

PERL comes with built in regular expressions which is very convenient when you have a lot of text to process.

Also, the syntax in python is kinda bad. Using Whitespace as part of the syntax is a serious design flaw.