脚本和程序的区别? [英] Difference between a script and a program?
问题描述
脚本和程序有什么区别?大多数时候我听到一个脚本正在运行,那不是一个程序吗?有点疑惑,有大佬能详细说说吗?
What is the difference between a script and a program? Most of the time I hear that a script is running, is that not a program? I am bit puzzled, can anybody elaborate on this?
推荐答案
我有不同的看法.
脚本"是以外部或独立方式作用于某个系统的代码,可以在不禁用系统本身的情况下删除或禁用.
A "script" is code that acts upon some system in an external or independent manner and can be removed or disabled without disabling the system itself.
程序"是构成系统的代码.程序的代码可以模块化方式编写,具有良好的关注点分离,但代码基本上是内部的,并且依赖于,系统本身.
A "program" is code that constitutes a system. The program's code may be written in a modular manner, with good separation of concerns, but the code is fundamentally internal to, and a dependency of, the system itself.
脚本经常被解释,但并非总是如此.程序经常被编译,但并非总是如此.
Scripts are often interpreted, but not always. Programs are often compiled, but not always.
这篇关于脚本和程序的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!