r/AskProgramming • u/Same_Impress_4242 • Sep 01 '26
Other If you had to pick a scripting language to use for the rest of your life, what would it be?
It's not the usual "pick one programming language" question. You can still develop big apps ot such in your favorite language(s), but you must write simple automation scripts in a specific language. It has to be a scripting language, so, say Java is off the list (Though, if you write scripts in Java you have bigger problems). And also, Go doesn't count (controversial, I know, but my post my rules).
For me, I'd honestly pick Python. Bland, but it's easy and scripts don't need to run fast.
22
Upvotes
8
u/jba1224a Sep 01 '26
Python, and anyone who says otherwise is insane.
It’s platform agnostic
It’s human readable
It’s extremely simple to learn
It has an insane amount of support
It has a massive, rich, community presence.
You could maybe make a case for typescript.
8
u/martinsedd Sep 01 '26
How complex are we talking?
Lua ‘cuz I like it, or Python for library convenience.
8
u/josephjnk Sep 01 '26
TypeScript, because it’s what I’m good at, but I could also make do with Python. TBH though if I’m writing a reusable automation script it’s probably going to look more like Java than like bash regardless of the language I write it in. By which I mean: all but the most trivial scripts benefit from modularization, unit testing, and possibly typechecking, if you want to have multiple developers maintain them over a long period of time. I’d rather write an automation “script” in a non-scripting language with a good unit testing framework than write it in a syntactically lightweight scripting language going yolo mode on testing.
21
u/PatchyWhiskers Sep 01 '26
Python because I’m basic
12
u/azimux Sep 01 '26
Ruby for me!
4
u/mcAlt009 Sep 01 '26
JavaScript.
Python is nice, but it can’t easily deploy to web. If I have a browser I have a JS interpreter.
4
u/Jomy10 Sep 01 '26
Ruby
10
u/aioeu Sep 01 '26 edited Sep 01 '26
Perl, for two reasons.
First, it has been a big part of my life up to now, so having it a big part of the rest of my life seems only natural.
But second, and more importantly, it's the only general-purpose scripting language I've used that doesn't regularly annoy me in some way. I don't feel like it gets in the way so much as Python does, it doesn't have limited utility like Shell, and it's not as ludicrously mis-designed as PHP. It is, to put it bluntly, enjoyable to use, and frankly I think that's one of the most important things you might want in a language you would be forced to use forever.
(FWIW, Ruby would probably come second. It's certainly not perfect — I really hate the way meta-methods and methods all seem to get mashed together into the same namespace... an
Objectinstance should have zero methods dammit! — but it does allow for a lot of freedom in how you might write your code. It's probably the most Perlish non-Perl language I've used.)5
u/MissinqLink Sep 01 '26
JS
5
u/IanYates82 Sep 01 '26
Probably typescript
Otherwise, I've scripted heaps in C# thanks to linqpad (less needed as single file scripting in .net10 became a whole lot easier)
7
u/BuyerImpressive4325 Sep 01 '26
Bash is already good enough for me
5
u/Tricky-Dust-6724 Sep 01 '26
R, because I like data
2
u/vaibhav-kaushal Sep 01 '26
Lua
2
u/ravibkjoshi Sep 01 '26
Python all the way, the sheer amount of libraries that are available to you is reason enough. My only gripe is indentation is a painfully frustrating.
2
u/x180mystery Sep 01 '26
Powershell
2
u/Resource_account Sep 01 '26 edited Sep 01 '26
Nushell, easily.
I work in an air-gapped RHEL/OpenShift environment, and up until recently I'd been writing most of my scripts in Bash and Python.
Then I stumbled across Nushell in EPEL 9, and it completely changed my perspective on what a scripting language could be. It feels like a convergence of a lot of ideas I've enjoyed in other tools over the years: the immediacy of Bash, the structured data and general-purpose scripting of Python, the composable transformations of jq and Jinja, and the structured pipeline model I first appreciated in PowerShell. Nushell somehow brings all of that together in a way that still feels like a shell.
The biggest difference for me is in the day-to-day experience. With Bash, I'm constantly thinking about how to parse and manipulate streams of text. With Python, I can work with real data structures, but even a small automation script often means setting up a bit of boilerplate before I get to the part I actually care about. With Nushell, if some tool gives me JSON, I can pipe it into
from jsonand I'm basically off to the races. From there I'm filtering rows, selecting columns, transforming records, joining data, whatever I need, while still working in something that feels like a shell. And the resulting scripts are usually remarkably clean and readable.The tooling has been another huge win for me. Nushell ships with an LSP built in, and Helix, my editor of choice, is also available in EPEL 9. So in an air-gapped environment, I can install those two packages and essentially have a productive scripting environment out of the box, with editor integration and language-aware feedback, without having to separately bring in tools like ruff, ty, or bash-language-server.
If I had to pick one scripting language to use for the rest of my life, I'd have absolutely no problem choosing Nushell.
edit: word
2
u/foreach_loop Sep 01 '26
Perl. It's extremely flexible and it's what I know
2
u/Spaceshipable Sep 01 '26
Swift
2
u/Horror-Water5502 Sep 01 '26
python or some scheme/lisp, maybe guile ? idk
1
u/amnion Sep 01 '26
Goblin. But I'm biased.
1
u/this_knee Sep 01 '26
Python … Python that can also execute bash scripts integrated into the Python code.
1
u/TheFern3 Sep 01 '26
Automation depends on the goals, if you are talking infra automation I would pick ansible and both bash and python. Some machines don’t have python when they’re barebones so you would need bash.
If you’re talking local one machine, you still need more than one, I wouldn’t pick Python for simple tasks and I wouldn’t pick bash for complex tasks.
1
u/biotech997 Sep 01 '26
I would've said Go, but Python then!
1
u/Traveling-Techie Sep 01 '26
I’m very attached to csh despite its flaky reputation.
1
u/ApplicationBig9830 Sep 01 '26
python or lua/other more generally used and applied script language if i feel like learning
1
u/Ankiset Sep 01 '26
Vinecoding
1
u/mrbiggbrain Sep 01 '26
PowerShell, I know it better then anyone else I have ever met and have written some really killer automations with it.
1
u/vmcrash Sep 01 '26
D, because it works compiled and for scripts
1
u/Cafuzzler Sep 01 '26
Javascript. Browsers are everywhere and it's easy to use.
The comments saying TS suprise me tho, Typescript is compiled.
1
u/twhickey Sep 01 '26
Julia, because why not?
1
u/Fidodo Sep 01 '26
Typescript because I like types
1
u/pdath Sep 01 '26
perl
1
u/Xirdus Sep 01 '26
C# is technically a scripting language.
1
u/Paul_Pedant Sep 01 '26
Awk. More specifically, GNU/awk 5.1.0 with the BigNum library built-in.
"For the rest of your life" is rather too appropriate. I first used awk in about 1982, and at 77 I still do. Anything from a smart one-liner to a 1250-line data management tool.
1
u/Rurouni Sep 01 '26
Babashka: "Fast native Clojure scripting runtime". It's mostly Clojure, but it starts and runs extremely fast. Babashka scripts run the same across platforms, and you never have to worry about weird bash syntax for arguments, function parameters, etc.
And frankly, Clojure is what I'd like to do all my programming in. Babashka extends its reach to scripts wonderfully.
1
u/pacopac25 Sep 01 '26
Python for the ecosystem, or Lua for the joy of programming in it.
1
u/lostllama2015 Sep 01 '26
Anything but VBA
1
u/HelpMeIAmGoingInsane Sep 01 '26
JS, I actually am redefining math using set theory using code with Gemini (AI disclosure!!)
1
u/danlyke Sep 01 '26
A few years ago I wrote some libraries to support common tasks in C++, so... either Perl, because the whipupitude is amazing, or C++, because hello static type checking.
A small "well, okay, maybe" to Python, because Python seems to be where the libraries are these days and Python is fine for strapping libraries together, but any time I start a project in Python I end up wishing I'd used C++.
1
u/church-rosser Sep 01 '26
Common Lisp
1
u/MarcusFirmus Sep 01 '26
Bash is the way to go. It has pipes. You write "sort | uniq -c | sort -n" and you have a histogram.
1
u/platinum_pig Sep 01 '26
My heart says Bash, my head says Python.
1
u/zarlo5899 Sep 01 '26
Python or C# (you can run single cs files
dotnet run app.cs)1
u/raven2cz Sep 01 '26
Lua
1
u/Boot_Burner Sep 01 '26
C++ or ur a lame.
1
u/Tasty-Research-2750 Sep 01 '26
Ren-C Red-lang Lua
1
u/Full-Huckleberry-441 Sep 01 '26
For real apps, C++, for small tools Typescript
1
u/MimosaTen Sep 01 '26
Python
1
u/ummaycoc Sep 02 '26
APL.
1
u/Top-Procedure152 Sep 02 '26
Qbasic is all I need. It can make music and draw cool lines!
1
u/Cyberspots156 Sep 02 '26
Bash or kshell.
1
u/Devatator_ Sep 02 '26
C# does have weird scripting capabilities and I would use that, tho if it's not possible then Typescript I guess
1
u/kilkil Sep 03 '26
I would use Bash. Because in Bash I can do this:
and you can't stop me! 😎😎😎
1
u/gaspoweredcat Sep 04 '26
i used to love python, and dont get me wrong its still powerful and versatile but its also become a bit of a bloated monster of a thing, not that im sure what else id choose, typescript maybe? i did used to know one guy who did far more than he should have using perl but its not for me
1
u/charmer27 Sep 04 '26
Probably Go? Just love the ability to ship cross platform.
1
u/Wonderful_Sorbet4301 Sep 04 '26
JavaScript.
1
u/lemgandi Sep 05 '26
Lua! Fast, underrated, simple yet deep.
1
u/ArmyRunnerSteve Sep 05 '26
I've found Python to be incredibly invaluable, though there is something to be said for TypeScript as well. I use Python primarily because it is what I started with, and had such a wide and diverse library of modules and customization for a lot of things, not the least of which is integrating RAG-enabled chatbots into my websites. Just my thoughts, but I also like the other suggestion, one I really need to learn: Ruby.
1
u/infinitUndo Sep 06 '26
PHP. Yeah, no.
1
u/iegdev Sep 07 '26
C#. With file-based apps I can now run ./script.cs and it runs great. I don’t have to screw with bash or python anymore.
1
u/-Nyarlabrotep- Sep 01 '26
Groovy. It's got access to all the libraries available in Java without the syntactic verbosity of Java.
1
u/Amazing-Mirror-3076 Sep 01 '26
Dart - I've used lots of languages for scripting. Wrote libraries for C, python, java and ruby to make scripting in those languages easy and wasnt satisfied with any of them.
Dart is not an obvious choice but it has some really nice features that when combined are a killer.
Run from source or compile a standalone exe.
Cross platform Typed Great package management.
We have about 250k lines of dart script in production.
I write this to make it easier:
https://pub.dev/packages/dcli
0
u/arivictor Sep 01 '26
Python, as simple as you want it to be, as complicated as you want it to be. Or TypeScript, same same.
-1
u/ghjm Sep 01 '26
If I can only use one then it needs to have maximum library support, and currently that's Python.
0
u/[deleted] Sep 01 '26
[deleted] — view deleted comment
1
u/[deleted] Sep 01 '26
[removed] — view removed comment