脚本语言和编程语言的区别_编程语言和脚本语言之间的区别_culing2941的博客-程序员秘密

技术标签: python  c++  java  linux  编程语言  

脚本语言和编程语言的区别

A programming language is a language used to write set of instructions to perform a task or to get an output from it, whereas Scripting language have comparatively small set of instructions which is used to produce different kinds of outputs which can be combined to some other program to perform a task. Scripting languages is a subset of programming languages.

编程语言是一种用于编写指令集以执行任务或从中获得输出的语言,而脚本语言具有相对较小的指令集,该指令集可用于生成可以组合到某些其他程序的各种输出执行任务。 脚本语言是编程语言的子集。

The basic difference between both is that programming languages are compiled whereas scripting languages are interpreted, and the programming languages run independently but scripts do not. The deciding factor of the differences between these two is the environment on which they are used.

两者之间的基本区别在于,编程语言是编译的,而脚本语言是解释的,而编程语言是独立运行的,而脚本则不是。 两者之间差异的决定因素是使用它们的环境。

Initially, the programming languages were used to develop software/applications like Microsoft Excel, PowerPoint, Microsoft Word for example, but when the need to add new functionalities to these existing programs arose, then the need for scripting languages came into existence.

最初,编程语言用于开发软件/应用程序,例如Microsoft Excel,PowerPoint,Microsoft Word,但是当需要向这些现有程序中添加新功能时,就出现了脚本语言的需求。

编程语言与脚本语言 (Programming Language vs Scripting Language)

Programming Languages Scripting Languages
Set of instructions to produce various types of outputs to automate a certain task. Set of instructions to combine the outputs with different outputs to perform a task.
Compilation is necessary. No need for compilation.
Not interpreted. Interpretation is required.
Full- length code. Small chunks of code.
Self-executable, no host is required. Dependent on some other platform, host is required.
Runs independently. Needs to be embedded to existing parent program.
Creates an .exe file. Does not create .exe file
Used in Application/Software development. Used in web development.
Time taken is more because of code being full-fledged. Lesser time is taken because these are only small pieces of code.
编程语言 脚本语言
一组指令,用于产生各种类型的输出以自动执行特定任务。 一组指令,用于将输出与不同的输出组合以执行任务。
编译是必要的。 无需编译。
不解释。 需要解释。
完整代码。 一小段代码。
可自行执行,不需要主机。 依赖于其他平台,主机是必需的。
独立运行。 需要嵌入到现有的父程序中。
创建一个.exe文件。 不创建.exe文件
用于应用程序/软件开发。 用于Web开发。
由于代码成熟,因此花费的时间更多。 花费较少的时间,因为它们只是一小段代码。

The detailed differences between programming languages and scripting languages are:

