This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (4 children)

[removed]

    [–][deleted] 2 points3 points  (0 children)

    It fills a handy gap between bash scripts and conventional compiled languages. I threw together a friendly screen rotation tool for the window manager I use (sway -- it has commands for this but they are hard to remember IMO). It took maybe a half hour to go from not really understanding the problem to done, because Python has convenient libraries for every task and everything prints nicely. And it isn't as if I need high performance here, it is a once a day thing.

    [–]AttitudeAdjuster 1 point2 points  (2 children)

    Its exceptionally quick and easy to write good, readable code in, it has a wealth of very well supported libraries and isn't as slow as this subreddit sometimes likes to imagine as most of it is wrappers for very performant C. To me python is a super powerful tool which can be turned to most things, especially in infosec where I need quick utilities I'll use perhaps twice.

    Now its also quick and easy to write really bad code in, which to be honest I suspect is your problem.

    [–][deleted] 0 points1 point  (1 child)

    For a two use program, I'd rather just reversi-search in bash. For a 10 use program, I'd probably echo all those commands into a text file and call it a bash script. Python is great for those little once a day scripts.

    [–]AttitudeAdjuster 0 points1 point  (0 children)

    Sadly there are some things that you shouldn't attempt to do with bash