News for hackers. Stuff that matters.
Re:Bash functions are better than I thought by laumars on Sunday October 31, 2021 @03:01PM (#29059387)
> Bash is not a "real" programming language, so do not treat it as one.

Bash is definitely a different paradigm to your average imperative or functional language and thus requires a different approach but I wouldn’t go so far as to say it’s not “real”.

It certainly fits the criteria of a programming language even if it does have more warts than a pantomime witch.

Re:Bash functions are better than I thought by ratww on Sunday October 31, 2021 @03:12PM (#29059478)
Yes.

Compared to other languages, Bash can be incredibly worse for some things, but much better for others.

People who don't realise that won't be able to get the best out of their toolset.

Re:Bash functions are better than I thought by craftinator on Sunday October 31, 2021 @05:01PM (#29060389)
It is Turing Complete...
Re:Bash functions are better than I thought by laumars on Sunday October 31, 2021 @08:38PM (#29061922)
I don’t think it makes much sense to judge software by whether it is Turing complete because otherwise that would make Minecraft a programming language
Re:Bash functions are better than I thought by craftinator on Monday November 01, 2021 @06:29AM (#29064929)
So are you deprecating the term "Turing Complete"? Mighty bold move there. And on that same note, have you seen the stuff being done in Minecraft? It is quite up for debate whether it is a programming language.
Re:Bash functions are better than I thought by laumars on Monday November 01, 2021 @07:57AM (#29065558)
> So are you deprecating the term "Turing Complete"?

No. It’s still an interesting yard stick. It just doesn’t describe programming languages in full. For example, and someone counterintuitively, it is actually possible to design a programming language that isn’t Turing complete. Some esoteric functional languages do actually fall into that category. But generally programming languages would be a subset of Turing complete software.

> And on that same note, have you seen the stuff being done in Minecraft?

I have, hence why I cited it as an example.

> It is quite up for debate whether it is a programming language.

One could debate anything but it doesn’t mean the argument is made in good faith.

Minecraft is a game. I’m happy to even extend the definition and say it’s supports some visual programming mechanics. But that doesn’t mean it is a programming language.

Just because something has 4 legs and a tail, it doesn’t automatically mean it is a dog.