Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are all scripts written in scripting languages?

I'm confused by the concept of scripts.

Can I say that makefile is a kind of script?

Are there scripts written in C or Java?

like image 559
MainID Avatar asked Mar 13 '09 16:03

MainID


People also ask

What language are scripts written in?

Scripting languages are a specific kind of computer languages that you can use to give instructions to other software, such as a web browser, server, or standalone application. Many of today's most popular coding languages are scripting languages, such as JavaScript, PHP, Ruby, Python, and several others.

Are all scripting languages programming languages?

While all scripting languages are programming languages, not all programming languages are scripting languages. Initially, programming languages were used to create Internet Explorer, PowerPoint, Microsoft Excel, Microsoft Word.

Is a scripting language called a scripting language?

A scripting language, script language or extension language is a programming language that allows some control of a single or many software application(s). Languages chosen for scripting purposes are often much higher-level than the language used by the host application...

Why is a scripting language called a scripting language?

A scripting language or script language is a programming language that is used to manipulate, customize, and automate the facilities of an existing system. Scripting languages are usually interpreted at runtime rather than compiled.


1 Answers

I'd refer to Wikipedia for a detailed explanation.

"Scripts" usually refer to a piece of code or set of instructions that run in the context of another program. They usually aren't a standalone executable piece of software.

Makefiles are a script that is run by "make", or MSBuild, etc.

C needs to be compiled into an executable or a library, so programs written in (standard) C would typically not be considered scripts. (There are exceptions, but this isn't the normal way of working with C.)

Java (and especially .net) is a bit different. A typical java program is compiled and run as an executable, but this is a grey area. It is possible to do runtime compilation of a "script" written in java and execute it.

like image 103
Reed Copsey Avatar answered Sep 30 '22 11:09

Reed Copsey