Quote:
Originally Posted by Roonil Wazlib
perhaps i'm a crazy, narrow-minded pedestrian, but can someone tell me what all these repetitive tasks that people need scripting languages for are?
I'm not talking about like stuff on websites or whatever, but the things people routinely use batch scripts for and whatnot.
Talking to a guy in class the other day and he said he mostly only knew scripting languages for doing routine tasks and batch scripts. Couldn't figure out what those might actually be.
(Though, I've discovered a batch script I can run on my raspberry pi that automatically starts a VNC server whenever the device starts, which is helpful, but could easily be automated on non-*nix devices i would think)
Is this more a case of people who use Linux/Unix needing things that aren't done automatically?
Python scripts for being creative with tasks related to builds. I mean there is all kinds of things people automate with scripts related to software development. A lot of things related to testing and processing test results have been done with scripts. Now perhaps not so much.
I am working on an embedded project where my current assignment is writing run time diagnostics to test various system resources like memory, processor instruction execution, etc. The project lead asked me today about my Python skills. There is a system requirement to insert special code that is for testing only and they have Python scripts to actually modify a copy of the source files to put the test code in automatically. Then the Python scripts kick off a build. There is a hardware in the loop for actually physically injecting hardware faults and the the inserted test code will make sure the error was detected. UEFI builds are controlled with Python scripts as the build parameters can be changed by the command line and/or modifying a text file. I've used them for many other things. I don't write that many, I just use them mostly.
Scripting adds a degree of flexibility to the development process. Then of course sys admin functions can be automated with scripts.