DEV Community

Discussion on: Looking for scripting language

Collapse
 
swiknaba profile image
Lud • Edited

Non tech savvy people means, the scripting language either can be compiled to an executable, or the language has to be available on the OS by default.

Or can you tell people, oh, it's a simple script, but you have to install and compile a new language on your OS?!

If it's really simple tasks: how about bash (i.e. you will send a zip + a .sh file)?

You can also use JavaScript, and then use electron to build a tiny app that even comes with a GUI. Ruby is similarly to Python a very mature language if it comes to libraries that can handle everything you need.

You can also put installing, unzipping and running your script in a bash script, that people can simply execute. Ansible is cool, but keep it simple and don't throw too many frameworks and tools into it, else you're gonna spend more time reading all the docs than coding your script.

Lastly, you can also just run it on a server, e.g. put it on a AWS lambda, or digital ocean droplet, and send your friends a link.

Collapse
 
mcsneaky profile image
McSneaky

Or can you tell people, oh, it's a simple script, but you have to install and compile a new language on your OS?!

Can't really go and ask accountant to install Ruby or PHP on their PC :|

If it's really simple tasks: how about bash (i.e. you will send a zip + a .sh file)?

For simpler personal things I've just used bash scripts but problem with it is that I can't share them to Windows users (not sure about Mac)

I think I won't dig into Ansible, at least it seems too much overkill for now.

Haven't ever touched Ruby. If it comes to use Ruby vs Python I'd most likely go with Python

Electron is decent idea too, could build whole toolset for company on top of that with some GUI not just some simple automation scripts..