编程语言和脚本语言之间的详细区别是:

  • Programming languages use a compiler to first convert the high level language to machine level language in one go whereas, Scripting languages do not need a compiler and they use an interpreter for line by line conversion.

    编程语言使用编译器首先将高级语言一次转换为机器级语言,而脚本语言则不需要编译器,并且它们使用解释器进行逐行转换。
  • Programming languages are compiled so they do not need to be interpreted by some other host, whereas, Scripts are interpreted with another program. For example: JavaScript is used within HTML and then interpreted by browser which is the host for it.

    程序语言是经过编译的,因此它们不需要由其他主机解释,而脚本由其他程序解释。 例如:JavaScript在HTML内使用,然后由浏览器解释为它的宿主。
  • Programming is a full-fledged code whereas script is a piece of code.

    编程是完整的代码,而脚本是一段代码。
  • Any development can be done from scratch by using programming languages whereas,

    可以使用编程语言从头开始进行任何开发,而
  • Scripting languages are used to perform any specific task and gets combined to already existing programs.

    脚本语言用于执行任何特定任务,并与现有程序结合在一起。
  • Programming languages are self-executable and run independently, whereas, A script gets combined to a parent program to make a specific task easier.

    编程语言是可自行执行的,并且可以独立运行,而脚本可以组合到父程序中,从而使特定任务更加容易。
  • The time taken to write a code using programming languages is relatively more because we need detailed line of code for each function whereas, A script is short and specific because it is only used to perform any function and will embed into some other host taking lesser time to write.

    使用编程语言编写代码所花的时间相对较多,因为我们需要为每个功能编写详细的代码行,而脚本又短又具体,因为该脚本仅用于执行任何功能,并且可以以较少的时间嵌入到其他主机中来写。
  • An executable file can be created using a programming language, whereas, A script does not create any .exe file.

    可执行文件可以使用编程语言创建,而脚本不会创建任何.exe文件。
  • Programming languages are categorized into: First, Second, Third, Fourth and Fifth Generation, whereas, Scripting languages are only divided into two categories: Server-side scripting languages and client-side scripting languages.

    编程语言可分为:第一代,第二代,第三代,第四代和第五代,而脚本语言仅分为两类:服务器端脚本语言和客户端端脚本语言。
  • Programming languages are primarily used for application development, whereas, Scripting languages are used to write code to perform any function in web development.

    编程语言主要用于应用程序开发,而脚本语言用于编写代码以执行Web开发中的任何功能。
  • Examples: Programming languages: C, C++, Java, C#, Scripting languages: JavaScript, PHP, VBScript, Perl, Python.

    示例:编程语言:C,C ++,Java,C#,脚本语言:JavaScript,PHP,VBScript,Perl,Python。

Note: Python is a programming language which is also used for scripting. It is basically a programming language but is used as a scripting language to write code to automate a certain process in a specific environment.

注意 :Python是一种编程语言,也用于编写脚本。 它基本上是一种编程语言,但用作脚本语言来编写代码以在特定环境中自动执行特定过程。

Conclusion

结论

The execution time and complexity are basically the differentiating factors for programming languages and scripting languages. The difference between programming languages and scripting languages mainly depends on the environment being used and the process of execution.

执行时间和复杂度基本上是编程语言和脚本语言的差异化因素。 编程语言和脚本语言之间的区别主要取决于所使用的环境和执行过程。

Although, the difference between both is getting almost negligible nowadays due to the advanced and improved practices that are coming into existence.

尽管由于当今已经存在的先进和改进的实践,两者之间的差异几乎可以忽略不计。

翻译自: https://www.thecrazyprogrammer.com/2020/03/difference-between-programming-language-and-scripting-language.html

脚本语言和编程语言的区别

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/culing2941/article/details/108649449

智能推荐

三、开始采集_小邓不自满的博客-程序员秘密

