I don’t know much about other languages or what’s possible with them, but I’ve used Lua quite a bit, and something interesting about Lua is that you can either pass the interpreter Lua code or you can use a program like LuaC and generate pre-compiled Lua bytecodes sort of like a Lua executable and run that, and it is handled completely transparently.
I’d say you can even write a script in C if you really want to, though it would be quite unusual. (There is at least one compiler that’ll compile and run all in a single command though.)
Yeah, I personally would say Python is “scripting” when you’re writing plugins or automating things in Blender, and not “scripting” when you’re writing standalone programs.
Yeah, I’ve definitely written things in C that I would consider scripts, it’s just not usually the most convenient tool for that sort of thing.
As I see it, Python, Lua, and JavaScript are all “scripting languages” in the sense that they were all initially designed primarily for use-cases that could be considered “scripting,” but that doesn’t mean they aren’t also frequently used for activities that go beyond “scripting.”
I’ve seen some real monsters in bash too. Someone should make BashOS and put it on hardware. ![]()
Speaking of, I’m somewhat guilty of bash monsters myself, having written a single bash file to automate the entire Linux From Scratch book with modifications, so I could generate my own custom OS images.
I also wrote some torrent tools a long time ago in bash for curating downloads for large torrent files that changed periodically. They decoded the torrent file format, scanned libraries, and moved/renamed/deleted files automatically. They weren’t super fast, but didn’t really need to be and did anything you could want of a compiled executable.
Personally I’ve only ever heard “coding” used as a synonym for “programming”. And scripting is obviously programming. Does it have a different connotation to you?
What? This doesn’t make sense to me. Are you talking about transpiling? Why is Inform code a script under this definition?
That’s not a definition I’ve ever heard before.
That’s not the same as what you said above about transpiling. Inform code isn’t executed by an interpreter. (The resulting Z-machine or Glulx code, however, is. Well, let’s not get into the interpreter vs VM debate.)
They’re both…
I’m a software engineer (and also sometimes a computer scientist), and I agree that the definition between “compiled language” and “interpreted language” is important, which I guess is what you’re arguing, but I’ve never known “code” to be a strict synonym for the former and not the latter. They’re both written in code.
I certainly have heard of this distinction before. IMO, the core idea of the distinction is to say that people writing interpreted scripts aren’t “real programmers.”
It’s a particularly subtle move to claim an elite status (“I am a real programmer, and you are not”) by claiming to know the true definition of “programming” or “coding,” and that other people are misusing the term by not using the “real” definition.
And of course, since many people who write and debug interpreted scripts may not actually know what a compiler is, (never having used one before,) they’re particularly vulnerable to arguments shaped like this: “for a technical reason blah blah blah that you don’t understand yet, you’re not really one of us. Perhaps you’re not even smart enough to be a real programmer.”
It’s all nonsense.
You can know for sure that you’re programming when you find yourself debugging, making changes to text to fix a bug. If you’re fixing a bug by editing the text, you are programming (which is synonymous with coding), and you are one of us.
You’re one of us regardless of whether the code is compiled or interpreted. You’re one of us even if the code is declarative (like HTML, CSS, SQL, regular expressions, or spreadsheets), even if you’re writing code in a language/environment that isn’t Turing-complete.
You’re one of us even if you don’t know what “compiled,” “interpreted,” “declarative,” or “Turing-complete” means. (You don’t have to know any of that to implement a working game/app, but it’s fun to learn about, and the more you learn, the more effective you’ll be at programming. A big part of improving at programming is learning how/when to use the right tool for the right job, and, for better and worse, there are a lot of tools out there you can learn about!)
Of course we know real programmers are determined by their use of tooling.
I was lucky enough to spend a week in Paris many years ago, where I used most of my time in the city’s museums. Almost every one had schoolchildren on field trips.
For the most part, they were bored out of their gourds by the faded oil paintings of old men and ancient architecture.
The only time I saw the children actually excited was at the Pompidou’s exhibition of Calder’s work. It doesn’t take much deep thought to understand why the children loved his mobiles so much. Honestly, it was the best exhibit in the Pompidou.
Let’s hear it for the kids.
No. Just no. Neither “script” nor “code” are well-defined terms and this is nonsense.
And how could the kids not love Dubuffet’s* Le Jardin d’hiver at the Pompidou? When I saw it I climbed right in and wished I could put on a costume to blend into the scenery. It reminded me a little of Red Grooms’ Ruckus Manhattan that I saw exhibited in NYC when I was a kid in the 70s, which I loved and has stuck with me ever since.
*Fun fact: until visiting Le Jardin, the only point of reference I’d had to Dubuffet was a lyric in the King Missile song Fluting On The Hump.
Scripting is for real programmers. Codeine is a drug.
I don’t forget that in the IF context “scripting” has also the classical, humanistic meaning of “the sequence of a narrative”; so an IF source has an intrinsic “scripting” in the classical sense above.
Said that, I admit that one of the current major issue in coding Isekai is figuring how to integrate scripted scenes & NPC behavior with both the code and narrative with an eye to the ease of maintenance.
so there’s a coding, and two scriptings which should be put together seamlessly.
(side note, I appreciate JJMcC’s rewieving criteria, and his reviews has given many insight on the “seams-handling” problem)
Best regards from Italy,
dott. Piergiorgio.
I appreciate the theoretical difference between “coding” and “scripting” as it appears on the OP. it makes sense to me. On a theoretical level. In practice, it seems muddly and, more importantly, I’m not sure what the difference is meant to achieve.
Let me put it in terms I’m familiar with. Interpreters (in the context of language) are not translators. But many call them translators. Translators change a written text from one language to another; interpreters render speech that they hear into a different language. The latter is in real time; the former may have strict deadlines, but it’s not in real time.
It bothers me to be called a “translator”, yes. But does it matter to the vast majority of people? Nah.
It is meaningless? Not at all, because when you set out to hire a translator/interpreter, you need to know what you want. It’s a different skillset entirely. “Changing from one language to another” is the most visible overlap, but it’s essentially the only one.
So the disctinction definitely exists and people who need to contract the services should know the difference. The people who actually call up interpreters/translators to make use of them don’t necessarily need to know.
I guess my question is… who needs to know the difference between scripting and coding as it is proposed on the OP? What are the different skillsets being brought to the table?
As stated? None.
You need to state the specific experience you are looking for, e.g.
“Do you know C++?”
“Are you familiar with React?”
“How much experience with CSS do you have?”
“Can you write Powershell?”
“Have you worked with Ansible before?”
Asking if someone can script or code tells you pretty much the same thing as trying to hire a translator by asking someone if they are literate, but failing to mention in what language.
I found some inspiration for this topic on wikipedia as I am no way an expert on this:
Scripting language - Wikipedia
It seems my original understanding of the word scripting was what is called a “control language” for controling the behaviour of a specific program. But I guess these things have no strict definition in our big world where definitions seem to change over time and regions.
Not trying to pile on here; just pointing out the flaw in this definition: You are attempting to name one activity by what a subsequent activity does with its output. The two are disconnected.
Personally, I’ve written code which was first interpreted, line-by-line; then later switched to an actual compiler which translated the same code into executable machine code (not an interpreter wrapped in an .EXE). What I wrote didn’t change, it was always code, or script, or whatever you wanted to call it. What changed was the process after I wrote it.
For example the “script” in JavaScript means something. It is different from Java which is a compiled language.
Its been a minute, but IIRC, the “script” was used simply to distinguish it from Java (which was pretty popular at the time). The “script” part of the name doesn’t mean more than that, it was just marketing. Also…
- Java did not originally compile down to CPU-specific machine code at all, but instead to “bytecode” and was interpreted by a run-time engine (the JVM).
- Most JVM implementations now compile bytecode to native machine code at runtime, using Just-In-Time compilation patterns, but…
- Many modern JavaScript engines now do the same, compiling the source code into native code via JIT.
So the attempt to apply the (re)definition of “script” vs “code”, while I’m sure is well-intentioned, is misguided.
Note: We do use “script” a lot when discussing shell scripts, but that’s just common vernacular. It’s not the definition of the term.
Sorry, but it’s too delicious not to comment - “interactive fiction” also originally didn’t mean more than “Infocom’s fancy name for text adventures”, it was just marketing. Then it took off and people started to want to justify things which where “interactive” and were “fiction”.
Labels are fun! Except when used in gatekeeping. Then they are UnFun!
My point: exposing a bit of the inherent sillyness of labels, and the dangers of taking them too seriously. But also not negating their usefullness!