第三章:开始采集1、遍历单个域名。采集a链接里的东西获取维基百科网站的任何页面并提取页面链接的 Python 代码from urllib.request import urlopenfrom bs4 import BeautifulSouphtml = urlopen(“http://en.wikipedia.org/wiki/Kevin_Bacon”)bsObj = Beautifu...

multi-user.target_yiyeguzhou100的博客-程序员秘密

[email protected]:/lib/systemd/system# cat multi-user.target#  This file is part of systemd.##  systemd is free software; you can redistribute it and/or modify it#  under the terms of the GNU Lesser

关于@GetMapping、@PostMapping、@PutMapping、@DeleteMapping的理解_知有丶的博客-程序员秘密

一、前言在Spring4.3中引入了{@GetMapping、@PostMapping、@PutMapping、@DeleteMapping、@PatchMapping},其中@PatchMapping是对put方式的一种补充,put可以是更新,但是是对整体的更新,patch是对局部的更新二、幂等性一次和多次请求某一个资源对于资源本身具有同样的结果。也就是任意多次执行对资源本身产生的影响与执行一次的影响相同幂等不仅仅只是一次请求对资源没有副作用(比如数据库查询操作)幂等包括第一次请求的时候对数据库

A gentle introduction to Template Metaprogramming with C++_nothing4all的博客-程序员秘密

A gentle introduction to Template Metaprogramming with C++moliate, 6 Mar 2003   4.91 (96 votes)Rate this:vote

vsftpd基本使用-程序员秘密

ftp: 文件传输协议两类连接:命令连接:传输命令数据连接:传输数据两种模式:主动模式:PORT 20/tcp连接客户端的命令连接使用的端口向后的第一个可用端口被动模式:PASV 打开一个随机端口,并等待客户端连接PAM: 插入式认证模块认证框架:库,高度模块化协议:C/S Server: Filezilla proftpd pureftpd vsftpd Client: ftp Filezilla CuteFTP FlashFXP lftp ftp ...

C++之智能指针原理与实现_编译原理 智能指针c++程序_returningprodigal的博客-程序员秘密

#include <QCoreApplication>#include <iostream>#include <string>#include <valarray>#include <stdexcept>using namespace std;#define trace(a) cout <<"line:" << __LINE__<< " func:" << __func__ << "

随便推点

解决安装win7+UBANTU18.04双系统时出现的‘grub installation failed’_hanaif的博客-程序员秘密

       实验室的台式机安装ubantu系统时最后的阶段出现grub installation failed,查找了一些方法,大致分为两类解决方法:1 .重新安装,不通过U盘。这个方法没试,因为之前已经分好/boot ,/home这些分区,实在不想再弄一遍,就用了第二种方法,这里贴出第一种方法,大家可以参考参考。链接:不通过U盘重安装Ubantu。接下来介绍我自己用的第二种方法,本人的台式机是...

深入理解JVM(虚拟机类加载机制)_cg3410的博客-程序员秘密

1.概述在class类中的信息需要最终加载到JVM中才能够运行和使用。JVM把描述类的数据从Class文件加载到内存,并对数据进行校验,转换解析和初始化后,最终形成可以被JVM直接使用的java类型。与在编译期就进行连接的语言不同,java对Class文件的加载,连接,初始化是在运行时进行的,虽然加大了运行时的一些开销,但是对java的灵活性提供了很大好处。java动态扩展的特性就得益于j

GreenDao笔记(二)_apigfly的博客-程序员秘密

GreenDao进阶笔记,通过 注解 JAVA 对象描述数据库表结构,以及实现一对多、多对多的联系,简单直接上代码,后面有详细说明配置代码@Entitypublic class Soldier{ //人员表 @Id(autoincrement = true) private Long sID; @Property private Long...

ORA-03113: 通信通道的文件结尾(错误解决)_冷月宫主的博客-程序员秘密

今天关闭服务器的时候出现莫名原因导致数据库无法shutdown,只好利用强制命令shutdown abort;但随便Oracle数据库无法打开了,总是报“ORA-03113: 通信通道的文件结尾”错误,分析可能由于数据库立即关闭,导致文件状态可能不一致,因为正常关闭数据库会同步校验各文件,使得重新启动的时候文件时间点一致并且不用进行崩溃恢复,不得不进行下面的恢复,建议大家以后在利用abort选项时

node上传word转html,NodeJs之word文件生成与解析的实现代码_白夜月汐的博客-程序员秘密

一,介绍与需求1.1,介绍1, officegen模块可以为Microsoft Office 2007及更高版本生成Office Open XML文件。此模块不依赖于任何框架,您不需要安装Microsoft Office,因此您可以将它用于任何类型的JavaScript应用程序。输出也是流而不是文件,不依赖于任何输出工具。此模块应适用于支持Node.js 0.10或更高版本的任何环境,包括Li...

matlab非等间隔量化,非等间隔数据 进行FFT如何计算_元哥理财的博客-程序员秘密

4.3269230770.03758.6538461540.037512.980769230.037512.980769230.0517.307692310.0521.634615380.0525.961538460.0530.288461540.0534.615384620.0534.615384620.037538.942307690.037543.269230770.037547.59615...

推荐文章

热门文章

相关标签